eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\",{\n\tvalue:true\n});\nexports.EASY_FORM_VIEWER_DIRECTIVE_NAME=undefined;\n\nvar_edaEasyFormViewerMainTemplate=__webpack_require__(9);\n\nvar_edaEasyFormViewerMainTemplate2=_interopRequireDefault(_edaEasyFormViewerMainTemplate);\n\nvar_edaEasyFormViewerMainDirective=__webpack_require__(10);\n\nvar_edaEasyFormViewerMain=__webpack_require__(11);\n\nfunction_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{default:obj};}\n\nvarEASY_FORM_VIEWER_DIRECTIVE_NAME='edaEasyFormViewer';/* global angular */\n\n\nfunctionedaFormViewerDirective($modelsTranslator){\n\tvardirective={\n\t\trestrict:'E',\n\t\tscope:{\n\t\t\tedaEasyFormViewerDataModel:'=?',\n\t\t\tedaEasyFormViewerEasyFormGeneratorFieldsModel:'=?',\n\t\t\tedaEasyFormViewerSubmitButtonText:'@?',\n\t\t\tedaEasyFormViewerCancelButtonText:'@?',\n\t\t\tedaEasyFormViewerSubmitFormEvent:'&?',\n\t\t\tedaEasyFormViewerCancelFormEvent:'&?'\n\t\t},\n\t\treplace:false,\n\t\tcontroller:_edaEasyFormViewerMain.EASY_FORM_VIEWER_CONTROLLER,\n\t\tcontrollerAs:_edaEasyFormViewerMain.EASY_FORM_VIEWER_CONTROLLERAS,\n\t\ttemplate:_edaEasyFormViewerMainTemplate2.default,\n\t\tlink:linkFct\n\t};\n\treturndirective;\n\n\tfunctionlinkFct(scope){\n\t\tscope.vm.model={};\n\t\tscope.vm.fields=loadFieldsModel();\n\t\tscope.vm.submitText=scope.edaEasyFormViewerSubmitButtonText||'Submit';\n\t\tscope.vm.cancelText=scope.edaEasyFormViewerCancelButtonText||'Cancel';\n\n\t\tscope.$watch(fieldsModelToWatch,fieldsModelWatcher,true);\n\t\tscope.$watch(dataModelToWatch,dataModelWatcher,true);\n\t\tscope.$watch(submitBtnTextToWatch,submitBtnTextWatcher);\n\t\tscope.$watch(cancelBtnTextToWatch,cancelBtnTextWatcher);\n\t\tscope.$watch(submitEventToWatch,submitEventWatcher);\n\t\tscope.$watch(cancelEventToWatch,cancelEventWatcher);\n\n\t\tfunctiondataModelToWatch(){\n\t\t\treturnscope.vm.model;\n\t\t}\n\n\t\tfunctionfieldsModelToWatch(){\n\t\t\treturnscope.edaEasyFormViewerEasyFormGeneratorFieldsModel;\n\t\t}\n\n\t\tfunctionsubmitBtnTextToWatch(){\n\t\t\treturnscope.edaEasyFormViewerSubmitButtonText;\n\t\t}\n\n\t\tfunctioncancelBtnTextToWatch(){\n\t\t\treturnscope.edaEasyFormViewerCancelButtonText;\n\t\t}\n\n\t\tfunctionsubmitEventToWatch(){\n\t\t\treturnscope.vm.hasJustSumitted;\n\t\t}\n\n\t\tfunctioncancelEventToWatch(){\n\t\t\treturnscope.vm.hasJustCancelled;\n\t\t}\n\n\t\tfunctionfieldsModelWatcher(newFieldsModel){\n\t\t\tscope.vm.fields=loadExistingConfigurationModel(newFieldsModel);\n\t\t}\n\n\t\tfunctionsubmitBtnTextWatcher(newSubmitBtntext,oldSubmitBtntext){\n\t\t\tif(newSubmitBtntext!==oldSubmitBtntext){\n\t\t\t\tscope.vm.submitText=newSubmitBtntext||'Submit';\n\t\t\t}\n\t\t}\n\n\t\tfunctioncancelBtnTextWatcher(newCancelBtntext,oldCancelBtntext){\n\t\t\tif(newCancelBtntext!==oldCancelBtntext){\n\t\t\t\tscope.vm.cancelText=newCancelBtntext||'Submit';\n\t\t\t}\n\t\t}\n\n\t\tfunctiondataModelWatcher(newDataModel){\n\t\t\tscope.edaEasyFormViewerDataModel=newDataModel;\n\t\t}\n\n\t\tfunctionsubmitEventWatcher(newSubmitEvent){\n\t\t\tif(newSubmitEvent===true){\n\t\t\t\tif(angular.isFunction(scope.edaEasyFormViewerSubmitFormEvent)){\n\t\t\t\t\tvar_dataModelSubmitted=scope.vm.model;\n\t\t\t\t\tscope.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:_dataModelSubmitted});\n\t\t\t\t}\n\t\t\t}\n\t\t\tscope.vm.hasJustSumitted=false;\n\t\t}\n\n\t\tfunctioncancelEventWatcher(newCancelEvent){\n\t\t\tif(newCancelEvent===true){\n\t\t\t\tif(angular.isFunction(scope.edaEasyFormViewerCancelFormEvent)){\n\t\t\t\t\tscope.edaEasyFormViewerCancelFormEvent();\n\t\t\t\t}\n\t\t\t}\n\t\t\tscope.vm.hasJustCancelled=false;\n\t\t}\n\n\t\t/**\n \t* TODO : check if formly or easy form generato fields model\n \t*\n \t* by default or if both -> easy for generator is chosen\n \t*/\n\t\tfunctionloadFieldsModel(){\n\t\t\tvarinitialFieldsModel=angular.isArray(scope.edaEasyFormViewerEasyFormGeneratorFieldsModel
eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\",{\n\tvalue:true\n});\n/* global angular */\n\nvarEMPTY_FIELD_MODEL=[{\n\t'line':1,\n\t'activeColumn':1,\n\t'columns':[{\n\t\t'numColumn':1,\n\t\t'exist':true,\n\t\t'control':{\n\t\t\t'type':'none',\n\t\t\t'key':'none'\n\t\t}\n\t}]\n}];\n\n/**\n\t* empty fields model : to display at least an empty line\n\t* otherwise would look like ugly empty line like it were a bug\n\t*/\nvaremptyEdaFieldsModel=functionemptyEdaFieldsModel(){\n\treturnangular.copy(EMPTY_FIELD_MODEL);\n};\n\nvarreturnAttributeDataModelIfNotEmpty=functionreturnAttributeDataModelIfNotEmpty(edaEasyFormGeneratorModel){\n\tvardataModelToReturn=angular.isArray(edaEasyFormGeneratorModel.dataModel)?edaEasyFormGeneratorModel.dataModel.length>0?edaEasyFormGeneratorModel.dataModel:[]:[];\n\treturndataModelToReturn;\n};\n\nvarreturnAttributeConfigurationLinesIfNotEmpty=functionreturnAttributeConfigurationLinesIfNotEmpty(loadedFieldModel){\n\tvaredaEasyFormGeneratorModelToReturn=angular.isArray(loadedFieldModel)?loadedFieldModel.length>0?loadedFieldModel:emptyEdaFieldsModel():emptyEdaFieldsModel();\n\treturnedaEasyFormGeneratorModelToReturn;\n};\n\nexports.emptyEdaFieldsModel=emptyEdaFieldsModel;\nexports.returnAttributeDataModelIfNotEmpty=returnAttributeDataModelIfNotEmpty;\nexports.returnAttributeConfigurationLinesIfNotEmpty=returnAttributeConfigurationLinesIfNotEmpty;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvYXBwL2Zvcm12aWV3ZXIvY29tcG9uZW50cy9tYWluL2VkYS5lYXN5Rm9ybVZpZXdlci5tYWluLmRpcmVjdGl2ZS5oZWxwZXJzLmpzPzBjNGEiXSwibmFtZXMiOlsiRU1QVFlfRklFTERfTU9ERUwiLCJlbXB0eUVkYUZpZWxkc01vZGVsIiwiYW5ndWxhciIsImNvcHkiLCJyZXR1cm5BdHRyaWJ1dGVEYXRhTW9kZWxJZk5vdEVtcHR5IiwiZWRhRWFzeUZvcm1HZW5lcmF0b3JNb2RlbCIsImRhdGFNb2RlbFRvUmV0dXJuIiwiaXNBcnJheSIsImRhdGFNb2RlbCIsImxlbmd0aCIsInJldHVybkF0dHJpYnV0ZUNvbmZpZ3VyYXRpb25MaW5lc0lmTm90RW1wdHkiLCJsb2FkZWRGaWVsZE1vZGVsIiwiZWRhRWFzeUZvcm1HZW5lcmF0b3JNb2RlbFRvUmV0dXJuIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBOztBQUVBLElBQU1BLG9CQUFvQixDQUN6QjtBQUNDLFNBQVEsQ0FEVDtBQUVDLGlCQUFnQixDQUZqQjtBQUdDLFlBQVcsQ0FDVjtBQUNDLGVBQWEsQ0FEZDtBQUVDLFdBQVMsSUFGVjtBQUdDLGFBQVc7QUFDVixXQUFRLE1BREU7QUFFVixVQUFPO0FBRkc7QUFIWixFQURVO0FBSFosQ0FEeUIsQ0FBMUI7O0FBaUJBOzs7O0FBSUEsSUFBTUMsc0JBQXNCLFNBQXRCQSxtQkFBc0IsR0FBSTtBQUMvQix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5cdFx0XHRcdH1cblx0XHRcdH1cblx0XHRdXG5cdH1cbl07XG5cbi8qKlxuXHQqIGVtcHR5IGZpZWxkcyBtb2RlbCA6IHRvIGRpc3BsYXkgYXQgbGVhc3QgYW4gZW1wdHkgbGluZVxuXHQqIG90aGVyd2lzZSB3b3VsZCBsb29rIGxpa2UgdWdseSBlbXB0eSBsaW5lIGxpa2UgaXQgd2VyZSBhIGJ1Z1xuXHQqL1xuY29uc3QgZW1wdHlFZGFGaWVsZHNNb2RlbCA9ICgpPT57XG5cdHJldHVybiBhbmd1bGFyLmNvcHkoRU1QVFlfRklFTERfTU9ERUwpO1xufTtcblxuXG5cbmNvbnN0IHJldHVybkF0dHJpYnV0ZURhdGFNb2RlbElmTm90RW1wdHkgPSAoZWRhRWFzeUZvcm1HZW5lcmF0b3JNb2RlbCk9Pntcblx0bGV0IGRhdGFNb2RlbFRvUmV0dXJuID0gKFxuXHRcdFx0YW5ndWxhci5pc0FycmF5KGVkYUVhc3lGb3JtR2VuZXJhdG9yTW9kZWwuZGF0YU1vZGVsKSAgID8gICggXG5cdFx0XHRcdFx0ZWRhRWFzeUZvcm1HZW5lcmF0b3JNb2RlbC5kY
/***/},
/* 11 */
/***/function(module,exports){
eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar EASY_FORM_VIEWER_CONTROLLER = 'edaEasyFormViewerCtrl';\nvar EASY_FORM_VIEWER_CONTROLLERAS = 'vm';\n\nvar edaEasyFormViewerController = function () {\n\tfunction edaEasyFormViewerController() {\n\t\t_classCallCheck(this, edaEasyFormViewerController);\n\n\t\tthis.init();\n\t}\n\n\t_createClass(edaEasyFormViewerController, [{\n\t\tkey: 'init',\n\t\tvalue: function init() {\n\t\t\tthis.model = {};\n\t\t\tthis.fields = {};\n\t\t\tthis.hasJustSumitted = false;\n\t\t\tthis.hasJustCancelled = false;\n\t\t}\n\t}, {\n\t\tkey: 'edaSubmitThisDataModel',\n\t\tvalue: function edaSubmitThisDataModel() {\n\t\t\tthis.hasJustSumitted = true;\n\t\t}\n\t}, {\n\t\tkey: 'edaCancelEvent',\n\t\tvalue: function edaCancelEvent() {\n\t\t\tthis.hasJustCancelled = true;\n\t\t}\n\t}]);\n\n\treturn edaEasyFormViewerController;\n}();\n\nedaEasyFormViewerController.$inject = [];\n\nexports.default = edaEasyFormViewerController;\nexports.EASY_FORM_VIEWER_CONTROLLER = EASY_FORM_VIEWER_CONTROLLER;\nexports.EASY_FORM_VIEWER_CONTROLLERAS = EASY_FORM_VIEWER_CONTROLLERAS;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvYXBwL2Zvcm12aWV3ZXIvY29tcG9uZW50cy9tYWluL2VkYS5lYXN5Rm9ybVZpZXdlci5tYWluLmNvbnRyb2xsZXIuanM/ZTc1MSJdLCJuYW1lcyI6WyJFQVNZX0ZPUk1fVklFV0VSX0NPTlRST0xMRVIiLCJFQVNZX0ZPUk1fVklFV0VSX0NPTlRST0xMRVJBUyIsImVkYUVhc3lGb3JtVmlld2VyQ29udHJvbGxlciIsImluaXQiLCJtb2RlbCIsImZpZWxkcyIsImhhc0p1c3RTdW1pdHRlZCIsImhhc0p1c3RDYW5jZWxsZWQiLCIkaW5qZWN0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsSUFBTUEsOEJB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aGlzRGF0YU1vZGVsKCl7XG5cdFx0dGhpcy5oYXNKdXN0U3VtaXR0ZWQgPSB0cnVlO1xuXHR9XG5cdFxuXHRlZGFDYW5jZWxFdmVudCgpe1xuXHRcdHRoaXMuaGFzSnVzdENhbmNlbGxlZCA9IHRydWU7XG5cdH1cdFxuXHRcbn1cblxuZWRhRWFzeUZvcm1WaWV3ZXJDb250cm9sbGVyLiRpbmplY3QgPSBbXTtcblxuZXhwb3J0IGRlZmF1bHQgZWRhRWFzeUZvcm1WaWV3ZXJDb250cm9sbGVyO1xuXG5leHBvcnQge1xuXHRFQVNZX0ZPUk1fVklFV0VSX0NPTlRST0xMRVIsXG5cdEVBU1lfRk9STV9WSUVXRVJfQ09OVFJPTExFUkFTXG59O1xuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyAuL3NyYy9hcHAvZm9ybXZpZXdlci9jb21wb25lbnRzL21haW4vZWRhLmVhc3lGb3JtVmlld2VyLm1haW4uY29udHJvbGxlci5qcyJdLCJzb3VyY2VSb290IjoiIn0=");
eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nexports.MODEL_TRANSLATOR_SERVICE = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /* global angular */\n\n\nvar _edaEasyFormViewerModelTranslatorService = __webpack_require__(15);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\");}}\n\nvarMODEL_TRANSLATOR_SERVICE='$modelsTranslator';\n\nvar$modelsTranslator=function(){\n\tfunction$modelsTranslator(){\n\t\t_classCallCheck(this,$modelsTranslator);\n\t}\n\n\t_createClass($modelsTranslator,[{\n\t\tkey:'initNyaSelect',\n\t\tvalue:functioninitNyaSelect(nyaSelectObj){\n\t\t\treturn(0,_edaEasyFormViewerModelTranslatorService.resetNyaSelect)(nyaSelectObj);\n\t\t}\n\n\t\t/**\n \t* get all controls definition (nyaSelectObj)\n \t* \n \t* needed to bind these properties :\n \t* \n \t* formlyExpressionProperties: {}, \n \t* formlyValidators: {},\n \t* formlyValidation \t\t\n \t*/\n\n\t},{\n\t\tkey:'getControlsDefinition',\n\t\tvalue:functiongetControlsDefinition(){\n\t\t\tvarcontrols={};\n\t\t\t(0,_edaEasyFormViewerModelTranslatorService.resetNyaSelect)(controls);\n\t\t\treturncontrols;\n\t\t}\n\n\t\t/**\n \t* loading forms will not be able to retrieve formlyExpressionProperties\n \t* -> here does the job\n \t*/\n\n\t},{\n\t\tkey:'refreshControlFormlyExpressionProperties',\n\t\tvalue:functionrefreshControlFormlyExpressionProperties(configurationModel){\n\t\t\tvar_this=this;\n\n\t\t\tif(angular.isObject(configurationModel)){\n\t\t\t\t//iterates lines\n\t\t\t\tangular.forEach(configurationModel.lines, function (line) {\n\t\t\t\t\tangular.forEach(line.columns, function (column) {\n\t\t\t\t\t\tvar _controlsDefinition = _this.getControlsDefinition();\n\t\t\t\t\t\tangular.forEach(_controlsDefinition.controls, function (aControl) {\n\t\t\t\t\t\t\tif (column.control.type === aControl.formlyType && column.control.subtype === aControl.formlySubtype) {\n\t\t\t\t\t\t\t\t//----> update control formlyExpressionProperties property\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcolumn.control.formlyExpressionProperties = aControl.formlyExpressionProperties;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t/**\n \t* loading forms will not be able to retrieve formlyValidators\n \t* -> here does the job\n \t*/\n\n\t}, {\n\t\tkey: 'refreshControlFormlyValidators',\n\t\tvalue: function refreshControlFormlyValidators(configurationModel) {\n\t\t\tvar _this2 = this;\n\n\t\t\tif (angular.isObject(configurationModel)) {\n\t\t\t\t//iterates lines\n\t\t\t\tangular.forEach(configurationModel.lines, function (line) {\n\t\t\t\t\tangular.forEach(line.columns, function (column) {\n\t\t\t\t\t\tvar _controlsDefinition = _this2.getControlsDefinition();\n\t\t\t\t\t\tangular.forEach(_controlsDefinition.controls, function (aControl) {\n\t\t\t\t\t\t\tif (column.control.type === aControl.formlyType && column.control.subtype === aControl.formlySubtype) {\n\t\t\t\t\t\t\t\t//----> update control formlyValidators property\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcolumn.control.formlyValidators = aControl.formlyValidators;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t/**\n \t* loading forms will not be able to retrieve formlyValidation\n \t* -> here does the job\n \t*/\n\n\t}, {\n\t\tkey: 'refreshControlFormlyValidation',\n\t\tvalue: function refreshControlFormlyValida
eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\",{\n\tvalue:true\n});\n/* global angular */\n\nvarresetNyaSelect=functionresetNyaSelect(nyaSelectObj){\n\n\tvarnewNyaSelectObj={\n\t\tcontrols:[{\n\t\t\tid:'empty',\n\t\t\tname:'no control',\n\t\t\tsubtitle:'no control',\n\t\t\tgroup:'Blank',\n\t\t\tformlyType:'blank',\n\t\t\tformlySubtype:'',\n\t\t\tformlyLabel:'',\n\t\t\tformlyRequired:false,\n\t\t\tformlyDesciption:'',\n\t\t\tformlyOptions:[],\n\t\t\tformlyExpressionProperties:{},\n\t\t\tformlyValidators:{},\n\t\t\tformlyValidation:{}\n\t\t},{\n\t\t\tid:'Header',\n\t\t\tname:'Header',\n\t\t\tsubtitle:'no control',\n\t\t\tgroup:'Decoration',\n\t\t\tformlyType:'header',\n\t\t\tformlySubtype:'',\n\t\t\tformlyLabel:'',\n\t\t\tformlyRequired:false,\n\t\t\tformlyDesciption:'',\n\t\t\tformlyOptions:[],\n\t\t\tformlyExpressionProperties:{},\n\t\t\tformlyValidators:{},\n\t\t\tformlyValidation:{}\n\t\t},{\n\t\t\tid:'Subtitle',\n\t\t\tname:'Subtitle',\n\t\t\tsubtitle:'no control',\n\t\t\tgroup:'Decoration',\n\t\t\tformlyType:'subTitle',\n\t\t\tformlySubtype:'',\n\t\t\tformlyLabel:'',\n\t\t\tformlyRequired:false,\n\t\t\tformlyDesciption:'',\n\t\t\tformlyOptions:[],\n\t\t\tformlyExpressionProperties:{},\n\t\t\tformlyValidators:{},\n\t\t\tformlyValidation:{}\n\t\t},{\n\t\t\tid:'TextInput',\n\t\t\tname:'Text input',\n\t\t\tsubtitle:'Text input',\n\t\t\tgroup:'input',\n\t\t\tformlyType:'input',\n\t\t\tformlySubtype:'',\n\t\t\tformlyLabel:'',\n\t\t\tformlyRequired:false,\n\t\t\tformlyDesciption:'',\n\t\t\tformlyOptions:[],\n\t\t\tformlyExpressionProperties:{},\n\t\t\tformlyValidators:{},\n\t\t\tformlyValidation:{\n\t\t\t\tmessages:{\n\t\t\t\t\trequired:functionrequired(viewValue,modelValue,scope){\n\t\t\t\t\t\t//return a required validation message :\n\t\t\t\t\t\t//-> '<label as name> is required '\n\t\t\t\t\t\t//-> or if not exists or empty just 'this field is required'\n\t\t\t\t\t\tvar defaultReturnMsg = 'this Text input field is required';\n\t\t\t\t\t\tvar returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;\n\t\t\t\t\t\treturn returnMsg;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}, {\n\t\t\tid: 'Password',\n\t\t\tname: 'Password',\n\t\t\tsubtitle: 'Password',\n\t\t\tgroup: 'input',\n\t\t\tformlyType: 'input',\n\t\t\tformlySubtype: 'password',\n\t\t\tformlyLabel: '',\n\t\t\tformlyRequired: false,\n\t\t\tformlyDesciption: '',\n\t\t\tformlyOptions: [],\n\t\t\tformlyExpressionProperties: {},\n\t\t\tformlyValidators: {},\n\t\t\tformlyValidation: {\n\t\t\t\tmessages: {\n\t\t\t\t\trequired: function required(viewValue, modelValue, scope) {\n\t\t\t\t\t\t//return a required validation message :\n\t\t\t\t\t\t//-> '<label as name> is required '\n\t\t\t\t\t\t//-> or if not exists or empty just 'this field is required'\n\t\t\t\t\t\tvar defaultReturnMsg = 'this Password field is required';\n\t\t\t\t\t\tvar returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;\n\t\t\t\t\t\treturn returnMsg;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}, {\n\t\t\tid: 'Email',\n\t\t\tname: 'Email',\n\t\t\tsubtitle: 'Email',\n\t\t\tgroup: 'input',\n\t\t\tformlyType: 'input',\n\t\t\tformlySubtype: 'email',\n\t\t\tformlyLabel: '',\n\t\t\tformlyRequired: false,\n\t\t\tformlyDesciption: '',\n\t\t\tformlyOptions: [],\n\t\t\tformlyExpressionProperties: {},\n\n\t\t\tformlyValidators: {\n\t\t\t\temailShape: {\n\t\t\t\t\texpression: function expression(viewValue, modelValue) {\n\t\t\t\t\t\tvar value = modelValue || viewValue;\n\t\t\t\t\t\treturn (/^[a-z]+[a-z0-9._]+@[a-z]+\\.[a-z.]{2,5}$/.test(value)\n\t\t\t\t\t\t);\n\t\t\t\t\t},\n\t\t\t\t\tmessage: '$viewValue + \\' is not a valid email\\''\n\t\t\t\t}\n\t\t\t},\n\t\t\tformlyValidation: {\n\t\t\t\tmessages: {\n\t\t\t\t\trequired: function required(viewValue, modelValue, scope) {\n\t\t\t\t\t\t//return a required validation message :\n\t\t\t\t\t\t//-> '<label as
eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(20);\nif(typeof content === 'string') content = [[module.id, content, '']];\n// add the styles to the DOM\nvar update = __webpack_require__(22)(content, {});\nif(content.locals) module.exports = content.locals;\n// Hot Module Replacement\nif(false) {\n\t// When the styles change, update the <style> tags\n\tif(!content.locals) {\n\t\tmodule.hot.accept(\"!!./../../../../node_modules/css-loader/index.js!./../../../../node_modules/postcss-loader/index.js!./../../../../node_modules/sass-loader/index.js!./formviewer.scss\", function() {\n\t\t\tvar newContent = require(\"!!./../../../../node_modules/css-loader/index.js!./../../../../node_modules/postcss-loader/index.js!./../../../../node_modules/sass-loader/index.js!./formviewer.scss\");\n\t\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\t\t\tupdate(newContent);\n\t\t});\n\t}\n\t// When the module is disposed, remove the <style> tags\n\tmodule.hot.dispose(function() { update(); });\n}//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvYXBwL2Zvcm12aWV3ZXIvc3R5bGUvZm9ybXZpZXdlci5zY3NzP2ViZDYiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQSxnREFBeUY7QUFDekY7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsR0FBRztBQUNIO0FBQ0E7QUFDQSxnQ0FBZ0MsVUFBVSxFQUFFO0FBQzVDIiwiZmlsZSI6IjE5LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gc3R5bGUtbG9hZGVyOiBBZGRzIHNvbWUgY3NzIHRvIHRoZSBET00gYnkgYWRkaW5nIGEgPHN0eWxlPiB0YWdcblxuLy8gbG9hZCB0aGUgc3R5bGVzXG52YXIgY29udGVudCA9IHJlcXVpcmUoXCIhIS4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvaW5kZXguanMhLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXM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GV4LmpzIS4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Nhc3MtbG9hZGVyL2luZGV4LmpzIS4vZm9ybXZpZXdlci5zY3NzXCIpO1xuXHRcdFx0aWYodHlwZW9mIG5ld0NvbnRlbnQgPT09ICdzdHJpbmcnKSBuZXdDb250ZW50ID0gW1ttb2R1bGUuaWQsIG5ld0NvbnRlbnQsICcnXV07XG5cdFx0XHR1cGRhdGUobmV3Q29udGVudCk7XG5cdFx0fSk7XG5cdH1cblx0Ly8gV2hlbiB0aGUgbW9kdWxlIGlzIGRpc3Bvc2VkLCByZW1vdmUgdGhlIDxzdHlsZT4gdGFnc1xuXHRtb2R1bGUuaG90LmRpc3Bvc2UoZnVuY3Rpb24oKSB7IHVwZGF0ZSgpOyB9KTtcbn1cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9hcHAvZm9ybXZpZXdlci9zdHlsZS9mb3Jtdmlld2VyLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDE5XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJzb3VyY2VSb290IjoiIn0=");
eval("/*\r\n\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\tAuthor Tobias Koppers @sokra\r\n*/\r\n// css base code, injected by the css-loader\r\nmodule.exports = function() {\r\n\tvar list = [];\r\n\r\n\t// return the list of modules as css string\r\n\tlist.toString = function toString() {\r\n\t\tvar result = [];\r\n\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\tvar item = this[i];\r\n\t\t\tif(item[2]) {\r\n\t\t\t\tresult.push(\"@media \" + item[2] + \"{\" + item[1] + \"}\");\r\n\t\t\t} else {\r\n\t\t\t\tresult.push(item[1]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result.join(\"\");\r\n\t};\r\n\r\n\t// import a list of modules into the list\r\n\tlist.i = function(modules, mediaQuery) {\r\n\t\tif(typeof modules === \"string\")\r\n\t\t\tmodules = [[null, modules, \"\"]];\r\n\t\tvar alreadyImportedModules = {};\r\n\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\tvar id = this[i][0];\r\n\t\t\tif(typeof id === \"number\")\r\n\t\t\t\talreadyImportedModules[id] = true;\r\n\t\t}\r\n\t\tfor(i = 0; i < modules.length; i++) {\r\n\t\t\tvar item = modules[i];\r\n\t\t\t// skip already imported module\r\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\r\n\t\t\t// when a module is imported multiple times with different media queries.\r\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\r\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\r\n\t\t\t\tif(mediaQuery && !item[2]) {\r\n\t\t\t\t\titem[2] = mediaQuery;\r\n\t\t\t\t} else if(mediaQuery) {\r\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\r\n\t\t\t\t}\r\n\t\t\t\tlist.push(item);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\treturnlist;\r\n};\r\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9+L2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzP2RhMDQiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0EsZ0JBQWdCLGlCQUFpQjtBQUNqQztBQUNBO0FBQ0Esd0NBQXdDLGdCQUFnQjtBQUN4RCxJQUFJO0FBQ0o7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsZ0JBQWdCLGlCQUFpQjtBQUNqQztBQUNBO0FBQ0E7QUFDQTtBQUNBLFlBQVksb0JBQW9CO0FBQ2hDO0FBQ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