UNPKG

ngx-materialize

Version:

An Angular wrap around Materialize library

1 lines 82.1 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("tslib"),require("@angular/common"),require("@angular/forms"),require("rxjs"),require("rxjs/operators"),require("@angular/animations")):"function"==typeof define&&define.amd?define("ngx-materialize",["exports","@angular/core","tslib","@angular/common","@angular/forms","rxjs","rxjs/operators","@angular/animations"],t):t(e["ngx-materialize"]={},e.ng.core,e.tslib,e.ng.common,e.ng.forms,null,e.Rx.Observable.prototype,e.ng.animations)}(this,function(e,s,c,t,n,r,i,o){"use strict";var a=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-badge",template:'<span #badge\n class="badge {{ badgeClass }}"\n [class.new]="new || !!badgeClass"\n [attr.data-badge-caption]="caption">\n {{ value }}\n</span>\n',styles:[""]}]}],e.propDecorators={badgeClass:[{type:s.Input}],caption:[{type:s.Input}],"new":[{type:s.Input}],value:[{type:s.Input}]},e}(),l=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[a],exports:[a]}]}],e}(),p=function(){},u=function(){function e(){}return e.prototype.ngOnChanges=function(e){this.handlers&&this.executePropHandlers(e)},e.prototype.executePropHandlers=function(n){var i=this;void 0===n&&(n=this.handlers),Object.keys(n).forEach(function(e){if(i.handlers[e]){var t=n[e].previousValue;i.handlers[e](t)}})},e}(),d=function(){function e(e,t,n){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n}return e.prototype.appendComponent=function(e,t,n){var i=this;void 0===t&&(t={}),void 0===n&&(n=this.getContainerElement());var o=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);this.projectComponentInputs(o,t),this.applicationRef.attachView(o.hostView),o.onDestroy(function(){i.applicationRef.detachView(o.hostView)});var r=this.getComponentRootNode(o);return n.appendChild(r),o},e.prototype.setRootViewContainer=function(e){this.container=e},e.prototype.getComponentRootNode=function(e){return e.hostView.rootNodes[0]},e.prototype.getContainerElement=function(){return this.container||document.body},e.prototype.projectComponentInputs=function(e,t){if(t){var n=Object.getOwnPropertyNames(t);try{for(var i=c.__values(n),o=i.next();!o.done;o=i.next()){var r=o.value;e.instance[r]=t[r]}}catch(l){a={error:l}}finally{try{o&&!o.done&&(s=i["return"])&&s.call(i)}finally{if(a)throw a.error}}}return e;var a,s},e.decorators=[{type:s.Injectable}],e.ctorParameters=function(){return[{type:s.ApplicationRef},{type:s.ComponentFactoryResolver},{type:s.Injector}]},e}(),h=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{providers:[d]}]}],e}(),m=function(){function e(e){this.elementRef=e,this.childrenElement=[]}return e.prototype.ngAfterViewInit=function(){var e=this.elementRef.nativeElement;for(this.parentElement=e.parentElement;e.firstChild;)this.childrenElement.push(this.parentElement.insertBefore(e.firstChild,e))},e.prototype.ngOnDestroy=function(){var t=this;this.childrenElement.forEach(function(e){return t.parentElement.removeChild(e)})},e.ctorParameters=function(){return[{type:s.ElementRef,decorators:[{type:s.Inject,args:[s.ElementRef]}]}]},e}(),f=function(i){function e(e,t){var n=i.call(this)||this;return n.elementRef=e,n.renderer=t,n}return c.__extends(e,i),e.prototype.ngOnInit=function(){this.initHandlers(),this.initMaterialize(),i.prototype.executePropHandlers.call(this)},e.prototype.initHandlers=function(){var e=this;this.handlers={disabled:function(){return e.handleDisabled()},flat:function(){return e.handleFlat()},"float":function(){return e.handleFloat()},large:function(){return e.handleLarge()},noWaves:function(){return e.handleNoWaves()}}},e.prototype.initMaterialize=function(){this.renderer.setElementClass(this.elementRef.nativeElement,"btn",!0)},e.prototype.handleDisabled=function(){this.renderer.setElementClass(this.elementRef.nativeElement,"disabled",this.disabled)},e.prototype.handleFlat=function(){this.renderer.setElementClass(this.elementRef.nativeElement,"btn",!this.flat),this.renderer.setElementClass(this.elementRef.nativeElement,"btn-flat",this.flat)},e.prototype.handleFloat=function(){this.renderer.setElementClass(this.elementRef.nativeElement,"btn-floating",this["float"])},e.prototype.handleLarge=function(){this.renderer.setElementClass(this.elementRef.nativeElement,"btn-large",this.large)},e.prototype.handleNoWaves=function(){this.renderer.setElementClass(this.elementRef.nativeElement,"waves-effect",!this.noWaves),this.flat||this.renderer.setElementClass(this.elementRef.nativeElement,"waves-light",!this.noWaves)},e.decorators=[{type:s.Directive,args:[{selector:"\n a[mz-button],\n a[mzButton],\n button[mz-button],\n button[mzButton]"}]}],e.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer}]},e.propDecorators={disabled:[{type:s.Input}],flat:[{type:s.Input}],"float":[{type:s.Input}],large:[{type:s.Input}],noWaves:[{type:s.Input}]},e}(u),g=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[f],exports:[f]}]}],e}(),y=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"\n a[mz-halfway-fab],\n a[mzHalfwayFab],\n button[mz-halfway-fab],\n button[mzHalfwayFab]"}]}],e.propDecorators={"true":[{type:s.HostBinding,args:["class.halfway-fab"]}]},e}(),v=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{imports:[t.CommonModule],declarations:[y],exports:[y]}]}],e}(),b=function(){function e(e){this.changeDetectorRef=e,this.hasCardAction=!0,this.hasCardImage=!0,this.hasCardImageTitle=!0,this.hasCardTitle=!0}return e.prototype.ngAfterViewInit=function(){this.hasCardTitle=this.hasTitleTagAndNotEmpty(),this.hasCardAction=this.hasActionTagAndNotEmpty(),this.hasCardImage=this.hasImageTagAndNotEmpty(),this.hasCardImageTitle=this.hasImageTitleTagAndNotEmpty(),this.changeDetectorRef.detectChanges()},e.prototype.hasActionTagAndNotEmpty=function(){var e=this.cardAction.nativeElement.querySelector("mz-card-action");return this.isElementDisplayed(e)},e.prototype.hasImageTagAndNotEmpty=function(){var e=this.cardImage.nativeElement.querySelector("mz-card-image");return this.isElementDisplayed(e)},e.prototype.hasImageTitleTagAndNotEmpty=function(){var e=this.cardImage.nativeElement.querySelector("mz-card-image-title");return this.isElementDisplayed(e)},e.prototype.hasTitleTagAndNotEmpty=function(){var e=this.cardTitle?this.cardTitle.nativeElement.querySelector("mz-card-title"):null;return this.isElementDisplayed(e)},e.prototype.isElementDisplayed=function(e){return e&&""!==e.innerHTML.trim()},e.decorators=[{type:s.Component,args:[{selector:"mz-card",template:'<div #cardImage class="card-image" *ngIf="hasCardImage">\n <ng-content select="mz-card-image"></ng-content>\n <div class="card-title" *ngIf="hasCardImageTitle">\n <ng-content select="mz-card-image-title"></ng-content>\n </div>\n</div>\n\n<div [class.card-stacked]="horizontal">\n <div class="card-content">\n <div #cardTitle class="card-title" *ngIf="hasCardTitle">\n <ng-content select="mz-card-title"></ng-content>\n </div>\n\n <ng-content select="mz-card-content"></ng-content>\n </div>\n\n <div #cardAction class="card-action" *ngIf="hasCardAction">\n <ng-content select="mz-card-action"></ng-content>\n </div>\n</div>',styles:[":host{display:block}"]}]}],e.ctorParameters=function(){return[{type:s.ChangeDetectorRef}]},e.propDecorators={"true":[{type:s.HostBinding,args:["class.card"]}],horizontal:[{type:s.HostBinding,args:["class.horizontal"]},{type:s.Input}],hoverable:[{type:s.HostBinding,args:["class.hoverable"]},{type:s.Input}],cardAction:[{type:s.ViewChild,args:["cardAction"]}],cardImage:[{type:s.ViewChild,args:["cardImage"]}],cardTitle:[{type:s.ViewChild,args:["cardTitle"]}]},e}(),E=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-card-image"}]}],e}(),C=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-card-image-title"}]}],e}(),z=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-card-title"}]}],e}(),M=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-card-content"}]}],e}(),I=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-card-action"}]}],e}(),D=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{imports:[t.CommonModule,v],declarations:[I,b,M,E,C,z],exports:[I,b,M,E,C,z]}]}],e}(),x=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-checkbox-container",template:'<p class="checkbox-field">\n <ng-content></ng-content>\n</p>',styles:[""]}]}],e}(),w=function(i){function e(e,t){var n=i.call(this)||this;return n.elementRef=e,n.renderer=t,n}return c.__extends(e,i),e.prototype.ngOnInit=function(){this.initHandlers(),this.initElements(),this.handleProperties()},e.prototype.initHandlers=function(){var e=this;this.handlers={filledIn:function(){return e.handleFilledIn()},label:function(){return e.handleLabel()}}},e.prototype.initElements=function(){this.checkboxElement=$(this.elementRef.nativeElement),this.checkboxContainerElement=$(this.elementRef.nativeElement).parent(".checkbox-field"),this.labelElement=this.createLabelElement()},e.prototype.createLabelElement=function(){var e=document.createElement("label");return e.setAttribute("for",this.id),this.renderer.invokeElementMethod(this.checkboxElement,"after",[e]),$(e)},e.prototype.handleProperties=function(){0!==this.checkboxContainerElement.length?i.prototype.executePropHandlers.call(this):console.error("Input with mz-checkbox directive must be placed inside a [mz-checkbox-container] tag",this.checkboxElement)},e.prototype.handleLabel=function(){this.renderer.invokeElementMethod(this.labelElement,"text",[this.label])},e.prototype.handleFilledIn=function(){this.renderer.setElementClass(this.checkboxElement[0],"filled-in",this.filledIn)},e.decorators=[{type:s.Directive,args:[{selector:"input[mzCheckbox], input[mz-checkbox]"}]}],e.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer}]},e.propDecorators={id:[{type:s.HostBinding},{type:s.Input}],filledIn:[{type:s.Input}],label:[{type:s.Input}]},e}(u),P=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[w,x],exports:[w,x]}]}],e}(),R=function(){function e(e,t){this.elementRef=e,this.zone=t,this.add=new s.EventEmitter,this["delete"]=new s.EventEmitter,this.select=new s.EventEmitter,this.onChangeCallback=function(e){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this.chipInputElement.material_chip("data")},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.initElements(),this.initMaterializeChip()},e.prototype.ngOnDestroy=function(){this.chipInputElement.off("chip.add"),this.chipInputElement.off("chip.delete"),this.chipInputElement.off("chip.select")},e.prototype.initElements=function(){this.chipInputElement=$(this.elementRef.nativeElement)},e.prototype.initMaterializeChip=function(e){var n=this;this.zone.runOutsideAngular(function(){setTimeout(function(){n.chipInputElement.material_chip({autocompleteOptions:n.autocompleteOptions,data:e||n.value,placeholder:n.placeholder,secondaryPlaceholder:n.secondaryPlaceholder})})}),this.chipInputElement.on("chip.add",function(e,t){n.onChangeCallback(n.value),n.add.emit(t)}),this.chipInputElement.on("chip.delete",function(e,t){n.onChangeCallback(n.value),n["delete"].emit(t)}),this.chipInputElement.on("chip.select",function(e,t){n.select.emit(t)})},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){},e.prototype.setDisabledState=function(e){},e.prototype.writeValue=function(e){e&&e!==this.value&&this.initMaterializeChip(e)},e.decorators=[{type:s.Component,args:[{selector:"mz-chip-input",template:"",styles:[":host{display:block}"],providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return e}),multi:!0}]}]}],e.ctorParameters=function(){return[{type:s.ElementRef},{type:s.NgZone}]},e.propDecorators={autocompleteOptions:[{type:s.Input}],placeholder:[{type:s.Input}],secondaryPlaceholder:[{type:s.Input}],add:[{type:s.Output}],"delete":[{type:s.Output}],select:[{type:s.Output}]},e}(),k=function(){function e(e){this.elementRef=e,this.chipClass=!0,this.close=!1,this["delete"]=new s.EventEmitter}return Object.defineProperty(e.prototype,"chipElement",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),e.prototype.onDelete=function(){for(var e="",t=0;t<this.chipElement.childNodes.length;t++)this.chipElement.childNodes.item(t).nodeType===Node.TEXT_NODE&&(e+=this.chipElement.childNodes.item(t).nodeValue);this["delete"].emit(e.trim())},e.decorators=[{type:s.Component,args:[{selector:"mz-chip",template:'<ng-content></ng-content>\n<i class="close material-icons" (click)="onDelete()" *ngIf="close">close</i>',styles:[""]}]}],e.ctorParameters=function(){return[{type:s.ElementRef}]},e.propDecorators={chipClass:[{type:s.HostBinding,args:["class.chip"]}],close:[{type:s.Input}],"delete":[{type:s.Output}]},e}(),S=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{imports:[t.CommonModule],declarations:[k,R],exports:[k,R]}]}],e}(),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c.__extends(t,e),t.decorators=[{type:s.Component,args:[{selector:"mz-collapsible-item",template:'<li>\n <div class="collapsible-header"\n [class.active]="active"\n >\n <ng-content select="mz-collapsible-item-header"></ng-content>\n </div>\n <div class="collapsible-body">\n <ng-content select="mz-collapsible-item-body"></ng-content>\n </div>\n</li>',styles:[""]}]}],t.propDecorators={active:[{type:s.Input}]},t}(m),A=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-collapsible-item-body"}]}],e}(),T=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-collapsible-item-header"}]}],e}(),V=function(){function e(e){this.renderer=e}return e.prototype.ngAfterViewInit=function(){this.handleDataCollapsible(),this.initCollapsible()},e.prototype.ngOnDestroy=function(){$(this.collapsible.nativeElement).collapsible("destroy")},e.prototype.close=function(e){$(this.collapsible.nativeElement).collapsible("close",e)},e.prototype.initCollapsible=function(){var e={accordion:!1,onClose:this.onClose,onOpen:this.onOpen};$(this.collapsible.nativeElement).collapsible(e)},e.prototype.handleDataCollapsible=function(){this.mode&&this.renderer.setElementAttribute(this.collapsible.nativeElement,"data-collapsible",this.mode)},e.prototype.open=function(e){$(this.collapsible.nativeElement).collapsible("open",e)},e.decorators=[{type:s.Component,args:[{selector:"mz-collapsible",template:'<ul #collapsible\n class="collapsible"\n [class.popout]="popout"\n [hidden]="items.length === 0"\n>\n <ng-content></ng-content>\n</ul>',styles:["/deep/ .collapsible-header{clear:both}/deep/ .collapsible-body{clear:both}"]}]}],e.ctorParameters=function(){return[{type:s.Renderer}]},e.propDecorators={mode:[{type:s.Input}],onClose:[{type:s.Input}],onOpen:[{type:s.Input}],popout:[{type:s.Input}],collapsible:[{type:s.ViewChild,args:["collapsible"]}],items:[{type:s.ContentChildren,args:[O]}]},e}(),B=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[V,A,O,T],exports:[V,A,O,T]}]}],e}(),H=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"[mzAvatar], [mz-avatar]"}]}],e.propDecorators={"true":[{type:s.HostBinding,args:["class.circle"]}]},e}(),N=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-collection-header",template:'<div class="collection-header">\n <ng-content></ng-content>\n</div>',styles:[""]}]}],e}(),L=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-collection-item",template:"<ng-content></ng-content>",styles:[":host{display:block}"]}]}],e.propDecorators={"true":[{type:s.HostBinding,args:["class.collection-item"]}],avatar:[{type:s.HostBinding,args:["class.avatar"]},{type:s.Input}],dismissable:[{type:s.HostBinding,args:["class.dismissable"]},{type:s.Input}]},e}(),_=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"[mzCollectionLink], [mz-collection-link]"}]}],e.propDecorators={active:[{type:s.HostBinding,args:["class.active"]},{type:s.Input}],"true":[{type:s.HostBinding,args:["class.collection-item"]}]},e}(),j=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.ngOnInit=function(){this.initElements(),this.initCollectionHeader()},e.prototype.initElements=function(){this.collectionElement=$(this.elementRef.nativeElement).find(".collection"),this.collectionHeaderElement=$(this.elementRef.nativeElement).find(".collection-header")},e.prototype.initCollectionHeader=function(){0<this.collectionHeaderElement.length&&this.renderer.addClass(this.collectionElement[0],"with-header")},e.decorators=[{type:s.Component,args:[{selector:"mz-collection",template:'<div class="collection">\n <ng-content></ng-content>\n</div>',styles:[""]}]}],e.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer2}]},e}(),W=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"[mzSecondaryContent], [mz-secondary-content]"}]}],e.propDecorators={"true":[{type:s.HostBinding,args:["class.secondary-content"]}]},e}(),F=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[H,j,L,_,N,W],exports:[H,j,L,_,N,W]}]}],e}(),q=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-datepicker-container",template:'<div\n class="input-field"\n [class.inline]="inline"\n>\n <ng-content></ng-content>\n</div>',styles:[""]}]}],e.propDecorators={inline:[{type:s.Input}]},e}(),G=function(r){function e(e,t,n,i){var o=r.call(this)||this;return o.ngControl=e,o.changeDetectorRef=t,o.elementRef=n,o.renderer=i,o.options={},o.isInitRound=!0,o.stopChangePropagation=!1,o}return c.__extends(e,r),Object.defineProperty(e.prototype,"format",{get:function(){return this.options.format||this.options.formatSubmit||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formatSubmit",{get:function(){return this.options.formatSubmit||this.options.format||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngControlValue",{get:function(){return""===this.ngControl.value?null:this.ngControl.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"picker",{get:function(){return this.inputElement.pickadate("picker")},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.initHandlers(),this.initElements(),this.initDatepicker(),this.initInputSubscription(),this.handleProperties(),this.isInitRound=!1},e.prototype.ngOnDestroy=function(){this.inputValueSubscription&&this.inputValueSubscription.unsubscribe()},e.prototype.initHandlers=function(){var e=this;this.handlers={label:function(){return e.handleLabel()},options:function(){return e.handleOptions()},placeholder:function(){return e.handlePlaceholder()}}},e.prototype.initElements=function(){this.inputContainerElement=$(this.elementRef.nativeElement).parent(".input-field"),this.inputElement=$(this.elementRef.nativeElement),this.labelElement=this.createLabelElement()},e.prototype.initDatepicker=function(){var n=this;this.format&&(this.options.format=this.format),this.formatSubmit&&(this.options.formatSubmit=this.formatSubmit);var t=this.options&&this.options.onClose||function(){};this.options=Object.assign({},this.options,{onClose:function(e){t(e),n.renderer.invokeElementMethod(document.activeElement,"blur")}}),this.renderer.invokeElementMethod(this.inputElement,"pickadate",[this.options]),this.ngControl&&(this.picker.set("select",this.ngControlValue,{format:this.formatSubmit}),this.picker.on("set",function(){if(n.stopChangePropagation)n.stopChangePropagation=!1;else{n.stopChangePropagation=!0;var e=n.formatSubmit?n.picker.get("select",n.formatSubmit):n.picker.get("value");n.ngControl.control.setValue(e);var t=n.format?n.picker.get("select",n.format):n.picker.get("value");n.inputElement.val(t),n.setLabelActive(),n.changeDetectorRef.markForCheck()}}))},e.prototype.initInputSubscription=function(){var e=this;this.ngControl&&(this.inputValueSubscription=this.ngControl.valueChanges.subscribe(function(){e.stopChangePropagation?e.stopChangePropagation=!1:(e.stopChangePropagation=!0,e.picker.set("select",e.ngControlValue,{format:e.formatSubmit}),e.setLabelActive())}))},e.prototype.createLabelElement=function(){var e=document.createElement("label");return e.setAttribute("for",this.id),this.renderer.invokeElementMethod(this.inputElement,"after",[e]),$(e)},e.prototype.handleProperties=function(){0!==this.inputContainerElement.length?r.prototype.executePropHandlers.call(this):console.error("Input with mz-datepicker directive must be placed inside an [mz-datepicker-container] tag",this.inputElement)},e.prototype.handleLabel=function(){this.renderer.invokeElementMethod(this.labelElement,"text",[this.label])},e.prototype.handleOptions=function(){this.isInitRound||this.picker.set(this.options)},e.prototype.handlePlaceholder=function(){var e=this,t=this.placeholder?this.placeholder:null;this.renderer.setElementAttribute(this.inputElement[0],"placeholder",t),this.ngControl&&setTimeout(function(){return e.ngControl.control.markAsPristine()}),this.setLabelActive()},e.prototype.setLabelActive=function(){var n=this;setTimeout(function(){var e=n.inputElement[0].value,t=!!n.placeholder||!!e;n.renderer.setElementClass(n.labelElement[0],"active",t)})},e.decorators=[{type:s.Directive,args:[{selector:"input[mzDatepicker], input[mz-datepicker]"}]}],e.ctorParameters=function(){return[{type:n.NgControl,decorators:[{type:s.Optional}]},{type:s.ChangeDetectorRef},{type:s.ElementRef},{type:s.Renderer}]},e.propDecorators={"true":[{type:s.HostBinding,args:["class.datepicker"]}],id:[{type:s.Input}],placeholder:[{type:s.Input}],label:[{type:s.Input}],options:[{type:s.Input}]},e}(u),Y=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[G,q],exports:[G,q]}]}],e}(),Z=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-dropdown-divider",template:'<li class="divider"></li>',styles:[""]}]}],e}(),U=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-dropdown-item",template:"<li>\n <ng-content></ng-content>\n</li>",styles:[""]}]}],e}(),X=function(i){function e(e,t){var n=i.call(this)||this;return n.elementRef=e,n.renderer=t,n}return c.__extends(e,i),e.prototype.ngAfterViewInit=function(){this.initHandlers(),this.initDropdownButtonElement(),this.handleProperties()},e.prototype.close=function(){var e=this;setTimeout(function(){return e.renderer.invokeElementMethod(e.dropdownButtonElement,"dropdown",["close"])})},e.prototype.initDropdownButtonElement=function(){this.dropdownButtonElement=$("#"+this.dropdownButtonId)},e.prototype.initHandlers=function(){var e=this;this.handlers={align:function(){return e.handleDropdown()},belowOrigin:function(){return e.handleDropdown()},constrainWidth:function(){return e.handleDropdown()},dropdownButtonId:function(){return e.handleDataActivates()},gutter:function(){return e.handleDropdown()},hover:function(){return e.handleDropdown()},id:function(){return e.handleDropdown()},inDuration:function(){return e.handleDropdown()},outDuration:function(){return e.handleDropdown()},stopPropagation:function(){return e.handleDropdown()}}},e.prototype.handleDataActivates=function(){this.renderer.setElementAttribute(this.dropdownButtonElement[0],"data-activates",this.id)},e.prototype.handleDropdown=function(){this.validateProperties();var e={alignment:this.align,belowOrigin:this.belowOrigin,constrainWidth:this.constrainWidth,gutter:this.gutter,hover:this.hover,inDuration:this.inDuration,outDuration:this.outDuration,stopPropagation:this.stopPropagation};this.renderer.invokeElementMethod(this.dropdownButtonElement,"dropdown",[e])},e.prototype.handleProperties=function(){this.handleDataActivates(),this.handleDropdown()},e.prototype.open=function(){var e=this;setTimeout(function(){return e.renderer.invokeElementMethod(e.dropdownButtonElement,"dropdown",["open"])})},e.prototype.validateProperties=function(){if(!this.id)throw new Error("Attribute [id] from mz-dropdown is required. "+this.elementRef.nativeElement);if(0===this.dropdownButtonElement.length)throw new Error("Attribute [dropdownButtonId] from mz-dropdown is required and should be an existing element. "+this.elementRef.nativeElement)},e.decorators=[{type:s.Component,args:[{selector:"mz-dropdown",template:'<ul\n class="dropdown-content"\n [attr.id]="id"\n>\n <ng-content></ng-content>\n</ul>',styles:[""]}]}],e.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer}]},e.propDecorators={align:[{type:s.Input}],belowOrigin:[{type:s.Input}],constrainWidth:[{type:s.Input}],dropdownButtonId:[{type:s.Input}],gutter:[{type:s.Input}],hover:[{type:s.Input}],id:[{type:s.Input}],inDuration:[{type:s.Input}],outDuration:[{type:s.Input}],stopPropagation:[{type:s.Input}]},e}(u),J=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[X,Z,U],exports:[X,Z,U]}]}],e}(),K=function(){function e(e){this.elementRef=e,this.targetClass=!0}return e.prototype.ngAfterViewInit=function(){this.target=$(this.elementRef.nativeElement)},e.prototype.close=function(){this.target.tapTarget("close")},e.prototype.open=function(){this.target.tapTarget("open")},e.decorators=[{type:s.Component,args:[{selector:"mz-feature-discovery",template:'<div class="tap-target-content">\n <ng-content></ng-content>\n</div>\n',styles:[":host{display:block}"]}]}],e.ctorParameters=function(){return[{type:s.ElementRef}]},e.propDecorators={targetClass:[{type:s.HostBinding,args:["class.tap-target"]}],targetId:[{type:s.HostBinding,args:["attr.data-activates"]},{type:s.Input}]},e}(),Q=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{imports:[t.CommonModule],declarations:[K],exports:[K]}]}],e}(),ee=function(i){function e(e,t){var n=i.call(this)||this;return n.elementRef=e,n.renderer=t,n}return c.__extends(e,i),e.prototype.ngAfterViewInit=function(){this.initHandlers(),this.initMaterialize(),i.prototype.executePropHandlers.call(this)},e.prototype.initHandlers=function(){var t=this;this.handlers={align:function(e){return t.handleAlign(e)},icon:function(){return t.handleIcon()},size:function(e){return t.handleSize(e)}}},e.prototype.initMaterialize=function(){this.renderer.setElementClass(this.elementRef.nativeElement,"material-icons",!0)},e.prototype.handleAlign=function(e){e&&this.renderer.setElementClass(this.elementRef.nativeElement,e,!1),this.align&&this.renderer.setElementClass(this.elementRef.nativeElement,this.align,!0)},e.prototype.handleIcon=function(){this.renderer.setElementProperty(this.elementRef.nativeElement,"innerHTML",this.icon)},e.prototype.handleSize=function(e){e&&this.renderer.setElementClass(this.elementRef.nativeElement,e,!1),this.size&&this.renderer.setElementClass(this.elementRef.nativeElement,this.size,!0)},e.decorators=[{type:s.Directive,args:[{selector:"i[mz-icon], i[mzIcon]"}]}],e.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer}]},e.propDecorators={align:[{type:s.Input}],icon:[{type:s.Input}],size:[{type:s.Input}]},e}(u),te=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[ee],exports:[ee]}]}],e}(),ne=function(i){function e(e,t){var n=i.call(this)||this;return n.elementRef=e,n.renderer=t,n}return c.__extends(e,i),e.prototype.ngAfterViewInit=function(){this.initHandlers(),this.initMaterialize(),i.prototype.executePropHandlers.call(this)},e.prototype.initHandlers=function(){var t=this;this.handlers={align:function(e){return t.handleAlign(e)},flip:function(e){return t.handleFlip(e)},icon:function(e){return t.handleIcon(e)},rotate:function(e){return t.handleRotate(e)},size:function(e){return t.handleSize(e)}}},e.prototype.initMaterialize=function(){this.renderer.setElementClass(this.elementRef.nativeElement,"mdi",!0)},e.prototype.handleAlign=function(e){e&&this.renderer.setElementClass(this.elementRef.nativeElement,e,!1),this.align&&this.renderer.setElementClass(this.elementRef.nativeElement,this.align,!0)},e.prototype.handleFlip=function(e){e&&this.renderer.setElementClass(this.elementRef.nativeElement,"mdi-flip-"+e,!1),this.renderer.setElementClass(this.elementRef.nativeElement,"mdi-flip-"+this.flip,!!this.flip)},e.prototype.handleIcon=function(e){e&&this.renderer.setElementClass(this.elementRef.nativeElement,"mdi-"+e,!1),this.renderer.setElementClass(this.elementRef.nativeElement,"mdi-"+this.icon,!0)},e.prototype.handleRotate=function(e){e&&this.renderer.setElementClass(this.elementRef.nativeElement,"mdi-rotate-"+e,!1),this.renderer.setElementClass(this.elementRef.nativeElement,"mdi-rotate-"+this.rotate,!!this.rotate)},e.prototype.handleSize=function(e){this.size||(this.size="24px"),e&&this.renderer.setElementClass(this.elementRef.nativeElement,"mdi-"+e,!1),this.renderer.setElementClass(this.elementRef.nativeElement,"mdi-"+this.size,!0)},e.decorators=[{type:s.Directive,args:[{selector:"a[mz-icon-mdi], a[mzIconMdi], i[mz-icon-mdi], i[mzIconMdi]"}]}],e.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer}]},e.propDecorators={align:[{type:s.Input}],flip:[{type:s.Input}],icon:[{type:s.Input}],rotate:[{type:s.Input}],size:[{type:s.Input}]},e}(u),ie=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[ne],exports:[ne]}]}],e}(),oe=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-input-container",template:'<div\n class="input-field"\n [class.inline]="inline"\n>\n <ng-content></ng-content>\n</div>',styles:[""]}]}],e.propDecorators={inline:[{type:s.Input}]},e}(),re=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.ngOnInit=function(){this.renderer.setElementClass(this.elementRef.nativeElement,"prefix",!0)},e.decorators=[{type:s.Directive,args:[{selector:"i[mzInputPrefix], i[mz-input-prefix]"}]}],e.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer}]},e}(),ae=function(o){function e(e,t,n){var i=o.call(this)||this;return i.ngControl=e,i.elementRef=t,i.renderer=n,i}return c.__extends(e,o),e.prototype.ngOnInit=function(){this.initHandlers(),this.initElements(),this.initInputSubscription(),this.handleProperties()},e.prototype.ngOnDestroy=function(){this.inputValueSubscription&&this.inputValueSubscription.unsubscribe()},e.prototype.initHandlers=function(){var e=this;this.handlers={autocomplete:function(){return e.handleAutocomplete()},dataError:function(){return e.handleDataError()},dataSuccess:function(){return e.handleDataSuccess()},label:function(){return e.handleLabel()},length:function(){return e.handleLength()},placeholder:function(){return e.handlePlaceholder()},validate:function(){return e.handleValidate()}}},e.prototype.initElements=function(){this.inputElement=$(this.elementRef.nativeElement),this.inputContainerElement=$(this.elementRef.nativeElement).parent(".input-field"),this.labelElement=this.createLabelElement()},e.prototype.initInputSubscription=function(){var e=this;this.ngControl&&(this.inputValueSubscription=this.ngControl.valueChanges.subscribe(function(){return e.setLabelActive()}))},e.prototype.createLabelElement=function(){var e=document.createElement("label");return e.setAttribute("for",this.id),this.renderer.invokeElementMethod(this.inputElement,"after",[e]),$(e)},e.prototype.handleProperties=function(){0!==this.inputContainerElement.length?o.prototype.executePropHandlers.call(this):console.error("Input with mz-input directive must be placed inside an [mz-input-container] tag",this.inputElement)},e.prototype.handleAutocomplete=function(){var e=this,t=null!=this.autocomplete&&null!=this.autocomplete.data&&0<Object.keys(this.autocomplete.data).length;this.renderer.setElementClass(this.inputElement[0],"autocomplete",t),null!=this.autocomplete&&r.interval(100).pipe(i.skipWhile(function(){return!e.inputElement.autocomplete}),i.first()).subscribe(function(){return e.renderer.invokeElementMethod(e.inputElement,"autocomplete",[e.autocomplete])})},e.prototype.handleDataError=function(){this.renderer.setElementAttribute(this.labelElement[0],"data-error",this.dataError)},e.prototype.handleDataSuccess=function(){this.renderer.setElementAttribute(this.labelElement[0],"data-success",this.dataSuccess)},e.prototype.handleLabel=function(){this.renderer.invokeElementMethod(this.labelElement,"text",[this.label])},e.prototype.handleLength=function(){var e=this.length?this.length.toString():null;this.renderer.setElementAttribute(this.inputElement[0],"data-length",e),e?this.setCharacterCount():this.removeCharacterCount()},e.prototype.handlePlaceholder=function(){var e=this,t=this.placeholder?this.placeholder:null;this.renderer.setElementAttribute(this.inputElement[0],"placeholder",t),this.ngControl&&setTimeout(function(){return e.ngControl.control.markAsPristine()}),this.setLabelActive()},e.prototype.handleValidate=function(){this.renderer.setElementClass(this.inputElement[0],"validate",this.validate),this.validate?this.renderer.invokeElementMethod(this.inputElement,"trigger",["blur"]):this.removeValidationClasses()},e.prototype.setCharacterCount=function(){var e=this;this.renderer.invokeElementMethod(this.inputElement,"characterCounter"),setTimeout(function(){e.renderer.invokeElementMethod(e.inputElement,"trigger",["input"]),e.renderer.invokeElementMethod(e.inputElement,"trigger",["blur"])})},e.prototype.setLabelActive=function(){var n=this;setTimeout(function(){var e=n.inputElement[0].value,t=!!n.placeholder||!!e;n.renderer.setElementClass(n.labelElement[0],"active",t)})},e.prototype.removeCharacterCount=function(){this.renderer.invokeElementMethod(this.inputElement.siblings(".character-counter"),"remove"),this.removeValidationClasses()},e.prototype.removeValidationClasses=function(){this.renderer.setElementClass(this.inputElement[0],"invalid",!1),this.renderer.setElementClass(this.inputElement[0],"valid",!1)},e.decorators=[{type:s.Directive,args:[{selector:"input[mzInput], input[mz-input]"}]}],e.ctorParameters=function(){return[{type:n.NgControl,decorators:[{type:s.Optional}]},{type:s.ElementRef},{type:s.Renderer}]},e.propDecorators={id:[{type:s.Input}],placeholder:[{type:s.Input}],autocomplete:[{type:s.Input}],dataError:[{type:s.Input}],dataSuccess:[{type:s.Input}],label:[{type:s.Input}],length:[{type:s.Input}],validate:[{type:s.Input}]},e}(u),se=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[oe,ae,re],exports:[oe,ae,re]}]}],e}(),le=function(){function e(e){this.mediaBreakpoints=[{alias:"s",minWidth:0,maxWidth:600},{alias:"m",minWidth:601,maxWidth:992},{alias:"l",minWidth:993,maxWidth:1200},{alias:"xl",minWidth:1201,maxWidth:Number.MAX_VALUE}],this.matchOperators=[{operator:"gt",match:function(e){return window.innerWidth>e.maxWidth}},{operator:"lt",match:function(e){return window.innerWidth<e.minWidth}},{operator:null,match:function(e){return window.innerWidth>=e.minWidth&&window.innerWidth<=e.maxWidth}}],t.isPlatformBrowser(e)?this.media=this.registerWindowResizeListener():this.media=r.Observable.create()}return e.prototype.isActive=function(i){var o=this;return new r.Observable(function(n){o.media.subscribe(function(e){try{n.next(o.isActiveBreakpoint(i))}catch(t){n.error(t)}})})},e.prototype.registerWindowResizeListener=function(){var e=this;return r.fromEvent(window,"resize").pipe(i.map(function(){return e.getWindowMedia()}),i.startWith(this.getWindowMedia()),i.publishReplay(1),i.refCount())},e.prototype.getWindowMedia=function(){return{alias:this.mediaBreakpoints.find(function(e){return window.innerWidth<=e.maxWidth}).alias,windowHeight:window.innerHeight,windowWidth:window.innerWidth}},e.prototype.isActiveBreakpoint=function(e){var t,n;if(e){var i=e.split("-");1===i.length?(t=this.matchOperators.find(function(e){return null===e.operator}),n=this.mediaBreakpoints.find(function(e){return e.alias===i[0]})):2===i.length&&(t=this.matchOperators.find(function(e){return e.operator===i[0]}),n=this.mediaBreakpoints.find(function(e){return e.alias===i[1]}))}if(!n||!t)throw Error("MzMediaService.isActive parameter is invalid: '"+e+"' is not a recognized breakpoint.");return t.match(n)},e.decorators=[{type:s.Injectable}],e.ctorParameters=function(){return[{type:Object,decorators:[{type:s.Inject,args:[s.PLATFORM_ID]}]}]},e}(),ce=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{providers:[le]}]}],e}(),pe=function(n){function e(e){var t=n.call(this)||this;return t.renderer=e,t.close=new s.EventEmitter,t}return c.__extends(e,n),e.prototype.ngOnInit=function(){this.initHandlers(),this.initElements(),this.handleProperties()},e.prototype.ngAfterViewInit=function(){this.initModal()},e.prototype.initElements=function(){this.modalElement=$(this.modalElementRef.nativeElement)},e.prototype.initHandlers=function(){var e=this;this.handlers={options:function(){return e.handleOptions()}}},e.prototype.initModal=function(){this.renderer.invokeElementMethod(this.modalElement,"modal",[this.options])},e.prototype.handleProperties=function(){n.prototype.executePropHandlers.call(this)},e.prototype.handleOptions=function(){var e=this,t=this.options&&this.options.complete||function(){};this.options=Object.assign({},this.options,{complete:function(){t(),e.close.emit()}})},e.prototype.openModal=function(){this.renderer.invokeElementMethod(this.modalElement,"modal",["open"])},e.prototype.closeModal=function(){this.renderer.invokeElementMethod(this.modalElement,"modal",["close"])},e.decorators=[{type:s.Component,args:[{selector:"mz-modal",template:'<div #modal\n class="modal"\n [class.modal-fixed-footer]="fixedFooter"\n [class.bottom-sheet]="bottomSheet"\n [class.modal-fullscreen]="fullscreen"\n>\n <div class="modal-content">\n <ng-content select="mz-modal-header"></ng-content>\n <div>\n <ng-content select="mz-modal-content"></ng-content>\n </div>\n </div>\n <div class="modal-footer">\n <ng-content select="mz-modal-footer"></ng-content>\n </div>\n</div>\n',styles:[".modal:not(.bottom-sheet).modal-fullscreen{top:12px!important;margin:0 auto;width:calc(100% - 24px);height:calc(100% - 24px);max-height:none}.modal.bottom-sheet.modal-fullscreen{height:100%;max-height:none}/deep/ mz-modal-header h5,/deep/ mz-modal-header h6{margin-top:0}"]}]}],e.ctorParameters=function(){return[{type:s.Renderer}]},e.propDecorators={bottomSheet:[{type:s.Input}],fixedFooter:[{type:s.Input}],fullscreen:[{type:s.Input}],options:[{type:s.Input}],close:[{type:s.Output}],modalElementRef:[{type:s.ViewChild,args:["modal"]}]},e}(u),ue=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-modal-header"}]}],e}(),de=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-modal-content"}]}],e}(),he=function(){function e(){}return e.decorators=[{type:s.Directive,args:[{selector:"mz-modal-footer"}]}],e}(),me=function(){function e(e){this.modalComponent=e}return e.prototype.onclick=function(){this.modalComponent.closeModal()},e.decorators=[{type:s.Directive,args:[{selector:"a[mzModalClose], button[mzModalClose], a[mz-modal-close], button[mz-modal-close]"}]}],e.ctorParameters=function(){return[{type:pe}]},e.propDecorators={onclick:[{type:s.HostListener,args:["click"]}]},e}(),fe=function(){function e(e){this.injectionService=e}return e.prototype.open=function(e,t){void 0===t&&(t={});var n=this.injectionService.appendComponent(e,t);return n.instance.modalComponent.close.pipe(i.first()).subscribe(function(){n.destroy()}),n},e.decorators=[{type:s.Injectable}],e.ctorParameters=function(){return[{type:d}]},e}(),ge=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{imports:[h],declarations:[me,pe,de,he,ue],exports:[me,pe,de,he,ue],providers:[fe]}]}],e}(),ye=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-navbar-item-container",template:'<ul id="nav-mobile" class="{{ align }}">\n <ng-content></ng-content>\n</ul>',styles:[""]}]}],e.propDecorators={align:[{type:s.Input}]},e}(),ve=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-navbar-item",template:'<li \n class="{{ itemClass }}"\n [class.active]="active"\n>\n <ng-content></ng-content>\n</li>',styles:[""]}]}],e.propDecorators={active:[{type:s.Input}],itemClass:[{type:s.Input}]},e}(),be=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-navbar",template:'<nav>\n <div class="nav-wrapper {{ navbarClass }}">\n <ng-content></ng-content>\n </div>\n</nav>',styles:[".nav-wrapper /deep/ .btn i{line-height:inherit}"]}]}],e.propDecorators={navbarClass:[{type:s.Input}]},e}(),Ee=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[be,ve,ye],exports:[be,ve,ye]}]}],e}(),Ce=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-pagination-page-button",template:'<li [class.active]="active"\n [class.disabled]="disabled"\n [class.waves-effect]="!active && !disabled">\n <ng-content></ng-content>\n</li>',styles:[""]}]}],e.propDecorators={active:[{type:s.Input}],disabled:[{type:s.Input}]},e}(),ze=function(t){function e(){var e=t.call(this)||this;return e.currentPage=1,e.enableFirstAndLastPageButtons=!1,e.maxPageButtons=5,e.pageChange=new s.EventEmitter,e}return c.__extends(e,t),Object.defineProperty(e.prototype,"totalPages",{get:function(){return Math.ceil(this.totalItems/this.itemsPerPage)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.initHandlers(),this.renderButtons()},e.prototype.changeCurrentPage=function(e){this.currentPage=e,this.pageChange.emit(e),this.renderButtons()},e.prototype.firstPage=function(){this.changeCurrentPage(1)},e.prototype.initHandlers=function(){var e=this;this.handlers={currentPage:function(){return e.renderButtons()},itemsPerPage:function(){return e.renderButtons()},maxPageButtons:function(){return e.renderButtons()},totalItems:function(){return e.renderButtons()}}},e.prototype.lastPage=function(){this.changeCurrentPage(this.totalPages)},e.prototype.nextPage=function(){if(this.currentPage<this.totalPages){var e=this.currentPage+1;this.changeCurrentPage(e)}},e.prototype.previousPage=function(){if(1!==this.currentPage){var e=this.currentPage-1;this.changeCurrentPage(e)}},e.prototype.renderButtons=function(){var e=Math.min(this.maxPageButtons,this.totalPages),t=this.totalPages-e,n=Math.floor(e/2),i=this.currentPage-n;t<i&&(i=t+1);var o=Math.max(i,1);Math.min(this.totalPages,o+this.maxPageButtons-1);this.pages=Array(e).fill(0).map(function(e,t){return o+t}),this.currentPage>this.totalPages&&(this.currentPage=this.pages[0])},e.decorators=[{type:s.Component,args:[{selector:"mz-pagination",template:'\n <ul class="pagination">\n <mz-pagination-page-button [disabled]="currentPage === 1" *ngIf="enableFirstAndLastPageButtons">\n <a (click)="firstPage()"><i mz-icon [icon]="\'first_page\'"></i></a>\n </mz-pagination-page-button>\n <mz-pagination-page-button [disabled]="currentPage === 1">\n <a (click)="previousPage()"><i mz-icon [icon]="\'chevron_left\'"></i></a>\n </mz-pagination-page-button>\n <mz-pagination-page-button *ngFor="let page of pages"\n [active]="page === currentPage"\n >\n <a (click)="changeCurrentPage(page)">{{ page }}</a>\n </mz-pagination-page-button>\n <mz-pagination-page-button [disabled]="currentPage === totalPages">\n <a (click)="nextPage()"><i mz-icon [icon]="\'chevron_right\'"></i></a>\n </mz-pagination-page-button>\n <mz-pagination-page-button [disabled]="currentPage === totalPages" *ngIf="enableFirstAndLastPageButtons">\n <a (click)="lastPage()"><i mz-icon [icon]="\'last_page\'"></i></a>\n </mz-pagination-page-button>\n </ul>',styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={currentPage:[{type:s.Input}],enableFirstAndLastPageButtons:[{type:s.Input}],itemsPerPage:[{type:s.Input}],maxPageButtons:[{type:s.Input}],totalItems:[{type:s.Input}],pageChange:[{type:s.Output}]},e}(u),Me=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{imports:[t.CommonModule,te],declarations:[ze,Ce],exports:[ze]}]}],e}(),Ie=function(){function e(e){this.renderer=e}return e.prototype.ngAfterViewInit=function(){this.renderer.setElementStyle(this.parallaxContainer.nativeElement,"height",isNaN(this.height)?"500px":this.height+"px"),this.renderer.invokeElementMethod($(this.parallax.nativeElement),"parallax")},e.decorators=[{type:s.Component,args:[{selector:"mz-parallax",template:'<div #parallaxContainer class="parallax-container">\n <div #parallax class="parallax">\n <ng-content></ng-content>\n </div>\n</div>',styles:[""]}]}],e.ctorParameters=function(){return[{type:s.Renderer}]},e.propDecorators={height:[{type:s.Input}],parallax:[{type:s.ViewChild,args:["parallax"]}],parallaxContainer:[{type:s.ViewChild,args:["parallaxContainer"]}]},e}(),De=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[Ie],exports:[Ie]}]}],e}(),xe=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-progress",template:'<div class="progress {{ backgroundClass }}">\n\n <div\n class="progress-bar {{ progressClass }}"\n [class.determinate]="percentage != null"\n [class.indeterminate]="percentage == null"\n [style.width.%]="percentage">\n </div>\n</div>',styles:[""]}]}],e.propDecorators={backgroundClass:[{type:s.Input}],percentage:[{type:s.Input}],progressClass:[{type:s.Input}]},e}(),we=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[xe],exports:[xe]}]}],e}(),Pe=function(){function e(){}return e.decorators=[{type:s.Component,args:[{selector:"mz-radio-button-container",template:'<p class="radio-button-field">\n <ng-content></ng-content>\n</p>',styles:[""]}]}],e}(),Re=function(i){function e(e,t){var n=i.call(this)||this;return n.elementRef=e,n.renderer=t,n}return c.__extends(e,i),e.prototype.ngOnInit=function(){this.initHandlers(),this.initElements(),this.handleProperties()},e.prototype.initHandlers=function(){var e=this;this.handlers={label:function(){return e.handleLabel()},withGap:function(){return e.handleWithGap()}}},e.prototype.initElements=function(){this.inputElement=$(this.elementRef.nativeElement),this.inputContainerElement=$(this.elementRef.nativeElement).parent(".radio-button-field"),this.labelElement=this.createLabelElement()},e.prototype.createLabelElement=function(){var e=document.createElement("label");return e.setAttribute("for",this.id),this.renderer.invokeElementMethod(this.inputElement,"after",[e]),$(e)},e.prototype.handleProperties=function(){0!==this.inputContainerElement.length?i.prototype.executePropHandlers.call(this):console.error("Radio Button must be placed inside a [mz-radio-button-container] tag",this.inputElement)},e.prototype.handleLabel=function(){this.renderer.invokeElementMethod(this.labelElement,"text",[this.label])},e.prototype.handleWithGap=function(){this.renderer.setElementClass(this.inputElement[0],"with-gap",this.withGap)},e.decorators=[{type:s.Directive,args:[{selector:"input[mzRadioButton], input[mz-radio-button]"}]}],e.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer}]},e.propDecorators={id:[{type:s.HostBinding},{type:s.Input}],label:[{type:s.Input}],withGap:[{type:s.Input}]},e}(u),ke=function(){function e(){}return e.decorators=[{type:s.NgModule,args:[{declarations:[Re,Pe],exports:[Re,Pe]}]}],e}(),Se=function(){function e(){this.errorMessage=""}return e.prototype.ngOnInit=function(){var e=this;this.buildErrorMessage(),this.controlStatusChangesSubscription=this.control.statusChanges.subscribe(function(){return e.buildErrorMessage()})},e.prototype.ngOnDestroy=function(){this.controlStatusChangesSubscription.unsubscribe()},e.prototype.buildErrorMessage=function(){var t=this;this.errorMessage="",this.control.errors&&this.errorMessageResource&&Object.keys(this.control.errors).forEach(function(e){t.errorMessage+=t.errorMessageResource[e]+" "})},e.decorators=[{type:s.Component,args:[{selector:"mz-error-message",template:'<div [@enterAnimation]="errorMessage" class="invalid" *ngIf="(control.touched || control.dirty) && control.invalid && errorMessage">{{ errorMessage }}</div>',styles:["div.invalid{color:#e30613;font-size:.8rem;opacity:1;overflow-wrap:break-word}input:not([type=checkbox])+label+:host div.invalid,mz-select-container :host div.invalid,textarea+label+:host div.invalid{margin-top:-19px;min-height:19px}"],animations:[o.trigger("enterAnimation",[o.transition(":enter",[o.style({transform:"translateY(-5px)",opacity:0}),o.animate("300ms",o.style({transform:"translateY(0)",opacity:1}))]),o.transition(":leave",[o.style({transform:"translateY(0)",opacity:1}),o.animate("300ms",o.style({transform:"translateY(-5px)",opacity:0}))])])]}]}],e.propDecorators={control:[{type:s.Input}],errorMessageResource:[{type:s.Input}]},e}(),Oe=function(){},Ae=function(){function e(e,t,n,i,o){this.elementRef=e,this.resolver=t,this.viewContainerRef=n,this.ngControl=i,this.renderer=o,this.errorMessageComponent=null,this._formControlDisabled=!1,this._required=!1}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&""+e!="false"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControlDisabled",{get:function(){return this._formControlDisabled},set:function(e){this._formControlDisabled=e,this._formControlDisabled?this.ngControl.control.disable():this.ngControl.control.enable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementToAddValidation",{get:fun