New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ng-dynamic-forms/core

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-dynamic-forms/core - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

4

bundles/core.umd.min.js
/*!
@ng-dynamic-forms/core 5.1.0 2017-11-25 20:01 UTC
@ng-dynamic-forms/core 5.1.1 2017-12-03 00:01 UTC
Copyright (c) 2016-2017, Udo Schöfer http://www.udos86.de

@@ -17,3 +17,3 @@

*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs/Subject"),require("@angular/core"),require("rxjs/Observable"),require("rxjs/add/observable/of"),require("rxjs/add/operator/map"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","rxjs/Subject","@angular/core","rxjs/Observable","rxjs/add/observable/of","rxjs/add/operator/map","@angular/forms","@angular/common"],e):e((t.ngDF=t.ngDF||{},t.ngDF.core={}),t.Rx.Subject,t.ng.core,t.Rx.Observable,t["rxjs/add/observable/of"],t["rxjs/add/operator/map"],t.ng.forms,t.ng.common)}(this,function(t,e,o,n,r,i,a,c){"use strict";function s(t){return function(e,o){Reflect.defineMetadata(l,{key:o,name:t||o},e,o)}}function p(t){var e=[];for(var o in t){var n=Reflect.getMetadata(l,t,o);n&&e.push(n)}return e}function u(t,e){return p(e||t).reduce(function(e,o){return e[o.name]=t[o.key],e},{})}var l="SERIALIZABLE",f=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},y=function(){function t(t,o){void 0===o&&(o=null);var n=this;this.parent=null,this.asyncValidators=t.asyncValidators||null,this.cls=o,this.errorMessages=t.errorMessages||null,this.id=t.id,this.label=t.label||null,this.name=t.id,this.relation=Array.isArray(t.relation)?t.relation:[],this.updateOn="string"==typeof t.updateOn?t.updateOn:null,this.validators=t.validators||null,this.disabled="boolean"==typeof t.disabled&&t.disabled,this.disabledUpdates=new e.Subject,this.disabledUpdates.subscribe(function(t){return n.disabled=t})}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasErrorMessages",{get:function(){return"object"==typeof this.errorMessages&&null!==this.errorMessages},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return u(this)},t.isValidatorDescriptor=function(t){return null!==t&&"object"==typeof t&&(t.hasOwnProperty("name")&&t.hasOwnProperty("args"))},f([s(),d("design:type",Object)],t.prototype,"asyncValidators",void 0),f([s(),d("design:type",Object)],t.prototype,"cls",void 0),f([s("disabled"),d("design:type",Boolean)],t.prototype,"_disabled",void 0),f([s(),d("design:type",Object)],t.prototype,"errorMessages",void 0),f([s(),d("design:type",String)],t.prototype,"id",void 0),f([s(),d("design:type",Object)],t.prototype,"label",void 0),f([s(),d("design:type",Array)],t.prototype,"relation",void 0),f([s(),d("design:type",Object)],t.prototype,"updateOn",void 0),f([s(),d("design:type",Object)],t.prototype,"validators",void 0),t}(),_=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),h=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},O=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=function(t){function o(o,n){var r=t.call(this,o,n)||this;return r.hint=o.hint||null,r.required="boolean"==typeof o.required&&o.required,r.tabIndex=o.tabIndex||null,r.value=o.value||null,r.valueUpdates=new e.Subject,r.valueUpdates.subscribe(function(t){return r.value=t}),r}return _(o,t),Object.defineProperty(o.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!0,configurable:!0}),h([s(),O("design:type",Object)],o.prototype,"hint",void 0),h([s(),O("design:type",Boolean)],o.prototype,"required",void 0),h([s(),O("design:type",Object)],o.prototype,"tabIndex",void 0),h([s("value"),O("design:type",Object)],o.prototype,"_value",void 0),o}(y),g=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),v=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},b=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},A=function(){function t(t,e,o){void 0===e&&(e=[]),void 0===o&&(o=-1),this.$implicit=this,this.context=t,this.group=e,this.index=o}return Object.defineProperty(t.prototype,"parent",{get:function(){return this.context},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return this.group[t]},t.prototype.toJSON=function(){return u(this)},v([s(),b("design:type",Array)],t.prototype,"group",void 0),v([s(),b("design:type",Number)],t.prototype,"index",void 0),t}(),L="ARRAY",R=function(t){function e(e,o){var n=t.call(this,e,o)||this;if(n.groups=[],n.type=L,"function"!=typeof e.groupFactory)throw new Error("group factory function must be specified for DynamicFormArrayModel");if(n.groupFactory=e.groupFactory,n.groupAsyncValidators=e.groupAsyncValidators||null,n.groupPrototype=n.groupFactory(),n.groupValidators=e.groupValidators||null,n.initialCount="number"==typeof e.initialCount?e.initialCount:1,Array.isArray(e.groups))e.groups.forEach(function(t,e){n.groups.push(new A(n,t.group,t.index||e))});else for(var r=0;r<n.initialCount;r++)n.addGroup();return n}return g(e,t),e.prototype.updateGroupIndex=function(){this.groups.forEach(function(t,e){return t.index=e})},Object.defineProperty(e.prototype,"size",{get:function(){return this.groups.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){return this.groups[t]},e.prototype.addGroup=function(){return this.insertGroup(this.groups.length)},e.prototype.insertGroup=function(t){var e=new A(this,this.groupFactory());return this.groups.splice(t,0,e),this.updateGroupIndex(),e},e.prototype.moveGroup=function(t,e){(o=this.groups).splice.apply(o,[t+e,0].concat(this.groups.splice(t,1))),this.updateGroupIndex();var o},e.prototype.removeGroup=function(t){this.groups.splice(t,1),this.updateGroupIndex()},v([s(),b("design:type",Object)],e.prototype,"groupAsyncValidators",void 0),v([s(),b("design:type",Object)],e.prototype,"groupValidators",void 0),v([s(),b("design:type",Array)],e.prototype,"groups",void 0),v([s(),b("design:type",Number)],e.prototype,"initialCount",void 0),v([s(),b("design:type",Array)],e.prototype,"groupPrototype",void 0),v([s(),b("design:type",String)],e.prototype,"type",void 0),e}(y),E="on",I=["billing","shipping"],T=["fax","home","mobile","pager","work"],F=["street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","organization-title","organization","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo"],D=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"],C=function(){function t(){}return t.isAddressToken=function(t){return I.indexOf(t)>-1},t.isContactField=function(t){return D.indexOf(t)>-1},t.isContactToken=function(t){return T.indexOf(t)>-1},t.isField=function(t){return F.indexOf(t)>-1},t.isSectionToken=function(t){return t.startsWith("section-")},t.validate=function(t){var e=function(t,e){return t+"|"+e},o=I.reduce(e),n=T.reduce(e),r=F.reduce(e),i=D.reduce(e);return new RegExp("^(section-\\w+\\s{1})?(("+o+"){1}\\s)?(("+r+"){1}|(("+n+"){1}\\s{1}("+i+")))$").test(t)},t}(),j=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),N=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},P=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},M=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.autoComplete=e.autoComplete||E,n.autoFocus="boolean"==typeof e.autoFocus&&e.autoFocus,n.maxLength="number"==typeof e.maxLength?e.maxLength:null,n.minLength="number"==typeof e.minLength?e.minLength:null,n.placeholder=e.placeholder||"",n.prefix=e.prefix||null,n.readOnly="boolean"==typeof e.readOnly&&e.readOnly,n.spellCheck="boolean"==typeof e.spellCheck&&e.spellCheck,n.suffix=e.suffix||null,n}return j(e,t),N([s(),P("design:type",String)],e.prototype,"autoComplete",void 0),N([s(),P("design:type",Boolean)],e.prototype,"autoFocus",void 0),N([s(),P("design:type",Object)],e.prototype,"maxLength",void 0),N([s(),P("design:type",Object)],e.prototype,"minLength",void 0),N([s(),P("design:type",String)],e.prototype,"placeholder",void 0),N([s(),P("design:type",Object)],e.prototype,"prefix",void 0),N([s(),P("design:type",Boolean)],e.prototype,"readOnly",void 0),N([s(),P("design:type",Boolean)],e.prototype,"spellCheck",void 0),N([s(),P("design:type",Object)],e.prototype,"suffix",void 0),e}(m),S=function(){function t(){}return t.maskToString=function(e){return"string"==typeof e?e:e instanceof RegExp?e.toString():Array.isArray(e)?e.map(function(e){return t.maskToString(e)}):null},t.maskFromString=function(e){return"string"==typeof e?e.startsWith("/")&&e.endsWith("/")?new RegExp(e.slice(1,e.length-1)):e:Array.isArray(e)?e.map(function(e){return t.maskFromString(e)}):null},t.merge=function(e,o){if(void 0===o&&(o=null),void 0===e||null===e)return o;if("object"==typeof e){for(var n in e)e.hasOwnProperty(n)&&"object"==typeof e[n]&&(e[n]=t.merge(e[n],o?o[n]:null));return null!==o?Object.assign(o,e):e}return e},t.parseJSONReviver=function(t,e){var o=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/;return"string"==typeof e&&o.test(e)?new Date(e):e},t}(),w=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),U=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},x=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Y="INPUT",V="text",k=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.files=null,n.listId=null,n.type=Y,n.accept=e.accept||null,n.inputType=e.inputType||V,n.list=Array.isArray(e.list)?e.list:null,n.mask=e.mask||null,n.max=void 0!==e.max?e.max:null,n.min=void 0!==e.min?e.min:null,n.multiple="boolean"==typeof e.multiple?e.multiple:null,n.pattern=e.pattern||null,n.step="number"==typeof e.step?e.step:null,n.list&&(n.listId=n.id+"List"),n}return w(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return null!==this.mask&&(e.mask=S.maskToString(this.mask)),e},U([s(),x("design:type",Object)],e.prototype,"accept",void 0),U([s(),x("design:type",String)],e.prototype,"inputType",void 0),U([s(),x("design:type",Object)],e.prototype,"list",void 0),U([s(),x("design:type",Object)],e.prototype,"mask",void 0),U([s(),x("design:type",Object)],e.prototype,"max",void 0),U([s(),x("design:type",Object)],e.prototype,"min",void 0),U([s(),x("design:type",Object)],e.prototype,"multiple",void 0),U([s(),x("design:type",Object)],e.prototype,"pattern",void 0),U([s(),x("design:type",Object)],e.prototype,"step",void 0),U([s(),x("design:type",String)],e.prototype,"type",void 0),e}(M),G="END",B=function(){function t(t){this.templateRef=t,this.align=G,this.as=null}return t.decorators=[{type:o.Directive,args:[{selector:"ng-template[modelId],ng-template[modelType]"}]}],t.ctorParameters=function(){return[{type:o.TemplateRef}]},t.propDecorators={align:[{type:o.Input}],as:[{type:o.Input}],modelId:[{type:o.Input}],modelType:[{type:o.Input}]},t}(),K=function(){function t(){}return t.findActivationRelation=function(t){var e=t.find(function(t){return"DISABLE"===t.action||"ENABLE"===t.action});return void 0!==e?e:null},t.getRelatedFormControls=function(t,e){var o=[];return t.relation.forEach(function(n){return n.when.forEach(function(n){if(t.id===n.id)throw new Error("FormControl "+t.id+" cannot depend on itself");var r=e.get(n.id);r&&!o.some(function(t){return t===r})&&o.push(r)})}),o},t.isFormControlToBeDisabled=function(t,e){var o=e;return t.when.reduce(function(e,n,r){var i=o.get(n.id);return i&&"DISABLE"===t.action?!(r>0&&"AND"===t.connective&&!e)&&(!!(r>0&&"OR"===t.connective&&e)||(n.value===i.value||n.status===i.status)):!(!i||"ENABLE"!==t.action)&&(!!(r>0&&"AND"===t.connective&&e)||!(r>0&&"OR"===t.connective&&!e)&&!(n.value===i.value||n.status===i.status))},!1)},t}(),H={start:0,end:1,array:2};H[H.start]="start",H[H.end]="end",H[H.array]="array";var z=function(){function t(t,e,o){this.changeDetectorRef=t,this.layoutService=e,this.validationService=o,this.hasErrorMessaging=!1,this.inputTemplateList=null,this.templates=[],this.subscriptions=[]}return t.prototype.ngOnChanges=function(t){var e=this,o=t.group,n=t.model;if((o||n)&&this.model){if(this.unsubscribe(),this.group&&(this.control=this.group.get(this.model.id),this.subscriptions.push(this.control.valueChanges.subscribe(function(t){return e.onControlValueChanges(t)}))),this.subscriptions.push(this.model.disabledUpdates.subscribe(function(t){return e.onModelDisabledUpdates(t)})),this.model instanceof m){var r=this.model;this.subscriptions.push(r.valueUpdates.subscribe(function(t){return e.onModelValueUpdates(t)}))}this.model.relation.length>0&&this.setControlRelations()}},t.prototype.ngOnInit=function(){if(!this.model&&!this.group)throw new Error("no [model] or [group] input set for DynamicFormControlComponent")},t.prototype.ngAfterViewInit=function(){this.setTemplates(),this.changeDetectorRef.detectChanges()},t.prototype.ngOnDestroy=function(){this.unsubscribe()},Object.defineProperty(t.prototype,"errorMessages",{get:function(){return this.validationService.createErrorMessages(this.control,this.model)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showHint",{get:function(){return null!==this.model.hint},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasList",{get:function(){return null!==this.model.list},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalid",{get:function(){return this.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showErrorMessages",{get:function(){return this.hasErrorMessaging&&this.control.touched&&!this.hasFocus&&this.isInvalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateList",{get:function(){return null!==this.inputTemplateList?this.inputTemplateList:this.contentTemplateList},enumerable:!0,configurable:!0}),t.prototype.getClass=function(t,e,o){void 0===o&&(o=this.model);var n=this.layout&&this.layout[o.id]||o.cls;return this.layoutService.getClass(n,t,e)},t.prototype.createDynamicFormControlEvent=function(t,e){return{$event:t,context:this.context,control:this.control,group:this.group,model:this.model,type:e}},t.prototype.setTemplates=function(){var t=this;this.templateList.forEach(function(e){e.modelType!==t.model.type&&e.modelId!==t.model.id||null!==e.as||(t.model.type===L?t.templates[H.array]=e:"START"===e.align?t.templates[H.start]=e:e.align===G&&(t.templates[H.end]=e))})},t.prototype.setControlRelations=function(){var t=this,e=K.findActivationRelation(this.model.relation);if(null!==e){var o=e;this.updateModelDisabled(o),K.getRelatedFormControls(this.model,this.group).forEach(function(e){t.subscriptions.push(e.valueChanges.subscribe(function(){return t.updateModelDisabled(o)})),t.subscriptions.push(e.statusChanges.subscribe(function(){return t.updateModelDisabled(o)}))})}},t.prototype.updateModelDisabled=function(t){this.model.disabledUpdates.next(K.isFormControlToBeDisabled(t,this.group))},t.prototype.unsubscribe=function(){this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions=[]},t.prototype.onControlValueChanges=function(t){if(this.model instanceof m){var e=this.model;e.value!==t&&e.valueUpdates.next(t)}},t.prototype.onModelValueUpdates=function(t){this.control.value!==t&&this.control.setValue(t)},t.prototype.onModelDisabledUpdates=function(t){t?this.control.disable():this.control.enable()},t.prototype.onValueChange=function(e){if(e&&e instanceof Event){if(this.model.type===Y){var o=this.model;if("file"===o.inputType){var n=e.target||e.srcElement;o.files=n.files}}this.change.emit(this.createDynamicFormControlEvent(e,"change"))}else t.isDynamicFormControlEvent(e)?this.change.emit(e):this.change.emit(this.createDynamicFormControlEvent(e,"change"))},t.prototype.onBlur=function(e){t.isDynamicFormControlEvent(e)?this.blur.emit(e):(this.hasFocus=!1,this.blur.emit(this.createDynamicFormControlEvent(e,"blur")))},t.prototype.onFocus=function(e){t.isDynamicFormControlEvent(e)?this.focus.emit(e):(this.hasFocus=!0,this.focus.emit(this.createDynamicFormControlEvent(e,"focus")))},t.prototype.onCustomEvent=function(e,o){void 0===o&&(o=null),t.isDynamicFormControlEvent(e)?this.customEvent.emit(e):this.customEvent.emit(this.createDynamicFormControlEvent(e,o))},t.isDynamicFormControlEvent=function(t){return null!==t&&"object"==typeof t&&t.hasOwnProperty("$event")},t}(),X=function(){function t(t,e){this.formService=t,this.layoutService=e}return t.prototype.trackByFn=function(t,e){return e.id},t.prototype.getClass=function(t,e,o){var n=this.layoutService.findById(t.id,this.layout)||t.cls;return this.layoutService.getClass(n,e,o)},t.prototype.onEvent=function(t,e){switch(e){case"blur":this.blur.emit(t);break;case"change":this.change.emit(t);break;case"focus":this.focus.emit(t);break;case"custom":this.customEvent.emit(t)}},t}(),J=function(){function t(t,e){this.elementRef=t,this.renderer=e}return t.prototype.ngAfterViewInit=function(){this.dynamicId&&this.renderer.setAttribute(this.elementRef.nativeElement,"id",this.dynamicId)},t.decorators=[{type:o.Directive,args:[{selector:"[dynamicId]"}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2}]},t.propDecorators={dynamicId:[{type:o.Input}]},t}(),W=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},q=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Z="after",Q=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.labelPosition=e.labelPosition||Z,n.value="boolean"==typeof n.value&&n.value,n}return W(e,t),Object.defineProperty(e.prototype,"checked",{get:function(){return!!this.value},set:function(t){this.valueUpdates.next(t)},enumerable:!0,configurable:!0}),e.prototype.toggle=function(){this.checked=!this.checked},$([s(),q("design:type",String)],e.prototype,"labelPosition",void 0),e}(m),tt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),et=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ot=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},nt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.format=e.format||null,n.max=e.max||null,n.min=e.min||null,n.placeholder=e.placeholder||null,n}return tt(e,t),et([s(),ot("design:type",Object)],e.prototype,"format",void 0),et([s(),ot("design:type",Object)],e.prototype,"max",void 0),et([s(),ot("design:type",Object)],e.prototype,"min",void 0),et([s(),ot("design:type",Object)],e.prototype,"placeholder",void 0),e}(m),rt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),it=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},at=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ct=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.multiple="boolean"==typeof e.multiple&&e.multiple,n}return rt(e,t),it([s(),at("design:type",Boolean)],e.prototype,"multiple",void 0),e}(m),st=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),pt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ut=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},lt=function(){function t(t){this.disabled="boolean"==typeof t.disabled&&t.disabled,this.label=t.label||null,this.value=t.value}return Object.defineProperty(t.prototype,"text",{get:function(){return this.label},set:function(t){this.label=t},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return u(this)},pt([s(),ut("design:type",Boolean)],t.prototype,"disabled",void 0),pt([s(),ut("design:type",Object)],t.prototype,"label",void 0),pt([s(),ut("design:type",Object)],t.prototype,"value",void 0),t}(),ft=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n._options=[],n.options=e.options,n}return st(e,t),e.prototype.updateOptions$=function(){this.options$=n.Observable.of(this.options)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(t){var e=this;Array.isArray(t)?(this._options=t.map(function(t){return new lt(t)}),this.updateOptions$()):t instanceof n.Observable?this.options$=t.map(function(t){var o=t.map(function(t){return new lt(t)});return e._options=o,o}):this.updateOptions$()},enumerable:!0,configurable:!0}),e.prototype.add=function(t){return this.insert(this.options.length,t)},e.prototype.get=function(t){return this.options[t]},e.prototype.insert=function(t,e){var o=new lt(e);return this.options.splice(t,0,o),this.updateOptions$(),o},e.prototype.remove=function(){for(var t=this,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];e.forEach(function(e){return t.options.splice(e,1)}),this.updateOptions$()},pt([s("options"),ut("design:type",Array)],e.prototype,"_options",void 0),e}(m),dt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),yt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},_t=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ht="CHECKBOX",Ot=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=ht,n.indeterminate="boolean"==typeof e.indeterminate&&e.indeterminate,n}return dt(e,t),yt([s(),_t("design:type",Boolean)],e.prototype,"indeterminate",void 0),yt([s(),_t("design:type",String)],e.prototype,"type",void 0),e}(Q),mt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},vt=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},bt="GROUP",At=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.group=[],n.type=bt,n.group=Array.isArray(e.group)?e.group:[],n.legend=e.legend||null,n}return mt(e,t),e.prototype.get=function(t){return this.group[t]},e.prototype.set=function(t,e){this.group[t]=e},e.prototype.add=function(t){this.group.push(t)},e.prototype.insert=function(t,e){this.group.splice(t,0,e)},e.prototype.move=function(t,e){(o=this.group).splice.apply(o,[t+e,0].concat(this.group.splice(t,1)));var o},e.prototype.remove=function(t){this.group.splice(t,1)},e.prototype.size=function(){return this.group.length},gt([s(),vt("design:type",Array)],e.prototype,"group",void 0),gt([s(),vt("design:type",Object)],e.prototype,"legend",void 0),gt([s(),vt("design:type",String)],e.prototype,"type",void 0),e}(y),Lt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Rt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Et=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},It="CHECKBOX_GROUP",Tt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=It,n}return Lt(e,t),e.prototype.check=function(){for(var t=this,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];e.forEach(function(e){return t.group[e].checked=!0})},e.prototype.uncheck=function(){for(var t=this,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];e.forEach(function(e){return t.group[e].checked=!1})},e.prototype.checkAll=function(){this.group.forEach(function(t){return t.checked=!0})},e.prototype.uncheckAll=function(){this.group.forEach(function(t){return t.checked=!1})},Rt([s(),Et("design:type",Array)],e.prototype,"group",void 0),Rt([s(),Et("design:type",String)],e.prototype,"type",void 0),e}(At),Ft=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Dt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ct=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},jt="DATEPICKER",Nt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=jt,n.focusedDate=e.focusedDate||null,n.inline="boolean"==typeof e.inline&&e.inline,n.toggleIcon="string"==typeof e.toggleIcon?e.toggleIcon:null,n}return Ft(e,t),Dt([s(),Ct("design:type",Object)],e.prototype,"focusedDate",void 0),Dt([s(),Ct("design:type",Boolean)],e.prototype,"inline",void 0),Dt([s(),Ct("design:type",Object)],e.prototype,"toggleIcon",void 0),Dt([s(),Ct("design:type",String)],e.prototype,"type",void 0),e}(nt),Pt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Mt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},St=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},wt="EDITOR",Ut=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=wt,n}return Pt(e,t),Mt([s(),St("design:type",String)],e.prototype,"type",void 0),e}(M),xt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Yt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Vt=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},kt="FILE_UPLOAD",Gt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=kt,n.accept=Array.isArray(e.accept)?e.accept:null,n.autoUpload="boolean"!=typeof e.autoUpload||e.autoUpload,n.maxSize="number"==typeof e.maxSize?e.maxSize:null,n.minSize="number"==typeof e.minSize?e.minSize:null,n.removeUrl=e.removeUrl||null,n.showFileList="boolean"!=typeof e.showFileList||e.showFileList,n.url=e.url||null,n}return xt(e,t),Yt([s(),Vt("design:type",Object)],e.prototype,"accept",void 0),Yt([s(),Vt("design:type",Boolean)],e.prototype,"autoUpload",void 0),Yt([s(),Vt("design:type",Object)],e.prototype,"maxSize",void 0),Yt([s(),Vt("design:type",Object)],e.prototype,"minSize",void 0),Yt([s(),Vt("design:type",Object)],e.prototype,"removeUrl",void 0),Yt([s(),Vt("design:type",Boolean)],e.prototype,"showFileList",void 0),Yt([s(),Vt("design:type",Object)],e.prototype,"url",void 0),Yt([s(),Vt("design:type",String)],e.prototype,"type",void 0),e}(ct),Bt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ht=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},zt="RADIO_GROUP",Xt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=zt,n.legend=e.legend||null,n}return Bt(e,t),e.prototype.select=function(t){this.valueUpdates.next(this.get(t).value)},Kt([s(),Ht("design:type",Object)],e.prototype,"legend",void 0),Kt([s(),Ht("design:type",String)],e.prototype,"type",void 0),e}(ft),Jt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},$t=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},qt="RATING",Zt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=qt,n.max="number"==typeof e.max?e.max:10,n}return Jt(e,t),Wt([s(),$t("design:type",Object)],e.prototype,"max",void 0),Wt([s(),$t("design:type",String)],e.prototype,"type",void 0),e}(m),Qt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),te=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ee=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},oe="SELECT",ne=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=oe,n.filterable="boolean"==typeof e.filterable&&e.filterable,n.multiple="boolean"==typeof e.multiple&&e.multiple,n.placeholder=e.placeholder||"",n}return Qt(e,t),e.prototype.select=function(){for(var t=this,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=this.multiple?e.map(function(e){return t.get(e).value}):this.get(e[0]).value;this.valueUpdates.next(n)},te([s(),ee("design:type",Boolean)],e.prototype,"filterable",void 0),te([s(),ee("design:type",Boolean)],e.prototype,"multiple",void 0),te([s(),ee("design:type",String)],e.prototype,"placeholder",void 0),te([s(),ee("design:type",String)],e.prototype,"type",void 0),e}(ft),re=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ie=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ae=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ce="SLIDER",se=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=ce,n.max="number"==typeof e.max?e.max:10,n.min="number"==typeof e.min?e.min:0,n.step="number"==typeof e.step?e.step:1,n.vertical="boolean"==typeof e.vertical&&e.vertical,n}return re(e,t),ie([s(),ae("design:type",Object)],e.prototype,"max",void 0),ie([s(),ae("design:type",Object)],e.prototype,"min",void 0),ie([s(),ae("design:type",Object)],e.prototype,"step",void 0),ie([s(),ae("design:type",Boolean)],e.prototype,"vertical",void 0),ie([s(),ae("design:type",String)],e.prototype,"type",void 0),e}(m),pe=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ue=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},le=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},fe="SWITCH",de=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=fe,n.offLabel=e.offLabel||null,n.onLabel=e.onLabel||null,n}return pe(e,t),ue([s(),le("design:type",Object)],e.prototype,"offLabel",void 0),ue([s(),le("design:type",Object)],e.prototype,"onLabel",void 0),ue([s(),le("design:type",String)],e.prototype,"type",void 0),e}(Q),ye=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_e=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},he=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Oe="TEXTAREA",me="soft",ge=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=Oe,n.cols="number"==typeof e.cols?e.cols:20,n.rows="number"==typeof e.rows?e.rows:2,n.wrap=e.wrap||me,n}return ye(e,t),_e([s(),he("design:type",Number)],e.prototype,"cols",void 0),_e([s(),he("design:type",Number)],e.prototype,"rows",void 0),_e([s(),he("design:type",String)],e.prototype,"wrap",void 0),_e([s(),he("design:type",String)],e.prototype,"type",void 0),e}(M),ve=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),be=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ae=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Le="TIMEPICKER",Re=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=Le,n.meridian="boolean"==typeof e.meridian&&e.meridian,n.showSeconds="boolean"==typeof e.showSeconds&&e.showSeconds,n}return ve(e,t),be([s(),Ae("design:type",Boolean)],e.prototype,"meridian",void 0),be([s(),Ae("design:type",Boolean)],e.prototype,"showSeconds",void 0),be([s(),Ae("design:type",String)],e.prototype,"type",void 0),e}(nt),Ee=function(){function t(t,e){this.NG_VALIDATORS=t,this.NG_ASYNC_VALIDATORS=e}return t.prototype.getValidatorFn=function(t,e,o){void 0===e&&(e=null),void 0===o&&(o=this.NG_VALIDATORS);var n;if(a.Validators.hasOwnProperty(t)?n=a.Validators[t]:o&&(n=o.find(function(e){return e.name===t})),void 0===n)throw new Error('validator "'+t+'" is not provided via NG_VALIDATORS or NG_ASYNC_VALIDATORS');return null!==e?n(e):n},t.prototype.getValidatorFns=function(t,e){var o=this;void 0===e&&(e=this.NG_VALIDATORS);var n=[];return t&&"object"==typeof t&&(n=Object.keys(t).map(function(n){var r=t[n];if(y.isValidatorDescriptor(r)){var i=r;return o.getValidatorFn(i.name,i.args,e)}return o.getValidatorFn(n,r,e)})),n},t.prototype.parseErrorMessageTemplate=function(t,e,o){return void 0===o&&(o=null),t.replace(/{{\s*(.+?)\s*}}/gm,function(t,n){var r=e,i=n;return n.indexOf("validator.")>=0&&o&&(r=o,i=n.replace("validator.","")),r[i]?r[i]:null})},t.prototype.getValidator=function(t,e){return void 0===e&&(e=null),this.getValidatorFn(t,e)},t.prototype.getAsyncValidator=function(t,e){return void 0===e&&(e=null),this.getValidatorFn(t,e,this.NG_ASYNC_VALIDATORS)},t.prototype.getValidators=function(t){return this.getValidatorFns(t)},t.prototype.getAsyncValidators=function(t){return this.getValidatorFns(t,this.NG_ASYNC_VALIDATORS)},t.prototype.updateValidators=function(t,e,o){o.validators=t,null===t?e.clearValidators():e.setValidators(this.getValidators(t))},t.prototype.updateAsyncValidators=function(t,e,o){o.asyncValidators=t,null===t?e.clearAsyncValidators():e.setAsyncValidators(this.getAsyncValidators(t))},t.prototype.createErrorMessages=function(t,e){var o=this,n=[];if("object"==typeof e.errorMessages&&null!==e.errorMessages){var r=e.errorMessages;Object.keys(t.errors||{}).forEach(function(i){var a=i;if("minlength"!==i&&"maxlength"!==i||a.replace("length","Length"),r.hasOwnProperty(a)){var c=t.getError(i),s=r[a];n.push(o.parseErrorMessageTemplate(s,e,c))}})}return n},t.prototype.isFormHook=function(t){return"string"==typeof t&&-1!==["blur","change","submit"].indexOf(t)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Inject,args:[a.NG_VALIDATORS]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Inject,args:[a.NG_ASYNC_VALIDATORS]}]}]},t}(),Ie=function(){function t(t){this.validationService=t}return t.prototype.createAbstractControlOptions=function(t,e,o){return void 0===t&&(t=null),void 0===e&&(e=null),void 0===o&&(o=null),{asyncValidators:this.validationService.getAsyncValidators(e),validators:this.validationService.getValidators(t),updateOn:this.validationService.isFormHook(o)?o:"change"}},t.prototype.createFormArray=function(t){for(var e=[],o=this.createAbstractControlOptions(t.validators,t.asyncValidators,t.updateOn),n=0;n<t.size;n++){var r=t.get(n),i=this.createAbstractControlOptions(t.groupValidators,t.groupAsyncValidators,t.updateOn);e.push(this.createFormGroup(r.group,i,r))}return new a.FormArray(e,o)},t.prototype.createFormGroup=function(t,e,o){var n=this;void 0===e&&(e=null),void 0===o&&(o=null);var r={};return t.forEach(function(t){switch(t.parent=o,t.type){case L:r[t.id]=n.createFormArray(t);break;case bt:case It:var e=t,i=n.createAbstractControlOptions(e.validators,e.asyncValidators,e.updateOn);r[t.id]=n.createFormGroup(e.group,i,e);break;default:var c=t,s={value:c.value,disabled:c.disabled},p=n.createAbstractControlOptions(c.validators,c.asyncValidators,c.updateOn);r[t.id]=new a.FormControl(s,p)}}),new a.FormGroup(r,e)},t.prototype.getPathSegment=function(t){return t instanceof A?t.index.toString():t.id},t.prototype.getPath=function(t){for(var e=[this.getPathSegment(t)],o=t.parent;o;)e.unshift(this.getPathSegment(o)),o=o.parent;return e},t.prototype.addFormGroupControl=function(t,e){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];if(e instanceof At)this.insertFormGroupControl.apply(this,[e.size(),t,e].concat(o));else{var r=e;this.insertFormGroupControl.apply(this,[r.length,t,r].concat(o))}},t.prototype.moveFormGroupControl=function(t,e,o){if(o instanceof At)o.move(t,e);else{var n=o;n.splice.apply(n,[t+e,0].concat(n.splice(t,1)))}},t.prototype.insertFormGroupControl=function(t,e,o){for(var n=[],r=3;r<arguments.length;r++)n[r-3]=arguments[r];var i=o instanceof At?o:null,a=this.createFormGroup(n,null,i).controls;Object.keys(a).forEach(function(r,i){var c=n[i];o instanceof At?o.insert(t,c):o.splice(t,0,c),e.addControl(r,a[r])})},t.prototype.removeFormGroupControl=function(t,e,o){o instanceof At?(e.removeControl(o.get(t).id),o.remove(t)):(e.removeControl(o[t].id),o.splice(t,1))},t.prototype.addFormArrayGroup=function(t,e){var o=e.addGroup();t.push(this.createFormGroup(o.group,null,o))},t.prototype.insertFormArrayGroup=function(t,e,o){var n=o.insertGroup(t);e.insert(t,this.createFormGroup(n.group,null,n))},t.prototype.moveFormArrayGroup=function(t,e,o,n){var r=t+e,i=e>=0;if(!(t>=0&&t<n.size&&r>=0&&r<n.size))throw new Error("form array group cannot be moved due to index or new index being out of bounds");for(var a=[],c=i?t:r;c<=(i?r:t);c++)a.push(o.at(c));a.forEach(function(e,n){var c;c=i?0===n?r:t+n-1:n===a.length-1?r:r+n+1,o.setControl(c,e)}),n.moveGroup(t,e)},t.prototype.removeFormArrayGroup=function(t,e,o){e.removeAt(t),o.removeGroup(t)},t.prototype.clearFormArray=function(t,e){for(;t.length>0;)this.removeFormArrayGroup(0,t,e)},t.prototype.findById=function(t,e){var o=null,n=function(t,e){for(var r=0,i=e;r<i.length;r++){var a=i[r];if(a.id===t){o=a;break}a instanceof At&&n(t,a.group)}};return n(t,e),o},t.prototype.fromJSON=function(t){var e=this,o=[];return("string"==typeof t?JSON.parse(t,S.parseJSONReviver):t).forEach(function(t){switch(t.type){case L:var n=t;Array.isArray(n.groups)&&n.groups.forEach(function(t){t.group=e.fromJSON(t.group)}),n.groupFactory=function(){return e.fromJSON(n.groupPrototype||n.origin)},o.push(new R(t,t.cls));break;case ht:o.push(new Ot(t,t.cls));break;case It:t.group=e.fromJSON(t.group),o.push(new Tt(t,t.cls));break;case jt:o.push(new Nt(t,t.cls));break;case wt:o.push(new Ut(t,t.cls));break;case kt:t.value=null,o.push(new Gt(t,t.cls));break;case bt:t.group=e.fromJSON(t.group),o.push(new At(t,t.cls));break;case Y:var r=t;null!==r.mask&&(r.mask=S.maskFromString(r.mask)),o.push(new k(t,t.cls));break;case zt:o.push(new Xt(t,t.cls));break;case qt:o.push(new Zt(t,t.cls));break;case oe:o.push(new ne(t,t.cls));break;case ce:o.push(new se(t,t.cls));break;case fe:o.push(new de(t,t.cls));break;case Oe:o.push(new ge(t,t.cls));break;case Le:o.push(new Re(t,t.cls));break;default:throw new Error('unknown form control model type defined on JSON object with id "'+t.id+'"')}}),o},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:Ee}]},t}(),Te=function(){function t(){}return t.prototype.findById=function(t,e){if(null!==e&&"object"==typeof e)for(var o=0,n=Object.keys(e);o<n.length;o++){var r=n[o];if(r===t)return e[r]}return null},t.prototype.getClass=function(t,e,o){return null!==t&&t.hasOwnProperty(e)&&t[e].hasOwnProperty(o)?t[e][o]:""},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[]},t}(),Fe=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[Ie,Te,Ee]}},t.decorators=[{type:o.NgModule,args:[{imports:[c.CommonModule,a.ReactiveFormsModule],declarations:[J,B],exports:[J,B]}]}],t.ctorParameters=function(){return[]},t}();t.DynamicFormComponent=X,t.DYNAMIC_FORM_CONTROL_EVENT_TYPE_BLUR="blur",t.DYNAMIC_FORM_CONTROL_EVENT_TYPE_CHANGE="change",t.DYNAMIC_FORM_CONTROL_EVENT_TYPE_FOCUS="focus",t.DYNAMIC_FORM_CONTROL_EVENT_TYPE_CUSTOM="custom",t.DynamicFormControlComponentTemplatePosition=H,t.DynamicFormControlComponent=z,t.METADATA_KEY_SERIALIZABLE=l,t.serializable=s,t.getSerializables=p,t.serialize=u,t.DYNAMIC_TEMPLATE_DIRECTIVE_ALIGN_START="START",t.DYNAMIC_TEMPLATE_DIRECTIVE_ALIGN_END=G,t.DynamicTemplateDirective=B,t.DynamicIdDirective=J,t.DynamicFormControlModel=y,t.DynamicFormValueControlModel=m,t.DYNAMIC_CHECK_CONTROL_LABEL_POSITION_AFTER=Z,t.DYNAMIC_CHECK_CONTROL_LABEL_POSITION_BEFORE="before",t.DynamicCheckControlModel=Q,t.DynamicDateControlModel=nt,t.DynamicFileControlModel=ct,t.DynamicInputControlModel=M,t.DynamicFormOption=lt,t.DynamicOptionControlModel=ft,t.DYNAMIC_FORM_CONTROL_ACTION_DISABLE="DISABLE",t.DYNAMIC_FORM_CONTROL_ACTION_ENABLE="ENABLE",t.DYNAMIC_FORM_CONTROL_CONNECTIVE_AND="AND",t.DYNAMIC_FORM_CONTROL_CONNECTIVE_OR="OR",t.DYNAMIC_FORM_CONTROL_TYPE_CHECKBOX=ht,t.DynamicCheckboxModel=Ot,t.DYNAMIC_FORM_CONTROL_TYPE_CHECKBOX_GROUP=It,t.DynamicCheckboxGroupModel=Tt,t.DYNAMIC_FORM_CONTROL_TYPE_DATEPICKER=jt,t.DynamicDatePickerModel=Nt,t.DYNAMIC_FORM_CONTROL_TYPE_EDITOR=wt,t.DynamicEditorModel=Ut,t.DYNAMIC_FORM_CONTROL_TYPE_FILE_UPLOAD=kt,t.DynamicFileUploadModel=Gt,t.DYNAMIC_FORM_CONTROL_TYPE_GROUP=bt,t.DynamicFormGroupModel=At,t.DynamicFormArrayGroupModel=A,t.DYNAMIC_FORM_CONTROL_TYPE_ARRAY=L,t.DynamicFormArrayModel=R,t.DYNAMIC_FORM_CONTROL_TYPE_INPUT=Y,t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_COLOR="color",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_DATE="date",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_DATETIME_LOCAL="datetime-local",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_EMAIL="email",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_FILE="file",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_MONTH="month",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_NUMBER="number",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_PASSWORD="password",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_RANGE="range",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_SEARCH="search",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_TEL="tel",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_TEXT=V,t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_TIME="time",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_URL="url",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_WEEK="week",t.DynamicInputModel=k,t.DYNAMIC_FORM_CONTROL_TYPE_RADIO_GROUP=zt,t.DynamicRadioGroupModel=Xt,t.DYNAMIC_FORM_CONTROL_TYPE_RATING=qt,t.DynamicRatingModel=Zt,t.DYNAMIC_FORM_CONTROL_TYPE_SELECT=oe,t.DynamicSelectModel=ne,t.DYNAMIC_FORM_CONTROL_TYPE_SLIDER=ce,t.DynamicSliderModel=se,t.DYNAMIC_FORM_CONTROL_TYPE_SWITCH=fe,t.DynamicSwitchModel=de,t.DYNAMIC_FORM_CONTROL_TYPE_TEXTAREA=Oe,t.DYNAMIC_FORM_TEXTAREA_WRAP_HARD="hard",t.DYNAMIC_FORM_TEXTAREA_WRAP_SOFT=me,t.DynamicTextAreaModel=ge,t.DYNAMIC_FORM_CONTROL_TYPE_TIMEPICKER=Le,t.DynamicTimePickerModel=Re,t.DynamicFormService=Ie,t.DynamicFormLayoutService=Te,t.DynamicFormValidationService=Ee,t.AUTOCOMPLETE_OFF="off",t.AUTOCOMPLETE_ON=E,t.AUTOFILL_TOKEN_BILLING="billing",t.AUTOFILL_TOKEN_SHIPPING="shipping",t.AUTOFILL_TOKENS_ADDRESS=I,t.AUTOFILL_TOKEN_HOME="home",t.AUTOFILL_TOKEN_WORK="work",t.AUTOFILL_TOKEN_MOBILE="mobile",t.AUTOFILL_TOKEN_FAX="fax",t.AUTOFILL_TOKEN_PAGER="pager",t.AUTOFILL_TOKENS_CONTACT=T,t.AUTOFILL_FIELD_STREET_ADDRESS="street-address",t.AUTOFILL_FIELD_ADDRESS_LINE_1="address-line1",t.AUTOFILL_FIELD_ADDRESS_LINE_2="address-line2",t.AUTOFILL_FIELD_ADDRESS_LINE_3="address-line3",t.AUTOFILL_FIELD_ADDRESS_LEVEL_4="address-level4",t.AUTOFILL_FIELD_ADDRESS_LEVEL_3="address-level3",t.AUTOFILL_FIELD_ADDRESS_LEVEL_2="address-level2",t.AUTOFILL_FIELD_ADDRESS_LEVEL_1="address-level1",t.AUTOFILL_FIELD_NAME="name",t.AUTOFILL_FIELD_HONORIFIC_PREFIX="honorific-prefix",t.AUTOFILL_FIELD_GIVEN_NAME="given-name",t.AUTOFILL_FIELD_ADDITIONAL_NAME="additional-name",t.AUTOFILL_FIELD_FAMILY_NAME="family-name",t.AUTOFILL_FIELD_HONORIFIC_SUFFIX="honorific-suffix",t.AUTOFILL_FIELD_NICKNAME="nickname",t.AUTOFILL_FIELD_USERNAME="username",t.AUTOFILL_FIELD_NEW_PASSWORD="new-password",t.AUTOFILL_FIELD_CURRENT_PASSWORD="current-password",t.AUTOFILL_FIELD_ORGANIZATION_TITLE="organization-title",t.AUTOFILL_FIELD_ORGANIZATION="organization",t.AUTOFILL_FIELD_COUNTRY="country",t.AUTOFILL_FIELD_COUNTRY_NAME="country-name",t.AUTOFILL_FIELD_POSTAL_CODE="postal-code",t.AUTOFILL_FIELD_CC_NAME="cc-name",t.AUTOFILL_FIELD_CC_GIVEN_NAME="cc-given-name",t.AUTOFILL_FIELD_CC_ADDITIONAL_NAME="cc-additional-name",t.AUTOFILL_FIELD_CC_FAMILY_NAME="cc-family-name",t.AUTOFILL_FIELD_CC_NUMBER="cc-number",t.AUTOFILL_FIELD_CC_EXP="cc-exp",t.AUTOFILL_FIELD_CC_EXP_MONTH="cc-exp-month",t.AUTOFILL_FIELD_CC_EXP_YEAR="cc-exp-year",t.AUTOFILL_FIELD_CC_CSC="cc-csc",t.AUTOFILL_FIELD_CC_TYPE="cc-type",t.AUTOFILL_FIELD_TRANSACTION_CURRENCY="transaction-currency",t.AUTOFILL_FIELD_TRANSACTION_AMOUNT="transaction-amount",t.AUTOFILL_FIELD_LANGUAGE="language",t.AUTOFILL_FIELD_BDAY="bday",t.AUTOFILL_FIELD_BDAY_DAY="bday-day",t.AUTOFILL_FIELD_BDAY_MONTH="bday-month",t.AUTOFILL_FIELD_BDAY_YEAR="bday-year",t.AUTOFILL_FIELD_SEX="sex",t.AUTOFILL_FIELD_URL="url",t.AUTOFILL_FIELD_PHOTO="photo",t.AUTOFILL_FIELDS=F,t.AUTOFILL_FIELD_TEL="tel",t.AUTOFILL_FIELD_TEL_COUNTRY_CODE="tel-country-code",t.AUTOFILL_FIELD_TEL_NATIONAL="tel-national",t.AUTOFILL_FIELD_TEL_AREA_CODE="tel-area-code",t.AUTOFILL_FIELD_TEL_LOCAL="tel-local",t.AUTOFILL_FIELD_TEL_LOCAL_PREFIX="tel-local-prefix",t.AUTOFILL_FIELD_TEL_LOCAL_SUFFIX="tel-local-suffix",t.AUTOFILL_FIELD_TEL_LOCAL_EXTENSION="tel-extension",t.AUTOFILL_FIELD_EMAIL="email",t.AUTOFILL_FIELD_IMPP="impp",t.AUTOFILL_FIELDS_CONTACT=D,t.AutoFillUtils=C,t.Utils=S,t.RelationUtils=K,t.DynamicFormsCoreModule=Fe,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs/Subject"),require("@angular/core"),require("rxjs/Observable"),require("rxjs/add/observable/of"),require("rxjs/add/operator/map"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","rxjs/Subject","@angular/core","rxjs/Observable","rxjs/add/observable/of","rxjs/add/operator/map","@angular/forms","@angular/common"],e):e((t.ngDF=t.ngDF||{},t.ngDF.core={}),t.Rx.Subject,t.ng.core,t.Rx.Observable,t["rxjs/add/observable/of"],t["rxjs/add/operator/map"],t.ng.forms,t.ng.common)}(this,function(t,e,o,n,r,i,a,c){"use strict";function s(t){return function(e,o){Reflect.defineMetadata(l,{key:o,name:t||o},e,o)}}function p(t){var e=[];for(var o in t){var n=Reflect.getMetadata(l,t,o);n&&e.push(n)}return e}function u(t,e){return p(e||t).reduce(function(e,o){return e[o.name]=t[o.key],e},{})}var l="SERIALIZABLE",f=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},y=function(){function t(t,o){void 0===o&&(o=null);var n=this;this.parent=null,this.asyncValidators=t.asyncValidators||null,this.cls=o,this.errorMessages=t.errorMessages||null,this.id=t.id,this.label=t.label||null,this.name=t.id,this.relation=Array.isArray(t.relation)?t.relation:[],this.updateOn="string"==typeof t.updateOn?t.updateOn:null,this.validators=t.validators||null,this.disabled="boolean"==typeof t.disabled&&t.disabled,this.disabledUpdates=new e.Subject,this.disabledUpdates.subscribe(function(t){return n.disabled=t})}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasErrorMessages",{get:function(){return"object"==typeof this.errorMessages&&null!==this.errorMessages},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return u(this)},t.isValidatorDescriptor=function(t){return null!==t&&"object"==typeof t&&(t.hasOwnProperty("name")&&t.hasOwnProperty("args"))},f([s(),d("design:type",Object)],t.prototype,"asyncValidators",void 0),f([s(),d("design:type",Object)],t.prototype,"cls",void 0),f([s("disabled"),d("design:type",Boolean)],t.prototype,"_disabled",void 0),f([s(),d("design:type",Object)],t.prototype,"errorMessages",void 0),f([s(),d("design:type",String)],t.prototype,"id",void 0),f([s(),d("design:type",Object)],t.prototype,"label",void 0),f([s(),d("design:type",Array)],t.prototype,"relation",void 0),f([s(),d("design:type",Object)],t.prototype,"updateOn",void 0),f([s(),d("design:type",Object)],t.prototype,"validators",void 0),t}(),_=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),h=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},O=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=function(t){function o(o,n){var r=t.call(this,o,n)||this;return r.hint=o.hint||null,r.required="boolean"==typeof o.required&&o.required,r.tabIndex=o.tabIndex||null,r.value=o.value||null,r.valueUpdates=new e.Subject,r.valueUpdates.subscribe(function(t){return r.value=t}),r}return _(o,t),Object.defineProperty(o.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!0,configurable:!0}),h([s(),O("design:type",Object)],o.prototype,"hint",void 0),h([s(),O("design:type",Boolean)],o.prototype,"required",void 0),h([s(),O("design:type",Object)],o.prototype,"tabIndex",void 0),h([s("value"),O("design:type",Object)],o.prototype,"_value",void 0),o}(y),g=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),v=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},b=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},A=function(){function t(t,e,o){void 0===e&&(e=[]),void 0===o&&(o=-1),this.$implicit=this,this.context=t,this.group=e,this.index=o}return Object.defineProperty(t.prototype,"parent",{get:function(){return this.context},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return this.group[t]},t.prototype.toJSON=function(){return u(this)},v([s(),b("design:type",Array)],t.prototype,"group",void 0),v([s(),b("design:type",Number)],t.prototype,"index",void 0),t}(),L="ARRAY",R=function(t){function e(e,o){var n=t.call(this,e,o)||this;if(n.groups=[],n.type=L,"function"!=typeof e.groupFactory)throw new Error("group factory function must be specified for DynamicFormArrayModel");if(n.groupFactory=e.groupFactory,n.groupAsyncValidators=e.groupAsyncValidators||null,n.groupPrototype=n.groupFactory(),n.groupValidators=e.groupValidators||null,n.initialCount="number"==typeof e.initialCount?e.initialCount:1,Array.isArray(e.groups))e.groups.forEach(function(t,e){n.groups.push(new A(n,t.group,t.index||e))});else for(var r=0;r<n.initialCount;r++)n.addGroup();return n}return g(e,t),e.prototype.updateGroupIndex=function(){this.groups.forEach(function(t,e){return t.index=e})},Object.defineProperty(e.prototype,"size",{get:function(){return this.groups.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){return this.groups[t]},e.prototype.addGroup=function(){return this.insertGroup(this.groups.length)},e.prototype.insertGroup=function(t){var e=new A(this,this.groupFactory());return this.groups.splice(t,0,e),this.updateGroupIndex(),e},e.prototype.moveGroup=function(t,e){(o=this.groups).splice.apply(o,[t+e,0].concat(this.groups.splice(t,1))),this.updateGroupIndex();var o},e.prototype.removeGroup=function(t){this.groups.splice(t,1),this.updateGroupIndex()},v([s(),b("design:type",Object)],e.prototype,"groupAsyncValidators",void 0),v([s(),b("design:type",Object)],e.prototype,"groupValidators",void 0),v([s(),b("design:type",Array)],e.prototype,"groups",void 0),v([s(),b("design:type",Number)],e.prototype,"initialCount",void 0),v([s(),b("design:type",Array)],e.prototype,"groupPrototype",void 0),v([s(),b("design:type",String)],e.prototype,"type",void 0),e}(y),E="on",I=["billing","shipping"],T=["fax","home","mobile","pager","work"],F=["street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","organization-title","organization","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo"],D=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"],C=function(){function t(){}return t.isAddressToken=function(t){return I.indexOf(t)>-1},t.isContactField=function(t){return D.indexOf(t)>-1},t.isContactToken=function(t){return T.indexOf(t)>-1},t.isField=function(t){return F.indexOf(t)>-1},t.isSectionToken=function(t){return t.startsWith("section-")},t.validate=function(t){var e=function(t,e){return t+"|"+e},o=I.reduce(e),n=T.reduce(e),r=F.reduce(e),i=D.reduce(e);return new RegExp("^(section-\\w+\\s{1})?(("+o+"){1}\\s)?(("+r+"){1}|(("+n+"){1}\\s{1}("+i+")))$").test(t)},t}(),j=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),N=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},P=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},M=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.autoComplete=e.autoComplete||E,n.autoFocus="boolean"==typeof e.autoFocus&&e.autoFocus,n.maxLength="number"==typeof e.maxLength?e.maxLength:null,n.minLength="number"==typeof e.minLength?e.minLength:null,n.placeholder=e.placeholder||"",n.prefix=e.prefix||null,n.readOnly="boolean"==typeof e.readOnly&&e.readOnly,n.spellCheck="boolean"==typeof e.spellCheck&&e.spellCheck,n.suffix=e.suffix||null,n}return j(e,t),N([s(),P("design:type",String)],e.prototype,"autoComplete",void 0),N([s(),P("design:type",Boolean)],e.prototype,"autoFocus",void 0),N([s(),P("design:type",Object)],e.prototype,"maxLength",void 0),N([s(),P("design:type",Object)],e.prototype,"minLength",void 0),N([s(),P("design:type",String)],e.prototype,"placeholder",void 0),N([s(),P("design:type",Object)],e.prototype,"prefix",void 0),N([s(),P("design:type",Boolean)],e.prototype,"readOnly",void 0),N([s(),P("design:type",Boolean)],e.prototype,"spellCheck",void 0),N([s(),P("design:type",Object)],e.prototype,"suffix",void 0),e}(m),S=function(){function t(){}return t.maskToString=function(e){return"string"==typeof e?e:e instanceof RegExp?e.toString():Array.isArray(e)?e.map(function(e){return t.maskToString(e)}):null},t.maskFromString=function(e){return"string"==typeof e?e.startsWith("/")&&e.endsWith("/")?new RegExp(e.slice(1,e.length-1)):e:Array.isArray(e)?e.map(function(e){return t.maskFromString(e)}):null},t.merge=function(e,o){if(void 0===o&&(o=null),void 0===e||null===e)return o;if("object"==typeof e){for(var n in e)e.hasOwnProperty(n)&&"object"==typeof e[n]&&(e[n]=t.merge(e[n],o?o[n]:null));return null!==o?Object.assign(o,e):e}return e},t.parseJSONReviver=function(t,e){var o=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/;return"string"==typeof e&&o.test(e)?new Date(e):e},t}(),w=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),U=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},x=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Y="INPUT",V="text",k=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.files=null,n.listId=null,n.type=Y,n.accept=e.accept||null,n.inputType=e.inputType||V,n.list=Array.isArray(e.list)?e.list:null,n.mask=e.mask||null,n.max=void 0!==e.max?e.max:null,n.min=void 0!==e.min?e.min:null,n.multiple="boolean"==typeof e.multiple?e.multiple:null,n.pattern=e.pattern||null,n.step="number"==typeof e.step?e.step:null,n.list&&(n.listId=n.id+"List"),n}return w(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return null!==this.mask&&(e.mask=S.maskToString(this.mask)),e},U([s(),x("design:type",Object)],e.prototype,"accept",void 0),U([s(),x("design:type",String)],e.prototype,"inputType",void 0),U([s(),x("design:type",Object)],e.prototype,"list",void 0),U([s(),x("design:type",Object)],e.prototype,"mask",void 0),U([s(),x("design:type",Object)],e.prototype,"max",void 0),U([s(),x("design:type",Object)],e.prototype,"min",void 0),U([s(),x("design:type",Object)],e.prototype,"multiple",void 0),U([s(),x("design:type",Object)],e.prototype,"pattern",void 0),U([s(),x("design:type",Object)],e.prototype,"step",void 0),U([s(),x("design:type",String)],e.prototype,"type",void 0),e}(M),G="END",B=function(){function t(t){this.templateRef=t,this.align=G,this.as=null}return t.decorators=[{type:o.Directive,args:[{selector:"ng-template[modelId],ng-template[modelType]"}]}],t.ctorParameters=function(){return[{type:o.TemplateRef}]},t.propDecorators={align:[{type:o.Input}],as:[{type:o.Input}],modelId:[{type:o.Input}],modelType:[{type:o.Input}]},t}(),K=function(){function t(){}return t.findActivationRelation=function(t){var e=t.find(function(t){return"DISABLE"===t.action||"ENABLE"===t.action});return void 0!==e?e:null},t.getRelatedFormControls=function(t,e){var o=[];return t.relation.forEach(function(n){return n.when.forEach(function(n){if(t.id===n.id)throw new Error("FormControl "+t.id+" cannot depend on itself");var r=e.get(n.id);r&&!o.some(function(t){return t===r})&&o.push(r)})}),o},t.isFormControlToBeDisabled=function(t,e){var o=e;return t.when.reduce(function(e,n,r){var i=o.get(n.id);return i&&"DISABLE"===t.action?!(r>0&&"AND"===t.connective&&!e)&&(!!(r>0&&"OR"===t.connective&&e)||(n.value===i.value||n.status===i.status)):!(!i||"ENABLE"!==t.action)&&(!!(r>0&&"AND"===t.connective&&e)||!(r>0&&"OR"===t.connective&&!e)&&!(n.value===i.value||n.status===i.status))},!1)},t}(),H={start:0,end:1,array:2};H[H.start]="start",H[H.end]="end",H[H.array]="array";var z=function(){function t(t,e,o){this.changeDetectorRef=t,this.layoutService=e,this.validationService=o,this.hasErrorMessaging=!1,this.inputTemplateList=null,this.templates=[],this.subscriptions=[]}return t.prototype.ngOnChanges=function(t){var e=this,o=t.group,n=t.model;if((o||n)&&this.model){if(this.unsubscribe(),this.group&&(this.control=this.group.get(this.model.id),this.subscriptions.push(this.control.valueChanges.subscribe(function(t){return e.onControlValueChanges(t)}))),this.subscriptions.push(this.model.disabledUpdates.subscribe(function(t){return e.onModelDisabledUpdates(t)})),this.model instanceof m){var r=this.model;this.subscriptions.push(r.valueUpdates.subscribe(function(t){return e.onModelValueUpdates(t)}))}this.model.relation.length>0&&this.setControlRelations()}},t.prototype.ngOnInit=function(){if(!this.model&&!this.group)throw new Error("no [model] or [group] input set for DynamicFormControlComponent")},t.prototype.ngAfterViewInit=function(){this.setTemplates(),this.changeDetectorRef.detectChanges()},t.prototype.ngOnDestroy=function(){this.unsubscribe()},Object.defineProperty(t.prototype,"errorMessages",{get:function(){return this.validationService.createErrorMessages(this.control,this.model)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showHint",{get:function(){return null!==this.model.hint},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasList",{get:function(){return null!==this.model.list},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalid",{get:function(){return this.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showErrorMessages",{get:function(){return this.hasErrorMessaging&&this.control.touched&&!this.hasFocus&&this.isInvalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateList",{get:function(){return null!==this.inputTemplateList?this.inputTemplateList:this.contentTemplateList},enumerable:!0,configurable:!0}),t.prototype.getClass=function(t,e,o){void 0===o&&(o=this.model);var n=this.layout&&this.layout[o.id]||o.cls;return this.layoutService.getClass(n,t,e)},t.prototype.createDynamicFormControlEvent=function(t,e){return{$event:t,context:this.context,control:this.control,group:this.group,model:this.model,type:e}},t.prototype.setTemplates=function(){var t=this;this.templateList.forEach(function(e){e.modelType!==t.model.type&&e.modelId!==t.model.id||null!==e.as||(t.model.type===L?t.templates[H.array]=e:"START"===e.align?t.templates[H.start]=e:e.align===G&&(t.templates[H.end]=e))})},t.prototype.setControlRelations=function(){var t=this,e=K.findActivationRelation(this.model.relation);if(null!==e){var o=e;this.updateModelDisabled(o),K.getRelatedFormControls(this.model,this.group).forEach(function(e){t.subscriptions.push(e.valueChanges.subscribe(function(){return t.updateModelDisabled(o)})),t.subscriptions.push(e.statusChanges.subscribe(function(){return t.updateModelDisabled(o)}))})}},t.prototype.updateModelDisabled=function(t){this.model.disabledUpdates.next(K.isFormControlToBeDisabled(t,this.group))},t.prototype.unsubscribe=function(){this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions=[]},t.prototype.onControlValueChanges=function(t){if(this.model instanceof m){var e=this.model;e.value!==t&&e.valueUpdates.next(t)}},t.prototype.onModelValueUpdates=function(t){this.control.value!==t&&this.control.setValue(t)},t.prototype.onModelDisabledUpdates=function(t){t?this.control.disable():this.control.enable()},t.prototype.onValueChange=function(e){if(e&&e instanceof Event){if(this.model.type===Y){var o=this.model;if("file"===o.inputType){var n=e.target||e.srcElement;o.files=n.files}}this.change.emit(this.createDynamicFormControlEvent(e,"change"))}else t.isDynamicFormControlEvent(e)?this.change.emit(e):this.change.emit(this.createDynamicFormControlEvent(e,"change"))},t.prototype.onBlur=function(e){t.isDynamicFormControlEvent(e)?this.blur.emit(e):(this.hasFocus=!1,this.blur.emit(this.createDynamicFormControlEvent(e,"blur")))},t.prototype.onFocus=function(e){t.isDynamicFormControlEvent(e)?this.focus.emit(e):(this.hasFocus=!0,this.focus.emit(this.createDynamicFormControlEvent(e,"focus")))},t.prototype.onCustomEvent=function(e,o){t.isDynamicFormControlEvent(e)?this.customEvent.emit(e):this.customEvent.emit(this.createDynamicFormControlEvent(e,o))},t.isDynamicFormControlEvent=function(t){return null!==t&&"object"==typeof t&&t.hasOwnProperty("$event")},t}(),X=function(){function t(t,e){this.formService=t,this.layoutService=e}return t.prototype.trackByFn=function(t,e){return e.id},t.prototype.getClass=function(t,e,o){var n=this.layoutService.findById(t.id,this.layout)||t.cls;return this.layoutService.getClass(n,e,o)},t.prototype.onEvent=function(t,e){switch(e){case"blur":this.blur.emit(t);break;case"change":this.change.emit(t);break;case"focus":this.focus.emit(t);break;case"custom":this.customEvent.emit(t)}},t}(),J=function(){function t(t,e){this.elementRef=t,this.renderer=e}return t.prototype.ngAfterViewInit=function(){this.dynamicId&&this.renderer.setAttribute(this.elementRef.nativeElement,"id",this.dynamicId)},t.decorators=[{type:o.Directive,args:[{selector:"[dynamicId]"}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2}]},t.propDecorators={dynamicId:[{type:o.Input}]},t}(),W=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},q=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Z="after",Q=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.labelPosition=e.labelPosition||Z,n.value="boolean"==typeof n.value&&n.value,n}return W(e,t),Object.defineProperty(e.prototype,"checked",{get:function(){return!!this.value},set:function(t){this.valueUpdates.next(t)},enumerable:!0,configurable:!0}),e.prototype.toggle=function(){this.checked=!this.checked},$([s(),q("design:type",String)],e.prototype,"labelPosition",void 0),e}(m),tt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),et=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ot=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},nt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.format=e.format||null,n.max=e.max||null,n.min=e.min||null,n.placeholder=e.placeholder||null,n}return tt(e,t),et([s(),ot("design:type",Object)],e.prototype,"format",void 0),et([s(),ot("design:type",Object)],e.prototype,"max",void 0),et([s(),ot("design:type",Object)],e.prototype,"min",void 0),et([s(),ot("design:type",Object)],e.prototype,"placeholder",void 0),e}(m),rt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),it=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},at=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ct=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.multiple="boolean"==typeof e.multiple&&e.multiple,n}return rt(e,t),it([s(),at("design:type",Boolean)],e.prototype,"multiple",void 0),e}(m),st=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),pt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ut=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},lt=function(){function t(t){this.disabled="boolean"==typeof t.disabled&&t.disabled,this.label=t.label||null,this.value=t.value}return Object.defineProperty(t.prototype,"text",{get:function(){return this.label},set:function(t){this.label=t},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return u(this)},pt([s(),ut("design:type",Boolean)],t.prototype,"disabled",void 0),pt([s(),ut("design:type",Object)],t.prototype,"label",void 0),pt([s(),ut("design:type",Object)],t.prototype,"value",void 0),t}(),ft=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n._options=[],n.options=e.options,n}return st(e,t),e.prototype.updateOptions$=function(){this.options$=n.Observable.of(this.options)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(t){var e=this;Array.isArray(t)?(this._options=t.map(function(t){return new lt(t)}),this.updateOptions$()):t instanceof n.Observable?this.options$=t.map(function(t){var o=t.map(function(t){return new lt(t)});return e._options=o,o}):this.updateOptions$()},enumerable:!0,configurable:!0}),e.prototype.add=function(t){return this.insert(this.options.length,t)},e.prototype.get=function(t){return this.options[t]},e.prototype.insert=function(t,e){var o=new lt(e);return this.options.splice(t,0,o),this.updateOptions$(),o},e.prototype.remove=function(){for(var t=this,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];e.forEach(function(e){return t.options.splice(e,1)}),this.updateOptions$()},pt([s("options"),ut("design:type",Array)],e.prototype,"_options",void 0),e}(m),dt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),yt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},_t=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ht="CHECKBOX",Ot=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=ht,n.indeterminate="boolean"==typeof e.indeterminate&&e.indeterminate,n}return dt(e,t),yt([s(),_t("design:type",Boolean)],e.prototype,"indeterminate",void 0),yt([s(),_t("design:type",String)],e.prototype,"type",void 0),e}(Q),mt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},vt=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},bt="GROUP",At=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.group=[],n.type=bt,n.group=Array.isArray(e.group)?e.group:[],n.legend=e.legend||null,n}return mt(e,t),e.prototype.get=function(t){return this.group[t]},e.prototype.set=function(t,e){this.group[t]=e},e.prototype.add=function(t){this.group.push(t)},e.prototype.insert=function(t,e){this.group.splice(t,0,e)},e.prototype.move=function(t,e){(o=this.group).splice.apply(o,[t+e,0].concat(this.group.splice(t,1)));var o},e.prototype.remove=function(t){this.group.splice(t,1)},e.prototype.size=function(){return this.group.length},gt([s(),vt("design:type",Array)],e.prototype,"group",void 0),gt([s(),vt("design:type",Object)],e.prototype,"legend",void 0),gt([s(),vt("design:type",String)],e.prototype,"type",void 0),e}(y),Lt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Rt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Et=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},It="CHECKBOX_GROUP",Tt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=It,n}return Lt(e,t),e.prototype.check=function(){for(var t=this,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];e.forEach(function(e){return t.group[e].checked=!0})},e.prototype.uncheck=function(){for(var t=this,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];e.forEach(function(e){return t.group[e].checked=!1})},e.prototype.checkAll=function(){this.group.forEach(function(t){return t.checked=!0})},e.prototype.uncheckAll=function(){this.group.forEach(function(t){return t.checked=!1})},Rt([s(),Et("design:type",Array)],e.prototype,"group",void 0),Rt([s(),Et("design:type",String)],e.prototype,"type",void 0),e}(At),Ft=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Dt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ct=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},jt="DATEPICKER",Nt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=jt,n.focusedDate=e.focusedDate||null,n.inline="boolean"==typeof e.inline&&e.inline,n.toggleIcon="string"==typeof e.toggleIcon?e.toggleIcon:null,n}return Ft(e,t),Dt([s(),Ct("design:type",Object)],e.prototype,"focusedDate",void 0),Dt([s(),Ct("design:type",Boolean)],e.prototype,"inline",void 0),Dt([s(),Ct("design:type",Object)],e.prototype,"toggleIcon",void 0),Dt([s(),Ct("design:type",String)],e.prototype,"type",void 0),e}(nt),Pt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Mt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},St=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},wt="EDITOR",Ut=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=wt,n}return Pt(e,t),Mt([s(),St("design:type",String)],e.prototype,"type",void 0),e}(M),xt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Yt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Vt=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},kt="FILE_UPLOAD",Gt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=kt,n.accept=Array.isArray(e.accept)?e.accept:null,n.autoUpload="boolean"!=typeof e.autoUpload||e.autoUpload,n.maxSize="number"==typeof e.maxSize?e.maxSize:null,n.minSize="number"==typeof e.minSize?e.minSize:null,n.removeUrl=e.removeUrl||null,n.showFileList="boolean"!=typeof e.showFileList||e.showFileList,n.url=e.url||null,n}return xt(e,t),Yt([s(),Vt("design:type",Object)],e.prototype,"accept",void 0),Yt([s(),Vt("design:type",Boolean)],e.prototype,"autoUpload",void 0),Yt([s(),Vt("design:type",Object)],e.prototype,"maxSize",void 0),Yt([s(),Vt("design:type",Object)],e.prototype,"minSize",void 0),Yt([s(),Vt("design:type",Object)],e.prototype,"removeUrl",void 0),Yt([s(),Vt("design:type",Boolean)],e.prototype,"showFileList",void 0),Yt([s(),Vt("design:type",Object)],e.prototype,"url",void 0),Yt([s(),Vt("design:type",String)],e.prototype,"type",void 0),e}(ct),Bt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ht=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},zt="RADIO_GROUP",Xt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=zt,n.legend=e.legend||null,n}return Bt(e,t),e.prototype.select=function(t){this.valueUpdates.next(this.get(t).value)},Kt([s(),Ht("design:type",Object)],e.prototype,"legend",void 0),Kt([s(),Ht("design:type",String)],e.prototype,"type",void 0),e}(ft),Jt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wt=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},$t=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},qt="RATING",Zt=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=qt,n.max="number"==typeof e.max?e.max:10,n}return Jt(e,t),Wt([s(),$t("design:type",Object)],e.prototype,"max",void 0),Wt([s(),$t("design:type",String)],e.prototype,"type",void 0),e}(m),Qt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),te=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ee=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},oe="SELECT",ne=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=oe,n.filterable="boolean"==typeof e.filterable&&e.filterable,n.multiple="boolean"==typeof e.multiple&&e.multiple,n.placeholder=e.placeholder||"",n}return Qt(e,t),e.prototype.select=function(){for(var t=this,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=this.multiple?e.map(function(e){return t.get(e).value}):this.get(e[0]).value;this.valueUpdates.next(n)},te([s(),ee("design:type",Boolean)],e.prototype,"filterable",void 0),te([s(),ee("design:type",Boolean)],e.prototype,"multiple",void 0),te([s(),ee("design:type",String)],e.prototype,"placeholder",void 0),te([s(),ee("design:type",String)],e.prototype,"type",void 0),e}(ft),re=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ie=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ae=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ce="SLIDER",se=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=ce,n.max="number"==typeof e.max?e.max:10,n.min="number"==typeof e.min?e.min:0,n.step="number"==typeof e.step?e.step:1,n.vertical="boolean"==typeof e.vertical&&e.vertical,n}return re(e,t),ie([s(),ae("design:type",Object)],e.prototype,"max",void 0),ie([s(),ae("design:type",Object)],e.prototype,"min",void 0),ie([s(),ae("design:type",Object)],e.prototype,"step",void 0),ie([s(),ae("design:type",Boolean)],e.prototype,"vertical",void 0),ie([s(),ae("design:type",String)],e.prototype,"type",void 0),e}(m),pe=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ue=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},le=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},fe="SWITCH",de=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=fe,n.offLabel=e.offLabel||null,n.onLabel=e.onLabel||null,n}return pe(e,t),ue([s(),le("design:type",Object)],e.prototype,"offLabel",void 0),ue([s(),le("design:type",Object)],e.prototype,"onLabel",void 0),ue([s(),le("design:type",String)],e.prototype,"type",void 0),e}(Q),ye=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_e=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},he=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Oe="TEXTAREA",me="soft",ge=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=Oe,n.cols="number"==typeof e.cols?e.cols:20,n.rows="number"==typeof e.rows?e.rows:2,n.wrap=e.wrap||me,n}return ye(e,t),_e([s(),he("design:type",Number)],e.prototype,"cols",void 0),_e([s(),he("design:type",Number)],e.prototype,"rows",void 0),_e([s(),he("design:type",String)],e.prototype,"wrap",void 0),_e([s(),he("design:type",String)],e.prototype,"type",void 0),e}(M),ve=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),be=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ae=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Le="TIMEPICKER",Re=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.type=Le,n.meridian="boolean"==typeof e.meridian&&e.meridian,n.showSeconds="boolean"==typeof e.showSeconds&&e.showSeconds,n}return ve(e,t),be([s(),Ae("design:type",Boolean)],e.prototype,"meridian",void 0),be([s(),Ae("design:type",Boolean)],e.prototype,"showSeconds",void 0),be([s(),Ae("design:type",String)],e.prototype,"type",void 0),e}(nt),Ee=function(){function t(t,e){this.NG_VALIDATORS=t,this.NG_ASYNC_VALIDATORS=e}return t.prototype.getValidatorFn=function(t,e,o){void 0===e&&(e=null),void 0===o&&(o=this.NG_VALIDATORS);var n;if(a.Validators.hasOwnProperty(t)?n=a.Validators[t]:o&&(n=o.find(function(e){return e.name===t})),void 0===n)throw new Error('validator "'+t+'" is not provided via NG_VALIDATORS or NG_ASYNC_VALIDATORS');return null!==e?n(e):n},t.prototype.getValidatorFns=function(t,e){var o=this;void 0===e&&(e=this.NG_VALIDATORS);var n=[];return t&&"object"==typeof t&&(n=Object.keys(t).map(function(n){var r=t[n];if(y.isValidatorDescriptor(r)){var i=r;return o.getValidatorFn(i.name,i.args,e)}return o.getValidatorFn(n,r,e)})),n},t.prototype.parseErrorMessageTemplate=function(t,e,o){return void 0===o&&(o=null),t.replace(/{{\s*(.+?)\s*}}/gm,function(t,n){var r=e,i=n;return n.indexOf("validator.")>=0&&o&&(r=o,i=n.replace("validator.","")),r[i]?r[i]:null})},t.prototype.getValidator=function(t,e){return void 0===e&&(e=null),this.getValidatorFn(t,e)},t.prototype.getAsyncValidator=function(t,e){return void 0===e&&(e=null),this.getValidatorFn(t,e,this.NG_ASYNC_VALIDATORS)},t.prototype.getValidators=function(t){return this.getValidatorFns(t)},t.prototype.getAsyncValidators=function(t){return this.getValidatorFns(t,this.NG_ASYNC_VALIDATORS)},t.prototype.updateValidators=function(t,e,o){o.validators=t,null===t?e.clearValidators():e.setValidators(this.getValidators(t))},t.prototype.updateAsyncValidators=function(t,e,o){o.asyncValidators=t,null===t?e.clearAsyncValidators():e.setAsyncValidators(this.getAsyncValidators(t))},t.prototype.createErrorMessages=function(t,e){var o=this,n=[];if("object"==typeof e.errorMessages&&null!==e.errorMessages){var r=e.errorMessages;Object.keys(t.errors||{}).forEach(function(i){var a=i;if("minlength"!==i&&"maxlength"!==i||a.replace("length","Length"),r.hasOwnProperty(a)){var c=t.getError(i),s=r[a];n.push(o.parseErrorMessageTemplate(s,e,c))}})}return n},t.prototype.isFormHook=function(t){return"string"==typeof t&&-1!==["blur","change","submit"].indexOf(t)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Inject,args:[a.NG_VALIDATORS]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Inject,args:[a.NG_ASYNC_VALIDATORS]}]}]},t}(),Ie=function(){function t(t){this.validationService=t}return t.prototype.createAbstractControlOptions=function(t,e,o){return void 0===t&&(t=null),void 0===e&&(e=null),void 0===o&&(o=null),{asyncValidators:null!==e?this.validationService.getAsyncValidators(e):null,validators:null!==t?this.validationService.getValidators(t):null,updateOn:null!==o&&this.validationService.isFormHook(o)?o:"change"}},t.prototype.createFormArray=function(t){for(var e=[],o=this.createAbstractControlOptions(t.validators,t.asyncValidators,t.updateOn),n=0;n<t.size;n++){var r=t.get(n),i=this.createAbstractControlOptions(t.groupValidators,t.groupAsyncValidators,t.updateOn);e.push(this.createFormGroup(r.group,i,r))}return new a.FormArray(e,o)},t.prototype.createFormGroup=function(t,e,o){var n=this;void 0===e&&(e=null),void 0===o&&(o=null);var r={};return t.forEach(function(t){switch(t.parent=o,t.type){case L:r[t.id]=n.createFormArray(t);break;case bt:case It:var e=t,i=n.createAbstractControlOptions(e.validators,e.asyncValidators,e.updateOn);r[t.id]=n.createFormGroup(e.group,i,e);break;default:var c=t,s={value:c.value,disabled:c.disabled},p=n.createAbstractControlOptions(c.validators,c.asyncValidators,c.updateOn);r[t.id]=new a.FormControl(s,p)}}),new a.FormGroup(r,e)},t.prototype.getPathSegment=function(t){return t instanceof A?t.index.toString():t.id},t.prototype.getPath=function(t){for(var e=[this.getPathSegment(t)],o=t.parent;o;)e.unshift(this.getPathSegment(o)),o=o.parent;return e},t.prototype.addFormGroupControl=function(t,e){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];if(e instanceof At)this.insertFormGroupControl.apply(this,[e.size(),t,e].concat(o));else{var r=e;this.insertFormGroupControl.apply(this,[r.length,t,r].concat(o))}},t.prototype.moveFormGroupControl=function(t,e,o){if(o instanceof At)o.move(t,e);else{var n=o;n.splice.apply(n,[t+e,0].concat(n.splice(t,1)))}},t.prototype.insertFormGroupControl=function(t,e,o){for(var n=[],r=3;r<arguments.length;r++)n[r-3]=arguments[r];var i=o instanceof At?o:null,a=this.createFormGroup(n,null,i).controls;Object.keys(a).forEach(function(r,i){var c=n[i];o instanceof At?o.insert(t,c):o.splice(t,0,c),e.addControl(r,a[r])})},t.prototype.removeFormGroupControl=function(t,e,o){o instanceof At?(e.removeControl(o.get(t).id),o.remove(t)):(e.removeControl(o[t].id),o.splice(t,1))},t.prototype.addFormArrayGroup=function(t,e){var o=e.addGroup();t.push(this.createFormGroup(o.group,null,o))},t.prototype.insertFormArrayGroup=function(t,e,o){var n=o.insertGroup(t);e.insert(t,this.createFormGroup(n.group,null,n))},t.prototype.moveFormArrayGroup=function(t,e,o,n){var r=t+e,i=e>=0;if(!(t>=0&&t<n.size&&r>=0&&r<n.size))throw new Error("form array group cannot be moved due to index or new index being out of bounds");for(var a=[],c=i?t:r;c<=(i?r:t);c++)a.push(o.at(c));a.forEach(function(e,n){var c;c=i?0===n?r:t+n-1:n===a.length-1?r:r+n+1,o.setControl(c,e)}),n.moveGroup(t,e)},t.prototype.removeFormArrayGroup=function(t,e,o){e.removeAt(t),o.removeGroup(t)},t.prototype.clearFormArray=function(t,e){for(;t.length>0;)this.removeFormArrayGroup(0,t,e)},t.prototype.findById=function(t,e){var o=null,n=function(t,e){for(var r=0,i=e;r<i.length;r++){var a=i[r];if(a.id===t){o=a;break}a instanceof At&&n(t,a.group)}};return n(t,e),o},t.prototype.fromJSON=function(t){var e=this,o=[];return("string"==typeof t?JSON.parse(t,S.parseJSONReviver):t).forEach(function(t){switch(t.type){case L:var n=t;Array.isArray(n.groups)&&n.groups.forEach(function(t){t.group=e.fromJSON(t.group)}),n.groupFactory=function(){return e.fromJSON(n.groupPrototype||n.origin)},o.push(new R(t,t.cls));break;case ht:o.push(new Ot(t,t.cls));break;case It:t.group=e.fromJSON(t.group),o.push(new Tt(t,t.cls));break;case jt:o.push(new Nt(t,t.cls));break;case wt:o.push(new Ut(t,t.cls));break;case kt:t.value=null,o.push(new Gt(t,t.cls));break;case bt:t.group=e.fromJSON(t.group),o.push(new At(t,t.cls));break;case Y:var r=t;null!==r.mask&&(r.mask=S.maskFromString(r.mask)),o.push(new k(t,t.cls));break;case zt:o.push(new Xt(t,t.cls));break;case qt:o.push(new Zt(t,t.cls));break;case oe:o.push(new ne(t,t.cls));break;case ce:o.push(new se(t,t.cls));break;case fe:o.push(new de(t,t.cls));break;case Oe:o.push(new ge(t,t.cls));break;case Le:o.push(new Re(t,t.cls));break;default:throw new Error('unknown form control model type defined on JSON object with id "'+t.id+'"')}}),o},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:Ee}]},t}(),Te=function(){function t(){}return t.prototype.findById=function(t,e){if(null!==e&&"object"==typeof e)for(var o=0,n=Object.keys(e);o<n.length;o++){var r=n[o];if(r===t)return e[r]}return null},t.prototype.getClass=function(t,e,o){if(null!==t&&t.hasOwnProperty(e)){var n=t[e];if(n.hasOwnProperty(o))return n[o]}return""},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[]},t}(),Fe=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[Ie,Te,Ee]}},t.decorators=[{type:o.NgModule,args:[{imports:[c.CommonModule,a.ReactiveFormsModule],declarations:[J,B],exports:[J,B]}]}],t.ctorParameters=function(){return[]},t}();t.DynamicFormComponent=X,t.DYNAMIC_FORM_CONTROL_EVENT_TYPE_BLUR="blur",t.DYNAMIC_FORM_CONTROL_EVENT_TYPE_CHANGE="change",t.DYNAMIC_FORM_CONTROL_EVENT_TYPE_FOCUS="focus",t.DYNAMIC_FORM_CONTROL_EVENT_TYPE_CUSTOM="custom",t.DynamicFormControlComponentTemplatePosition=H,t.DynamicFormControlComponent=z,t.METADATA_KEY_SERIALIZABLE=l,t.serializable=s,t.getSerializables=p,t.serialize=u,t.DYNAMIC_TEMPLATE_DIRECTIVE_ALIGN_START="START",t.DYNAMIC_TEMPLATE_DIRECTIVE_ALIGN_END=G,t.DynamicTemplateDirective=B,t.DynamicIdDirective=J,t.DynamicFormControlModel=y,t.DynamicFormValueControlModel=m,t.DYNAMIC_CHECK_CONTROL_LABEL_POSITION_AFTER=Z,t.DYNAMIC_CHECK_CONTROL_LABEL_POSITION_BEFORE="before",t.DynamicCheckControlModel=Q,t.DynamicDateControlModel=nt,t.DynamicFileControlModel=ct,t.DynamicInputControlModel=M,t.DynamicFormOption=lt,t.DynamicOptionControlModel=ft,t.DYNAMIC_FORM_CONTROL_ACTION_DISABLE="DISABLE",t.DYNAMIC_FORM_CONTROL_ACTION_ENABLE="ENABLE",t.DYNAMIC_FORM_CONTROL_CONNECTIVE_AND="AND",t.DYNAMIC_FORM_CONTROL_CONNECTIVE_OR="OR",t.DYNAMIC_FORM_CONTROL_TYPE_CHECKBOX=ht,t.DynamicCheckboxModel=Ot,t.DYNAMIC_FORM_CONTROL_TYPE_CHECKBOX_GROUP=It,t.DynamicCheckboxGroupModel=Tt,t.DYNAMIC_FORM_CONTROL_TYPE_DATEPICKER=jt,t.DynamicDatePickerModel=Nt,t.DYNAMIC_FORM_CONTROL_TYPE_EDITOR=wt,t.DynamicEditorModel=Ut,t.DYNAMIC_FORM_CONTROL_TYPE_FILE_UPLOAD=kt,t.DynamicFileUploadModel=Gt,t.DYNAMIC_FORM_CONTROL_TYPE_GROUP=bt,t.DynamicFormGroupModel=At,t.DynamicFormArrayGroupModel=A,t.DYNAMIC_FORM_CONTROL_TYPE_ARRAY=L,t.DynamicFormArrayModel=R,t.DYNAMIC_FORM_CONTROL_TYPE_INPUT=Y,t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_COLOR="color",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_DATE="date",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_DATETIME_LOCAL="datetime-local",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_EMAIL="email",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_FILE="file",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_MONTH="month",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_NUMBER="number",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_PASSWORD="password",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_RANGE="range",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_SEARCH="search",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_TEL="tel",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_TEXT=V,t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_TIME="time",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_URL="url",t.DYNAMIC_FORM_CONTROL_INPUT_TYPE_WEEK="week",t.DynamicInputModel=k,t.DYNAMIC_FORM_CONTROL_TYPE_RADIO_GROUP=zt,t.DynamicRadioGroupModel=Xt,t.DYNAMIC_FORM_CONTROL_TYPE_RATING=qt,t.DynamicRatingModel=Zt,t.DYNAMIC_FORM_CONTROL_TYPE_SELECT=oe,t.DynamicSelectModel=ne,t.DYNAMIC_FORM_CONTROL_TYPE_SLIDER=ce,t.DynamicSliderModel=se,t.DYNAMIC_FORM_CONTROL_TYPE_SWITCH=fe,t.DynamicSwitchModel=de,t.DYNAMIC_FORM_CONTROL_TYPE_TEXTAREA=Oe,t.DYNAMIC_FORM_TEXTAREA_WRAP_HARD="hard",t.DYNAMIC_FORM_TEXTAREA_WRAP_SOFT=me,t.DynamicTextAreaModel=ge,t.DYNAMIC_FORM_CONTROL_TYPE_TIMEPICKER=Le,t.DynamicTimePickerModel=Re,t.DynamicFormService=Ie,t.DynamicFormLayoutService=Te,t.DynamicFormValidationService=Ee,t.AUTOCOMPLETE_OFF="off",t.AUTOCOMPLETE_ON=E,t.AUTOFILL_TOKEN_BILLING="billing",t.AUTOFILL_TOKEN_SHIPPING="shipping",t.AUTOFILL_TOKENS_ADDRESS=I,t.AUTOFILL_TOKEN_HOME="home",t.AUTOFILL_TOKEN_WORK="work",t.AUTOFILL_TOKEN_MOBILE="mobile",t.AUTOFILL_TOKEN_FAX="fax",t.AUTOFILL_TOKEN_PAGER="pager",t.AUTOFILL_TOKENS_CONTACT=T,t.AUTOFILL_FIELD_STREET_ADDRESS="street-address",t.AUTOFILL_FIELD_ADDRESS_LINE_1="address-line1",t.AUTOFILL_FIELD_ADDRESS_LINE_2="address-line2",t.AUTOFILL_FIELD_ADDRESS_LINE_3="address-line3",t.AUTOFILL_FIELD_ADDRESS_LEVEL_4="address-level4",t.AUTOFILL_FIELD_ADDRESS_LEVEL_3="address-level3",t.AUTOFILL_FIELD_ADDRESS_LEVEL_2="address-level2",t.AUTOFILL_FIELD_ADDRESS_LEVEL_1="address-level1",t.AUTOFILL_FIELD_NAME="name",t.AUTOFILL_FIELD_HONORIFIC_PREFIX="honorific-prefix",t.AUTOFILL_FIELD_GIVEN_NAME="given-name",t.AUTOFILL_FIELD_ADDITIONAL_NAME="additional-name",t.AUTOFILL_FIELD_FAMILY_NAME="family-name",t.AUTOFILL_FIELD_HONORIFIC_SUFFIX="honorific-suffix",t.AUTOFILL_FIELD_NICKNAME="nickname",t.AUTOFILL_FIELD_USERNAME="username",t.AUTOFILL_FIELD_NEW_PASSWORD="new-password",t.AUTOFILL_FIELD_CURRENT_PASSWORD="current-password",t.AUTOFILL_FIELD_ORGANIZATION_TITLE="organization-title",t.AUTOFILL_FIELD_ORGANIZATION="organization",t.AUTOFILL_FIELD_COUNTRY="country",t.AUTOFILL_FIELD_COUNTRY_NAME="country-name",t.AUTOFILL_FIELD_POSTAL_CODE="postal-code",t.AUTOFILL_FIELD_CC_NAME="cc-name",t.AUTOFILL_FIELD_CC_GIVEN_NAME="cc-given-name",t.AUTOFILL_FIELD_CC_ADDITIONAL_NAME="cc-additional-name",t.AUTOFILL_FIELD_CC_FAMILY_NAME="cc-family-name",t.AUTOFILL_FIELD_CC_NUMBER="cc-number",t.AUTOFILL_FIELD_CC_EXP="cc-exp",t.AUTOFILL_FIELD_CC_EXP_MONTH="cc-exp-month",t.AUTOFILL_FIELD_CC_EXP_YEAR="cc-exp-year",t.AUTOFILL_FIELD_CC_CSC="cc-csc",t.AUTOFILL_FIELD_CC_TYPE="cc-type",t.AUTOFILL_FIELD_TRANSACTION_CURRENCY="transaction-currency",t.AUTOFILL_FIELD_TRANSACTION_AMOUNT="transaction-amount",t.AUTOFILL_FIELD_LANGUAGE="language",t.AUTOFILL_FIELD_BDAY="bday",t.AUTOFILL_FIELD_BDAY_DAY="bday-day",t.AUTOFILL_FIELD_BDAY_MONTH="bday-month",t.AUTOFILL_FIELD_BDAY_YEAR="bday-year",t.AUTOFILL_FIELD_SEX="sex",t.AUTOFILL_FIELD_URL="url",t.AUTOFILL_FIELD_PHOTO="photo",t.AUTOFILL_FIELDS=F,t.AUTOFILL_FIELD_TEL="tel",t.AUTOFILL_FIELD_TEL_COUNTRY_CODE="tel-country-code",t.AUTOFILL_FIELD_TEL_NATIONAL="tel-national",t.AUTOFILL_FIELD_TEL_AREA_CODE="tel-area-code",t.AUTOFILL_FIELD_TEL_LOCAL="tel-local",t.AUTOFILL_FIELD_TEL_LOCAL_PREFIX="tel-local-prefix",t.AUTOFILL_FIELD_TEL_LOCAL_SUFFIX="tel-local-suffix",t.AUTOFILL_FIELD_TEL_LOCAL_EXTENSION="tel-extension",t.AUTOFILL_FIELD_EMAIL="email",t.AUTOFILL_FIELD_IMPP="impp",t.AUTOFILL_FIELDS_CONTACT=D,t.AutoFillUtils=C,t.Utils=S,t.RelationUtils=K,t.DynamicFormsCoreModule=Fe,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=core.umd.min.js.map
{
"name": "@ng-dynamic-forms/core",
"version": "5.1.0",
"version": "5.1.1",
"description": "A rapid form development library for Angular 2.x and higher",

@@ -5,0 +5,0 @@ "main": "./bundles/core.umd.js",

@@ -72,4 +72,4 @@ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from "@angular/core";

onFocus($event: FocusEvent | DynamicFormControlEvent | any): void;
onCustomEvent($event: any, type?: string | null): void;
onCustomEvent($event: any, type: string): void;
static isDynamicFormControlEvent($event: any): boolean;
}

@@ -10,3 +10,3 @@ import { DynamicFormControlClsConfig } from "../dynamic-form-control.model";

export declare class DynamicDatePickerModel extends DynamicDateControlModel {
focusedDate: DynamicDateControlValue;
focusedDate: DynamicDateControlValue | null;
inline: boolean;

@@ -13,0 +13,0 @@ toggleIcon: string | null;

@@ -10,3 +10,3 @@ export interface DynamicFormControlLayoutConfig {

option?: string;
[key: string]: string;
[key: string]: string | undefined;
}

@@ -16,3 +16,3 @@ export interface DynamicFormControlLayout {

grid?: DynamicFormControlLayoutConfig;
[key: string]: DynamicFormControlLayoutConfig;
[key: string]: DynamicFormControlLayoutConfig | undefined;
}

@@ -19,0 +19,0 @@ export declare type DynamicFormLayout = {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc