!function(a){functionb(a,b,e){return4===arguments.length?c.apply(this,arguments):voidd(a,{declarative:!0,deps:b,declare:e})}functionc(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}functiond(a,b){b.name=a,ainn||(n[a]=b),b.normalizedDeps=b.deps}functione(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==o.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(varc=0,d=a.normalizedDeps.length;d>c;c++){varf=a.normalizedDeps[c],g=n[f];if(g&&!g.evaluated){varh=a.groupIndex+(g.declarative!=a.declarative);if(void0===g.groupIndex||g.groupIndex<h){if(void0!==g.groupIndex&&(b[g.groupIndex].splice(o.call(b[g.groupIndex],g),1),0==b[g.groupIndex].length))thrownewTypeError("Mixed dependency cycle detected");g.groupIndex=h}e(g,b)}}}}functionf(a){varb=n[a];b.groupIndex=0;varc=[];e(b,c);for(vard=!!b.declarative==c.length%2,f=c.length-1;f>=0;f--){for(varg=c[f],i=0;i<g.length;i++){vark=g[i];d?h(k):j(k)}d=!d}}functiong(a){returns[a]||(s[a]={name:a,dependencies:[],exports:{},importers:[]})}functionh(b){if(!b.module){varc=b.module=g(b.name),d=b.module.exports,e=b.declare.call(a,function(a,b){if(c.locked=!0,"object"==typeofa)for(vareina)d[e]=a[e];elsed[a]=b;for(varf=0,g=c.importers.length;g>f;f++){varh=c.importers[f];if(!h.locked)for(vari=0;i<h.dependencies.length;++i)h.dependencies[i]===c&&h.setters[i](d)}returnc.locked=!1,b},b.name);c.setters=e.setters,c.execute=e.execute;for(varf=0,i=b.normalizedDeps.length;i>f;f++){varj,k=b.normalizedDeps[f],l=n[k],o=s[k];o?j=o.exports:l&&!l.declarative?j=l.esModule:l?(h(l),o=l.module,j=o.exports):j=m(k),o&&o.importers?(o.importers.push(c),c.dependencies.push(o)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}functioni(a){varb,c=n[a];if(c)c.declarative?l(a,[]):c.evaluated||j(c),b=c.module.exports;elseif(b=m(a),!b)thrownewError("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b["default"]:b}functionj(b){if(!b.module){varc={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(vare=0,f=b.normalizedDeps.length;f>e;e++){varg=b.normalizedDeps[e],h=n[g];h&&j(h)}b.evaluated=!0;varl=b.execute.call(a,function(a){for(varc=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)returni(b.normalizedDeps[c]);thrownewTypeError("Module "+a+" not declared as a dependency.")},c,d);l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}functionk(b){if(b===a)returnb;varc={};if("object"==typeofb||"function"==typeofb)if(p){vard;for(vareinb)(d=Object.getOwnPropertyDescriptor(b,e))&&r(c,e,d)}else{varf=b&&b.hasOwnProperty;for(vareinb)(!f||b.hasOwnProperty(e))&&(c[e]=b[e])}returnc["default"]=b,r(c,"__useDefault",{value:!0}),c}functionl(b,c){vard=n[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(vare=0,f=d.normalizedDeps.length;f>e;e++){varg=d.normalizedDeps[e];-1==o.call(c,g)&&(n[g]?l(g,c):m(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}functionm(a){if(u[a])returnu[a];if("@node/"==a.substr(0,6))returnt(a.substr(6));varb=n[a];if(!b)throw"Module "+a+" not present.";returnf(a),l(a,[]),n[a]=void0,b.declarative&&r(b.module.exports,"__esModule",{value:!0}),u[a]=b.declarative?b.module.exports:b.esModule}varn={},o=Array.prototype.indexOf||function(a){for(varb=0,c=this.length;c>b;b++)if(this[b]===a)returnb;return-1},p=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(q){p=!1}varr;!function(){try{Object.defineProperty({},"a",{})&&(r=Object.defineProperty)}catch(a){r=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();vars={},t="undefined"!=typeofSystem&&System._nodeRequire||"undefined"!=typeofrequire&&require.resolve&&"undefined"!=typeofprocess&&require,u={"@empty":{}};returnfunction(a,d,e){returnfunction(f){f(function(f){for(varg={_nodeRequire:t,register:b,registerDynamic:c,get:m,set:function(a,b){u[a]=b},newModule:function(a){returna}},h=0;h<d.length;h++)(function(a,b){b&&b.__esModule?u[a]=b:u[a]=k(b)})(d[h],arguments[h]);e(g);vari=m(a[0]);if(a.length>1)for(varh=1;h<a.length;h++)m(a[h]);returni.__useDefault?i["default"]:i})}}}("undefined"!=typ
d.define=e,c.exports}),a.register("13",["11","12","14","15","16"],function(a){varb,c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){b=a.initDebugModel,c=a.initTabModel,d=a.initColumnTemplate,e=a.initLineTemplate},function(a){f=a["default"]},function(a){g=a.EDIT_MODAL_CONTROLLER_NAME,h=a.EDIT_MODAL_CONTROLLERAS_NAME},function(a){i=a["default"]},function(a){j=a["default"]}],execute:function(){"use strict";k="edaStepWayEasyFormGenController",l="vm",m=function(){functiona(b,c,d,e,f,g,h,i,k){j(this,a),this.easyFormGenVersion=b,this.$filter=c,this.toaster=d,this.$timeout=e,this.$modal=f,this.$log=g,this.$formlyProxy=h,this.$modalProxy=i,this.easyFormSteWayConfig=k,this.init()}returni(a,[{key:"init",value:function(){this.dataModel={},this.wfFormFields=[],this.wfFormFieldsOnlyNeededProperties=[],this.easyFormGeneratorVERSION=this.easyFormGenVersion,this.debug=b(),this.tab=c(this.easyFormSteWayConfig.isPreviewPanelVisible(),this.easyFormSteWayConfig.arePreviewModelsVisible()),this.configuration={},this.numberOfColumns=1,this.MaxNumberOfColumns=3,this.MinNumberOfColumns=1,this.columnTemplate=d(),this.lineTemplate=e(),this.nyaSelect={},this.animationsEnabled=this.easyFormSteWayConfig.getModalAnimationValue(),this.editControlModalSize="lg",this.formlyList={},this.previewLoadedForm={fieldsModel:[]},this.configurationLoaded={},this.returnSaveEvent=!1,this.$formlyProxy.initConfigurationEditFromScratch(this.configuration),this.$modalProxy.initNyaSelect(this.nyaSelect)}},{key:"onSubmit",value:function(){vara=this.$filter("json")(this.dataModel,4);this.toaster.pop({type:"info",timeout:2e3,title:"it should save data model if it were not in editor",body:"data : "+a,showCloseButton:!0})}},{key:"countConfigurationModelLines",value:function(){returnthis.debug.configurationModelNumberofLines=this.configuration.lines.length,this.configuration.lines.length}},{key:"setActiveLineNumber",value:function(a){a<=this.countConfigurationModelLines()&&(this.configuration.activeLine=a)}},{key:"upThisLine",value:function(a){if(a>-1&&this.configuration.lines[a-1]){varb=this.configuration.lines[a];this.configuration.lines.splice(a,1),this.configuration.lines.splice(a-1,0,b),this.configuration.activeLine=1}this.$formlyProxy.applyConfigurationToformlyModel(this.configuration,this.wfFormFields,this.dataModel),this.wfFormFieldsOnlyNeededProperties=angular.copy(this.wfFormFields)}},{key:"downThisLine",value:function(a){if(a>-1&&this.configuration.lines[a+1]){varb=this.configuration.lines[a];this.configuration.lines.splice(a,1),this.configuration.lines.splice(a+1,0,b),this.configuration.activeLine=1}this.$formlyProxy.applyConfigurationToformlyModel(this.configuration,this.wfFormFields,this.dataModel),this.wfFormFieldsOnlyNeededProperties=angular.copy(this.wfFormFields)}},{key:"addNewline",value:function(){this.configuration.lines.push(e()),this.$formlyProxy.applyConfigurationToformlyModel(this.configuration,this.wfFormFields,this.dataModel),this.wfFormFieldsOnlyNeededProperties=angular.copy(this.wfFormFields)}},{key:"removeThisLine",value:function(a){a>-1&&(this.configuration.lines.length>1?(this.configuration.activeLine===a+1&&(this.configuration.activeLine=1),this.configuration.lines.splice(a,1)):this.$timeout(function(){this.toaster.pop({type:"warning",title:"Last line",body:"Can't delete the last line",showCloseButton:!0})},100),this.$formlyProxy.applyConfigurationToformlyModel(this.configuration,this.wfFormFields,this.dataModel),this.wfFormFieldsOnlyNeededProperties=angular.copy(this.wfFormFields))}},{key:"increaseNumberOfColumns",value:function(){vara=this.configuration.activeLine-1;if(this.configuration.lines[a].columns.length<this.MaxNumberOfColumns){varb=this.configuration.lines[a].columns.push(angular.copy(d()));this.configuration.lines[a].columns[b-1].numColumn=b}this.$formlyProxy.applyConfigurationToformlyModel(this.configuration,this.wfFormFields,this.dataModel),this.wfFormFieldsOnlyNeededProperties=angular.copy(this.wfFormFields)}},{key:"decreaseNumberOfColumns",value:function(){this.configuration.lines[this.configuration.activeLine-1].col