!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("lodash"),require("rxjs"),require("yup"),require("rxjs/operators"),require("@azora/common"),require("@azora/core"),require("@angular/cdk/coercion"),require("@angular/platform-browser"),require("zxcvbn"),require("@angular/cdk/portal"),require("@angular/cdk/overlay"),require("@angular/cdk/scrolling")):"function"==typeof define&&define.amd?define("@azora/form",["exports","@angular/core","@angular/common","lodash","rxjs","yup","rxjs/operators","@azora/common","@azora/core","@angular/cdk/coercion","@angular/platform-browser","zxcvbn","@angular/cdk/portal","@angular/cdk/overlay","@angular/cdk/scrolling"],e):e(((t=t||self).azora=t.azora||{},t.azora.form={}),t.ng.core,t.ng.common,t._,t.rxjs,t.yup,t.rxjs.operators,t.common$1,t.core$1,t.ng.cdk.coercion,t.ng.platformBrowser,t.zxcvbn,t.ng.cdk.portal,t.ng.cdk.overlay,t.ng.cdk.scrolling)}(this,function(t,e,n,o,r,i,a,s,c,l,p,u,d,h,f){"use strict";var y="default"in o?o["default"]:o;u=u&&u.hasOwnProperty("default")?u["default"]:u;var g=function(t,e){return(g=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 m(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _=function(){return(_=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i["return"])&&n.call(i)}finally{if(r)throw r.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}var C,w=function(){function t(t){this.cd=t,this._parent=null,this._name=null}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(e){e instanceof t&&(this._parent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=o.trim(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.parent?this.parent.root:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.parent?v(this.parent.path,[this.name,"controls"]):[this.name,"controls"]},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngOnChanges=function(t){},t.prototype.ngAfterViewInit=function(){},t.propDecorators={parent:[{type:e.Input,args:["parent"]}],name:[{type:e.Input}]},t}(),O="\n    <az-form [formGroup]=\"myGroup\">\n      <form-control [name]=\" 'firstName' \"></form-control>\n    </az-form>\n\n    In your class:\n\n    constructor( private _fb: AzoraFormBuilder){}\n\n    this.myGroup = this._fb.group({\n       firstName: {\n            component: 'input',\n            props: {\n                value: 'YourName'\n            },\n            schema: Joi.string().required()\n        }\n    });",k="\n    <az-form [formGroup]=\"myGroup\">\n      <form-control [name]=\" 'firstName' \"></form-control>\n    </az-form>\n\n    In your class:\n\n    constructor( private _fb: AzoraFormBuilder){}\n\n    this.myGroup = this._fb.group({\n        firstName: {\n            component: 'input',\n            props: {\n                value: 'YourName'\n            },\n            schema: Joi.string().required()\n        }\n    });\n  ",P=function(){function t(){}return t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+O)},t.missingNameException=function(t){throw new Error('Control "'+t+'" not found!. If form-control is used within a az-form tag,  the name attribute must be set \n\n      Example: \n      \n      '+k+";\n")},t}(),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this.root.get(this.path)||P.missingNameException(this.name),this.root.get(this.path)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.parent?v(this.parent.path,[this.name]):[]},enumerable:!0,configurable:!0}),e}(w),x=function(){function t(){var t=this;this.convertToFormData=function(t){var e=new FormData;return y.forOwn(t,function(t,n){y.isArray(t)?y.each(t,function(t){return e.append(n+"[]",t,t.name)}):e.append(n,t)}),e},this.convertToMediaType=function(e,n){if(n)switch(n.toLowerCase()){case"json":return JSON.stringify(e);case"form-data":return t.convertToFormData(e);default:return e}return e}}return t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnChanges=function(t){},t.prototype.ngOnDestroy=function(){},t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Injectable}],t}(),V=function(){function t(t,e){var n=this;this.state=t,this.options=e,this.focused=!1,this.debounce=500,this.touched=!1,this.pristine=!0,this._getControlSchema=function(){return null},this.updateValueAndValidity=y.debounce(function(t){void 0===t&&(t={}),n._setInitialStatus(),n._updateValue(),n.enabled&&(n._cancelExistingSubscription(),n._runValidator(),n.status=n._calculateStatus()),!1!==t.emitEvent&&(n.valueChanges.emit(n.value),n.statusChanges.emit(n.status)),n._parent&&!t.onlySelf&&n._parent.updateValueAndValidity(t)},this.debounce),this._updateChildError=function(t){},this._isNotExcluded=function(t){return!1},this.runAsyncValidator=function(){}}return Object.defineProperty(t.prototype,"schema",{get:function(){return this._getControlSchema()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.parent===this.root?this.name:this.parent?this.parent.path+"."+this.name:this.name},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,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.status!==D},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.status===D},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.status===E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.status===S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.status===z},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),t.prototype.markAsFocused=function(){this.focused=!0},t.prototype.markAsBlurred=function(){this.focused=!1},t.prototype.markAsTouched=function(){this.touched=!0,this.updateValueAndValidity({onlySelf:!0})},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0},t.prototype.setError=function(t,e){void 0===e&&(e={}),this.validationError=t,this.errors=t.errors,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.setParent=function(t){this._parent=t},t.prototype.setRoot=function(t){this._root=t},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?D:this.errors?S:this._anyControlsHaveStatus(S)?S:this._anyControlsHaveStatus(z)?z:E},t.prototype._runValidator=function(){return null},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe(),this._validationSubscription&&this._validationSubscription.unsubscribe()},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?D:E},t.prototype._updateValue=function(){},t.prototype._initObservables=function(){this.valueChanges=new e.EventEmitter,this.statusChanges=new e.EventEmitter},t.prototype._runControlAysnValidator=function(t){this.valid&&this.runAsyncValidator(t)},t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t}(),E="VALID",S="INVALID",z="PENDING",D="DISABLED";
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var A=function(t){return y.isArray(t)?R(t):t||null},R=function(t){if(!t)return null;var e=t.filter(function(t){return null!==t});return 0===e.length?null:function(t){var n=j(t,e);return r.forkJoin(n)}},j=function(t,e){return e.map(function(e){return e(t)})};i.addMethod(i.string,"async",function(t,e){var n=A(t);return this.test("asyncValidation","failed",function(t){C=n(t);var e=this.path,o=this.createError;return C.pipe(a.switchMap(function(t){return r.throwError(o({path:e,message:t}))})).toPromise()})});var F=i,T=function(t){function e(n,o){var i=t.call(this,n,o)||this;return i._getControlSchema=function(){if(i.state&&i.state.schema)return i.state.schema},i._runValidator=y.debounce(function(){i.parent&&i.parent.schema&&r.from(F.reach(i.parent.schema,i.path).validate(i.value)).subscribe(function(t){},function(t){i.setError(t)}),!i.parent&&i.schema&&r.from(i.schema.validate(i.value)).subscribe(function(t){},function(t){i.setError(t)})},i.debounce),i._applyControlState=function(){i.state&&(i.value=i.state.value||null),i.options&&(i.debounce=i.options.debounce?i.options.debounce:i.debounce)},Object.setPrototypeOf(i,e.prototype),i._initObservables(),i._applyControlState(),i._getControlProperties(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return m(e,t),e.prototype.setValue=function(t,e){void 0===e&&(e={}),this.value===t?this.markAsPristine():this.markAsDirty(),this.value=t,this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this.markAsPristine(e),this.markAsUntouched(e),this._applyControlState(),t&&(this.value=t),this.updateValueAndValidity(e)},e.prototype.clear=function(t){void 0===t&&(t={}),this.markAsPristine(t),this.markAsUntouched(t),this.value=null,this.updateValueAndValidity(t)},e.prototype.setControlState=function(t,e){void 0===e&&(e={}),this.state=t,this._applyControlState(),this._getControlProperties()},e.prototype.updateControlState=function(t,e){void 0===e&&(e={}),this.state=_({},this.state,t),this._applyControlState(),this._getControlProperties()},e.prototype._updateValue=function(){},e.prototype._getControlProperties=function(){this.state&&(this.props=this.state.props)},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype._anyControlsHaveStatus=function(t){return!1},e}(V),B=function(t){function n(e,n){var o=t.call(this,null,n)||this;return o.submitted=!1,o._getControlSchema=function(){return F.object().shape(o._reduceSchema())},o._applyFormState=function(){o.parent||o.root||o.setRoot(o)},o._applyFormState(),o._setUpControls(e),o._initObservables(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return m(n,t),n.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(e.setParent(this),this.controls[t]=e,e)},n.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity()},n.prototype.removeControl=function(t){this.controls=y.omit(this.controls,[t]),this.updateValueAndValidity()},n.prototype.setControl=function(t,e){this.controls=y.omit(this.controls,[t]),e&&this.registerControl(t,e),this.updateValueAndValidity()},n.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),y.forOwn(t,function(t,o){n._throwIfControlMissing(o),n.controls[o].setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},n.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),y.forOwn(this.controls,function(n,o){n.reset(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this.submitted=!1,this.updateValueAndValidity(e)},n.prototype.clear=function(t){void 0===t&&(t={}),y.forOwn(this.controls,function(e,n){e.clear({onlySelf:!0,emitEvent:t.emitEvent})}),this.submitted=!1,this.updateValueAndValidity(t)},n.prototype.get=function(t){return t&&y.get(this.controls,t)||null},n.prototype.submit=function(t){void 0===t&&(t=!1),this.root===this&&(this.submitted=!0,this.updateValueAndValidity(),this.updateChildValidity(),this.ngSubmit.emit({value:this._reduceValue(),instant:t}))},n.prototype.updateChildValidity=function(){y.forOwn(this.controls,function(t,e){t instanceof T&&t.updateValueAndValidity(),t instanceof n&&t.updateChildValidity()})},n.prototype._initObservables=function(){this.valueChanges=new e.EventEmitter,this.statusChanges=new e.EventEmitter,this.ngSubmit=new e.EventEmitter},n.prototype._updateValue=function(){this.value=y.reduce(this.controls,function(t,e,n){return t[n]=e.value,t},{})},n.prototype._reduceValue=function(){var t=this;return y.reduce(this.controls,function(e,n,o){return t._isNotExcluded(n)&&(e[o]=n.value),e},{})},n.prototype._reduceSchema=function(){return y.reduce(this.controls,function(t,e,n){return t[n]=e.schema,t},{})},n.prototype._runValidator=function(){var t=this;this.schema&&r.from(this.schema.validate(this.value,{stripUnknown:!0})).subscribe(function(t){},function(e){t.setError(e)})},n.prototype._setUpControls=function(t){var e=this;this.controls={},y.forOwn(t,function(t,n){t.setParent(e),t.setRoot(e.root),t.name=n,e.controls[n]=t})},n.prototype._throwIfControlMissing=function(t){if(!y.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},n.prototype._allControlsDisabled=function(){return y.every(y.values(this.controls),function(t){return t.disabled})},n.prototype._anyControlsHaveStatus=function(t){return!!y.find(y.values(this.controls),["status",t])},n}(V),H=function(t){function e(e,n){var o=t.call(this,null,n)||this;return o._setUpControls(e),o._initObservables(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return m(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){t.setParent(this),this.controls.push(t),this.updateValueAndValidity()},e.prototype.insert=function(t,e){e.setParent(this),this.controls.splice(t,0,e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls.splice(t,1),e&&(e.setParent(this),this.controls.splice(t,0,e)),this.updateValueAndValidity()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,o){n._throwIfControlMissing(o),n.at(o).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={})},e.prototype.clear=function(t){void 0===t&&(t={}),y.each(this.controls,function(e){e.clear({onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof T?t.value:t.getRawValue()})},e.prototype._setUpControls=function(t){var e=this;this.controls=[],y.each(t,function(t,n){t.setParent(e),e.controls.push(t)})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._updateValue=function(){var t=this;this.value=y(this.controls).filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value}).compact().value()},e.prototype._checkAllValuesPresent=function(t){},e.prototype._allControlsDisabled=function(){return y.every(y.values(this.controls),function(t){return t.disabled})},e.prototype._anyControlsHaveStatus=function(t){return!!y.find(y.values(this.controls),["status",t])},e}(V),M={provide:w,useExisting:e.forwardRef(function(){return N})},N=function(t){function n(n,o,r){var i=t.call(this,r)||this;return i._formSvs=n,i._elRef=o,i.form=null,i.submit=new e.EventEmitter,i.error=new e.EventEmitter,i._extractControlTree=function(t){return y.map(t.controls,function(t,e){var n=i._extractControlType(t);return"FormControl"===n?{name:e,type:n}:{name:e,type:n,children:i._extractControlTree(t)}})},i._extractControlType=function(t){switch(!0){case t instanceof T:return"FormControl";case t instanceof B:return"FormGroup";case t instanceof H:return"FormArray"}},i}return m(n,t),n.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this._checkFormPresent()},n.prototype.ngOnChanges=function(e){var n=this;t.prototype.ngOnChanges.call(this,e),this._checkFormPresent(),!e.form.previousValue&&e.form.currentValue&&this.form.ngSubmit.pipe(s.untilDestroyed(this),a.distinctUntilChanged()).subscribe(function(t){n.form.invalid&&n.error.emit(n.form.errors),(n.form.valid||t.instant)&&n.submit.emit(n._formSvs.convertToMediaType(t.value,n.mediaType))})},n.prototype.ngAfterViewInit=function(){t.prototype.ngAfterViewInit.call(this),this.default_template=s.isEmptyTemplate(this._elRef),this.controlNameTree=this._extractControlTree(this.form),this.cd.detectChanges()},n.prototype.ngOnDestroy=function(){},Object.defineProperty(n.prototype,"root",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),n.prototype._checkFormPresent=function(){this.form||P.missingFormException()},n.decorators=[{type:e.Component,args:[{selector:"az-form",template:'<ng-container>\n\n    <ng-container *ngIf="!default_template">\n        <ng-content></ng-content>\n    </ng-container>\n\n\n    <ng-container *ngIf="default_template">\n        <ng-container\n                *ngFor="let control of controlNameTree"\n                [ngTemplateOutlet]="controlTemplate"\n                [ngTemplateOutletContext]="{$implicit: control, parent: this}"\n        ></ng-container>\n    </ng-container>\n\n    <ng-template #controlTemplate let-control let-parent="parent">\n        <ng-container *ngIf="control.type === \'FormControl\'">\n\n            <form-field [name]="control.name" [parent]="parent">\n                <form-label></form-label>\n                <form-control></form-control>\n                <form-feedback></form-feedback>\n            </form-field>\n\n            \x3c!--            <div--\x3e\n            \x3c!--                    class="form-field {{data.name}}"--\x3e\n            \x3c!--            >--\x3e\n            \x3c!--                <div class="control-label" controlLabel="data.name"></div>--\x3e\n            \x3c!--                <ng-container--\x3e\n            \x3c!--                        [formControl]="data.key"--\x3e\n            \x3c!--                        [formControlParent]="parent"--\x3e\n            \x3c!--                ></ng-container>--\x3e\n            \x3c!--                                                <control-feedback></control-feedback>--\x3e\n            \x3c!--            </div>--\x3e\n            \x3c!--            <form-control [parent]="parent" [name]="data.key"></form-control>--\x3e\n        </ng-container>\n\n        \x3c!--        <ng-container *ngIf="isFormArray(data.value)">--\x3e\n        \x3c!--            <form-array--\x3e\n        \x3c!--                    [name]="data.key"--\x3e\n        \x3c!--                    [parent]="parent"--\x3e\n        \x3c!--            >--\x3e\n\n        \x3c!--            </form-array>--\x3e\n        \x3c!--        </ng-container>--\x3e\n\n        \x3c!--        <ng-container *ngIf="isFormGroup(data.value)">--\x3e\n        \x3c!--            <form-group--\x3e\n        \x3c!--                    [name]="data.key"--\x3e\n        \x3c!--                    [parent]="parent"--\x3e\n        \x3c!--            >--\x3e\n        \x3c!--            </form-group>--\x3e\n        \x3c!--        </ng-container>--\x3e\n    </ng-template>\n\n</ng-container>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,providers:[x,M],styles:["az-form{display:flex;flex-direction:column;width:100%;height:auto}az-form form-field{display:flex;flex-direction:column;justify-content:center}az-form form-control{display:flex;position:relative;width:100%;height:100%}"]}]}],n.ctorParameters=function(){return[{type:x},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},n.propDecorators={form:[{type:e.Input,args:["formGroup"]}],mediaType:[{type:e.Input}],submit:[{type:e.Output}],error:[{type:e.Output}],_contentVcRef:[{type:e.ViewChild,args:["contentVc",{read:e.ViewContainerRef,"static":!1}]}],controlTemplate:[{type:e.ViewChild,args:["controlTemplate",{"static":!1}]}]},n}(w),q={provide:I,useExisting:e.forwardRef(function(){return $})},$=function(t){function n(e,n,o,r,i){var a=t.call(this,o)||this;return a.rootParent=n,a.appRef=r,a._elRef=i,a.setClass=!0,a.parent=e,a}return m(n,t),Object.defineProperty(n.prototype,"attribute",{get:function(){return this.name},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isFocused",{get:function(){return this.control.focused},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isBlurred",{get:function(){return!this.control.focused},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isInvalid",{get:function(){return this.control.invalid&&(this.control.dirty||this.control.touched||this.root.submitted)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isEmpty",{get:function(){return""===this.control.value||this.control.value===undefined||null===this.control.value},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isDirty",{get:function(){return this.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isDisabled",{get:function(){return this.control.disabled},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this)},n.prototype.ngOnChanges=function(e){t.prototype.ngOnChanges.call(this,e)},n.prototype.ngAfterViewInit=function(){t.prototype.ngAfterViewInit.call(this)},n.prototype.ngOnDestroy=function(){},n.decorators=[{type:e.Component,args:[{selector:"form-field",template:"\n        <ng-content></ng-content>",providers:[q],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,styles:["\n      form-field.hidden {\n            display: none!important;\n      }\n    "]}]}],n.ctorParameters=function(){return[{type:w,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:N,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:e.ChangeDetectorRef},{type:e.ApplicationRef},{type:e.ElementRef}]},n.propDecorators={defaultTpl:[{type:e.ViewChild,args:["default_template",{"static":!1}]}],_contentTpl:[{type:e.ViewChild,args:["content_template",{"static":!1}]}],attribute:[{type:e.HostBinding,args:["attr.class"]}],setClass:[{type:e.HostBinding,args:["class.form-control"]}],_isFocused:[{type:e.HostBinding,args:["class.focused"]}],_isBlurred:[{type:e.HostBinding,args:["class.blurred"]}],_isInvalid:[{type:e.HostBinding,args:["class.invalid"]}],_isEmpty:[{type:e.HostBinding,args:["class.empty"]}],_isDirty:[{type:e.HostBinding,args:["class.dirty"]}],_isDisabled:[{type:e.HostBinding,args:["class.disabled"]}]},n}(I),K=function(){function t(t){var e=this;this._elRef=t,this.disabled=!1,this.onClick=function(t){e.disabled||e._formGr.submit()}}return t.prototype.ngOnInit=function(){},t.prototype.ngOnChanges=function(){},t.prototype.ngOnDestroy=function(){},t.decorators=[{type:e.Directive,args:[{selector:"[submitForm]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={_formGr:[{type:e.Input,args:["submitForm"]}],disabled:[{type:e.Input}],onClick:[{type:e.HostListener,args:["click",["$event"]]}]},t}(),G=function(){function t(t,e,n,o){this.cd=t,this._elementRef=e,this._vcRef=n,this._parent=o}return Object.defineProperty(t.prototype,"label",{get:function(){var t=this._control.state.props;return t&&t.label?t.label:y.startCase(this._parent.name)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_control",{get:function(){return this._parent.control},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnDestroy=function(){this.cd.detach()},t.decorators=[{type:e.Component,args:[{selector:"form-label",template:"\n        {{label}}\n    ",changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.ViewContainerRef},{type:$,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]}]},t}(),L=function(){function t(t,e,n){var o=this;this.cd=t,this._vcRef=e,this.onChanged=function(t){t instanceof Event||(o._parent.control.setValue(t),o.cd.markForCheck())},this.onBlurred=function(t){o._parent.control.markAsBlurred(),o._parent.control.touched||o._parent.control.markAsTouched(),o.cd.markForCheck()},this._parent=n}return t.prototype.ngOnInit=function(){this._vcRef._data.componentView.component.value=this._parent.control.value,this._vcRef._data.componentView.component.cd.detectChanges()},t.decorators=[{type:e.Directive,args:[{selector:"[formControl]"}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ViewContainerRef},{type:$,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]}]},t.propDecorators={onChanged:[{type:e.HostListener,args:["change",["$event"]]}],onBlurred:[{type:e.HostListener,args:["blur",["$event"]]}]},t}(),U=function(){function t(t,n){var o=this;this._resolver=t,this._vcRef=n,this.components={},this.createComponent=function(){var t=o.components[o._control.state.component],e=o._resolver.resolveComponentFactory(t);o._compRef=o._vcRef.createComponent(e),o._parseContext("initial")},this._parseContext=function(t){if(void 0===t&&(t=null),o._updateContext(),"initial"===t&&o._initObservables(),"function"!=typeof o._compRef.instance.ngOnChanges)throw new Error(o._compRef.componentType.name+" doesn't implement 'ngOnChanges'");o._compRef.instance.ngOnChanges()},this._initObservables=function(){if(y.forOwn(o._events,function(t,n){o._compRef.instance[n]||(o._compRef.instance[n]=new e.EventEmitter),o._compRef.instance[n].pipe(s.untilDestroyed(o)).subscribe(function(n){t instanceof e.EventEmitter?t.emit(n):t(n)})}),"function"!=typeof o._compRef.instance.ngOnInit)throw new Error(o._compRef.componentType.name+" doesn't implement 'ngOnInit'");o._compRef.instance.ngOnInit()},this._updateContext=function(){var t=o._control.state,e=_({name:o._name,invalid:o._control.invalid&&(o._control.dirty||o._control.touched||o._root.submitted)},t.props,{template:o._template,focused:o._control.focused,value:o._control.value});y.forOwn(e,function(t,e){t!==undefined&&(o._compRef.instance[e]=t)})}}return t.prototype.ngOnInit=function(){var t=this;this.createComponent(),this._root.statusChanges.pipe(s.untilDestroyed(this)).subscribe(function(e){t.ngOnChanges()}),this._root.ngSubmit.pipe(s.untilDestroyed(this)).subscribe(function(e){t.ngOnChanges()})},t.prototype.ngOnChanges=function(){this._compRef&&this._parseContext()},t.prototype.ngOnDestroy=function(){this._compRef&&this._compRef.destroy()},t.decorators=[{type:e.Directive,args:[{selector:"[renderControl]"}]}],t.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.ViewContainerRef}]},t.propDecorators={_name:[{type:e.Input,args:["name"]}],_root:[{type:e.Input,args:["root"]}],_control:[{type:e.Input,args:["control"]}],_template:[{type:e.Input,args:["template"]}],_events:[{type:e.Input,args:["events"]}]},t}(),Y=function(){function t(t,n,o){var r=this;this.cd=t,this._vcRef=n,this.template=null,this.setClass=!0,this.change=new e.EventEmitter,this.blur=new e.EventEmitter,this.enter=new e.EventEmitter,this.focus=new e.EventEmitter,this.onChanged=function(t){r._parent.control.setValue(t),r.change.emit(t),r.cd.markForCheck()},this.onBlurred=function(){r._parent.control.markAsBlurred(),r._parent.control.touched||r._parent.control.markAsTouched(),r.blur.emit(),r.cd.markForCheck()},this.onEntered=function(){},this.onFocused=function(){r._parent.control.markAsFocused(),r.focus.emit(),r.cd.markForCheck()},this._parent=o}return t.prototype.ngOnInit=function(){},t.prototype.ngOnChanges=function(t){},t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnDestroy=function(){},t.decorators=[{type:e.Component,args:[{selector:"form-control",template:'\n      <ng-container *ngIf="_parent">\n          <ng-container\n                  renderControl\n                  [name]="_parent.name"\n                  [control]="_parent.control"\n                  [root]="_parent.root"\n                  [events]="{\n                    change: onChanged,\n                    blur: onBlurred,\n                    enter: onEntered,\n                    focus: onFocused\n                   }"\n                  [template]="template"\n          >\n          </ng-container>\n      </ng-container>\n  \n  ',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ViewContainerRef},{type:$,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]}]},t.propDecorators={setClass:[{type:e.HostBinding,args:["class.form-control"]}],change:[{type:e.Output}],blur:[{type:e.Output}],enter:[{type:e.Output}],focus:[{type:e.Output}]},t}(),J=function(){function t(t,n,o){this.cd=t,this._vcRef=n,this.template=null,this.setClass=!0,this.change=new e.EventEmitter,this.blur=new e.EventEmitter,this.enter=new e.EventEmitter,this.focus=new e.EventEmitter,this._parent=o}return t.prototype.ngOnInit=function(){var t=this;this._parent.control.statusChanges.pipe(s.untilDestroyed(this)).subscribe(function(e){t.cd.detectChanges()}),this._parent.root.ngSubmit.pipe(s.untilDestroyed(this)).subscribe(function(e){t.cd.detectChanges()})},t.prototype.ngOnChanges=function(t){},t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnDestroy=function(){},Object.defineProperty(t.prototype,"control",{get:function(){return this._parent.control},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control.invalid&&(this.control.dirty||this.control.touched||this._parent.root.submitted)},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Component,args:[{selector:"form-feedback",template:"\n\n  ",encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ViewContainerRef},{type:$,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]}]},t.propDecorators={setClass:[{type:e.HostBinding,args:["class.form-feedback"]}],change:[{type:e.Output}],blur:[{type:e.Output}],enter:[{type:e.Output}],focus:[{type:e.Output}]},t}(),W=function(){function t(t,n,o,i,a){var s=this;this._vcRef=t,this._cd=n,this._element=o,this._renderer=i,this._sanitizer=a,this.label="",this.value="",this.name="",this.portals={before:null,after:null},this._labelPosition="right",this._model=null,this._color="#027be3",this._checked=!1,this._value=null,this.change=new e.EventEmitter,this.modelChange=new r.Subject,this.blur=new e.EventEmitter,this.focus=new e.EventEmitter,this.onFocus=function(t){t.stopPropagation(),s.focus.emit()},this.onBlur=function(t){t.stopPropagation(),s.blur.emit()}}return Object.defineProperty(t.prototype,"_inputElement",{get:function(){return this._element.nativeElement.querySelector("input")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelPosition",{get:function(){return this._labelPosition},set:function(t){this._labelPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){var e=l.coerceBooleanProperty(t);this._disabled!==e&&(this._disabled=e,this._cd.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){var e=l.coerceBooleanProperty(t);this._checked!==e&&(this._checked=e,this._cd.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(t){t!==this._model&&(this._model=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.checked?this._color:this._sanitizer.bypassSecurityTrustStyle("rgba(0, 0, 0, .54)")},set:function(t){t&&t!==this._color&&(this._color=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngOnChanges=function(t){},t.prototype.ngOnDestroy=function(){},t.prototype._onInputClick=function(t){t.stopPropagation()},t.prototype._onInputChange=function(t){t.stopPropagation(),this.checked=!this.checked,this._emitChangeEvent()},t.prototype._emitChangeEvent=function(){var t;t=(t=this.checked?y.isArray(this.model)?this.model.concat(this.value):[this.model,this.value]:y.without(this.model,this.value)).length>1?t:t[0]||null,this.modelChange.next(t),this.change.next(t)},t.decorators=[{type:e.Component,args:[{selector:"az-checkbox",template:'<div class="az-checkbox__inner">\r\n    <input\r\n            class="az-checkbox__native"\r\n            type="checkbox"\r\n            [checked]="checked"\r\n\r\n            (change)="_onInputChange($event)"\r\n            (click)="_onInputClick($event)"\r\n            (blur)="onBlur($event)"\r\n            (focus)="onFocus($event)"\r\n    >\r\n    <div class="az-checkbox__checkmark ">\r\n        <i class="fas fa-check icon"></i>\r\n    </div>\r\n</div>\r\n\r\n<p class="az-checkbox__label ellipsis">{{label}}</p>\r\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2},{type:p.DomSanitizer}]},t.propDecorators={label:[{type:e.Input}],value:[{type:e.Input}],name:[{type:e.Input}],labelPosition:[{type:e.Input},{type:e.HostBinding,args:["attr.labelPosition"]}],disabled:[{type:e.Input},{type:e.HostBinding,args:["attr.disabled"]}],checked:[{type:e.Input},{type:e.HostBinding,args:["attr.checked"]}],model:[{type:e.Input}],color:[{type:e.Input},{type:e.HostBinding,args:["style.color"]}],_implicitContent:[{type:e.ViewChildren,args:[c.AzoraSlot]}],_explicitContent:[{type:e.ContentChildren,args:[c.AzoraSlot]}],change:[{type:e.Output}],modelChange:[{type:e.Output}],blur:[{type:e.Output}],focus:[{type:e.Output}]},t}(),X=[W],Q=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:X,exports:X,entryComponents:X}]}],t}(),Z=function(t){function n(n,o){var i=t.call(this,o)||this;return i.name="",i.label="",i.debounce=200,i.hint="",i.clearable=!1,i.change=new e.EventEmitter,i.modelChange=new r.Subject,i.blur=new e.EventEmitter,i.enter=new e.EventEmitter,i.focus=new e.EventEmitter,i._value=null,i._disabled=!1,i._required=!1,i._nativeElement=n.nativeElement,i}return m(n,t),Object.defineProperty(n.prototype,"control",{get:function(){return this._control},set:function(t){t&&t!==this._control&&(this._control=t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this.parent?v(this.parent.path,[this.name]):[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showHint",{get:function(){return this.hint&&!this.control.errors},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=l.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=l.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"model",{set:function(t){this._value!==t&&(this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isControlInvalid",{get:function(){return!(!this.control.invalid||!this.control.dirty)||!!this.root&&this.root.submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isFocused",{get:function(){return this.control.focused},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_shouldFloat",{get:function(){return!!this.control.value},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.root?(this.root.get(this.path)||P.missingNameException(this.name),this.control=this.root.get(this.path)):this.control=this._externalControl?this._externalControl:new T,this.control.valueChanges.subscribe(this.modelChange)},n.prototype.ngOnDestroy=function(){},n.propDecorators={_externalControl:[{type:e.Input,args:["control"]}],name:[{type:e.Input}],type:[{type:e.Input}],label:[{type:e.Input}],debounce:[{type:e.Input}],hint:[{type:e.Input}],maskExpression:[{type:e.Input,args:["mask"]}],schema:[{type:e.Input}],clearable:[{type:e.Input}],options:[{type:e.Input}],change:[{type:e.Output}],modelChange:[{type:e.Output}],blur:[{type:e.Output}],enter:[{type:e.Output}],focus:[{type:e.Output}],value:[{type:e.Input}],disabled:[{type:e.Input}],required:[{type:e.Input}],model:[{type:e.Input}],_isControlInvalid:[{type:e.HostBinding,args:["attr.invalid"]}],_isFocused:[{type:e.HostBinding,args:["attr.focused"]}],_shouldFloat:[{type:e.HostBinding,args:["class.should-float"]}]},n}(w),tt={"Too weak":0,Weak:1,Fair:2,Good:3,Excellent:4};tt[tt["Too weak"]]="Too weak",tt[tt.Weak]="Weak",tt[tt.Fair]="Fair",tt[tt.Good]="Good",tt[tt.Excellent]="Excellent";var et={"#8b0000":0,"#ff4500":1,"orange ":2,"#9acd32":3,green:4};et[et["#8b0000"]]="#8b0000",et[et["#ff4500"]]="#ff4500",et[et["orange "]]="orange ",et[et["#9acd32"]]="#9acd32",et[et.green]="green";var nt=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.onKeyPress=function(t){t.stopPropagation(),13===t.keyCode&&e.enter.emit()},e.onKeyDown=function(t){return t.stopPropagation(),"number"===e.type?e.onNumberKeyDown(t):"phone"===e.type?e.onPhoneKeyDown(t):null},e.onPaste=function(t){return t.stopPropagation(),"number"===e.type?e.onNumberPaste(t):"phone"===e.type?e.onPhonePaste(t):null},e.onPhoneKeyDown=function(t){t.stopPropagation(),8===t.keyCode||9===t.keyCode||13===t.keyCode||65===t.keyCode&&(t.ctrlKey||t.metaKey)||67===t.keyCode&&(t.ctrlKey||t.metaKey)||88===t.keyCode&&(t.ctrlKey||t.metaKey)||86===t.keyCode&&(t.ctrlKey||t.metaKey)||t.keyCode>=35&&t.keyCode<=39||(t.shiftKey||t.keyCode<48||t.keyCode>57)&&(t.keyCode<96||t.keyCode>105)&&t.preventDefault()},e.onPhonePaste=function(t){t.stopPropagation(),/^\d+$/.test(t.clipboardData.getData("Text"))||t.preventDefault()},e.onNumberKeyDown=function(t){t.stopPropagation(),8===t.keyCode||9===t.keyCode||13===t.keyCode||188===t.keyCode||110===t.keyCode||190===t.keyCode||65===t.keyCode&&(t.ctrlKey||t.metaKey)||67===t.keyCode&&(t.ctrlKey||t.metaKey)||88===t.keyCode&&(t.ctrlKey||t.metaKey)||86===t.keyCode&&(t.ctrlKey||t.metaKey)||t.keyCode>=35&&t.keyCode<=39||(t.shiftKey||t.keyCode<48||t.keyCode>57)&&(t.keyCode<96||t.keyCode>105)&&t.preventDefault()},e.onNumberPaste=function(t){t.stopPropagation(),/^\d.+$/.test(t.clipboardData.getData("Text"))||t.preventDefault()},e}return m(n,t),Object.defineProperty(n.prototype,"passwordVisibility",{get:function(){return this._passwordVisibility},set:function(t){var e=l.coerceBooleanProperty(t);e!==this._passwordVisibility&&(this._passwordVisibility=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputType",{get:function(){return"password"===this.type?this.passwordVisibility?"text":"password":this.type||"text"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"passwordStrengthResult",{get:function(){if("password"===this.type){var t=u(this.control.value);return{score:t.score,label:tt[t.score],color:et[t.score]}}},enumerable:!0,configurable:!0}),n.propDecorators={passwordVisibility:[{type:e.Input}]},n}(Z),ot=function(t){function n(e,n,o,r,i){var a=t.call(this,o,n)||this;return a._viewContainerRef=e,a._changeDetectorRef=n,a._elementRef=o,a._renderer=r,a._placeholder="",a.variant="standard",a.range=[],a.templates={password_toggler:null,prepend:null,append:null,before:null,after:null,clearable:null,feedback_icons:null},a._loadTemplate=function(t){t.contentRendered.pipe(s.untilDestroyed(a)).subscribe(function(t){a.templates[t.name]=t.template,a.cd.detectChanges()})},a.onChange=function(t){t.stopPropagation(),t.preventDefault();var e=t.target.value,n=parseInt(a.range[0],10),o=parseInt(a.range[1],10);!a.range||"number"!==a.type||n<=parseInt(e,10)&&parseInt(e,10)<=o||(e=t.target.value=a.range[1]),a.change.emit(e),a.control.setValue(e)},a.onFocus=function(t){t.stopPropagation(),a.focus.emit(),a.control.markAsFocused()},a.onBlur=function(t){t.stopPropagation(),a.blur.emit(),a.control.markAsBlurred()},a.onClear=function(){a.control.clear()},a.togglePasswordVisibility=function(){a.passwordVisibility=!a.passwordVisibility},a.parent=i,a}return m(n,t),Object.defineProperty(n.prototype,"placeholder",{get:function(){return this._isFocused||!this.control.props.label?this.control.props.placeholder:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"context",{get:function(){return{$implicit:{value:this.control.value,dirty:this.control.dirty,valid:this.control.valid,invalid:this.control.invalid,props:this.control.props,passwordVisibility:this.passwordVisibility}}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_inputElement",{get:function(){return this._elementRef.nativeElement.querySelector("input")},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.root||this.control.setControlState({value:this.value,props:{label:this.label,placeholder:this._placeholder,type:this.type,clearable:this.clearable},schema:this.schema})},n.prototype.ngAfterViewInit=function(){var e=this;t.prototype.ngAfterViewInit.call(this),y.each(this._implicitContent.toArray(),function(t){return e._loadTemplate(t)}),y.each(this._explicitContent.toArray(),function(t){return e._loadTemplate(t)})},n.prototype.ngOnDestroy=function(){},n.prototype._showAppendContent=function(){return y.reduce(this.templates,function(t,e,n){return e&&["append","feedback_icons"].includes(n)&&t.push(n),t},[]).length>0},n.prototype._showClearableContent=function(){return this.control.props.clearable&&this.control.value},n.prototype._showPasswordStrengthMeter=function(){return"password"===this.type&&this.control.value},n.decorators=[{type:e.Component,args:[{selector:"az-input",template:'<div class="az-field__before" *ngIf="templates.before">\n    <ng-container *ngTemplateOutlet="templates.before; context: context"></ng-container>\n</div>\n\n<div class="az-field__inner">\n    <div class="az-field__control">\n        <div class="az-field__prepend" *ngIf="templates.prepend">\n            <ng-container *ngTemplateOutlet="templates.prepend; context: context"></ng-container>\n        </div>\n\n        <div class="az-field__control-container">\n            <input\n                    class="az-field__native"\n                    [azMask]="maskExpression"\n\n                    [value]="control?.value || \'\'"\n                    [placeholder]="placeholder"\n                    [name]="name"\n                    [type]="inputType"\n\n                    (input)="onChange($event)"\n                    (blur)="onBlur($event)"\n                    (focus)="onFocus($event)"\n                    (keydown)="onKeyDown($event)"\n                    (keypress)="onKeyPress($event)"\n                    (paste)="onPaste($event)"\n            >\n            <div class="az-field__label ellipsis">{{control?.props?.label}}</div>\n        </div>\n\n        <div\n                class="az-field__clearable cursor-pointer"\n                *ngIf="_showClearableContent()"\n                (click)="onClear()"\n        >\n            <ng-container\n                    *ngIf="templates.clearable"\n            >\n                <ng-container *ngTemplateOutlet="templates.clearable; context: context"></ng-container>\n            </ng-container>\n        </div>\n        <div\n                class="az-field__password-toggler cursor-pointer"\n                *ngIf="type === \'password\'"\n                (click)="togglePasswordVisibility()"\n        >\n            <ng-container\n                    *ngIf="templates.password_toggler"\n            >\n                <ng-container *ngTemplateOutlet="templates.password_toggler; context: context"></ng-container>\n            </ng-container>\n        </div>\n\n        <div class="az-field__append" *ngIf="_showAppendContent()">\n            <ng-container *ngIf="_isControlInvalid">\n                <ng-container *ngTemplateOutlet="templates.feedback_icons; context: context"></ng-container>\n            </ng-container>\n\n\n            <ng-container *ngTemplateOutlet="templates.append; context: context"></ng-container>\n        </div>\n\n    </div>\n    <div class="az-password-strength" *ngIf="_showPasswordStrengthMeter()">\n        <div class="az-password-strength__label">Password strength: <strong>{{passwordStrengthResult.label}}</strong>\n        </div>\n        <az-progress\n                class="az-password-strength__progress"\n                [color]="passwordStrengthResult.color"\n                [value]="passwordStrengthResult.score"\n                [max]="4"\n        ></az-progress>\n    </div>\n    <div class="az-field__messages">\n        <div class="az-field__hint" *ngIf="showHint">{{hint}}</div>\n        <ng-container *ngIf="_isControlInvalid">\n            <div class="az-field__error" *ngFor="let err of control?.errors">\n                {{err}}\n            </div>\n        </ng-container>\n    </div>\n</div>\n\n<div class="az-field__after" *ngIf="templates.after">\n    <ng-container *ngTemplateOutlet="templates.after; context: context"></ng-container>\n</div>\n\n\n<ng-template slot="clearable">\n    <i class="material-icons">close</i>\n</ng-template>\n\n<ng-template slot="feedback_icons" let-control>\n    <ng-container *ngIf="control.invalid">\n        <i class="material-icons">error</i>\n    </ng-container>\n    <ng-container *ngIf="control.valid">\n        <i class="material-icons">check</i>\n    </ng-container>\n</ng-template>\n\n<ng-template slot="password_toggler" let-context>\n    <i class="material-icons" *ngIf="!context.passwordVisibility">visibility</i>\n    <i class="material-icons" *ngIf="context.passwordVisibility">visibility_off</i>\n</ng-template>\n\n\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2},{type:w,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]}]},n.propDecorators={_placeholder:[{type:e.Input,args:["placeholder"]}],variant:[{type:e.Input},{type:e.HostBinding,args:["attr.variant"]}],"true":[{type:e.HostBinding,args:["class.az-field"]}],range:[{type:e.Input}],_implicitContent:[{type:e.ViewChildren,args:[c.AzoraSlot]}],_explicitContent:[{type:e.ContentChildren,args:[c.AzoraSlot]}]},n}(nt),rt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[ot],imports:[n.CommonModule,d.PortalModule,c.AzoraSlotModule,c.AzoraMaskModule,c.AzoraRippleModule,c.AzoraProgressModule],exports:[ot],entryComponents:[ot]}]}],t}(),it=function(){function t(t,e,n,o,i){this._vcRef=t,this._cd=e,this._element=n,this._renderer=o,this._sanitizer=i,this.label="",this.value="",this.name="",this.change=new r.Subject,this.modelChange=new r.Subject,this.blur=new r.Subject,this.focus=new r.Subject,this._color="#027be3",this._checked=!1,this._labelPosition="right",this._value=null,this.onFocus=function(t){t.stopPropagation()},this.onBlur=function(t){t.stopPropagation()}}return Object.defineProperty(t.prototype,"labelPosition",{get:function(){return this._labelPosition},set:function(t){t&&t!==this._labelPosition&&(this._labelPosition=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){var e=l.coerceBooleanProperty(t);this._disabled!==e&&(this._disabled=e,this._cd.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){var e=l.coerceBooleanProperty(t);this._checked!==e&&(this._checked=e,this._cd.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"model",{set:function(t){this.checked=this.value===t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.checked?this._color:this._sanitizer.bypassSecurityTrustStyle("rgba(0, 0, 0, .54)")},set:function(t){t&&t!==this._color&&(this._color=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_inputElement",{get:function(){return this._element.nativeElement.querySelector("input")},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngOnChanges=function(t){},t.prototype.ngAfterViewChecked=function(){},t.prototype.ngOnDestroy=function(){},t.prototype._onInputClick=function(t){t.stopPropagation()},t.prototype._onInputChange=function(t){t.stopPropagation(),this.checked=!0,this._emitChangeEvent()},t.prototype._emitChangeEvent=function(){this.modelChange.next(this.value),this.change.next(this.value)},t.decorators=[{type:e.Component,args:[{selector:"az-radio",template:'<div\r\n        class="az-radio__inner"\r\n>\r\n    <input\r\n            class="az-radio__native"\r\n            type="radio"\r\n            [checked]="checked"\r\n\r\n            (change)="_onInputChange($event)"\r\n            (click)="_onInputClick($event)"\r\n            (blur)="onBlur($event)"\r\n            (focus)="onFocus($event)"\r\n    >\r\n    <div class="az-radio__outer-circle"></div>\r\n    <div class="az-radio__inner-circle"></div>\r\n\r\n    <div class="az-radio__ripple">\r\n\r\n    </div>\r\n\r\n</div>\r\n<div class="az-radio__label ellipsis">{{label}}</div>\r\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2},{type:p.DomSanitizer}]},t.propDecorators={label:[{type:e.Input}],value:[{type:e.Input}],name:[{type:e.Input}],change:[{type:e.Output}],modelChange:[{type:e.Output}],blur:[{type:e.Output}],focus:[{type:e.Output}],labelPosition:[{type:e.Input},{type:e.HostBinding,args:["attr.labelPosition"]}],disabled:[{type:e.Input},{type:e.HostBinding,args:["attr.disabled"]}],checked:[{type:e.Input},{type:e.HostBinding,args:["attr.checked"]}],model:[{type:e.Input}],color:[{type:e.Input},{type:e.HostBinding,args:["style.color"]}],_implicitContent:[{type:e.ViewChildren,args:[c.AzoraSlot]}],_explicitContent:[{type:e.ContentChildren,args:[c.AzoraSlot]}]},t}(),at=[it],st=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule,d.PortalModule,c.AzoraRippleModule],declarations:at,exports:at,entryComponents:at}]}],t}(),ct=function(t){function n(e,n,o,i,a,c,l,p){var u=t.call(this,n,e)||this;return u._cd=e,u._element=n,u._renderer=o,u._appRef=i,u._vcRef=a,u._injector=c,u._componentFactoryResolver=l,u.labelPosition="right",u._selectControlsComponentType={radio:it,checkbox:W},u._selectControls=[],u.onChange=function(t){u.value=t,u.change.emit(t),u.control.setValue(t),u._updateSelectControlState()},u._parseContext=function(t,e){var n={value:e.value,label:e.label,model:u.value,disabled:e.disabled?e.disabled:u.disabled,color:e.color?e.color:u.color,labelPosition:e.labelPosition?e.labelPosition:u.labelPosition,required:e.required?e.required:u.required,change:u.onChange};y.forOwn(n,function(e,n){if(e instanceof Function){var o=e;t.instance[n]||(t.instance[n]=new r.Subject),t.instance[n].pipe(s.untilDestroyed(u)).subscribe(function(t){o(t)})}else if(e!==undefined){var i=e;t.instance[n]=i}})},u.parent=p,u}return m(n,t),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){this._color!==t&&(this._color=t)},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._selectControls=y.map(this.options,function(t){return e._loadSelectControl(t)})},n.prototype._loadSelectControl=function(t){var e=this._componentFactoryResolver.resolveComponentFactory(this._selectControlsComponentType[this.type]),n=this._container.createComponent(e);return this._parseContext(n,t),n},n.prototype._updateSelectControlState=function(){var t=this;y.each(this._selectControls,function(e){e.instance.model=t.value})},n.decorators=[{type:e.Component,args:[{selector:"az-control-group",template:'\n      <div class="az-control-group__label">{{label}}</div>\n\n      <ng-template #container></ng-template>\n  ',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2},{type:e.ApplicationRef},{type:e.ViewContainerRef},{type:e.Injector},{type:e.ComponentFactoryResolver},{type:w,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]}]},n.propDecorators={color:[{type:e.Input}],labelPosition:[{type:e.Input}],_container:[{type:e.ViewChild,args:["container",{read:e.ViewContainerRef,"static":!0}]}]},n}(Z),lt=[ct],pt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule,d.PortalModule,st,Q],declarations:lt,exports:lt}]}],t}(),ut=function(t){function n(n,o,r,i,a,c){var l=t.call(this,r,o)||this;return l._viewContainerRef=n,l._changeDetectorRef=o,l._elementRef=r,l._renderer=i,l._overlay=a,l.show_menu=!1,l.selected_option=null,l.options=null,l.value=null,l.change=new e.EventEmitter,l.blur=new e.EventEmitter,l.invalid=!1,l._placeholder="",l.templates={prepend:null,append:null,before:null,after:null,clearable:null,feedback_icons:null},l._menuOpen=!1,l.onFocus=function(){l.disabled||(l.control.markAsFocused(),l.focus.emit(!0))},l.onBlur=function(){l.control.markAsBlurred(),l.blur.emit(!0)},l._loadTemplate=function(t){t.contentRendered.pipe(s.untilDestroyed(l)).subscribe(function(t){l.templates[t.name]=t.template,l.cd.detectChanges()})},l.onToggleMenu=function(){l.show_menu=!l.show_menu},l.onChange=function(t){l.selected_option=t,l.change.emit(t.value),l.control.setValue(t.value),l.close()},l.parent=c,l}return m(n,t),Object.defineProperty(n.prototype,"context",{get:function(){return{$implicit:{value:this.control.value,dirty:this.control.dirty,valid:this.control.valid,invalid:this.control.invalid,props:this.control.props}}},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.root||this.control.setControlState({value:this.value,props:{label:this.label,placeholder:this._placeholder,type:this.type,clearable:this.clearable},schema:this.schema})},n.prototype.ngAfterViewInit=function(){var e=this;t.prototype.ngAfterViewInit.call(this),y.each(this._implicitContent.toArray(),function(t){return e._loadTemplate(t)}),y.each(this._explicitContent.toArray(),function(t){return e._loadTemplate(t)})},n.prototype.ngOnDestroy=function(){},n.prototype.toggle=function(){this._menuOpen?this.close():this.open()},n.prototype.open=function(){!this.disabled&&this.options&&this.options.length&&!this._menuOpen&&(this.onFocus(),this._menuOpen=!0,this._changeDetectorRef.markForCheck(),this.overlayRef=this._overlay.create(this.getOverlayConfig()),this.overlayRef.attach(new d.TemplatePortal(this._menuTemplate,this._viewContainerRef)))},n.prototype.close=function(){this._menuOpen&&(this._menuOpen=!1,this._changeDetectorRef.markForCheck(),this.overlayRef.dispose(),this.onBlur())},n.prototype.getOverlayConfig=function(){var t=this._overlay.position().flexibleConnectedTo(this._menuTrigger.elementRef.nativeElement).withPush(!1).withPositions(this.getPositions());return new h.OverlayConfig({width:this._menuTrigger.elementRef.nativeElement.clientWidth,positionStrategy:t})},n.prototype.getPositions=function(){return[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"}]},n.prototype._showAppendContent=function(){return y.reduce(this.templates,function(t,e,n){return e&&["append","feedback_icons"].includes(n)&&t.push(n),t},[]).length>0},n.prototype._showClearableContent=function(){return this.control.props.clearable&&this.control.value},n.decorators=[{type:e.Component,args:[{selector:"az-select",template:'<div class="az-select__before" *ngIf="templates.before">\n    <ng-container *ngTemplateOutlet="templates.before; context: context"></ng-container>\n</div>\n\n<div class="az-select__inner">\n    <div\n            class="az-select__control"\n            cdkOverlayOrigin\n            (click)="toggle()"\n\n    >\n        <div class="az-select__prepend" *ngIf="templates.prepend">\n            <ng-container *ngTemplateOutlet="templates.prepend; context: context"></ng-container>\n        </div>\n\n        <div class="az-select__control-container">\n            <input\n                    class="az-select__native"\n                    [value]="selected_option?.label || \'\'"\n                    [name]="name"\n            >\n            <div class="az-select__label ellipsis">{{control?.props?.label}}</div>\n        </div>\n\n        <div\n                class="az-select__clearable cursor-pointer"\n                *ngIf="_showClearableContent()"\n        >\n            <ng-container\n                    *ngIf="templates.clearable"\n            >\n                <ng-container *ngTemplateOutlet="templates.clearable; context: context"></ng-container>\n            </ng-container>\n        </div>\n\n        <div class="az-select__append" *ngIf="_showAppendContent()">\n            <ng-container *ngIf="_isControlInvalid">\n                <ng-container *ngTemplateOutlet="templates.feedback_icons; context: context"></ng-container>\n            </ng-container>\n\n            <ng-container *ngTemplateOutlet="templates.append; context: context"></ng-container>\n\n\n        </div>\n\n        <div class="az-select__dropdown-icon">\n            <i class="material-icons">arrow_drop_down</i>\n        </div>\n\n    </div>\n    <div class="az-select__messages">\n        <div class="az-select__hint" *ngIf="showHint">{{hint}}</div>\n        <ng-container *ngIf="_isControlInvalid">\n            <div class="az-select__error" *ngFor="let err of control?.errors">\n                {{err}}\n            </div>\n        </ng-container>\n    </div>\n</div>\n\n<div class="az-select__after" *ngIf="templates.after">\n    <ng-container *ngTemplateOutlet="templates.after; context: context"></ng-container>\n</div>\n\n\n<ng-template slot="clearable">\n    <i class="material-icons">close</i>\n</ng-template>\n\n<ng-template slot="feedback_icons" let-control>\n    <ng-container *ngIf="control.invalid">\n        <i class="material-icons">error</i>\n    </ng-container>\n    <ng-container *ngIf="control.valid">\n        <i class="material-icons">check</i>\n    </ng-container>\n</ng-template>\n\n<ng-template\n  #menu\n  cdk-connected-overlay\n  cdkConnectedOverlayHasBackdrop\n  cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"\n  (backdropClick)="close()"\n>\n    <cdk-virtual-scroll-viewport\n            class="az-menu"\n            itemSize="10"\n    >\n\n        <div *ngIf="!options.length">No results found...</div>\n\n        <az-item\n                *cdkVirtualFor="let option of options"\n                (click)="onChange(option)"\n        >\n            <div class="az-focus-helper"></div>\n            <div class="az-item__inner">\n                <div class="az-item__label">{{  option.label}}</div>\n            </div>\n        </az-item>\n\n    </cdk-virtual-scroll-viewport>\n</ng-template>\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2},{type:h.Overlay},{type:w,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]}]},n.propDecorators={options:[{type:e.Input}],value:[{type:e.Input}],change:[{type:e.Output}],blur:[{type:e.Output}],invalid:[{type:e.Input}],_placeholder:[{type:e.Input,args:["placeholder"]}],_implicitContent:[{type:e.ViewChildren,args:[c.AzoraSlot]}],_explicitContent:[{type:e.ContentChildren,args:[c.AzoraSlot]}],_menuTemplate:[{type:e.ViewChild,args:["menu",{"static":!0}]}],_menuTrigger:[{type:e.ViewChild,args:[h.CdkOverlayOrigin,{"static":!0}]}]},n}(Z),dt=[ut],ht=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule,c.AzoraListModule,h.OverlayModule,f.ScrollingModule],declarations:dt,exports:dt,entryComponents:dt}]}],t}(),ft=function(){function t(t,e,n,o,i){this._vcRef=t,this._cd=e,this._element=n,this._renderer=o,this._sanitizer=i,this.label="",this.value="",this.name="",this.change=new r.Subject,this.modelChange=new r.Subject,this.blur=new r.Subject,this.focus=new r.Subject,this._color="#027be3",this._checked=!1,this._labelPosition="right",this._model=null,this._value=null,this.onFocus=function(t){t.stopPropagation()},this.onBlur=function(t){t.stopPropagation()}}return Object.defineProperty(t.prototype,"labelPosition",{get:function(){return this._labelPosition},set:function(t){t&&t!==this._labelPosition&&(this._labelPosition=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){var e=l.coerceBooleanProperty(t);this._disabled!==e&&(this._disabled=e,this._cd.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){var e=l.coerceBooleanProperty(t);this._checked!==e&&(this._checked=e,this._cd.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(t){t!==this._model&&(this._model=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.checked?this._color:this._sanitizer.bypassSecurityTrustStyle("#c5c6c7")},set:function(t){t&&t!==this._color&&(this._color=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_inputElement",{get:function(){return this._element.nativeElement.querySelector("input")},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngOnChanges=function(t){},t.prototype.ngAfterViewChecked=function(){},t.prototype.ngOnDestroy=function(){},t.prototype._onInputClick=function(t){t.stopPropagation()},t.prototype._onInputChange=function(t){t.stopPropagation(),this.checked=!this.checked,this._emitChangeEvent()},t.prototype._emitChangeEvent=function(){var t;t=(t=this.checked?y.isArray(this.model)?this.model.concat(this.value):[this.model,this.value]:y.without(this.model,this.value)).length>1?t:t[0]||null,console.log(t),this.modelChange.next(t),this.change.next(t)},t.decorators=[{type:e.Component,args:[{selector:"az-switch",template:'<div class="az-switch__inner">\r\n    <input\r\n            class="az-switch__native"\r\n            type="checkbox"\r\n            [checked]="checked"\r\n\r\n            (change)="_onInputChange($event)"\r\n            (click)="_onInputClick($event)"\r\n            (blur)="onBlur($event)"\r\n            (focus)="onFocus($event)"\r\n    >\r\n    <div class="az-switch__track ">\r\n    </div>\r\n    <div class="az-switch__thumb"></div>\r\n</div>\r\n\r\n<p class="az-switch__label ellipsis">{{label}}</p>\r\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2},{type:p.DomSanitizer}]},t.propDecorators={label:[{type:e.Input}],value:[{type:e.Input}],name:[{type:e.Input}],change:[{type:e.Output}],modelChange:[{type:e.Output}],blur:[{type:e.Output}],focus:[{type:e.Output}],labelPosition:[{type:e.Input},{type:e.HostBinding,args:["attr.labelPosition"]}],disabled:[{type:e.Input},{type:e.HostBinding,args:["attr.disabled"]}],checked:[{type:e.Input},{type:e.HostBinding,args:["attr.checked"]}],model:[{type:e.Input}],color:[{type:e.Input},{type:e.HostBinding,args:["style.color"]}],_implicitContent:[{type:e.ViewChildren,args:[c.AzoraSlot]}],_explicitContent:[{type:e.ContentChildren,args:[c.AzoraSlot]}]},t}(),yt=[ft],gt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:yt,exports:yt,entryComponents:yt}]}],t}(),mt=function(t){function n(e,n,o,r,i){var a=t.call(this,o,n)||this;return a._viewContainerRef=e,a._changeDetectorRef=n,a._elementRef=o,a._renderer=r,a.parent=i,a}return m(n,t),n.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.root||this.control.setControlState({value:this.value,props:{label:this.label,type:this.type,clearable:this.clearable},schema:this.schema})},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){},n.decorators=[{type:e.Component,args:[{selector:"az-slider",template:'<div class="az-slider__prepend"></div>\r\n<div class="az-slider__inner">\r\n    <div\r\n            class="az-slider__control"\r\n    >\r\n        <div class="az-slider__label ellipsis">{{control?.props?.label}}</div>\r\n        <div class="az-slider__control-container">\r\n            <div class="az-slider__track">\r\n                <svg width="100%" height="4" focusable="false" class="az-slider__progress-background">\r\n                    <defs>\r\n                        <pattern x="4" y="0" width="8" height="4" patternUnits="userSpaceOnUse">\r\n                            <circle cx="2" cy="2" r="2" />\r\n                        </pattern>\r\n                    </defs>\r\n                    <rect fill="#c5cae9" width="100%" height="100%" />\r\n                </svg>\r\n\r\n                <div class="az-slider__progress-meter"></div>\r\n            </div>\r\n            <div class="az-slider__thumb"></div>\r\n        </div>\r\n    </div>\r\n    <div class="az-slider__messages">\r\n        <div class="az-slider__hint" *ngIf="showHint">{{hint}}</div>\r\n        <ng-container *ngIf="_isControlInvalid">\r\n            <div class="az-slider__error" *ngFor="let err of control?.errors">\r\n                {{err}}\r\n            </div>\r\n        </ng-container>\r\n    </div>\r\n</div>\r\n\r\n<div class="az-slider__append"></div>\r\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2},{type:w,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]}]},n}(Z),_t=[mt],bt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:_t,exports:_t,entryComponents:_t}]}],t}(),vt=[Q,rt,pt,st,ht,bt,gt],Ct=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:vt,exports:vt}]}],t}(),wt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[N,$,G,Y,J,U,K,L],imports:[n.CommonModule,Ct],exports:[N,Y,$,G,J,K,L,Ct]}]}],t}(),Ot=function(){function t(){var t=this;this.group=function(e){var n=t._reduceControls(e);return new B(n)},this.array=function(e){var n=t._reduceControls(e);return new H(n)}}return t.prototype.control=function(t){return new T(t)},t.prototype._reduceControls=function(t){var e,n=this;return y.isPlainObject(t)?(e={},y.forOwn(t,function(t,o){e[o]=n._createControl(t)})):(e=[],y.each(t,function(t){e.push(n._createControl(t))})),e},t.prototype._createControl=function(t){return t instanceof T||t instanceof B||t instanceof H?t:this.control(t)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}();t.AbstractControl=V,t.AzoraCheckbox=W,t.AzoraCheckboxModule=Q,t.AzoraControlGroup=ct,t.AzoraControlGroupModule=pt,t.AzoraFormModule=wt,t.AzoraInput=ot,t.AzoraInputModule=rt,t.AzoraRadio=it,t.AzoraRadioModule=st,t.AzoraSelect=ut,t.AzoraSelectModule=ht,t.AzoraSwitch=ft,t.AzoraSwitchModule=gt,t.ControlAccessor=Z,t.ControlContainer=w,t.DISABLED=D,t.FormArray=H,t.FormBuilder=Ot,t.FormComponent=N,t.FormControl=T,t.FormGroup=B,t.INVALID=S,t.PENDING=z,t.PasswordStrengthColor=et,t.PasswordStrengthLabel=tt,t.VALID=E,t.Yup=F,t.formProvider=M,t.ɵa=w,t.ɵb=x,t.ɵba=ft,t.ɵbb=gt,t.ɵc=q,t.ɵd=$,t.ɵe=I,t.ɵf=G,t.ɵg=Y,t.ɵh=J,t.ɵi=U,t.ɵj=K,t.ɵk=L,t.ɵl=Ct,t.ɵm=W,t.ɵn=Q,t.ɵo=rt,t.ɵp=ot,t.ɵq=nt,t.ɵr=Z,t.ɵs=ct,t.ɵt=pt,t.ɵu=it,t.ɵv=st,t.ɵw=ht,t.ɵx=ut,t.ɵy=bt,t.ɵz=mt,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=azora-form.umd.min.js.map