From 38eeb415535742d4cddd55adcdf9b06e70626de0 Mon Sep 17 00:00:00 2001 From: MacKentoch Date: Sun, 13 Sep 2015 07:45:28 +0200 Subject: [PATCH] fixed bower easy form viewer demo html --- dist/index_easyFormViewer_Module.html | 4 ++-- dist/js/eda.dragdropway.min.js | 2 +- dist/js/eda.easyFormViewer.js | 6 +++++- dist/js/eda.easyFormViewer.min.js | 2 +- dist/public/js/eda.dragdropway.min.js.map | 2 +- dist/public/js/eda.easyFormViewer.js | 6 +++++- dist/public/js/eda.easyFormViewer.min.js | 2 +- dist/public/js/eda.easyFormViewer.min.js.map | 2 +- dist/public/js/eda.stepway.min.js.map | 2 +- index_easyFormViewer_Module.html | 4 ++-- public/js/eda.dragdropway.min.js.map | 2 +- public/js/eda.easyFormViewer.js | 6 +++++- public/js/eda.easyFormViewer.min.js | 2 +- public/js/eda.easyFormViewer.min.js.map | 2 +- public/js/eda.stepway.min.js.map | 2 +- .../formViewer/directives/eda.easyFormViewer.Directive.js | 3 +++ src/app/formViewer/eda.easyFormViewer.config.js | 3 ++- 17 files changed, 34 insertions(+), 18 deletions(-) diff --git a/dist/index_easyFormViewer_Module.html b/dist/index_easyFormViewer_Module.html index 56c999ab..e25a94de 100644 --- a/dist/index_easyFormViewer_Module.html +++ b/dist/index_easyFormViewer_Module.html @@ -33,7 +33,7 @@
- - + diff --git a/dist/js/eda.dragdropway.min.js b/dist/js/eda.dragdropway.min.js index 10266e01..7a3abd98 100644 --- a/dist/js/eda.dragdropway.min.js +++ b/dist/js/eda.dragdropway.min.js @@ -1,4 +1,4 @@ -!function(){"use strict";function e(e){function o(){return['"].join("")}function t(){return['
','
','
','
','
  Edit :
',"
","
",'
','
','
Column will be blank
',"
","
","
",f,"
"].join("")}function l(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function n(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function i(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function r(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function a(){return['
','
','
','
','
  Edit properties :
',"
","
",'
',' ','
','
    ','
  1. '," {{dateformat}}","
  2. ","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function s(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function d(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function c(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
',' ',"
","
",'
',"
",'
','
',' ',"
",'
',' ',"
","
","
","
",'
','
',' ',"
","
",'
','
','
','
','
','
- no radio : add new radio values -
',"
",' '," "," ",' ',' ',' '," "," ",' ',' ",' '," "," "," ",' ',' ',' ',' "," "," ","
orderoption
',' ',"
{{$index}}{{radioRow.option}}','
',' ',' ',' ',"
","
","
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function p(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function u(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
',' ',"
","
",'
',"
",'
','
',' ',"
",'
',' ',"
","
","
","
",'
','
',' ',"
","
",'
','
','
','
','
','
- no option : add new options -
',"
",' '," "," ",' ',' ',' '," "," ",' ',' ",' '," "," "," ",' ',' ',' ',' "," "," ","
orderoption
',' ',"
{{$index}}{{basicSelectRow.option}}','
',' ',' ',' ',"
","
","
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function m(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
',' ',"
","
",'
',"
",'
','
',' ',"
",'
',' ',"
","
","
","
",'
','
',' ',"
","
",'
',"
",'
','
',' ',"
",'
',' ',"
","
","
","
",'
','
',' ',"
","
",'
','
','
','
','
','
- no option : add new options -
',"
",' '," "," ",' ',' ',' ',' '," "," ",' ',' ',' ",' '," "," "," ",' ',' ',' ",' ',' "," "," ","
ordergroupoption
',' ',"
{{$index}}','
','
','

- add new groups -

',"
",'
','
    ','
  1. '," {{GroupedSelectGroup}}","
  2. ","
","
","
",'
'," {{groupedSelectRow.group}}","
","
{{groupedSelectRow.option}}','
',' ',' ',' ',' ',"
","
","
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}var f=o();e.put("editPanelBlankCtrl-tpls.html",t()),e.put("editPanelHeaderCtrl-tpls.html",l()),e.put("editPanelSubTitleCtrl-tpls.html",n()),e.put("editPanelTextInputCtrl-tpls.html",i()),e.put("editPanelPasswordCtrl-tpls.html",r()),e.put("editPanelDateCtrl-tpls.html",a()),e.put("editPanelTextareaCtrl-tpls.html",s()),e.put("editPanelRichTextEditorCtrl-tpls.html",d()),e.put("editPanelRadioCtrl-tpls.html",c()),e.put("editPanelCheckboxCtrl-tpls.html",p()),e.put("editPanelBasicSelectCtrl-tpls.html",u()),e.put("editPanelGroupedSelectCtrl-tpls.html",m())}angular.module("edaApp",["edaApp.providers","edaApp.controllers","edaApp.services","edaApp.filters","edaApp.directives","textAngular","textAngularSetup","ngAnimate","toaster","formly","formlyBootstrap","ui.bootstrap","nya.bootstrap.select","dndLists","mgcrea.ngStrap.affix","pageslide-directive"]).value("easyFormGenVersion","v1.0.18").run(e), +!function(){"use strict";function e(e){function o(){return['"].join("")}function t(){return['
','
','
','
','
  Edit :
',"
","
",'
','
','
Column will be blank
',"
","
","
",f,"
"].join("")}function l(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function n(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function i(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function r(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function a(){return['
','
','
','
','
  Edit properties :
',"
","
",'
',' ','
','
    ','
  1. '," {{dateformat}}","
  2. ","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function s(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function d(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function c(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
',' ',"
","
",'
',"
",'
','
',' ',"
",'
',' ',"
","
","
","
",'
','
',' ',"
","
",'
','
','
','
','
','
- no radio : add new radio values -
',"
",' '," "," ",' ',' ',' '," "," ",' ',' ",' '," "," "," ",' ',' ',' ',' "," "," ","
orderoption
',' ',"
{{$index}}{{radioRow.option}}','
',' ',' ',' ',"
","
","
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function p(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function u(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
',' ',"
","
",'
',"
",'
','
',' ',"
",'
',' ',"
","
","
","
",'
','
',' ',"
","
",'
','
','
','
','
','
- no option : add new options -
',"
",' '," "," ",' ',' ',' '," "," ",' ',' ",' '," "," "," ",' ',' ',' ',' "," "," ","
orderoption
',' ',"
{{$index}}{{basicSelectRow.option}}','
',' ',' ',' ',"
","
","
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function m(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
',' ',"
","
",'
',"
",'
','
',' ',"
",'
',' ',"
","
","
","
",'
','
',' ',"
","
",'
',"
",'
','
',' ',"
",'
',' ',"
","
","
","
",'
','
',' ',"
","
",'
','
','
','
','
','
- no option : add new options -
',"
",' '," "," ",' ',' ',' ',' '," "," ",' ',' ',' ",' '," "," "," ",' ',' ',' ",' ',' "," "," ","
ordergroupoption
',' ',"
{{$index}}','
','
','

- add new groups -

',"
",'
','
    ','
  1. '," {{GroupedSelectGroup}}","
  2. ","
","
","
",'
'," {{groupedSelectRow.group}}","
","
{{groupedSelectRow.option}}','
',' ',' ',' ',' ',"
","
","
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}var f=o();e.put("editPanelBlankCtrl-tpls.html",t()),e.put("editPanelHeaderCtrl-tpls.html",l()),e.put("editPanelSubTitleCtrl-tpls.html",n()),e.put("editPanelTextInputCtrl-tpls.html",i()),e.put("editPanelPasswordCtrl-tpls.html",r()),e.put("editPanelDateCtrl-tpls.html",a()),e.put("editPanelTextareaCtrl-tpls.html",s()),e.put("editPanelRichTextEditorCtrl-tpls.html",d()),e.put("editPanelRadioCtrl-tpls.html",c()),e.put("editPanelCheckboxCtrl-tpls.html",p()),e.put("editPanelBasicSelectCtrl-tpls.html",u()),e.put("editPanelGroupedSelectCtrl-tpls.html",m())}angular.module("edaApp",["edaApp.providers","edaApp.controllers","edaApp.services","edaApp.filters","edaApp.directives","textAngular","textAngularSetup","ngAnimate","toaster","formly","formlyBootstrap","ui.bootstrap","nya.bootstrap.select","dndLists","mgcrea.ngStrap.affix","pageslide-directive"]).value("easyFormGenVersion","v1.0.19").run(e), e.$inject=["$templateCache"],angular.module("edaApp").config(["dragDropConfigProvider",function(e){e.setItemsNotTocount({itemBeingDragged:"dndDraggingSource"})}]),angular.module("edaApp").config(["formlyConfigProvider","EasyFormGenFormlyBindingModelsProvider","dragDropConfigProvider",function(e,o,t){function l(e){return e=e.replace(/[\-_\s]+(.)?/g,function(e,o){return o?o.toUpperCase():""}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():""})}e.setType({name:"blank",template:"
"}),o.addEasyFormControlToList({id:"empty",name:"no control",subtitle:"no control",group:"Blank",formlyType:"blank",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
',"
","
","
"].join(""),control:"empty",cssClass:"col-xs-12"},{addToGroupCtrl:"blank"}),o.addEasyFormControlToList({id:"Header",name:"Header",subtitle:"no control",group:"Decoration",formlyType:"header",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

Header

',"
","
","
","
"].join(""),control:"Header",cssClass:"col-xs-12"},{addToGroupCtrl:"headers"});var n=['
','
','

{{options.templateOptions.placeholder}}

',"
","

","
"].join(" ");e.setType({name:"subTitle",template:n}),o.addEasyFormControlToList({id:"Subtitle",name:"Subtitle",subtitle:"no control",group:"Decoration",formlyType:"subTitle",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

SubTitle

',"
","
","
","
"].join(""),control:"Subtitle",cssClass:"col-xs-12"},{addToGroupCtrl:"headers"}),o.addEasyFormControlToList({id:"TextInput",name:"Text input",subtitle:"Text input",group:"input",formlyType:"input",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ",'
',' ','

Description

',"
","
","
"].join(""),control:"TextInput",cssClass:"col-xs-12"},{addToGroupCtrl:"inputs"}),o.addEasyFormControlToList({id:"Password",name:"Password",subtitle:"Password",group:"input",formlyType:"input",formlySubtype:"password",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ",'
',' ','

Description

',"
","
","
"].join(""),control:"Password",cssClass:"col-xs-12"},{addToGroupCtrl:"inputs"});var i=["date-disabled","custom-class","show-weeks","starting-day","init-date","min-mode","max-mode","format-day","format-month","format-year","format-day-header","format-day-title","format-month-title","year-range","shortcut-propagation","datepicker-popup","show-button-bar","current-text","clear-text","close-text","close-on-date-selection","datepicker-append-to-body"],r=["datepicker-mode","min-date","max-date"],a={};angular.forEach(i,function(e){a[l(e)]={attribute:e}}),angular.forEach(r,function(e){a[l(e)]={bound:e}});var s=[""].join(" ");e.setType({name:"datepicker",template:s,wrapper:["bootstrapLabel","bootstrapHasError"],controller:["$scope",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:a,templateOptions:{addonLeft:{"class":"glyphicon glyphicon-calendar",onClick:function(e){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,t){t.to.isOpen=!t.to.isOpen},datepickerOptions:{}}}}),o.addEasyFormControlToList({id:"Date",name:"Date",subtitle:"Date",group:"input",formlyType:"datepicker",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],datepickerPopup:"dd-MMMM-yyyy"}),t.addControlToDragDropPresentationModel({label:['
','
',' ",'
','
',' ',' ',"
","
",'

description

',"
","
"].join(""),control:"Date",cssClass:"col-xs-12"},{addToGroupCtrl:"inputs"}),o.addEasyFormControlToList({id:"Texarea",name:"Textarea",subtitle:"Textarea",group:"Textarea",formlyType:"textarea",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',"
","
","
"].join(""),control:"Texarea",cssClass:"col-xs-12"},{addToGroupCtrl:"textareas"});var d=['',""].join(" ");e.setType({name:"richEditor",template:d}),o.addEasyFormControlToList({id:"RichTextEditor",name:"RichTextEditor",subtitle:"RichTextEditor",group:"Textarea",formlyType:"richEditor",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',"
","
","
"].join(""),control:"RichTextEditor",cssClass:"col-xs-12"},{addToGroupCtrl:"textareas"}),o.addEasyFormControlToList({id:"Radio",name:"Radio",subtitle:"Radio",options:[],group:"Radio",formlyType:"radio",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
','
','
',' ",'
',' ","
",'

description

',"
","
","
"].join(""),control:"Radio",cssClass:"col-xs-12"},{addToGroupCtrl:"radios"}),o.addEasyFormControlToList({id:"Checkbox",name:"Checkbox",subtitle:"Checkbox",group:"Checkbox",formlyType:"checkbox",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ","
",'

description

',"
"].join(""),control:"Checkbox",cssClass:"col-xs-12"},{addToGroupCtrl:"checkboxes"});var c=['
    ','
  1. '," {{option.name}} ","
  2. ","
"].join("");e.setType({name:"basicSelect",template:c}),o.addEasyFormControlToList({id:"BasicSelect",name:"Basic select",subtitle:"Basic select",options:[],group:"Select",formlyType:"basicSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' ","
","
"].join(""),control:"BasicSelect",cssClass:"col-xs-12"},{addToGroupCtrl:"selects"});var p=['
    ','
  1. ',' {{$group}}'," "," {{option.name}}",' '," ","
  2. ","
"].join(" ");e.setType({name:"groupedSelect",template:p}),o.addEasyFormControlToList({id:"GroupedSelect",name:"Grouped Select",subtitle:"Grouped Select",options:[],group:"Select",formlyType:"groupedSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' ","
","
"].join(""),control:"GroupedSelect",cssClass:"col-xs-12"},{addToGroupCtrl:"selects"})}]),angular.module("edaApp").run(["$templateCache",function(e){e.put("editModalTemplate.html","

no use right now

")}]),angular.module("edaApp.providers.dragDropConfigProvider",[]).provider("dragDropConfig",[function(){function e(e,o){if(l[0].length>0){if(l[0].lengthi;i++)l[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){l[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}var o=[{cssClass:"col-md-12",numberItemPerRow:0},{cssClass:"col-md-12",numberItemPerRow:1},{cssClass:"col-md-6",numberItemPerRow:2},{cssClass:"col-md-4",numberItemPerRow:3}],t={dropZoneConfig:{decoration:[{WhenIndex:0,ApplycssClass:"col-md-4",fontAwesomeIcon:"fa fa-level-up",title:"Drag control from here : "},{WhenIndex:1,ApplycssClass:"col-md-8",fontAwesomeIcon:"fa fa-level-down",title:"Drop control into here : "}],verboseMode:!1},containerConfig:{decoration:[{WhenIndex:0,ApplycssClass:"col-md-12",title:"Blank : ",groupId:"blank",isCollapsed:!0},{WhenIndex:1,ApplycssClass:"col-md-12",title:"Headers : ",groupId:"headers",isCollapsed:!0},{WhenIndex:2,ApplycssClass:"col-md-12",title:"Text inputs : ",groupId:"inputs",isCollapsed:!0},{WhenIndex:3,ApplycssClass:"col-md-12",title:"Textareas : ",groupId:"textareas",isCollapsed:!0},{WhenIndex:4,ApplycssClass:"col-md-12",title:"Radios : ",groupId:"radios",isCollapsed:!0},{WhenIndex:5,ApplycssClass:"col-md-12",title:"Checkboxes : ",groupId:"checkboxes",isCollapsed:!0},{WhenIndex:6,ApplycssClass:"col-md-12",title:"Selects : ",groupId:"selects",isCollapsed:!0}],verboseMode:!1,collapseEnabled:!0,collapseCtrl:[{atIndex:0,collapse:!0},{atIndex:1,collapse:!0}]},itemConfig:{verboseMode:!1}},l=[[],[[]]],n={itemBeingDragged:""};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return n},this.setItemsNotTocount=function(e){n=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){"undefined"!=typeof o&&"undefined"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return l},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return n},e.getItemCssDependingNumberItemsInRow=function(e){if("undefined"!=typeof e){for(var t="",l=o.length-1;l>=0;l--)o[l].numberItemPerRow===e&&(t=o[l].cssClass);return t}return""},e.getDistinctItemCssClass=function(){var e=[];return angular.forEach(o,function(o){var t=o.cssClass;if(0===e.length)e.push(t);else{var l=!0;angular.forEach(e,function(e){var o=e;t===o&&(l=!1)}),l&&e.push(t)}}),e},e.getDragDropConfigModel=function(){return t},e.setDragDropConfigContainerDecorationCollapse=function(e,o,t){return"undefined"!=typeof o&&"undefined"!=typeof t&&o===parseInt(o,10)&&(e.containerConfig.decoration[o].isCollapsed=t),!0},e.getDragDropPresentationModel=function(){return l},e}]}]),angular.module("edaApp.providers.EasyFormGenFormlyBindingModels",[]).provider("EasyFormGenFormlyBindingModels",[function(){var e={controls:[],selectedControl:"none",temporyConfig:{selectedControl:"none",formlyLabel:"label",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[]}},o={line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]},t={control:{type:"none",key:"none"}},l={submitButtonText:"submit",cancelButtonText:"cancel",lines:[].concat(o)},n={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0},i={submitButtonText:"submit",cancelButtonText:"cancel",lines:[]},r={cssClass:["col-xs-12","col-xs-6","col-xs-4"],textContent:"",html_part1:['
','

'].join(""),html_part3:this.textContent,html_part4:["

","
","

"].join(""),simpleHtml1:['

'].join(""),simpleHtml2:["

","
"].join("")},a={className:["col-xs-12","col-xs-6","col-xs-4"],type:"",key:"",templateOptions:{type:"",label:"",required:"",placeholder:"",description:"",options:""}},s=[{controlType:"datepicker",properties:[{isRoot:!1,isTemplateOptions:!0,value:"datepickerPopup"}]}];this.getAllParticularControlProperties=function(){return s},this.addParticularControlProperties=function(e){if("controlType"in e&&"properties"in e){var o=!1;s.length>0&&s.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||s.push(e)}return s},this.getEasyFormListControls=function(){return e},this.addEasyFormControlToList=function(o){"undefined"!=typeof o&&e.controls.push(o)},this.getHeaderTemplates=function(){return r},this.addHeaderTemplateCssClass=function(e){"undefined"!=typeof e&&r.cssClass.push(e)},this.getFormlyControlTemplate=function(){return a},this.addformlyControlTemplatesCssClass=function(e){"undefined"!=typeof e&&a.className.push(e)},this.setFormlyControlTemplate=function(e){return"className"in e&&"type"in e&&"key"in e&&"templateOptions"in e&&(a=angular.copy(e)),!0},this.$get=[function(){var d={};return d.getEasyFormListControls=function(){return e},d.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(l);return"undefined"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return"undefined"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormEmptyConfigurationLineModel=function(){return o},d.getEasyFormConfigurationEmptyControlModel=function(){return t},d.getRawHeaderTemplates=function(){return r},d.getHeaderTemplateForNcolumnLine=function(e,o){if("undefined"!=typeof e&&"undefined"!=typeof o&&e===parseInt(e,10)&&e<=r.cssClass.length){var t={};return t.className=r.cssClass[e-1],r.textContent=o,r.selectedClass=t.className,t.template=[r.simpleHtml1,o,r.simpleHtml2].join(""),t}},d.getRawFormlyControlTemplates=function(){return a},d.getFormlyControlTemplateForNcolumnLine=function(e,o){if("undefined"!=typeof e&&e===parseInt(e,10)&&e<=a.className.length){var t=angular.copy(a);return t.className=a.className[e-1],"undefined"!=typeof o&&s.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=""),e.isTemplateOptions&&(t.templateOptions[e.value]="")})}),t}},d}]}]),angular.module("edaApp.providers",["edaApp.providers.dragDropConfigProvider","edaApp.providers.EasyFormGenFormlyBindingModels",function(){}]),angular.module("edaApp.controllers",["edaApp.controllers.edaMainController","edaApp.controllers.edaEditController","edaApp.controllers.edaEditMODALController","edaApp.controllers.edaEditPanelController"]),angular.module("edaApp.controllers.edaEditController",[]).controller("edaEditController",["$scope","easyFormGenVersion","$filter","$anchorScroll","toaster","$timeout","$modal","$log","formFieldManage","formsByIdService","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager",function(e,o,t,l,n,i,r,a,s,d,c,p,u,m,f){function g(){n.pop({type:"info",timeout:2e3,title:"should save data model if it were not a static example",body:"data :"+t("json")(e.vm.model,4),showCloseButton:!0})}function y(){s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}e.easyFormGeneratorVERSION=o,e.tab={editTab:{active:!0},previewTab:{active:!1}},e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.ihm={preview:{formlyModelViewExpanded:!0,formlyFieldsViewExpanded:!0,customizeFormButtonsExpanded:!0,saveThisFormExpanded:!0}},e.easyFormDragDropProperties=u.getDragDropConfigModel(),e.dragDropModel=[].concat(u.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},s.initConfigurationEditFromScratch(e.configuration,!1),c.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&u.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=g,e.resetToZeroModel=function(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()},e.countConfigurationModelLines=function(){return e.configuration.lines.length},e.setActiveLineNumber=function(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)},e.upThisLine=function(o){if(o>-1&&e.configuration.lines[o-1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.downThisLine=function(o){if(o>-1&&e.configuration.lines[o+1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.removeThisLine=function(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):i(function(){n.pop({type:"warning",title:"Last line",body:"Can't delete the last line",showCloseButton:!0})},100),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))},e.increaseNumberOfColumns=function(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){if("undefined"==typeof e.configuration.formName)return n.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1;if(""===e.configuration.formName)return n.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1;n.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0});var o=new d;return o.formName=e.configuration.formName,o.submitButtonText=e.configuration.submitButtonText,o.cancelButtonText=e.configuration.cancelButtonText,o.formlyField=JSON.stringify(e.configuration.lines),n.clear(),n.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),!0},e.nyaSelect={},c.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,l){var n=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return c.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,l)}}});n.result.then(function(o){c.bindConfigurationModelFromModalReturn(t,l,o,e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},function(){a.info("Modal dismissed at: "+new Date)})},e.dragoverCallbackContainer=function(e,o,t){return 0===t?!1:!0},e.dropCallback=function(o,t,l,n,r,a){if(n){if("itemType"===a&&!l.label)return!1;if("containerType"===a&&!angular.isArray(l))return!1}var d=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(d)}),l},e.dndItemMoved=function(o,t,l){o>0&&e.dragDropModel[o][t].splice(l,1)},e.dragoverCallbackItems=function(e,o,t,l){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,l,n,r,a,d,c,p,u){if(c){if("itemType"===u&&!d.label)return!1;if("containerType"===u&&!angular.isArray(d))return!1}var g=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return f.setUnRightClicked(d),e.$on("$destroy",function(){i.cancel(g)}),d},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){c.bindSpecialCtrlTemporyModelsToProxyModel(),c.bindConfigurationModelFromProxyModel(c.getEditPanelModelLineIndex(),c.getEditPanelModelColumnIndex(),e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),f.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){f.resetAllDragDropItemSelectedState(e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.debugProxyModel=c.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,l,n){if(f.resetAllDragDropItemSelectedState(e.dragDropModel),c.getEditPanelModelToggle()){if(c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),"undefined"!=typeof c.getEditPanelModelLineIndex()&&"undefined"!=typeof c.getEditPanelModelColumnIndex()&&"undefined"!=typeof c.getEditPanelModelControl())if(c.getEditPanelModelLineIndex()===t&&c.getEditPanelModelColumnIndex()===l&&angular.equals(c.getEditPanelModelControl(),n));else{n.rightCliked=!0;var r=i(function(){c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else n.rightCliked=!0,c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){y(),e.dragDropModel[1].push([])}}]),angular.module("edaApp.controllers.edaEditMODALController",[]).controller("edaEditMODALController",["$scope","$modalInstance","nyaSelect","toaster","$timeout","selectOptionManage","controllerModalProxy",function(e,o,t,l,n,i,r){function a(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:""};e.radioRowCollection.rows.push(t)}}function s(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.radioRowCollection.rows.length>0)for(var t=0;t<=e.radioRowCollection.rows.length-1;t++){var l={name:e.radioRowCollection.rows[t].option,value:t,group:""};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function d(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:""};e.basicSelectRowCollection.rows.push(t)}}function c(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.basicSelectRowCollection.rows.length>0)for(var t=0;t<=e.basicSelectRowCollection.rows.length-1;t++){var l={name:e.basicSelectRowCollection.rows[t].option,value:t,group:""};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function p(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0){for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:e.nyaSelect.temporyConfig.formlyOptions[o].group};e.groupedSelectRowCollection.rows.push(t)}var l=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,"group"));angular.copy(l,e.GroupedSelectGroups.list)}}function u(){e.nyaSelect.temporyConfig.formlyOptions=[];for(var o=0;o<=e.groupedSelectRowCollection.rows.length-1;o++){var t={name:e.groupedSelectRowCollection.rows[o].option,value:o,group:e.groupedSelectRowCollection.rows[o].group};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function m(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function f(){e.nyaSelect.temporyConfig={formlyLabel:"",formlyRequired:!1,formlyPlaceholder:"",formlyDesciption:"",formlyOptions:[]}}var g={rows:[]};if(e.radioRowCollection=g,e.newOptionRadio={saisie:""},e.addNewOptionRadio=function(){var o=i.addNewOptionRadio(e.radioRowCollection,e.newOptionRadio.saisie);o.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:o.details,body:"'"+e.newOptionRadio.saisie+"' cannot be added.",showCloseButton:!0}),e.newOptionRadio={saisie:""}},e.removeRadioRow=function(o){var t=i.removeOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:t.details,body:"Delete was cancelled.",showCloseButton:!0})},e.upThisRadioRow=function(o){var t=i.upthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},e.downThisRadioRow=function(o){var t=i.downthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},e.basicSelectRowCollection=g,e.newOptionBasicSelect={saisie:""},e.addNewOptionBasicSelect=function(){var o=i.addNewOptionBasicSelect(e.basicSelectRowCollection,e.newOptionBasicSelect.saisie);o.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:o.details,body:"'"+e.newOptionBasicSelect.saisie+"' cannot be added.",showCloseButton:!0}),e.newOptionBasicSelect={saisie:""}},e.removeRow=function(o){var t=i.removeOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:t.details,body:"Delete was cancelled.",showCloseButton:!0})},e.upThisRow=function(o){var t=i.upthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},e.downThisRow=function(o){var t=i.downthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({ type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},e.groupedSelectRowCollection=g,e.newOptionGroupedSelect={saisie:""},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:""},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=function(){e.groupSelectGroupClick.showList=!e.groupSelectGroupClick.showList},e.addNewGroupToGroupedSelect=function(){if(""!==e.newGroupGroupedSelect.saisie){for(var o=e.GroupedSelectGroups.list.length-1;o>=0;o--)e.GroupedSelectGroups.list[o]===e.newGroupGroupedSelect.saisie&&l.pop({type:"warning",timeout:2e3,title:"Group already exists",body:"No group added.",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else l.pop({type:"warning",timeout:2e3,title:"Not a valid group to add",body:"No group added.",showCloseButton:!0});e.newGroupGroupedSelect.saisie=""},e.addNewOptionGroupedSelect=function(){var o=i.addNewOptionGroupedSelect(e.groupedSelectRowCollection,e.newOptionGroupedSelect.saisie,"");o.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:o.details,body:"'"+e.newOptionGroupedSelect.saisie+"' cannot be added.",showCloseButton:!0}),e.newOptionGroupedSelect={saisie:""}},e.removeGroupedSelectRow=function(o){var t=i.removeOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:t.details,body:"Delete was cancelled.",showCloseButton:!0})},e.upThisGroupedSelectRow=function(o){var t=i.upthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},e.downThisGroupedSelectRow=function(o){var t=i.downthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},e.demodt={},e.today=function(){e.demodt.dt=new Date},e.today(),e.clear=function(){e.demodt.dt=null},e.open=function(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0},e.dateOptions={formatYear:"yy",startingDay:1,showWeeks:!0,initDate:null},e.demodt.formats=["dd-MMMM-yyyy","yyyy/MM/dd","dd.MM.yyyy","shortDate"],e.nyaSelect=t,e.nyaSelect.selectedControl=e.nyaSelect.temporyConfig.selectedControl,"none"!==t.selectedControl){for(var y=e.nyaSelect.controls.length-1;y>=0;y--)e.nyaSelect.controls[y].id===t.selectedControl&&(e.modelNyaSelect=t.controls[y]);"BasicSelect"===e.nyaSelect.selectedControl&&d(),"GroupedSelect"===e.nyaSelect.selectedControl&&p(),"Radio"===e.nyaSelect.selectedControl&&a()}e.selectThisControl=function(o){e.nyaSelect.selectedControl="none",f();for(var t=e.nyaSelect.controls.length-1;t>=0;t--)e.nyaSelect.controls[t].id===o&&(e.nyaSelect.selectedControl=e.nyaSelect.controls[t].id);"Date"===e.nyaSelect.selectedControl&&m()},e.ok=function(){"BasicSelect"===e.nyaSelect.selectedControl&&c(),"GroupedSelect"===e.nyaSelect.selectedControl&&u(),"Radio"===e.nyaSelect.selectedControl&&s(),r.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)},e.cancel=function(){o.dismiss("cancel")}}]),angular.module("edaApp.controllers.edaEditPanelController",[]).controller("edaEditPanelController",["$scope","toaster","$timeout","selectOptionManage","controllerModalProxy",function(e,o,t,l,n){function i(){a.proxyModel.temporyConfig={formlyLabel:"",formlyRequired:!1,formlyPlaceholder:"",formlyDesciption:"",formlyOptions:[]}}function r(){a.proxyModel.temporyConfig.datepickerPopup=a.demodt.formats[0]}var a=this;if(a.proxyModel=n.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=n.basicSelectRowCollection,a.newOptionBasicSelect=n.newOptionBasicSelect,a.groupedSelectRowCollection=n.groupedSelectRowCollection,a.newOptionGroupedSelect=n.newOptionGroupedSelect,a.GroupedSelectGroups=n.GroupedSelectGroups,a.newGroupGroupedSelect=n.newGroupGroupedSelect,a.groupSelectGroupClick=n.groupSelectGroupClick,a.radioRowCollection=n.radioRowCollection,a.newOptionRadio=n.newOptionRadio,n.resetAllTemporyModels(),"none"!==a.proxyModel.temporyConfig.selectedControl){for(var s=a.proxyModel.controls.length-1;s>=0;s--)a.proxyModel.controls[s].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[s]);"BasicSelect"===a.proxyModel.temporyConfig.selectedControl&&n.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),"GroupedSelect"===a.proxyModel.temporyConfig.selectedControl&&n.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),"Radio"===a.proxyModel.temporyConfig.selectedControl&&n.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return n.basicSelectRowCollection=a.basicSelectRowCollection,n.newOptionBasicSelect=a.newOptionBasicSelect,n.groupedSelectRowCollection=a.groupedSelectRowCollection,n.newOptionGroupedSelect=a.newOptionGroupedSelect,n.GroupedSelectGroups=a.GroupedSelectGroups,n.newGroupGroupedSelect=a.newGroupGroupedSelect,n.groupSelectGroupClick=a.groupSelectGroupClick,n.radioRowCollection=a.radioRowCollection,n.newOptionRadio=a.newOptionRadio,n.bindSpecialCtrlTemporyModelsToProxyModel(),!0},a.resetControl=function(){a.proxyModel.temporyConfig.formlyLabel="",a.proxyModel.temporyConfig.formlyRequired=!1,a.proxyModel.temporyConfig.formlyPlaceholder="",a.proxyModel.temporyConfig.formlyDesciption="",a.proxyModel.temporyConfig.formlyOptions=[],a.proxyModel.temporyConfig.datepickerPopup=r()},a.selectThisControl=function(e){a.proxyModel.selectedControl="none",i();for(var o=a.proxyModel.controls.length-1;o>=0;o--)a.proxyModel.controls[o].id===e&&(a.proxyModel.selectedControl=a.proxyModel.controls[o].id);"Date"===a.proxyModel.selectedControl&&r()},a.addNewOptionRadio=function(){var e=l.addNewOptionRadio(a.radioRowCollection,a.newOptionRadio.saisie);e.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:e.details,body:"'"+a.newOptionRadio.saisie+"' cannot be added.",showCloseButton:!0}),a.newOptionRadio={saisie:""}},a.removeRadioRow=function(e){var t=l.removeOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:t.details,body:"Delete was cancelled.",showCloseButton:!0})},a.upThisRadioRow=function(e){var t=l.upthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},a.downThisRadioRow=function(e){var t=l.downthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},a.addNewOptionBasicSelect=function(){var e=l.addNewOptionBasicSelect(a.basicSelectRowCollection,a.newOptionBasicSelect.saisie);e.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:e.details,body:"'"+a.newOptionBasicSelect.saisie+"' cannot be added.",showCloseButton:!0}),a.newOptionBasicSelect={saisie:""}},a.removeRow=function(e){var t=l.removeOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:t.details,body:"Delete was cancelled.",showCloseButton:!0})},a.upThisRow=function(e){var t=l.upthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},a.downThisRow=function(e){var t=l.downthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},a.showGroupListToChoose=function(){a.groupSelectGroupClick.showList=!a.groupSelectGroupClick.showList},a.addNewGroupToGroupedSelect=function(){if(""!==a.newGroupGroupedSelect.saisie){for(var e=a.GroupedSelectGroups.list.length-1;e>=0;e--)a.GroupedSelectGroups.list[e]===a.newGroupGroupedSelect.saisie&&o.pop({type:"warning",timeout:2e3,title:"Group already exists",body:"No group added.",showCloseButton:!0});a.GroupedSelectGroups.list.push(a.newGroupGroupedSelect.saisie)}else o.pop({type:"warning",timeout:2e3,title:"Not a valid group to add",body:"No group added.",showCloseButton:!0});a.newGroupGroupedSelect.saisie=""},a.addNewOptionGroupedSelect=function(){var e=l.addNewOptionGroupedSelect(a.groupedSelectRowCollection,a.newOptionGroupedSelect.saisie,"");e.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:e.details,body:"'"+a.newOptionGroupedSelect.saisie+"' cannot be added.",showCloseButton:!0}),a.newOptionGroupedSelect={saisie:""}},a.removeGroupedSelectRow=function(e){var t=l.removeOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:t.details,body:"Delete was cancelled.",showCloseButton:!0})},a.upThisGroupedSelectRow=function(e){var t=l.upthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},a.downThisGroupedSelectRow=function(e){var t=l.downthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:"warning",timeout:2e3,title:t.details,body:"Operation cancelled.",showCloseButton:!0})},a.demodt={},a.today=function(){a.demodt.dt=new Date},a.today(),a.clear=function(){a.demodt.dt=null},a.open=function(e){e.preventDefault(),e.stopPropagation(),a.demodt.opened=!0},a.dateOptions={formatYear:"yy",startingDay:1,showWeeks:!0,initDate:null},a.demodt.formats=["dd-MMMM-yyyy","yyyy/MM/dd","dd.MM.yyyy","shortDate"]}]),angular.module("edaApp.controllers.edaMainController",[]).controller("edaMainController",[function(){}]),angular.module("edaApp.directives.edaDdContentCounterDirective",[]).directive("ddContentCounter",["dragDropItemCounterService","$timeout",function(e,o){return{scope:{valueWhenPlaceholder:"@ddValueWhenPlaceholder",valueWhendragging:"@ddValueWhenDragging",fullModel:"=ddFullModel",currentIndex:"@ddContentCounterCurrentIndex",parentIndex:"@ddContentCounterParentIndex",forceRefresh:"=ddContentCounterForceCssRefresh"},restrict:"A",link:function(t,l){var n;t.$watch(function(){return l[0].children.length},function(i,r){if(i!==r){for(var a=0,s=[],d=l[0].children.length-1;d>=0;d--)e.isHtmlElementToCount(l[0].children[d].classList)?(a++,s.push({item:d,isReal:!0})):s.push({item:d,isReal:!1});t.contentRealCount=a,n=o(function(){e.updateLineItemCss(t.fullModel,s,t.parentIndex,t.currentIndex,a)},20)}}),t.$on("$destroy",function(){console.warn("ddContentCounter timer destruction!"),o.cancel(n)})}}}]),angular.module("edaApp.directives.edaDdDecorContainerDirective",[]).directive("ddDecorContainer",[function(){var e=['
','
 {{currentTitle}}
',"
",'
','
',"
"].join(" ");return{scope:{styleParam:"=ddContainerProperties",isStillCollapsed:"=ddContainerIsCollpased",verboseMode:"@ddContainerVerboseMode",currentIndex:"@ddContainerCurrentIndex",collpaseAll:"&ddCollapseAll"},restrict:"A",template:e,transclude:!0,controller:function(e){e.config={isEnabled:!1},e.collapseFct=function(){e.collpaseAll({exceptThisOne:e.styleParam.WhenIndex}),e.isCollapsed=!e.isCollapsed,e.isStillCollapsed=e.isCollapsed},e.icons={closedClass:"glyphicon glyphicon-eye-open",opened:"glyphicon glyphicon-eye-close"},e.currentIconClass=function(){return e.isCollapsed?e.icons.closedClass:e.icons.opened}},link:function(e,o,t,l,n){var i=e.verboseMode,r=e.currentIndex;if(e.isCollapsed=!1,""!==i){var a=angular.lowercase(i);("true"===a||"1"===a)&&console.dir({whoAmI:"I am verbose from ddDecorContainer link",verbodeMode:a,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:r,styleParam:e.styleParam,columnindex:e.$parent.$parent.$parent.$parent.$index})}e.$watch(function(){return e.isStillCollapsed},function(o,t){o!==t&&0===e.$parent.$parent.$index&&(e.isCollapsed=o)}),e.config.isEnabled=!1,"undefined"!=typeof r&&""!==r&&"0"===r&&"undefined"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title,e.config.isEnabled=!0,e.isCollapsed=!0),n(e.$parent,function(e){var t=angular.element(o.children()[1]);t.append(e)})}}}]),angular.module("edaApp.directives.edaDdDecorDropZoneDirective",[]).directive("ddDecorDropZone",[function(){var e=['
','
','
','
','

','  '," {{currentTitle}}",'
',' ","
","

","
",'
','
','
',"
","
","
","
","
","
"].join(" ");return{scope:{styleParam:"=ddDropZoneProperties",verboseMode:"@ddDropZoneVerboseMode",currentIndex:"@ddDropZoneCurrentIndex",addNewLineFct:"&ddDropZoneAddNewLine"},restrict:"A",template:e,transclude:!0,link:function(e){var o=e.verboseMode,t=e.currentIndex;if(e.headerConfig={HeaderButtonVisible:!1,affixAttr:"bs-affix",affixEnabled:!1},""!==o){var l=angular.lowercase(o);("true"===l||"1"===l)&&console.dir({whoAmI:"I am verbose from ddDecorDropZone link",verbodeMode:l,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:t,styleParam:e.styleParam})}"undefined"!=typeof t&&""!==t&&("undefined"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title),"undefined"!=typeof e.styleParam.fontAwesomeIcon&&(e.currentFontAwesome=e.styleParam.fontAwesomeIcon),"1"===t&&(e.headerConfig.HeaderButtonVisible=!0))}}}]),angular.module("edaApp.directives.edaDdDecorItemDirective",[]).directive("ddDecorItem",["dragDropConfig",function(e){var o=["
",'
',"
"].join(" ");return{scope:{verboseMode:"@ddItemVerboseMode",currentIndex:"@ddItemCurrentIndex",parentIndex:"@ddItemParentIndex",parentParentIndex:"@ddItemParentParentIndex",lineItemsCount:"@ddItemsCount",cssClass:"@ddItemCssClass"},restrict:"A",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex,d=e.getDistinctItemCssClass();if(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch("cssClass",function(e,o){e!==o&&(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(e))}),""!==r){var c=angular.lowercase(r);("true"===c||"1"===c)&&console.dir({whoAmI:"I am verbose from ddDecorItem directive link",verbodeMode:c,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}"0"===o.parentParentIndex&&t.addClass(d[0]),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module("edaApp.directives.edaDdDecorLineDirective",[]).directive("ddDecorLine",["$timeout",function(e){var o=['
',' ',"
",'
'].join(" ");return{scope:{verboseMode:"@ddLineVerboseMode",currentIndex:"@ddLineCurrentIndex",parentIndex:"@ddLineParentIndex",removeLine:"&ddRemoveLine"},restrict:"A",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,""!==r){var d=angular.lowercase(r);("true"===d||"1"===d)&&console.dir({whoAmI:"I am verbose from ddDecorLine directive link",verbodeMode:d,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,currentIndex:a})}o.removeMe=function(t){t.preventDefault(),t.stopPropagation(),"1"===o.parentIndex&&(1===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1,o.removeLine(),e.cancel(c)),0===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=o.deleteLine.dblClickCount+1,o.deleteLine.readyToDelete=!0))};var c;o.cancelDelete=function(t){c=e(function(){o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1},500)},o.$on("$destroy",function(){e.cancel(c)}),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module("edaApp.directives.edaDdNoEditableControlDirective",[]).directive("ddNoEditableControl",[function(){return{restrict:"A",link:function(e,o){o.on("click",function(e){e.preventDefault()})}}}]),angular.module("edaApp.directives",["edaApp.directives.edaStRationDirective","edaApp.directives.edaDdDecorDropZoneDirective","edaApp.directives.edaDdDecorContainerDirective","edaApp.directives.edaDdDecorLineDirective","edaApp.directives.edaDdDecorItemDirective","edaApp.directives.edaDdNoEditableControlDirective","edaApp.directives.edaDdContentCounterDirective","edaApp.directives.edaRightClickDirective"]),angular.module("edaApp.directives.edaRightClickDirective",[]).directive("edaRightClick",["$parse",function(e){return{restrict:"A",link:function(o,t,l){var n=e(l.edaRightClick),i=e(l.edaRightClickColIndex),r=e(l.edaSetRightClicked);t.on("contextmenu",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&n(o,{$event:e})})})}}}]),angular.module("edaApp.directives.edaStRationDirective",[]).directive("stRatio",[function(){return{restrict:"A",link:function(e,o,t){var l=+t.stRatio;o.css("width",l+"%")}}}]),angular.module("edaApp.services.dragDropItemCountersService",[]).factory("dragDropItemCounterService",["dragDropConfig",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),l={};return l.getItemsNotToCount=function(){return t},l.getModelItemsRealCounter=function(){return o},l.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var l=e.length-1;l>=0;l--)e[l]===t&&(o&=!1)}),o},l.updateLineItemCss=function(o,t,l,n,i){if("undefined"!=typeof o&&"undefined"!=typeof t&&"undefined"!=typeof l&&"undefined"!=typeof n&&"undefined"!=typeof i){for(var r=o[l][n].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][l][r].cssClass=e.getItemCssDependingNumberItemsInRow(n);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if("undefined"!=typeof t&&"undefined"!=typeof o){for(var l=o[t].length-1;l>=0;l--)for(var n=o[t][l].length-1;n>=0;n--)o[t][l][n].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][l].length);return!0}return!1},t}]),angular.module("edaApp.services.dragDropModelConfigModelProxyService",[]).factory("ddModelConfModelProxyService",["EasyFormGenFormlyBindingModels","controllerModalProxy","$parse",function(e,o,t){function l(o){var l={},n=e.getEasyFormListControls(),i=t("controls");return angular.forEach(i(n),function(e){e.id===o.control&&(l=e)}),l}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)"undefined"!=typeof o.lines[l].columns[n].control&&o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(e,o){var t=e+"-"+Date.now();return n(t,o)===!0?t:(t=e+"-"+Date.now(),n(t,o)===!0?t:t=e+"-"+Date.now())}function r(e,o,t){angular.forEach(t.lines,function(t,l){l===o&&(t.line=e)})}function a(e,o,l){t("control.selectedControl").assign(o,t("selectedControl")(e)),t("control.type").assign(o,t("formlyType")(e)),t("control.key").assign(o,i(t("control.type")(o),l)),t("control.subtype").assign(o,t("formlySubtype")(e)),t("control.templateOptions.label").assign(o,t("formlyLabel")(e)),t("control.templateOptions.required").assign(o,t("formlyRequired")(e)),t("control.templateOptions.description").assign(o,t("formlyDesciption")(e)),t("control.templateOptions.placeholder").assign(o,t("formlyPlaceholder")(e)),t("control.templateOptions.options").assign(o,t("formlyOptions")(e)),"datepicker"===t("control.type")(o)&&t("control.templateOptions.datepickerPopup").assign(o,t("datepickerPopup")(e))}var s={};return s.refreshAllConfigurationFromDragAndDropModel=function(o,t){angular.copy(o);return o.lines=[],angular.forEach(t[1],function(t,n){o.lines.push(angular.copy(e.getEasyFormEmptyConfigurationLineModel())),r(n+1,n,o),angular.forEach(t,function(i,r){var s={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},d=l(t[r]);if("undefined"!=typeof i.key){console.warn("debug dragdropModel show this control key : "+i.key),s.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);s.control.className=c.className,s.control.cssClass=c.className}else a(d,s,o);"undefined"==typeof o.lines[n].columns[r]&&o.lines[n].columns.push(angular.copy(e.getEasyFormConfigurationEmptyControlModel())),o.lines[n].columns[r].control=angular.copy(s.control),o.lines[n].columns[r].numColumn=r+1,o.lines[n].columns[r].exist=!0})}),o},s.refreshControlsKeys=function(e,o){angular.forEach(e.lines,function(e,t){angular.forEach(e.columns,function(e,l){"undefined"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][l].key=e.control.key,o[1][t][l].configModelControl=angular.copy(e.control))})}),console.info("refreshControlsKeys"),console.dir({when:"starting","configModel is ":angular.copy(e),"dragDropModel is ":angular.copy(o)})},s}]),angular.module("edaApp.services.edaEditCtrlControllerModalProxy",[]).factory("controllerModalProxy",["EasyFormGenFormlyBindingModels",function(e){function o(o){var t=e.getEasyFormListControls();return angular.copy(t,o),!0}function t(){var o=e.getEasyFormListControls();return r.proxyModel=angular.copy(o),!0}function l(e){for(var o={selectedControl:"none",formlyType:"none",formlySubtype:"none",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[]},t=e.controls.length-1;t>=0;t--)e.selectedControl===e.controls[t].id&&(o.selectedControl=e.selectedControl,o.formlyType=e.controls[t].formlyType,o.formlySubtype=e.controls[t].formlySubtype,o.formlyLabel=e.controls[t].formlyLabel,o.formlyRequired=e.controls[t].formlyRequired,o.formlyDesciption=e.controls[t].formlyDesciption,o.formlyPlaceholder=e.controls[t].formlyPlaceholder,o.formlyOptions=e.controls[t].formlyOptions,"datepicker"===e.controls[t].formlyType&&(o.datepickerPopup=e.controls[t].datepickerPopup));return o}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(o){var t="none",l=angular.copy(e.getEasyFormListControls().controls);return l.forEach(function(e){return e.formlyType===o.type&&e.formlySubtype===o.subtype?t=e.id:void 0}),t}var r={};r.ProxyModel={},t(),r.initNyaSelect=function(e){return o(e)},r.getNyASelectFromSelectedLineColumn=function(e,t,l,n){return o(e),"undefined"!=typeof t.lines[l].columns[n].control.templateOptions&&(e.temporyConfig.selectedControl="undefined"!=typeof t.lines[l].columns[n].control.selectedControl?t.lines[l].columns[n].control.selectedControl:"none",e.temporyConfig.formlyLabel="undefined"!=typeof t.lines[l].columns[n].control.templateOptions.label?t.lines[l].columns[n].control.templateOptions.label:"",e.temporyConfig.formlyRequired="undefined"!=typeof t.lines[l].columns[n].control.templateOptions.required?t.lines[l].columns[n].control.templateOptions.required:"",e.temporyConfig.formlyDesciption="undefined"!=typeof t.lines[l].columns[n].control.templateOptions.description?t.lines[l].columns[n].control.templateOptions.description:"",e.temporyConfig.formlyPlaceholder="undefined"!=typeof t.lines[l].columns[n].control.templateOptions.placeholder?t.lines[l].columns[n].control.templateOptions.placeholder:"",e.temporyConfig.formlyOptions="undefined"!=typeof t.lines[l].columns[n].control.templateOptions.options?t.lines[l].columns[n].control.templateOptions.options:"","Date"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup="undefined"!=typeof t.lines[l].columns[n].control.templateOptions.datepickerPopup?t.lines[l].columns[n].control.templateOptions.datepickerPopup:"")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=l(t);i.lines[e].columns[o].control.selectedControl=r.selectedControl,i.lines[e].columns[o].control.type=r.formlyType,i.lines[e].columns[o].control.subtype=r.formlySubtype,i.lines[e].columns[o].control.templateOptions={label:"",required:!1,description:"",placeholder:"",options:[]},i.lines[e].columns[o].control.templateOptions.label=r.formlyLabel,i.lines[e].columns[o].control.templateOptions.required=r.formlyRequired,i.lines[e].columns[o].control.templateOptions.description=r.formlyDesciption,i.lines[e].columns[o].control.templateOptions.placeholder=r.formlyPlaceholder,i.lines[e].columns[o].control.templateOptions.options=r.formlyOptions,"datepicker"===i.lines[e].columns[o].control.type&&(i.lines[e].columns[o].control.templateOptions.datepickerPopup=r.datepickerPopup);var a=i.lines[e].columns[o].control.type+"-"+Date.now();n(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+"-"+Date.now(),n(a,i)===!0?i.lines[e].columns[o].control.key=a:a=i.lines[e].columns[o].control.type+"-"+Date.now()),i.lines[e].columns[o].control.edited=!0},r.applyConfigToSelectedControl=function(e){for(var o=e.controls.length-1;o>=0;o--)e.controls[o].id===e.selectedControl&&(e.controls[o].formlyLabel=e.temporyConfig.formlyLabel,e.controls[o].formlyRequired=e.temporyConfig.formlyRequired,e.controls[o].formlyDesciption=e.temporyConfig.formlyDesciption,e.controls[o].formlyPlaceholder=e.temporyConfig.formlyPlaceholder,e.controls[o].formlyOptions=e.temporyConfig.formlyOptions,"Date"===e.controls[o].id&&(e.controls[o].datepickerPopup=e.temporyConfig.datepickerPopup))},r.initProxyModel=function(e){return t(e)},r.bindConfigurationModelFromProxyModel=function(e,o,t){var l=angular.copy(r.proxyModel.temporyConfig);console.warn("debug edaEditCtrlControllerModalProxy"),console.dir(l),t.lines[e].columns[o].control.selectedControl=l.selectedControl,t.lines[e].columns[o].control.type=l.formlyType,t.lines[e].columns[o].control.subtype=l.formlySubtype,t.lines[e].columns[o].control.templateOptions={label:"",required:!1,description:"",placeholder:"",options:[]},t.lines[e].columns[o].control.templateOptions.label=l.formlyLabel,t.lines[e].columns[o].control.templateOptions.required=l.formlyRequired,t.lines[e].columns[o].control.templateOptions.description=l.formlyDesciption,t.lines[e].columns[o].control.templateOptions.placeholder=l.formlyPlaceholder,t.lines[e].columns[o].control.templateOptions.options=l.formlyOptions,"datepicker"===t.lines[e].columns[o].control.type&&(t.lines[e].columns[o].control.templateOptions.datepickerPopup=l.datepickerPopup);var i=t.lines[e].columns[o].control.type+"-"+Date.now();n(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+"-"+Date.now(),n(i,t)===!0?t.lines[e].columns[o].control.key=i:i=t.lines[e].columns[o].control.type+"-"+Date.now()),t.lines[e].columns[o].control.edited=!0},r.setProxyModelFromConfigurationSelection=function(e,o,t){return"undefined"!=typeof e.lines[o].columns[t].control&&(r.proxyModel.selectedControl="undefined"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):"none",r.proxyModel.temporyConfig.selectedControl="undefined"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):"none",r.proxyModel.temporyConfig.formlyType="undefined"!=typeof e.lines[o].columns[t].control.type?e.lines[o].columns[t].control.type:"none",r.proxyModel.temporyConfig.formlySubtype="undefined"!=typeof e.lines[o].columns[t].control.subtype?e.lines[o].columns[t].control.subtype:"none",r.proxyModel.temporyConfig.formlyLabel="undefined"!=typeof e.lines[o].columns[t].control.templateOptions.label?e.lines[o].columns[t].control.templateOptions.label:"",r.proxyModel.temporyConfig.formlyRequired="undefined"!=typeof e.lines[o].columns[t].control.templateOptions.required?e.lines[o].columns[t].control.templateOptions.required:"",r.proxyModel.temporyConfig.formlyDesciption="undefined"!=typeof e.lines[o].columns[t].control.templateOptions.description?e.lines[o].columns[t].control.templateOptions.description:"",r.proxyModel.temporyConfig.formlyPlaceholder="undefined"!=typeof e.lines[o].columns[t].control.templateOptions.placeholder?e.lines[o].columns[t].control.templateOptions.placeholder:"",r.proxyModel.temporyConfig.formlyOptions="undefined"!=typeof e.lines[o].columns[t].control.templateOptions.options?e.lines[o].columns[t].control.templateOptions.options:"","Date"===r.proxyModel.temporyConfig.selectedControl&&(r.proxyModel.temporyConfig.datepickerPopup="undefined"!=typeof e.lines[o].columns[t].control.templateOptions.datepickerPopup?e.lines[o].columns[t].control.templateOptions.datepickerPopup:"")),r.proxyModel},r.getProxyModel=function(){return r.proxyModel};var a={toggle:!1,lineIndex:-1,columnIndex:-1,control:{}};r.getEditPanelModelAllModel=function(){return a},r.setEditPanelModelControl=function(e){var o=!1;return"undefined"!=typeof e&&(a=angular.copy(e),o=!0),o},r.getEditPanelModelColumnIndex=function(){return a.columnIndex},r.setEditPanelModelColumnIndex=function(e){var o=!1;return"undefined"!=typeof e&&(a.columnIndex=e,o=!0),o},r.getEditPanelModelLineIndex=function(){return a.lineIndex},r.setEditPanelModelLineIndex=function(e){var o=!1;return"undefined"!=typeof e&&(a.lineIndex=e,o=!0),o},r.getEditPanelModelControl=function(){return a.control},r.setEditPanelModelControl=function(e){var o=!1;return"undefined"!=typeof e&&(a.control=angular.copy(e),o=!0),o},r.getEditPanelModelToggle=function(){return a.toggle},r.setEditPanelModelToggle=function(e){var o=!1;return"undefined"!=typeof e&&(a.toggle=e,o=!0),o};var s={rows:[]};return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:""}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:""}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:""}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:""}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:""}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:""}),!0},r.bindSpecialCtrlTemporyModelsToProxyModel=function(){ "BasicSelect"===r.proxyModel.selectedControl&&r.bindBasicSelectToProxyModel(r.basicSelectRowCollection),"GroupedSelect"===r.proxyModel.selectedControl&&r.bindGroupedSelectToProxyModel(r.groupedSelectRowCollection),"Radio"===r.proxyModel.selectedControl&&r.bindRadioToProxyModel(r.radioRowCollection)},r.bindBasicSelectFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:""};e.rows.push(t)}},r.bindBasicSelectToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r.bindGroupedSelectFromProxyModel=function(e,o){if(r.proxyModel.temporyConfig.formlyOptions.length>0){for(var t=0;t<=r.proxyModel.temporyConfig.formlyOptions.length-1;t++){var l={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(l)}var n=_.uniq(_.pluck(e.rows,"group"));angular.copy(n,o.list)}},r.bindGroupedSelectToProxyModel=function(e){r.proxyModel.temporyConfig.formlyOptions=[];for(var o=0;o<=e.rows.length-1;o++){var t={name:e.rows[o].option,value:o,group:e.rows[o].group};r.proxyModel.temporyConfig.formlyOptions.push(t)}},r.bindRadioFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:""};e.rows.push(t)}},r.bindRadioToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r}]),angular.module("edaApp.services.formFieldManage",[]).factory("formFieldManage",["EasyFormGenFormlyBindingModels",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,l){var n=t.lines[l].columns.length,i=o.push({className:"row",fieldGroup:[]})-1;t.lines[l].columns.forEach(function(t,l){var r={};if("undefined"!=typeof r&&"none"!==t.control.type){if("header"===t.control.type||"subTitle"===t.control.type){var a=t.control.templateOptions.description;r.template=e.getHeaderTemplateForNcolumnLine(n,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(n,t.control.type),r.className=t.control.className,r.type=t.control.type,r.key=t.control.key,r.templateOptions.type=t.control.templateOptions.type,r.templateOptions.label=t.control.templateOptions.label,r.templateOptions.required=t.control.templateOptions.required,r.templateOptions.placeholder=t.control.templateOptions.placeholder,r.templateOptions.description=t.control.templateOptions.description,r.templateOptions.options=[].concat(t.control.templateOptions.options),"undefined"!=typeof r.templateOptions.datepickerPopup&&(t.control.templateOptions.datepickerPopup=r.templateOptions.datepickerPopup);o[i].fieldGroup.push(r)}})}function l(e){var o={};return angular.copy(o,e),!0}function n(e,o){var t={noError:!1,title:"",Message:""};return t.noError=!1,t.title=e,t.Message=o,t}function i(e,o){var t={noError:!1,title:"",Message:""};return t.noError=!0,t.title=e,t.Message=o,t}var r={};return r.initConfigurationEditFromScratch=function(o,t){var l=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(l,o)},r.bindConfigurationLines=function(o,t,l){if("[object Array]"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(l);return r.lines=[].concat(t),angular.copy(r,o),i("configuration model is bound","lines are bound to configuration model.")}return n("lines is not an array","Checks lines type, it is not an array.")},r.applyConfigurationToformlyModel=function(e,n,i){o(n),l(i);for(var r=e.lines.length,a=0;r>a;a++)t(n,e,a)},r}]),angular.module("edaApp.services.formsByIdService",["ngResource"]).factory("formsByIdService",["$resource",function(e){return e("/api/formGen/:id",{id:"@id"},{})}]),angular.module("edaApp.services.selectOptionManage",[]).factory("selectOptionManage",[function(){function e(e,o){var t={resultFlag:!1,details:""};if("undefined"==typeof o)return t.resultFlag=!1,t.details="Entered option is empty",t;if(""!==o){for(var l=e.rows.length-1;l>=0;l--)if(e.rows[l].option===o)return t.resultFlag=!1,t.details="Entered option is not unique",t;return t.resultFlag=!0,t.details="",t}return t.resultFlag=!1,t.details="Entered option is empty",t}function o(e){var o={rows:[]};angular.copy(o,e)}return{testMe:function(){return"selectOptionManage is here."},initModel:function(e){o(e)},isOptionUnique:function(e,o){for(var t=e.rows.length-1;t>=0;t--)if(e.rows[t].option===o)return!1;return!0},isOptionValidFormat:function(e){return""!==e?!0:!1},addNewOptionRadio:function(o,t){var l={resultFlag:!1,details:""},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details="",l}return angular.copy(n,l),l},addNewOptionBasicSelect:function(o,t){var l={resultFlag:!1,details:""},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details="",l}return angular.copy(n,l),l},addNewOptionGroupedSelect:function(o,t,l){var n={resultFlag:!1,details:""},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:l,order:o.rows.length};return o.rows.push(r),n.resultFlag=!0,n.details="",n}return angular.copy(i,n),n},removeOption:function(e,o){var t={resultFlag:!1,details:""};return-1!==o?(e.rows.splice(o,1),t.resultFlag=!0,t.details="",t):(t.resultFlag=!1,t.details="Option index not valid",t)},upthisOption:function(e,o){var t={resultFlag:!1,details:""};if(o>-1){if(o>0){if(e.rows[o-1]){var l=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,l),t.resultFlag=!0,t.details="",t}return t.resultFlag=!1,t.details="Can't retreive option from option index",t}return t.resultFlag=!0,t.details="",t}return t.resultFlag=!1,t.details="Option index not valid",t},downthisOption:function(e,o){var t={resultFlag:!1,details:""};if(o>-1){if(o'}),e.setType({name:"blank",template:"
"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:"subTitle",template:n});var t='
  1. {{option.name}}
';e.setType({name:"basicSelect",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:"groupedSelect",template:l});var r=["date-disabled","custom-class","show-weeks","starting-day","init-date","min-mode","max-mode","format-day","format-month","format-year","format-day-header","format-day-title","format-month-title","year-range","shortcut-propagation","datepicker-popup","show-button-bar","current-text","clear-text","close-text","close-on-date-selection","datepicker-append-to-body"],i=["datepicker-mode","min-date","max-date"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:"datepicker",template:'',wrapper:["bootstrapLabel","bootstrapHasError"],controller:["$scope",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{"class":"glyphicon glyphicon-calendar",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
"," ",'
','
','
'," {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}","
","
","
"].join(" ")}])}angular.module("eda.easyFormViewer").config(e)}(),angular.module("eda.easyFormViewer").run(["$templateCache",function(e){e.put("eda.easyFormViewer.Template.html",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||"Submit")}function m(e,n){e!==n&&(o.vm.cancelText=e||"Submit")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||"Submit",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||"Cancel",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}var t={restrict:"E",scope:{edaEasyFormViewerDataModel:"=?",edaEasyFormViewerEasyFormGeneratorFieldsModel:"=?",edaEasyFormViewerSubmitButtonText:"=?",edaEasyFormViewerCancelButtonText:"=?",edaEasyFormViewerSubmitFormEvent:"&?",edaEasyFormViewerCancelFormEvent:"&?"},replace:!1,controller:n,controllerAs:"vm",templateUrl:"eda.easyFormViewer.Template.html",link:o};return t}angular.module("eda.easyFormViewer.Directive",[]).directive("edaEasyFormViewer",e),e.$inject=["modelsTranslator"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:"empty",name:"no control",subtitle:"no control",group:"Blank",formlyType:"blank",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Header",name:"Header",subtitle:"no control",group:"Decoration",formlyType:"header",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Subtitle",name:"Subtitle",subtitle:"no control",group:"Decoration",formlyType:"subTitle",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"TextInput",name:"Text input",subtitle:"Text input",group:"input",formlyType:"input",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Text input field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Password",name:"Password",subtitle:"Password",group:"input",formlyType:"input",formlySubtype:"password",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Email",name:"Email",subtitle:"Email",group:"input",formlyType:"input",formlySubtype:"email",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\.[a-z.]{2,5}$/.test(n)},message:"$viewValue + ' is not a valid email'"}},formlyValidation:{messages:{required:function(e,o,n){var t="this Email field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return n.to.required?l:void 0}}}},{id:"Date",name:"Date",subtitle:"Date",group:"input",formlyType:"datepicker",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],datepickerPopup:"dd-MMMM-yyyy",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Date field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Texarea",name:"Textarea",subtitle:"Textarea",group:"Textarea",formlyType:"textarea",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Textarea field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"RichTextEditor",name:"RichTextEditor",subtitle:"RichTextEditor",group:"Textarea",formlyType:"richEditor",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this RichTextEditor field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Radio",name:"Radio",subtitle:"Radio",options:[],group:"Radio",formlyType:"radio",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Checkbox",name:"Checkbox",subtitle:"Checkbox",group:"Checkbox",formlyType:"checkbox",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Checkbox field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"BasicSelect",name:"Basic select",subtitle:"Basic select",options:[],group:"Select",formlyType:"basicSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Basic select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"GroupedSelect",name:"Grouped Select",subtitle:"Grouped Select",options:[],group:"Select",formlyType:"groupedSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Grouped Select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}}],selectedControl:"none",temporyConfig:{selectedControl:"none",formlyLabel:"label",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}]};angular.copy(o,e)}function a(e,o){if("[object Array]"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q("configuration model is bound","lines are bound to configuration model.")}return S("lines is not an array","Checks lines type, it is not an array.")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&("header"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+"


";e.push({template:"undefined"!=typeof o.lines[n].columns[0].control.type&&"header"===o.lines[n].columns[0].control.type?t:"
"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:"col-xs-12",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:"col-xs-6",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-6",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push("header"===o.lines[n].columns[0].control.type?t:r),s.push("header"===o.lines[n].columns[1].control.type?l:i),e.push({className:"row",fieldGroup:s})}function y(e,o,n){var t={className:"col-xs-4",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-4",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-4",template:'

'+w(o.lines[n].columns[2].control)+"


"},i={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[2].control.type?"none"===o.lines[n].columns[2].control.type?"blank":o.lines[n].columns[2].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:h(o.lines[n].columns[2].control),validators:g(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};"datepicker"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push("header"===o.lines[n].columns[0].control.type?t:i),c.push("header"===o.lines[n].columns[1].control.type?l:s),c.push("header"===o.lines[n].columns[2].control.type?r:a),e.push({className:"row",fieldGroup:c})}function b(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.label?e.templateOptions.label:""}function v(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:""}function h(e){return"undefined"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function g(e){return"undefined"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return"undefined"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.required?e.templateOptions.required:""}function E(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.options?e.templateOptions.options:""}function V(e){return"undefined"!=typeof e.subtype?e.subtype:""}function T(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:""}function w(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.description?e.templateOptions.description:""}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!0,n.title=e,n.Message=o,n}angular.module("eda.modelsTranslator.Service",[]).factory("modelsTranslator",e),e.$inject=[]}()}(this); +!function(){"use strict";!function(){angular.module("eda.easyFormViewer",["textAngular","formly","ngAnimate","formlyBootstrap","ui.bootstrap","nya.bootstrap.select","eda.easyFormViewer.Directive","eda.modelsTranslator.Service"])}(),function(){function e(e){function o(e){return e=e.replace(/[\-_\s]+(.)?/g,function(e,o){return o?o.toUpperCase():""}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():""})}e.setType({name:"richEditor",template:''}),e.setType({name:"blank",template:"
"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:"subTitle",template:n});var t='
  1. {{option.name}}
';e.setType({name:"basicSelect",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:"groupedSelect",template:l});var r=["date-disabled","custom-class","show-weeks","starting-day","init-date","min-mode","max-mode","format-day","format-month","format-year","format-day-header","format-day-title","format-month-title","year-range","shortcut-propagation","datepicker-popup","show-button-bar","current-text","clear-text","close-text","close-on-date-selection","datepicker-append-to-body"],i=["datepicker-mode","min-date","max-date"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:"datepicker",template:'',wrapper:["bootstrapLabel","bootstrapHasError"],controller:["$scope",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{"class":"glyphicon glyphicon-calendar",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
"," ",'
','
','
'," {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}","
","
","
"].join(" ")}])}angular.module("eda.easyFormViewer").config(e),e.$inject=["formlyConfigProvider"]}(),angular.module("eda.easyFormViewer").run(["$templateCache",function(e){e.put("eda.easyFormViewer.Template.html",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||"Submit")}function m(e,n){e!==n&&(o.vm.cancelText=e||"Submit")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||"Submit",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||"Cancel",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}n.$inject=[];var t={restrict:"E",scope:{edaEasyFormViewerDataModel:"=?",edaEasyFormViewerEasyFormGeneratorFieldsModel:"=?",edaEasyFormViewerSubmitButtonText:"=?",edaEasyFormViewerCancelButtonText:"=?",edaEasyFormViewerSubmitFormEvent:"&?",edaEasyFormViewerCancelFormEvent:"&?"},replace:!1,controller:n,controllerAs:"vm",templateUrl:"eda.easyFormViewer.Template.html",link:o};return t}angular.module("eda.easyFormViewer.Directive",[]).directive("edaEasyFormViewer",e),e.$inject=["modelsTranslator"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:"empty",name:"no control",subtitle:"no control",group:"Blank",formlyType:"blank",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Header",name:"Header",subtitle:"no control",group:"Decoration",formlyType:"header",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Subtitle",name:"Subtitle",subtitle:"no control",group:"Decoration",formlyType:"subTitle",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"TextInput",name:"Text input",subtitle:"Text input",group:"input",formlyType:"input",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Text input field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Password",name:"Password",subtitle:"Password",group:"input",formlyType:"input",formlySubtype:"password",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Email",name:"Email",subtitle:"Email",group:"input",formlyType:"input",formlySubtype:"email",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\.[a-z.]{2,5}$/.test(n)},message:"$viewValue + ' is not a valid email'"}},formlyValidation:{messages:{required:function(e,o,n){var t="this Email field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return n.to.required?l:void 0}}}},{id:"Date",name:"Date",subtitle:"Date",group:"input",formlyType:"datepicker",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],datepickerPopup:"dd-MMMM-yyyy",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Date field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Texarea",name:"Textarea",subtitle:"Textarea",group:"Textarea",formlyType:"textarea",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Textarea field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"RichTextEditor",name:"RichTextEditor",subtitle:"RichTextEditor",group:"Textarea",formlyType:"richEditor",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this RichTextEditor field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Radio",name:"Radio",subtitle:"Radio",options:[],group:"Radio",formlyType:"radio",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Checkbox",name:"Checkbox",subtitle:"Checkbox",group:"Checkbox",formlyType:"checkbox",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Checkbox field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"BasicSelect",name:"Basic select",subtitle:"Basic select",options:[],group:"Select",formlyType:"basicSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Basic select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"GroupedSelect",name:"Grouped Select",subtitle:"Grouped Select",options:[],group:"Select",formlyType:"groupedSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Grouped Select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}}],selectedControl:"none",temporyConfig:{selectedControl:"none",formlyLabel:"label",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}]};angular.copy(o,e)}function a(e,o){if("[object Array]"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q("configuration model is bound","lines are bound to configuration model.")}return S("lines is not an array","Checks lines type, it is not an array.")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&("header"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+"


";e.push({template:"undefined"!=typeof o.lines[n].columns[0].control.type&&"header"===o.lines[n].columns[0].control.type?t:"
"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:"col-xs-12",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:g(o.lines[n].columns[0].control),validators:h(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:"col-xs-6",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-6",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:g(o.lines[n].columns[0].control),validators:h(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:g(o.lines[n].columns[1].control),validators:h(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push("header"===o.lines[n].columns[0].control.type?t:r),s.push("header"===o.lines[n].columns[1].control.type?l:i),e.push({className:"row",fieldGroup:s})}function y(e,o,n){var t={className:"col-xs-4",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-4",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-4",template:'

'+w(o.lines[n].columns[2].control)+"


"},i={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:g(o.lines[n].columns[0].control),validators:h(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:g(o.lines[n].columns[1].control),validators:h(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[2].control.type?"none"===o.lines[n].columns[2].control.type?"blank":o.lines[n].columns[2].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:g(o.lines[n].columns[2].control),validators:h(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};"datepicker"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push("header"===o.lines[n].columns[0].control.type?t:i),c.push("header"===o.lines[n].columns[1].control.type?l:s),c.push("header"===o.lines[n].columns[2].control.type?r:a),e.push({className:"row",fieldGroup:c})}function b(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.label?e.templateOptions.label:""}function v(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:""}function g(e){return"undefined"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function h(e){return"undefined"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return"undefined"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.required?e.templateOptions.required:""}function E(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.options?e.templateOptions.options:""}function V(e){return"undefined"!=typeof e.subtype?e.subtype:""}function T(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:""}function w(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.description?e.templateOptions.description:""}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!0,n.title=e,n.Message=o,n}angular.module("eda.modelsTranslator.Service",[]).factory("modelsTranslator",e),e.$inject=[]}()}(this); //# sourceMappingURL=eda.easyFormViewer.min.js.map \ No newline at end of file diff --git a/dist/public/js/eda.dragdropway.min.js.map b/dist/public/js/eda.dragdropway.min.js.map index 65fc4c4e..93c35633 100644 --- a/dist/public/js/eda.dragdropway.min.js.map +++ b/dist/public/js/eda.dragdropway.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["eda.dragdropway.min.js"],"names":["runfct","$templateCache","validEditFooterTpl","join","editPanelBlankCtrlTpls","validEditFooter","editPanelHeaderCtrlTpl","editPanelSubTitleCtrlTpl","editPanelTextInputCtrlTpl","editPanelPasswordCtrlTpl","editPanelDateCtrlTpl","editPanelTextareaCtrlTpl","editPanelRichTextEditorCtrlTpl","editPanelRadioCtrlTpl","editPanelCheckboxCtrlTpl","editPanelBasicSelectCtrlTpl","editPanelGroupedSelectCtrlTpl","put","angular","module","value","run","$inject","config","dragDropConfigProvider","setItemsNotTocount","itemBeingDragged","formlyConfigProvider","EasyFormGenFormlyBindingModelsProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","addEasyFormControlToList","id","subtitle","group","formlyType","formlySubtype","formlyLabel","formlyRequired","formlyDesciption","formlyOptions","addControlToDragDropPresentationModel","label","control","cssClass","addToGroupCtrl","subTitleTemplate","attributes","bindings","ngModelAttrs","forEach","attr","attribute","binding","bound","angularUIDatePickerTemplate","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","isOpen","onFocus","$viewValue","$modelValue","scope","to","datepickerOptions","datepickerPopup","richTexEditorTemplate","basicSelectTemplate","groupedSelectTemplate","provider","addToGroupControl","thisControl","thisGroup","_dragDropPresentationModel","length","_dragDropConfigModel","containerConfig","decoration","missingGroupNumber","i","push","groupConfig","groupId","WhenIndex","_listDragDropItemCssClasses","numberItemPerRow","dropZoneConfig","ApplycssClass","fontAwesomeIcon","title","verboseMode","isCollapsed","collapseEnabled","collapseCtrl","atIndex","collapse","itemConfig","_itemsNotToCountFoReal","this","setListItemCssClass","fromConfig","concat","getItemsNotTocount","copy","controlToAdd","groupToAdd","getDragDropPresentationModel","$get","Service","getListItemCssClass","getItemsNotToCount","getItemCssDependingNumberItemsInRow","numberOfItems","classToReturn","getDistinctItemCssClass","distinctCssClass","valueRef","cssClassRef","canAdd","valueProc","cssClassProc","getDragDropConfigModel","setDragDropConfigContainerDecorationCollapse","dragDropConfigModel","indexValue","isCollapsedBool","parseInt","_easyFormListControls","controls","selectedControl","temporyConfig","formlyPlaceholder","_easyFormEmptyConfigurationLineModel","line","activeColumn","columns","numColumn","exist","type","key","_emptyControlFieldModel","_easyFormInitialStateConfigurationModel","submitButtonText","cancelButtonText","lines","_easyFormInitialStateConfigurationModelAddOnForStepWay","activeLine","listConfigStep","stepIndicators","configStepCounter","_easyFormReloadConfigurationModel","_headerTemplates","textContent","html_part1","selectedClass","html_part2","html_part3","html_part4","simpleHtml1","simpleHtml2","_formlyControlTemplates","className","required","placeholder","description","_particularControlProperties","controlType","properties","isRoot","isTemplateOptions","getAllParticularControlProperties","addParticularControlProperties","newParticularControlProperty","isAnUpdate","controlProp","getEasyFormListControls","controlDeclaration","getHeaderTemplates","addHeaderTemplateCssClass","cssClassToAdd","getFormlyControlTemplate","addformlyControlTemplatesCssClass","setFormlyControlTemplate","newFormlyControlTemplate","getEasyFormInitialStateConfigurationModel","addStepWayProperties","initialConfigurationModel","extend","getEasyFormReloadConfigurationModel","getEasyFormEmptyConfigurationLineModel","getEasyFormConfigurationEmptyControlModel","getRawHeaderTemplates","getHeaderTemplateForNcolumnLine","nbColInLines","headerToReturn","getRawFormlyControlTemplates","getFormlyControlTemplateForNcolumnLine","controlToReturn","aPropToAdd","easyFormGenVersion","$filter","$anchorScroll","toaster","$timeout","$modal","$log","formFieldManage","formsByIdService","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager","onSubmit","pop","timeout","body","vm","model","showCloseButton","addNewline","applyConfigurationToformlyModel","configuration","wfFormFields","wfFormFieldsOnlyNeededProperties","easyFormGeneratorVERSION","tab","editTab","active","previewTab","ihm","preview","formlyModelViewExpanded","formlyFieldsViewExpanded","customizeFormButtonsExpanded","saveThisFormExpanded","easyFormDragDropProperties","dragDropModel","numberOfColumns","MaxNumberOfColumns","MinNumberOfColumns","initConfigurationEditFromScratch","initProxyModel","collapseAllGroupControl","allExceptThisGroupIndex","resetToZeroModel","splice","countConfigurationModelLines","setActiveLineNumber","lineNumber","upThisLine","indexLine","currentLineObj","downThisLine","removeThisLine","index","increaseNumberOfColumns","newNumberOfColumns","decreaseNumberOfColumns","indexColumn","saveThisForm","formName","wfForm","formlyField","JSON","stringify","clear","nyaSelect","initNyaSelect","animationsEnabled","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","templateUrl","resolve","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","info","Date","dragoverCallbackContainer","parentparentIndex","parentIndex","dropCallback","event","item","external","allowedType","isArray","timerRefreshDDToConfig","refreshAllConfigurationFromDragAndDropModel","refreshControlsKeys","$on","cancel","dndItemMoved","parentParentIndex","itemIndex","dragoverCallbackItems","ParentParentIndex","disableItemDropIf","dropCallbackItems","realIndex","parentParentParentIndex","setUnRightClicked","editPanelModel","toggle","saveFromEditPanel","bindSpecialCtrlTemporyModelsToProxyModel","bindConfigurationModelFromProxyModel","getEditPanelModelLineIndex","getEditPanelModelColumnIndex","setEditPanelModelToggle","getEditPanelModelToggle","resetAllDragDropItemSelectedState","closeEditPanel","debugProxyModel","ProxyModel","setRightClicked","previousState","rightCliked","toggleEditPanel","lineIndex","colIndex","getEditPanelModelControl","equals","timerCloseOpenedEditPanel","setEditPanelModelLineIndex","setEditPanelModelColumnIndex","setEditPanelModelControl","setProxyModelFromConfigurationSelection","insertNewLine","$modalInstance","selectOptionManage","bindRadioFromNYA","newOption","option","order","radioRowCollection","rows","bindRadioToNya","resetNyASelectOptions","bindBasicSelectFromNYA","basicSelectRowCollection","bindBasicSelectToNya","bindGroupedSelectFromNYA","groupedSelectRowCollection","filteredgroup","_","uniq","pluck","GroupedSelectGroups","list","bindGroupedSelectToNya","initDatePicker","demodt","formats","resetTemporyConfig","initOptionModel","newOptionRadio","saisie","addNewOptionRadio","resultFlag","details","removeRadioRow","removeOption","upThisRadioRow","upthisOption","downThisRadioRow","downthisOption","newOptionBasicSelect","addNewOptionBasicSelect","removeRow","upThisRow","downThisRow","newOptionGroupedSelect","newGroupGroupedSelect","groupSelectGroupClick","showList","showGroupListToChoose","addNewGroupToGroupedSelect","addNewOptionGroupedSelect","removeGroupedSelectRow","upThisGroupedSelectRow","downThisGroupedSelectRow","today","dt","dateOptions","formatYear","startingDay","showWeeks","initDate","modelNyaSelect","selectThisControl","controlName","ok","applyConfigToSelectedControl","close","dismiss","self","proxyModel","resetAllTemporyModels","modelproxyModel","bindBasicSelectFromProxyModel","bindGroupedSelectFromProxyModel","bindRadioFromProxyModel","updateSpecialControl","resetControl","directive","dragDropItemCounterService","valueWhenPlaceholder","valueWhendragging","fullModel","currentIndex","forceRefresh","restrict","link","element","timer","$watch","children","newValue","oldValue","newRealCount","listClassForThisRow","isHtmlElementToCount","classList","isReal","contentRealCount","updateLineItemCss","console","warn","htmlTemplate","styleParam","isStillCollapsed","collpaseAll","transclude","isEnabled","collapseFct","exceptThisOne","icons","closedClass","currentIconClass","attrs","ctrl","verboseModeActive","verbose","lowercase","dir","whoAmI","verbodeMode","$parent","$index","ParentIndex","columnindex","newVal","oldVal","currentTitle","contentClone","childDiv","append","addNewLineFct","headerConfig","HeaderButtonVisible","affixAttr","affixEnabled","currentFontAwesome","lineItemsCount","listClass","css","removeClass","addClass","removeLine","deleteLine","readyToDelete","dblClickCount","removeMe","cancelDelete","on","$parse","fn","edaRightClick","columnIndex","edaRightClickColIndex","fctSetRightclicked","edaSetRightClicked","$apply","ratio","factory","_modelItemRealCounter","_itemsNotToCount","getModelItemsRealCounter","htmlvalue","isToCount","classes","listCssToApply","columIndex","realCount","j","dragDropModelItem","_listItemClass","getListClass","getCssClassWhenNumberItemsInRowIs","thisNumber","applyCssClassWholeLine","numberItems","restrictToThisIndexColumn","updateCssClassWholeColumn","cpt","EasyFormGenFormlyBindingModels","getFormlyDetailedControlModelFromDragDropObject","dragDrapCtrlModel","controlModel","listControl","controlsListGetter","ctrlListValue","validKeyUniqueness","thisKey","configurationObj","isUnique","createUniqueKey","baseKeyValue","newKey","now","applyThisLine","linevalue","configModel","aLineValue","aLineKey","bindConfigCtrlModelFromFormlyDetailedCtrlModel","formlyDetailCtrlModel","configurationCtrlModel","assign","ddModel","lineValue","keyValue","colValue","controlToBind","formlyDetailedControlModel","configModelControl","newClassName","aConfigLine","aConfigLineIndex","aConfigControl","aConfigControlIndex","when","configModel is ","dragDropModel is ","resetNyaSelect","nyaSelectObj","newNyaSelectObj","resetProxyModel","newProxyModel","returnControlFromAddCtrlModalModel","CtrlModalModel","modelToReturn","getSelectedProxyModel","configurationSelectedCtrl","selectedProxyModelControl","listProxyModelCTRL","subtype","extractedProps","edited","thisProxyModelToInit","getProxyModel","getEditPanelModelAllModel","newEditPanelModel","successfullDone","newColumnIndex","newLineIndex","newControl","newToggleValue","bindBasicSelectToProxyModel","bindGroupedSelectToProxyModel","bindRadioToProxyModel","resetproxyModelOptions","resetFormlyModel","formlyModel","resetformly","AddNColumnControl","configurationModel","indexFormlyModel","fieldGroup","column","controlTemplate","headerTextContent","resetDataModel","obj","emptyDataModel","getErrorObject","errorTitle","errorMessage","messageObj","noError","Message","getMessageObject","messageTitle","messageBody","configurationModelInit","bindConfigurationLines","Object","prototype","toString","call","configurationModelResult","formlyDataModel","$resource","validOption","selectObj","newOptionText","fullResponse","resetModel","zeroModel","testMe","initModel","isOptionUnique","textValue","isOptionValidFormat","checkResult","newOptionGroup","AtIndex","indexOption","currentOption","filter","$sce","trustAs"],"mappings":"CAOE,WACA,YA8CA,SAASA,GAAOC,GAoBd,QAASC,KACR,OACI,6BAGA,4CACO,4CACA,6CACA,aAGP,8CACO,0EACA,6CACA,aAEP,UACCC,KAAK,IAQX,QAASC,KACR,OACI,oCACA,+BAEA,yBACA,mCACA,4FACA,kBACA,eAGA,yBACA,mCACA,0EACA,kBACA,cACA,YACAC,EACA,UACCF,KAAK,IAQX,QAASG,KACR,OACQ,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAEA,wBACA,uCACA,iCAEA,iIACA,+BACA,2LACA,uBAEA,gBACA,qBACA,aAEA,WACAD,EACA,WACEF,KAAK,IAQjB,QAASI,KACR,OACM,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAEA,wBACA,uCAEA,iCAEA,mIACA,+BACA,+LACA,uBAEA,gBAEA,qBACA,aAEA,WACAF,EACA,WACCF,KAAK,IAQb,QAASK,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,iIACA,+BACA,sMACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,oIACA,uCACA,kEACA,gIACA,uBAET,gBAEA,qBACA,aAGA,8CAGA,wBACA,uCAEA,iCAES,iIACA,+BACA,gMACA,uBAET,gBAEA,qBACA,aAGA,WACAH,EACA,WACCF,KAAK,IAQZ,QAASM,KACR,OACM,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAEU,2HACA,+BACA,uLACA,uBAEV,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAEU,wHACA,+BACA,sMACA,uBAEV,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAEU,2HACA,uCACA,kEACA,uHACA,uBAEV,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAEU,wHACA,+BACA,uLACA,uBAEV,gBAEA,qBACA,aAGA,WACAJ,EACA,WACCF,KAAK,IAQb,QAASO,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGS,uFACA,uBACA,4JACA,6GACA,oCACA,kBACA,gBACA,eAGT,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,2HACA,uCACA,kEACA,uHACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAL,EACA,WACCF,KAAK,IAQZ,QAASQ,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,2HACA,uCACA,kEACA,uHACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAN,EACA,WACCF,KAAK,IAQZ,QAASS,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAP,EACA,WACCF,KAAK,IAQZ,QAASU,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAIA,8CAGS,sBACA,0CACA,sHACA,cACA,WACA,sBACA,cACA,qCACA,kEACA,wJACA,uBACA,kEACA,sGACA,uBACA,mBACA,eACA,WACA,sBACA,0CACA,0HACA,cACA,WACA,sBACA,oCAEA,sEACA,4CACA,mFACA,+GACA,iCACA,6GACA,oCACA,iCACA,6DACA,8DACA,wDACA,kCACA,iCACA,wDACA,mDACA,gJACA,sCACA,wDACA,kCACA,qCACA,sCACA,4HACA,sEACA,+EACA,uDACA,iEACA,4JACA,oKACA,2JACA,gDACA,0CACA,sCACA,qCACA,iCACA,2BACA,uBAEA,kBACA,WAGT,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,2HACA,uCACA,kEACA,uHACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAR,EACA,WACCF,KAAK,IAQZ,QAASW,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,2HACA,uCACA,kEACA,uHACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAT,EACA,WACCF,KAAK,IAQZ,QAASY,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAIS,sBACA,0CACA,8HACA,cACA,WACA,sBACA,cACA,qCACA,kEACA,+JACA,uBACA,kEACA,4GACA,uBACA,mBACA,eACA,WAGA,qBACA,0CACA,oGACA,cACA,WACA,sBACA,oCACA,kEACA,wCACA,mFACA,uGACA,2BACA,+GACA,gCACA,6BACA,yDACA,0DACA,oDACA,8BACA,6BACA,oDACA,+CACA,wJACA,kCACA,oDACA,8BACA,iCACA,gCACA,4IACA,8DACA,6EACA,+CACA,yDACA,6IACA,iJACA,4IACA,wCACA,kCACA,8BACA,iCACA,6BACA,uBACA,mBACA,kBACA,WAGA,4CAGT,wBACA,uCACA,iCACS,wHACA,+BACA,uLACA,uBACT,gBACA,qBACA,aAEA,WACAV,EACA,WACCF,KAAK,IAQZ,QAASa,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGS,sBACA,0CACA,+HACA,cACA,WACA,sBACA,cACA,qCACA,kEACA,mKACA,uBACA,kEACA,8GACA,uBACA,kBACA,eACA,YAGA,sBACA,0CACA,+HACA,cACA,WACA,sBACA,cACA,qCACA,kEACA,kNACA,uBACA,kEACA,+GACA,uBACA,mBACA,eACA,WAGA,sBACA,0CACA,0GACA,cACA,WACA,sBACA,oCACA,kEACA,wCACA,qFACA,uGACA,2BACA,iHACA,gCACA,6BACA,yDACA,yDACA,0DACA,oDACA,8BACA,6BACA,oDACA,oDACA,+CACA,oJACA,kCACA,oDACA,8BACA,iCACA,gCACA,oJACA,8DACA,+CACA,4FACA,0FACA,4FACA,uCACA,wFACA,uMACA,4FACA,iKACA,sEACA,4CACA,0CACA,uCACA,uCACA,6FACA,2DACA,uCACA,kCACA,+EACA,+CACA,yDACA,4JACA,gKACA,6JACA,2JACA,wCACA,kCACA,8BACA,iCACA,6BACA,uBACA,mBACA,kBACA,WAGT,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAX,EACA,WACCF,KAAK,IA3gCV,GAAIE,GAAkBH,GACtBD,GAAegB,IAAI,+BAAgCb,KACnDH,EAAegB,IAAI,gCAAiCX,KACpDL,EAAegB,IAAI,kCAAmCV,KACtDN,EAAegB,IAAI,mCAAoCT,KACvDP,EAAegB,IAAI,k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,OACW,0BACA,+BACA,uBACA,8CACA,gBACA,eACA,aACA,UACC/C,KAAK,IACjBgD,QAAU,SACVC,SAAU,cAGfC,eAAiB,WAUpB,IAAIC,IACS,oBACA,mBACA,0EACA,YACA,WACA,UACCnD,KAAK,IAEnBwB,GAAqBS,SAEnBC,KAAU,WACVC,SAAYgB,IAId1B,EAAuCW,0BAEpCC,GAAa,WACbH,KAAc,WACdI,SAAgB,aAChBC,MAAc,aACdC,WAAiB,WACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWHxB,EAAuByB,uCAEfC,OACW,0BACA,+BACA,uBACA,gDACA,gBACA,eACA,aACA,UACE/C,KAAK,IAClBgD,QAAY,WACZC,SAAY,cAGjBC,eAAiB,YAYpBzB,EAAuCW,0BAEpCC,GAAa,YACbH,KAAc,aACdI,SAAgB,aAChBC,MAAc,QACdC,WAAiB,QACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWHxB,EAAuByB,uCAEhBC,OACY,0BACA,2BACA,6EACA,0EACA,aACA,mBACA,6GACA,sDACA,WACA,SACA,UACC/C,KAAK,IAElBgD,QAAY,YACZC,SAAY,cAGhBC,eAAiB,WAYpBzB,EAAuCW,0BAEpCC,GAAa,WACbH,KAAc,WACdI,SAAgB,WAChBC,MAAc,QACdC,WAAiB,QACjBC,cAAkB,WAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWHxB,EAAuByB,uCAGfC,OACY,0BACA,2BACA,wFACA,8EACA,aACA,mBACA,oHACA,iEACA,WACA,SACA,UACC/C,KAAK,IAElBgD,QAAY,WACZC,SAAY,cAGjBC,eAAiB,UAUpB,IAAIE,IACM,gBACA,eACA,aACA,eACA,YACA,WACA,WACA,aACA,eACA,cACA,oBACA,mBACA,qBACA,aACA,uBACA,mBACA,kBACA,eACA,aACA,aACA,0BACA,6BAGNC,GACK,kBACA,WACA,Y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iB,aAQpB,IAAIiC,IACW,+BACA,yCACA,wDACA,mBACCnF,KAAK,IACrBwB,GAAqBS,SAEnBC,KAAY,aACZC,SAAYgD,IAId1D,EAAuCW,0BAEpCC,GAAa,iBACbH,KAAc,iBACdI,SAAgB,iBAChBC,MAAc,WACdC,WAAiB,aACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWHxB,EAAuByB,uCAEpBC,OACM,0BACA,+BACW,oDACA,gHACX,uBACA,gJACA,gDACA,eACA,aACA,UACC/C,KAAK,IACVgD,QAAU,iBACVC,SAAU,cAGZC,eAAiB,cAYpBzB,EAAuCW,0BAEpCC,GAAa,QACbH,KAAc,QACdI,SAAgB,QAChBoC,WACAnC,MAAc,QACdC,WAAiB,QACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWHxB,EAAuByB,uCAEfC,OACc,0BACA,6BACA,8IACA,qCACA,8BACA,4BACA,oCACA,uIACA,oBACA,mBACA,kCACA,oCACA,wIACA,oBACA,mBACA,eACA,wDACA,aACA,WACA,UACA/C,KAAK,IACnBgD,QAAY,QACZC,SAAY,cAGjBC,eAAiB,WAYpBzB,EAAuCW,0BAEpCC,GAAa,WACbH,KAAc,WACdI,SAAgB,WAChBC,MAAc,WACdC,WAAiB,WACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWHxB,EAAuByB,uCAGpBC,OACM,0BACA,yBACA,8BACA,uEACA,kEACA,qDACA,aACA,SACA,mDACA,UACC/C,KAAK,IACXgD,QAAU,WACVC,SAAU,cAGXC,eAAiB,cASpB,IAAIkC,IACU,qEACA,6CACA,kBACA,8DACA,2FACA,+BACA,YACA,WACCpF,KAAK,GAEpBwB,GAAqBS,SAEnBC,KAAU,cACVC,SAAYiD,IAId3D,EAAuCW,0BAEpCC,GAAa,cACbH,KAAc,eACdI,SAAgB,eAChBoC,WACA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gBd,EAAU7Q,KAAK0R,EAOnC,OALAb,GAAU7Q,KAAKhG,OAAO0X,EAAc,GACpCb,EAAU7Q,KAAKhG,OAAQ0X,EAAc,EAAI,EAAGC,GAE5CZ,EAAaxP,YAAa,EAC1BwP,EAAavP,QAAU,GAChBuP,EAKP,MAFAA,GAAaxP,YAAa,EAC1BwP,EAAavP,QAAU,0CAChBuP,EAOT,MAFEA,GAAaxP,YAAa,EAC1BwP,EAAavP,QAAU,GAClBuP,EAOT,MAFAA,GAAaxP,YAAa,EAC1BwP,EAAavP,QAAU,yBAChBuP,OA2EvBvmB,QAAQC,OAAO,mBAEP,kCACA,qCACA,mCACA,kDACA,gDACA,8CACA,uDACA,8CAgBRD,QACEC,OAAO,kBAAmB,6BAkB5BD,QACEC,OAAO,+BACPmnB,OAAO,aAAc,OAEtB,SAASC,GAER,MAAO,UAASnnB,EAAO0I,GAChB,MAAOye,GAAKC,QAAQ1e,GAAQ,OAAQ1I,QAI1CkG","file":"eda.dragdropway.min.js","sourcesContent":["!function(){\"use strict\";function e(e){function o(){return['
','\t\",'\t\",\"
\"].join(\"\")}function t(){return['
','
','\t
','\t
','\t
  Edit :
',\"\t
\",\"\t
\",'\t
','\t
','\t
Column will be blank
',\"\t
\",\"\t
\",\"
\",f,\"
\"].join(\"\")}function l(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function n(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function i(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function r(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function a(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
',' ','
','
    ','
  1. ',\" {{dateformat}}\",\"
  2. \",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function s(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function d(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function c(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no radio : add new radio values -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',\" \",\" \",' ',' \",' ',\" \",\" \",\" \",' ',' ',' ',' \",\" \",\" \",\"
orderoption
',' ',\"
{{$index}}{{radioRow.option}}','
',' ',' ',' ',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function p(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function u(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no option : add new options -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',\" \",\" \",' ',' \",' ',\" \",\" \",\" \",' ',' ',' ',' \",\" \",\" \",\"
orderoption
',' ',\"
{{$index}}{{basicSelectRow.option}}','
',' ',' ',' \t',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function m(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no option : add new options -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',' ',\" \",\" \",' ',' ',' \",' ',\" \",\" \",\" \",' ',' ',' \",' ',' \",\" \",\" \",\"
ordergroupoption
',' ',\"
{{$index}}','
','
','

- add new groups -

',\"
\",'
0\">','
    ','
  1. ',\" {{GroupedSelectGroup}}\",\"
  2. \",\"
\",\"
\",\"
\",'
',\" {{groupedSelectRow.group}}\",\"
\",\"
{{groupedSelectRow.option}}','
',' ',' ',' ',' ',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}var f=o();e.put(\"editPanelBlankCtrl-tpls.html\",t()),e.put(\"editPanelHeaderCtrl-tpls.html\",l()),e.put(\"editPanelSubTitleCtrl-tpls.html\",n()),e.put(\"editPanelTextInputCtrl-tpls.html\",i()),e.put(\"editPanelPasswordCtrl-tpls.html\",r()),e.put(\"editPanelDateCtrl-tpls.html\",a()),e.put(\"editPanelTextareaCtrl-tpls.html\",s()),e.put(\"editPanelRichTextEditorCtrl-tpls.html\",d()),e.put(\"editPanelRadioCtrl-tpls.html\",c()),e.put(\"editPanelCheckboxCtrl-tpls.html\",p()),e.put(\"editPanelBasicSelectCtrl-tpls.html\",u()),e.put(\"editPanelGroupedSelectCtrl-tpls.html\",m())}angular.module(\"edaApp\",[\"edaApp.providers\",\"edaApp.controllers\",\"edaApp.services\",\"edaApp.filters\",\"edaApp.directives\",\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"dndLists\",\"mgcrea.ngStrap.affix\",\"pageslide-directive\"]).value(\"easyFormGenVersion\",\"v1.0.18\").run(e),\ne.$inject=[\"$templateCache\"],angular.module(\"edaApp\").config([\"dragDropConfigProvider\",function(e){e.setItemsNotTocount({itemBeingDragged:\"dndDraggingSource\"})}]),angular.module(\"edaApp\").config([\"formlyConfigProvider\",\"EasyFormGenFormlyBindingModelsProvider\",\"dragDropConfigProvider\",function(e,o,t){function l(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"blank\",template:\"
\"}),o.addEasyFormControlToList({id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
',\"
\",\"
\",\"
\"].join(\"\"),control:\"empty\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"blank\"}),o.addEasyFormControlToList({id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

Header

',\"
\",\"
\",\"
\",\"
\"].join(\"\"),control:\"Header\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"headers\"});var n=['
','
','

{{options.templateOptions.placeholder}}

',\"
\",\"

\",\"
\"].join(\" \");e.setType({name:\"subTitle\",template:n}),o.addEasyFormControlToList({id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

SubTitle

',\"
\",\"
\",\"
\",\"
\"].join(\"\"),control:\"Subtitle\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"headers\"}),o.addEasyFormControlToList({id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' ','

Description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"TextInput\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"}),o.addEasyFormControlToList({id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' ','

Description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Password\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"});var i=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],r=[\"datepicker-mode\",\"min-date\",\"max-date\"],a={};angular.forEach(i,function(e){a[l(e)]={attribute:e}}),angular.forEach(r,function(e){a[l(e)]={bound:e}});var s=[\"\"].join(\" \");e.setType({name:\"datepicker\",template:s,wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:a,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,t){t.to.isOpen=!t.to.isOpen},datepickerOptions:{}}}}),o.addEasyFormControlToList({id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\"}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' \t\t\t\t\t
',' \t\t\t\t\t',' \t\t\t\t\t',\" \t\t\t\t\t
\",\"\t\t\t\t\t
\",'

description

',\"
\",\"
\"].join(\"\"),control:\"Date\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"}),o.addEasyFormControlToList({id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Texarea\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"textareas\"});var d=['',\"\"].join(\" \");e.setType({name:\"richEditor\",template:d}),o.addEasyFormControlToList({id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"RichTextEditor\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"textareas\"}),o.addEasyFormControlToList({id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
','
','
',' \",'
',' \",\"
\",'

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Radio\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"radios\"}),o.addEasyFormControlToList({id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",\"
\",'

description

',\"
\"].join(\"\"),control:\"Checkbox\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"checkboxes\"});var c=['
    ','
  1. ',\" {{option.name}} \",\"
  2. \",\"
\"].join(\"\");e.setType({name:\"basicSelect\",template:c}),o.addEasyFormControlToList({id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' \",\"
\",\"
\"].join(\"\"),control:\"BasicSelect\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"selects\"});var p=['
    ','
  1. ',' {{$group}}',\" \",\" {{option.name}}\",' ',\" \",\"
  2. \",\"
\"].join(\" \");e.setType({name:\"groupedSelect\",template:p}),o.addEasyFormControlToList({id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' \",\"
\",\"
\"].join(\"\"),control:\"GroupedSelect\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"selects\"})}]),angular.module(\"edaApp\").run([\"$templateCache\",function(e){e.put(\"editModalTemplate.html\",\"

no use right now

\")}]),angular.module(\"edaApp.providers.dragDropConfigProvider\",[]).provider(\"dragDropConfig\",[function(){function e(e,o){if(l[0].length>0){if(l[0].lengthi;i++)l[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){l[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}var o=[{cssClass:\"col-md-12\",numberItemPerRow:0},{cssClass:\"col-md-12\",numberItemPerRow:1},{cssClass:\"col-md-6\",numberItemPerRow:2},{cssClass:\"col-md-4\",numberItemPerRow:3}],t={dropZoneConfig:{decoration:[{WhenIndex:0,ApplycssClass:\"col-md-4\",fontAwesomeIcon:\"fa fa-level-up\",title:\"Drag control from here : \"},{WhenIndex:1,ApplycssClass:\"col-md-8\",fontAwesomeIcon:\"fa fa-level-down\",title:\"Drop control into here : \"}],verboseMode:!1},containerConfig:{decoration:[{WhenIndex:0,ApplycssClass:\"col-md-12\",title:\"Blank : \",groupId:\"blank\",isCollapsed:!0},{WhenIndex:1,ApplycssClass:\"col-md-12\",title:\"Headers : \",groupId:\"headers\",isCollapsed:!0},{WhenIndex:2,ApplycssClass:\"col-md-12\",title:\"Text inputs : \",groupId:\"inputs\",isCollapsed:!0},{WhenIndex:3,ApplycssClass:\"col-md-12\",title:\"Textareas : \",groupId:\"textareas\",isCollapsed:!0},{WhenIndex:4,ApplycssClass:\"col-md-12\",title:\"Radios : \",groupId:\"radios\",isCollapsed:!0},{WhenIndex:5,ApplycssClass:\"col-md-12\",title:\"Checkboxes : \",groupId:\"checkboxes\",isCollapsed:!0},{WhenIndex:6,ApplycssClass:\"col-md-12\",title:\"Selects : \",groupId:\"selects\",isCollapsed:!0}],verboseMode:!1,collapseEnabled:!0,collapseCtrl:[{atIndex:0,collapse:!0},{atIndex:1,collapse:!0}]},itemConfig:{verboseMode:!1}},l=[[],[[]]],n={itemBeingDragged:\"\"};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return n},this.setItemsNotTocount=function(e){n=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return l},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return n},e.getItemCssDependingNumberItemsInRow=function(e){if(\"undefined\"!=typeof e){for(var t=\"\",l=o.length-1;l>=0;l--)o[l].numberItemPerRow===e&&(t=o[l].cssClass);return t}return\"\"},e.getDistinctItemCssClass=function(){var e=[];return angular.forEach(o,function(o){var t=o.cssClass;if(0===e.length)e.push(t);else{var l=!0;angular.forEach(e,function(e){var o=e;t===o&&(l=!1)}),l&&e.push(t)}}),e},e.getDragDropConfigModel=function(){return t},e.setDragDropConfigContainerDecorationCollapse=function(e,o,t){return\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&o===parseInt(o,10)&&(e.containerConfig.decoration[o].isCollapsed=t),!0},e.getDragDropPresentationModel=function(){return l},e}]}]),angular.module(\"edaApp.providers.EasyFormGenFormlyBindingModels\",[]).provider(\"EasyFormGenFormlyBindingModels\",[function(){var e={controls:[],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[]}},o={line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]},t={control:{type:\"none\",key:\"none\"}},l={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[].concat(o)},n={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0},i={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]},r={cssClass:[\"col-xs-12\",\"col-xs-6\",\"col-xs-4\"],textContent:\"\",html_part1:['
','

'].join(\"\"),html_part3:this.textContent,html_part4:[\"

\",\"
\",\"

\"].join(\"\"),simpleHtml1:['

'].join(\"\"),simpleHtml2:[\"

\",\"
\"].join(\"\")},a={className:[\"col-xs-12\",\"col-xs-6\",\"col-xs-4\"],type:\"\",key:\"\",templateOptions:{type:\"\",label:\"\",required:\"\",placeholder:\"\",description:\"\",options:\"\"}},s=[{controlType:\"datepicker\",properties:[{isRoot:!1,isTemplateOptions:!0,value:\"datepickerPopup\"}]}];this.getAllParticularControlProperties=function(){return s},this.addParticularControlProperties=function(e){if(\"controlType\"in e&&\"properties\"in e){var o=!1;s.length>0&&s.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||s.push(e)}return s},this.getEasyFormListControls=function(){return e},this.addEasyFormControlToList=function(o){\"undefined\"!=typeof o&&e.controls.push(o)},this.getHeaderTemplates=function(){return r},this.addHeaderTemplateCssClass=function(e){\"undefined\"!=typeof e&&r.cssClass.push(e)},this.getFormlyControlTemplate=function(){return a},this.addformlyControlTemplatesCssClass=function(e){\"undefined\"!=typeof e&&a.className.push(e)},this.setFormlyControlTemplate=function(e){return\"className\"in e&&\"type\"in e&&\"key\"in e&&\"templateOptions\"in e&&(a=angular.copy(e)),!0},this.$get=[function(){var d={};return d.getEasyFormListControls=function(){return e},d.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(l);return\"undefined\"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return\"undefined\"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormEmptyConfigurationLineModel=function(){return o},d.getEasyFormConfigurationEmptyControlModel=function(){return t},d.getRawHeaderTemplates=function(){return r},d.getHeaderTemplateForNcolumnLine=function(e,o){if(\"undefined\"!=typeof e&&\"undefined\"!=typeof o&&e===parseInt(e,10)&&e<=r.cssClass.length){var t={};return t.className=r.cssClass[e-1],r.textContent=o,r.selectedClass=t.className,t.template=[r.simpleHtml1,o,r.simpleHtml2].join(\"\"),t}},d.getRawFormlyControlTemplates=function(){return a},d.getFormlyControlTemplateForNcolumnLine=function(e,o){if(\"undefined\"!=typeof e&&e===parseInt(e,10)&&e<=a.className.length){var t=angular.copy(a);return t.className=a.className[e-1],\"undefined\"!=typeof o&&s.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=\"\"),e.isTemplateOptions&&(t.templateOptions[e.value]=\"\")})}),t}},d}]}]),angular.module(\"edaApp.providers\",[\"edaApp.providers.dragDropConfigProvider\",\"edaApp.providers.EasyFormGenFormlyBindingModels\",function(){}]),angular.module(\"edaApp.controllers\",[\"edaApp.controllers.edaMainController\",\"edaApp.controllers.edaEditController\",\"edaApp.controllers.edaEditMODALController\",\"edaApp.controllers.edaEditPanelController\"]),angular.module(\"edaApp.controllers.edaEditController\",[]).controller(\"edaEditController\",[\"$scope\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"formsByIdService\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\",function(e,o,t,l,n,i,r,a,s,d,c,p,u,m,f){function g(){n.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function y(){s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}e.easyFormGeneratorVERSION=o,e.tab={editTab:{active:!0},previewTab:{active:!1}},e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.ihm={preview:{formlyModelViewExpanded:!0,formlyFieldsViewExpanded:!0,customizeFormButtonsExpanded:!0,saveThisFormExpanded:!0}},e.easyFormDragDropProperties=u.getDragDropConfigModel(),e.dragDropModel=[].concat(u.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},s.initConfigurationEditFromScratch(e.configuration,!1),c.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&u.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=g,e.resetToZeroModel=function(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()},e.countConfigurationModelLines=function(){return e.configuration.lines.length},e.setActiveLineNumber=function(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)},e.upThisLine=function(o){if(o>-1&&e.configuration.lines[o-1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.downThisLine=function(o){if(o>-1&&e.configuration.lines[o+1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.removeThisLine=function(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):i(function(){n.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))},e.increaseNumberOfColumns=function(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){if(\"undefined\"==typeof e.configuration.formName)return n.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1;if(\"\"===e.configuration.formName)return n.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1;n.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0});var o=new d;return o.formName=e.configuration.formName,o.submitButtonText=e.configuration.submitButtonText,o.cancelButtonText=e.configuration.cancelButtonText,o.formlyField=JSON.stringify(e.configuration.lines),n.clear(),n.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),!0},e.nyaSelect={},c.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,l){var n=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return c.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,l)}}});n.result.then(function(o){c.bindConfigurationModelFromModalReturn(t,l,o,e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},function(){a.info(\"Modal dismissed at: \"+new Date)})},e.dragoverCallbackContainer=function(e,o,t){return 0===t?!1:!0},e.dropCallback=function(o,t,l,n,r,a){if(n){if(\"itemType\"===a&&!l.label)return!1;if(\"containerType\"===a&&!angular.isArray(l))return!1}var d=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(d)}),l},e.dndItemMoved=function(o,t,l){o>0&&e.dragDropModel[o][t].splice(l,1)},e.dragoverCallbackItems=function(e,o,t,l){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,l,n,r,a,d,c,p,u){if(c){if(\"itemType\"===u&&!d.label)return!1;if(\"containerType\"===u&&!angular.isArray(d))return!1}var g=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return f.setUnRightClicked(d),e.$on(\"$destroy\",function(){i.cancel(g)}),d},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){c.bindSpecialCtrlTemporyModelsToProxyModel(),c.bindConfigurationModelFromProxyModel(c.getEditPanelModelLineIndex(),c.getEditPanelModelColumnIndex(),e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),f.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){f.resetAllDragDropItemSelectedState(e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.debugProxyModel=c.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,l,n){if(f.resetAllDragDropItemSelectedState(e.dragDropModel),c.getEditPanelModelToggle()){if(c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),\"undefined\"!=typeof c.getEditPanelModelLineIndex()&&\"undefined\"!=typeof c.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof c.getEditPanelModelControl())if(c.getEditPanelModelLineIndex()===t&&c.getEditPanelModelColumnIndex()===l&&angular.equals(c.getEditPanelModelControl(),n));else{n.rightCliked=!0;var r=i(function(){c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else n.rightCliked=!0,c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){y(),e.dragDropModel[1].push([])}}]),angular.module(\"edaApp.controllers.edaEditMODALController\",[]).controller(\"edaEditMODALController\",[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,l,n,i,r){function a(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.radioRowCollection.rows.push(t)}}function s(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.radioRowCollection.rows.length>0)for(var t=0;t<=e.radioRowCollection.rows.length-1;t++){var l={name:e.radioRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function d(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.basicSelectRowCollection.rows.push(t)}}function c(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.basicSelectRowCollection.rows.length>0)for(var t=0;t<=e.basicSelectRowCollection.rows.length-1;t++){var l={name:e.basicSelectRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function p(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0){for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:e.nyaSelect.temporyConfig.formlyOptions[o].group};e.groupedSelectRowCollection.rows.push(t)}var l=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(l,e.GroupedSelectGroups.list)}}function u(){e.nyaSelect.temporyConfig.formlyOptions=[];for(var o=0;o<=e.groupedSelectRowCollection.rows.length-1;o++){var t={name:e.groupedSelectRowCollection.rows[o].option,value:o,group:e.groupedSelectRowCollection.rows[o].group};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function m(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function f(){e.nyaSelect.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var g={rows:[]};if(e.radioRowCollection=g,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=function(){var o=i.addNewOptionRadio(e.radioRowCollection,e.newOptionRadio.saisie);o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionRadio={saisie:\"\"}},e.removeRadioRow=function(o){var t=i.removeOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisRadioRow=function(o){var t=i.upthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisRadioRow=function(o){var t=i.downthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.basicSelectRowCollection=g,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=function(){var o=i.addNewOptionBasicSelect(e.basicSelectRowCollection,e.newOptionBasicSelect.saisie);o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionBasicSelect={saisie:\"\"}},e.removeRow=function(o){var t=i.removeOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisRow=function(o){var t=i.upthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisRow=function(o){var t=i.downthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({\ntype:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.groupedSelectRowCollection=g,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=function(){e.groupSelectGroupClick.showList=!e.groupSelectGroupClick.showList},e.addNewGroupToGroupedSelect=function(){if(\"\"!==e.newGroupGroupedSelect.saisie){for(var o=e.GroupedSelectGroups.list.length-1;o>=0;o--)e.GroupedSelectGroups.list[o]===e.newGroupGroupedSelect.saisie&&l.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else l.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});e.newGroupGroupedSelect.saisie=\"\"},e.addNewOptionGroupedSelect=function(){var o=i.addNewOptionGroupedSelect(e.groupedSelectRowCollection,e.newOptionGroupedSelect.saisie,\"\");o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionGroupedSelect={saisie:\"\"}},e.removeGroupedSelectRow=function(o){var t=i.removeOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisGroupedSelectRow=function(o){var t=i.upthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisGroupedSelectRow=function(o){var t=i.downthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.demodt={},e.today=function(){e.demodt.dt=new Date},e.today(),e.clear=function(){e.demodt.dt=null},e.open=function(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0},e.dateOptions={formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null},e.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"],e.nyaSelect=t,e.nyaSelect.selectedControl=e.nyaSelect.temporyConfig.selectedControl,\"none\"!==t.selectedControl){for(var y=e.nyaSelect.controls.length-1;y>=0;y--)e.nyaSelect.controls[y].id===t.selectedControl&&(e.modelNyaSelect=t.controls[y]);\"BasicSelect\"===e.nyaSelect.selectedControl&&d(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&p(),\"Radio\"===e.nyaSelect.selectedControl&&a()}e.selectThisControl=function(o){e.nyaSelect.selectedControl=\"none\",f();for(var t=e.nyaSelect.controls.length-1;t>=0;t--)e.nyaSelect.controls[t].id===o&&(e.nyaSelect.selectedControl=e.nyaSelect.controls[t].id);\"Date\"===e.nyaSelect.selectedControl&&m()},e.ok=function(){\"BasicSelect\"===e.nyaSelect.selectedControl&&c(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&u(),\"Radio\"===e.nyaSelect.selectedControl&&s(),r.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)},e.cancel=function(){o.dismiss(\"cancel\")}}]),angular.module(\"edaApp.controllers.edaEditPanelController\",[]).controller(\"edaEditPanelController\",[\"$scope\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,l,n){function i(){a.proxyModel.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function r(){a.proxyModel.temporyConfig.datepickerPopup=a.demodt.formats[0]}var a=this;if(a.proxyModel=n.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=n.basicSelectRowCollection,a.newOptionBasicSelect=n.newOptionBasicSelect,a.groupedSelectRowCollection=n.groupedSelectRowCollection,a.newOptionGroupedSelect=n.newOptionGroupedSelect,a.GroupedSelectGroups=n.GroupedSelectGroups,a.newGroupGroupedSelect=n.newGroupGroupedSelect,a.groupSelectGroupClick=n.groupSelectGroupClick,a.radioRowCollection=n.radioRowCollection,a.newOptionRadio=n.newOptionRadio,n.resetAllTemporyModels(),\"none\"!==a.proxyModel.temporyConfig.selectedControl){for(var s=a.proxyModel.controls.length-1;s>=0;s--)a.proxyModel.controls[s].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[s]);\"BasicSelect\"===a.proxyModel.temporyConfig.selectedControl&&n.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),\"GroupedSelect\"===a.proxyModel.temporyConfig.selectedControl&&n.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),\"Radio\"===a.proxyModel.temporyConfig.selectedControl&&n.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return n.basicSelectRowCollection=a.basicSelectRowCollection,n.newOptionBasicSelect=a.newOptionBasicSelect,n.groupedSelectRowCollection=a.groupedSelectRowCollection,n.newOptionGroupedSelect=a.newOptionGroupedSelect,n.GroupedSelectGroups=a.GroupedSelectGroups,n.newGroupGroupedSelect=a.newGroupGroupedSelect,n.groupSelectGroupClick=a.groupSelectGroupClick,n.radioRowCollection=a.radioRowCollection,n.newOptionRadio=a.newOptionRadio,n.bindSpecialCtrlTemporyModelsToProxyModel(),!0},a.resetControl=function(){a.proxyModel.temporyConfig.formlyLabel=\"\",a.proxyModel.temporyConfig.formlyRequired=!1,a.proxyModel.temporyConfig.formlyPlaceholder=\"\",a.proxyModel.temporyConfig.formlyDesciption=\"\",a.proxyModel.temporyConfig.formlyOptions=[],a.proxyModel.temporyConfig.datepickerPopup=r()},a.selectThisControl=function(e){a.proxyModel.selectedControl=\"none\",i();for(var o=a.proxyModel.controls.length-1;o>=0;o--)a.proxyModel.controls[o].id===e&&(a.proxyModel.selectedControl=a.proxyModel.controls[o].id);\"Date\"===a.proxyModel.selectedControl&&r()},a.addNewOptionRadio=function(){var e=l.addNewOptionRadio(a.radioRowCollection,a.newOptionRadio.saisie);e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionRadio={saisie:\"\"}},a.removeRadioRow=function(e){var t=l.removeOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisRadioRow=function(e){var t=l.upthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisRadioRow=function(e){var t=l.downthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.addNewOptionBasicSelect=function(){var e=l.addNewOptionBasicSelect(a.basicSelectRowCollection,a.newOptionBasicSelect.saisie);e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionBasicSelect={saisie:\"\"}},a.removeRow=function(e){var t=l.removeOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisRow=function(e){var t=l.upthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisRow=function(e){var t=l.downthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.showGroupListToChoose=function(){a.groupSelectGroupClick.showList=!a.groupSelectGroupClick.showList},a.addNewGroupToGroupedSelect=function(){if(\"\"!==a.newGroupGroupedSelect.saisie){for(var e=a.GroupedSelectGroups.list.length-1;e>=0;e--)a.GroupedSelectGroups.list[e]===a.newGroupGroupedSelect.saisie&&o.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});a.GroupedSelectGroups.list.push(a.newGroupGroupedSelect.saisie)}else o.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});a.newGroupGroupedSelect.saisie=\"\"},a.addNewOptionGroupedSelect=function(){var e=l.addNewOptionGroupedSelect(a.groupedSelectRowCollection,a.newOptionGroupedSelect.saisie,\"\");e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionGroupedSelect={saisie:\"\"}},a.removeGroupedSelectRow=function(e){var t=l.removeOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisGroupedSelectRow=function(e){var t=l.upthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisGroupedSelectRow=function(e){var t=l.downthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.demodt={},a.today=function(){a.demodt.dt=new Date},a.today(),a.clear=function(){a.demodt.dt=null},a.open=function(e){e.preventDefault(),e.stopPropagation(),a.demodt.opened=!0},a.dateOptions={formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null},a.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"]}]),angular.module(\"edaApp.controllers.edaMainController\",[]).controller(\"edaMainController\",[function(){}]),angular.module(\"edaApp.directives.edaDdContentCounterDirective\",[]).directive(\"ddContentCounter\",[\"dragDropItemCounterService\",\"$timeout\",function(e,o){return{scope:{valueWhenPlaceholder:\"@ddValueWhenPlaceholder\",valueWhendragging:\"@ddValueWhenDragging\",fullModel:\"=ddFullModel\",currentIndex:\"@ddContentCounterCurrentIndex\",parentIndex:\"@ddContentCounterParentIndex\",forceRefresh:\"=ddContentCounterForceCssRefresh\"},restrict:\"A\",link:function(t,l){var n;t.$watch(function(){return l[0].children.length},function(i,r){if(i!==r){for(var a=0,s=[],d=l[0].children.length-1;d>=0;d--)e.isHtmlElementToCount(l[0].children[d].classList)?(a++,s.push({item:d,isReal:!0})):s.push({item:d,isReal:!1});t.contentRealCount=a,n=o(function(){e.updateLineItemCss(t.fullModel,s,t.parentIndex,t.currentIndex,a)},20)}}),t.$on(\"$destroy\",function(){console.warn(\"ddContentCounter timer destruction!\"),o.cancel(n)})}}}]),angular.module(\"edaApp.directives.edaDdDecorContainerDirective\",[]).directive(\"ddDecorContainer\",[function(){var e=['
','
 {{currentTitle}}
',\"
\",'
','
',\"
\"].join(\" \");return{scope:{styleParam:\"=ddContainerProperties\",isStillCollapsed:\"=ddContainerIsCollpased\",verboseMode:\"@ddContainerVerboseMode\",currentIndex:\"@ddContainerCurrentIndex\",collpaseAll:\"&ddCollapseAll\"},restrict:\"A\",template:e,transclude:!0,controller:function(e){e.config={isEnabled:!1},e.collapseFct=function(){e.collpaseAll({exceptThisOne:e.styleParam.WhenIndex}),e.isCollapsed=!e.isCollapsed,e.isStillCollapsed=e.isCollapsed},e.icons={closedClass:\"glyphicon glyphicon-eye-open\",opened:\"glyphicon glyphicon-eye-close\"},e.currentIconClass=function(){return e.isCollapsed?e.icons.closedClass:e.icons.opened}},link:function(e,o,t,l,n){var i=e.verboseMode,r=e.currentIndex;if(e.isCollapsed=!1,\"\"!==i){var a=angular.lowercase(i);(\"true\"===a||\"1\"===a)&&console.dir({whoAmI:\"I am verbose from ddDecorContainer link\",verbodeMode:a,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:r,styleParam:e.styleParam,columnindex:e.$parent.$parent.$parent.$parent.$index})}e.$watch(function(){return e.isStillCollapsed},function(o,t){o!==t&&0===e.$parent.$parent.$index&&(e.isCollapsed=o)}),e.config.isEnabled=!1,\"undefined\"!=typeof r&&\"\"!==r&&\"0\"===r&&\"undefined\"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title,e.config.isEnabled=!0,e.isCollapsed=!0),n(e.$parent,function(e){var t=angular.element(o.children()[1]);t.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdDecorDropZoneDirective\",[]).directive(\"ddDecorDropZone\",[function(){var e=['
','
','
','
','

','  ',\" {{currentTitle}}\",'
',' \",\"
\",\"

\",\"
\",'
','
','
',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\"].join(\" \");return{scope:{styleParam:\"=ddDropZoneProperties\",verboseMode:\"@ddDropZoneVerboseMode\",currentIndex:\"@ddDropZoneCurrentIndex\",addNewLineFct:\"&ddDropZoneAddNewLine\"},restrict:\"A\",template:e,transclude:!0,link:function(e){var o=e.verboseMode,t=e.currentIndex;if(e.headerConfig={HeaderButtonVisible:!1,affixAttr:\"bs-affix\",affixEnabled:!1},\"\"!==o){var l=angular.lowercase(o);(\"true\"===l||\"1\"===l)&&console.dir({whoAmI:\"I am verbose from ddDecorDropZone link\",verbodeMode:l,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:t,styleParam:e.styleParam})}\"undefined\"!=typeof t&&\"\"!==t&&(\"undefined\"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title),\"undefined\"!=typeof e.styleParam.fontAwesomeIcon&&(e.currentFontAwesome=e.styleParam.fontAwesomeIcon),\"1\"===t&&(e.headerConfig.HeaderButtonVisible=!0))}}}]),angular.module(\"edaApp.directives.edaDdDecorItemDirective\",[]).directive(\"ddDecorItem\",[\"dragDropConfig\",function(e){var o=[\"
\",'
',\"
\"].join(\" \");return{scope:{verboseMode:\"@ddItemVerboseMode\",currentIndex:\"@ddItemCurrentIndex\",parentIndex:\"@ddItemParentIndex\",parentParentIndex:\"@ddItemParentParentIndex\",lineItemsCount:\"@ddItemsCount\",cssClass:\"@ddItemCssClass\"},restrict:\"A\",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex,d=e.getDistinctItemCssClass();if(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch(\"cssClass\",function(e,o){e!==o&&(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(e))}),\"\"!==r){var c=angular.lowercase(r);(\"true\"===c||\"1\"===c)&&console.dir({whoAmI:\"I am verbose from ddDecorItem directive link\",verbodeMode:c,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}\"0\"===o.parentParentIndex&&t.addClass(d[0]),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdDecorLineDirective\",[]).directive(\"ddDecorLine\",[\"$timeout\",function(e){var o=['
',' ',\"
\",'
'].join(\" \");return{scope:{verboseMode:\"@ddLineVerboseMode\",currentIndex:\"@ddLineCurrentIndex\",parentIndex:\"@ddLineParentIndex\",removeLine:\"&ddRemoveLine\"},restrict:\"A\",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,\"\"!==r){var d=angular.lowercase(r);(\"true\"===d||\"1\"===d)&&console.dir({whoAmI:\"I am verbose from ddDecorLine directive link\",verbodeMode:d,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,currentIndex:a})}o.removeMe=function(t){t.preventDefault(),t.stopPropagation(),\"1\"===o.parentIndex&&(1===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1,o.removeLine(),e.cancel(c)),0===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=o.deleteLine.dblClickCount+1,o.deleteLine.readyToDelete=!0))};var c;o.cancelDelete=function(t){c=e(function(){o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1},500)},o.$on(\"$destroy\",function(){e.cancel(c)}),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdNoEditableControlDirective\",[]).directive(\"ddNoEditableControl\",[function(){return{restrict:\"A\",link:function(e,o){o.on(\"click\",function(e){e.preventDefault()})}}}]),angular.module(\"edaApp.directives\",[\"edaApp.directives.edaStRationDirective\",\"edaApp.directives.edaDdDecorDropZoneDirective\",\"edaApp.directives.edaDdDecorContainerDirective\",\"edaApp.directives.edaDdDecorLineDirective\",\"edaApp.directives.edaDdDecorItemDirective\",\"edaApp.directives.edaDdNoEditableControlDirective\",\"edaApp.directives.edaDdContentCounterDirective\",\"edaApp.directives.edaRightClickDirective\"]),angular.module(\"edaApp.directives.edaRightClickDirective\",[]).directive(\"edaRightClick\",[\"$parse\",function(e){return{restrict:\"A\",link:function(o,t,l){var n=e(l.edaRightClick),i=e(l.edaRightClickColIndex),r=e(l.edaSetRightClicked);t.on(\"contextmenu\",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&n(o,{$event:e})})})}}}]),angular.module(\"edaApp.directives.edaStRationDirective\",[]).directive(\"stRatio\",[function(){return{restrict:\"A\",link:function(e,o,t){var l=+t.stRatio;o.css(\"width\",l+\"%\")}}}]),angular.module(\"edaApp.services.dragDropItemCountersService\",[]).factory(\"dragDropItemCounterService\",[\"dragDropConfig\",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),l={};return l.getItemsNotToCount=function(){return t},l.getModelItemsRealCounter=function(){return o},l.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var l=e.length-1;l>=0;l--)e[l]===t&&(o&=!1)}),o},l.updateLineItemCss=function(o,t,l,n,i){if(\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&\"undefined\"!=typeof l&&\"undefined\"!=typeof n&&\"undefined\"!=typeof i){for(var r=o[l][n].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][l][r].cssClass=e.getItemCssDependingNumberItemsInRow(n);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if(\"undefined\"!=typeof t&&\"undefined\"!=typeof o){for(var l=o[t].length-1;l>=0;l--)for(var n=o[t][l].length-1;n>=0;n--)o[t][l][n].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][l].length);return!0}return!1},t}]),angular.module(\"edaApp.services.dragDropModelConfigModelProxyService\",[]).factory(\"ddModelConfModelProxyService\",[\"EasyFormGenFormlyBindingModels\",\"controllerModalProxy\",\"$parse\",function(e,o,t){function l(o){var l={},n=e.getEasyFormListControls(),i=t(\"controls\");return angular.forEach(i(n),function(e){e.id===o.control&&(l=e)}),l}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)\"undefined\"!=typeof o.lines[l].columns[n].control&&o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(e,o){var t=e+\"-\"+Date.now();return n(t,o)===!0?t:(t=e+\"-\"+Date.now(),n(t,o)===!0?t:t=e+\"-\"+Date.now())}function r(e,o,t){angular.forEach(t.lines,function(t,l){l===o&&(t.line=e)})}function a(e,o,l){t(\"control.selectedControl\").assign(o,t(\"selectedControl\")(e)),t(\"control.type\").assign(o,t(\"formlyType\")(e)),t(\"control.key\").assign(o,i(t(\"control.type\")(o),l)),t(\"control.subtype\").assign(o,t(\"formlySubtype\")(e)),t(\"control.templateOptions.label\").assign(o,t(\"formlyLabel\")(e)),t(\"control.templateOptions.required\").assign(o,t(\"formlyRequired\")(e)),t(\"control.templateOptions.description\").assign(o,t(\"formlyDesciption\")(e)),t(\"control.templateOptions.placeholder\").assign(o,t(\"formlyPlaceholder\")(e)),t(\"control.templateOptions.options\").assign(o,t(\"formlyOptions\")(e)),\"datepicker\"===t(\"control.type\")(o)&&t(\"control.templateOptions.datepickerPopup\").assign(o,t(\"datepickerPopup\")(e))}var s={};return s.refreshAllConfigurationFromDragAndDropModel=function(o,t){angular.copy(o);return o.lines=[],angular.forEach(t[1],function(t,n){o.lines.push(angular.copy(e.getEasyFormEmptyConfigurationLineModel())),r(n+1,n,o),angular.forEach(t,function(i,r){var s={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},d=l(t[r]);if(\"undefined\"!=typeof i.key){console.warn(\"debug dragdropModel show this control key : \"+i.key),s.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);s.control.className=c.className,s.control.cssClass=c.className}else a(d,s,o);\"undefined\"==typeof o.lines[n].columns[r]&&o.lines[n].columns.push(angular.copy(e.getEasyFormConfigurationEmptyControlModel())),o.lines[n].columns[r].control=angular.copy(s.control),o.lines[n].columns[r].numColumn=r+1,o.lines[n].columns[r].exist=!0})}),o},s.refreshControlsKeys=function(e,o){angular.forEach(e.lines,function(e,t){angular.forEach(e.columns,function(e,l){\"undefined\"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][l].key=e.control.key,o[1][t][l].configModelControl=angular.copy(e.control))})}),console.info(\"refreshControlsKeys\"),console.dir({when:\"starting\",\"configModel is \":angular.copy(e),\"dragDropModel is \":angular.copy(o)})},s}]),angular.module(\"edaApp.services.edaEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(o){var t=e.getEasyFormListControls();return angular.copy(t,o),!0}function t(){var o=e.getEasyFormListControls();return r.proxyModel=angular.copy(o),!0}function l(e){for(var o={selectedControl:\"none\",formlyType:\"none\",formlySubtype:\"none\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[]},t=e.controls.length-1;t>=0;t--)e.selectedControl===e.controls[t].id&&(o.selectedControl=e.selectedControl,o.formlyType=e.controls[t].formlyType,o.formlySubtype=e.controls[t].formlySubtype,o.formlyLabel=e.controls[t].formlyLabel,o.formlyRequired=e.controls[t].formlyRequired,o.formlyDesciption=e.controls[t].formlyDesciption,o.formlyPlaceholder=e.controls[t].formlyPlaceholder,o.formlyOptions=e.controls[t].formlyOptions,\"datepicker\"===e.controls[t].formlyType&&(o.datepickerPopup=e.controls[t].datepickerPopup));return o}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(o){var t=\"none\",l=angular.copy(e.getEasyFormListControls().controls);return l.forEach(function(e){return e.formlyType===o.type&&e.formlySubtype===o.subtype?t=e.id:void 0}),t}var r={};r.ProxyModel={},t(),r.initNyaSelect=function(e){return o(e)},r.getNyASelectFromSelectedLineColumn=function(e,t,l,n){return o(e),\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof t.lines[l].columns[n].control.selectedControl?t.lines[l].columns[n].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.label?t.lines[l].columns[n].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.required?t.lines[l].columns[n].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.description?t.lines[l].columns[n].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.placeholder?t.lines[l].columns[n].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.options?t.lines[l].columns[n].control.templateOptions.options:\"\",\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.datepickerPopup?t.lines[l].columns[n].control.templateOptions.datepickerPopup:\"\")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=l(t);i.lines[e].columns[o].control.selectedControl=r.selectedControl,i.lines[e].columns[o].control.type=r.formlyType,i.lines[e].columns[o].control.subtype=r.formlySubtype,i.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},i.lines[e].columns[o].control.templateOptions.label=r.formlyLabel,i.lines[e].columns[o].control.templateOptions.required=r.formlyRequired,i.lines[e].columns[o].control.templateOptions.description=r.formlyDesciption,i.lines[e].columns[o].control.templateOptions.placeholder=r.formlyPlaceholder,i.lines[e].columns[o].control.templateOptions.options=r.formlyOptions,\"datepicker\"===i.lines[e].columns[o].control.type&&(i.lines[e].columns[o].control.templateOptions.datepickerPopup=r.datepickerPopup);var a=i.lines[e].columns[o].control.type+\"-\"+Date.now();n(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+\"-\"+Date.now(),n(a,i)===!0?i.lines[e].columns[o].control.key=a:a=i.lines[e].columns[o].control.type+\"-\"+Date.now()),i.lines[e].columns[o].control.edited=!0},r.applyConfigToSelectedControl=function(e){for(var o=e.controls.length-1;o>=0;o--)e.controls[o].id===e.selectedControl&&(e.controls[o].formlyLabel=e.temporyConfig.formlyLabel,e.controls[o].formlyRequired=e.temporyConfig.formlyRequired,e.controls[o].formlyDesciption=e.temporyConfig.formlyDesciption,e.controls[o].formlyPlaceholder=e.temporyConfig.formlyPlaceholder,e.controls[o].formlyOptions=e.temporyConfig.formlyOptions,\"Date\"===e.controls[o].id&&(e.controls[o].datepickerPopup=e.temporyConfig.datepickerPopup))},r.initProxyModel=function(e){return t(e)},r.bindConfigurationModelFromProxyModel=function(e,o,t){var l=angular.copy(r.proxyModel.temporyConfig);console.warn(\"debug edaEditCtrlControllerModalProxy\"),console.dir(l),t.lines[e].columns[o].control.selectedControl=l.selectedControl,t.lines[e].columns[o].control.type=l.formlyType,t.lines[e].columns[o].control.subtype=l.formlySubtype,t.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},t.lines[e].columns[o].control.templateOptions.label=l.formlyLabel,t.lines[e].columns[o].control.templateOptions.required=l.formlyRequired,t.lines[e].columns[o].control.templateOptions.description=l.formlyDesciption,t.lines[e].columns[o].control.templateOptions.placeholder=l.formlyPlaceholder,t.lines[e].columns[o].control.templateOptions.options=l.formlyOptions,\"datepicker\"===t.lines[e].columns[o].control.type&&(t.lines[e].columns[o].control.templateOptions.datepickerPopup=l.datepickerPopup);var i=t.lines[e].columns[o].control.type+\"-\"+Date.now();n(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),n(i,t)===!0?t.lines[e].columns[o].control.key=i:i=t.lines[e].columns[o].control.type+\"-\"+Date.now()),t.lines[e].columns[o].control.edited=!0},r.setProxyModelFromConfigurationSelection=function(e,o,t){return\"undefined\"!=typeof e.lines[o].columns[t].control&&(r.proxyModel.selectedControl=\"undefined\"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):\"none\",r.proxyModel.temporyConfig.selectedControl=\"undefined\"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):\"none\",r.proxyModel.temporyConfig.formlyType=\"undefined\"!=typeof e.lines[o].columns[t].control.type?e.lines[o].columns[t].control.type:\"none\",r.proxyModel.temporyConfig.formlySubtype=\"undefined\"!=typeof e.lines[o].columns[t].control.subtype?e.lines[o].columns[t].control.subtype:\"none\",r.proxyModel.temporyConfig.formlyLabel=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.label?e.lines[o].columns[t].control.templateOptions.label:\"\",r.proxyModel.temporyConfig.formlyRequired=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.required?e.lines[o].columns[t].control.templateOptions.required:\"\",r.proxyModel.temporyConfig.formlyDesciption=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.description?e.lines[o].columns[t].control.templateOptions.description:\"\",r.proxyModel.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.placeholder?e.lines[o].columns[t].control.templateOptions.placeholder:\"\",r.proxyModel.temporyConfig.formlyOptions=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.options?e.lines[o].columns[t].control.templateOptions.options:\"\",\"Date\"===r.proxyModel.temporyConfig.selectedControl&&(r.proxyModel.temporyConfig.datepickerPopup=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.datepickerPopup?e.lines[o].columns[t].control.templateOptions.datepickerPopup:\"\")),r.proxyModel},r.getProxyModel=function(){return r.proxyModel};var a={toggle:!1,lineIndex:-1,columnIndex:-1,control:{}};r.getEditPanelModelAllModel=function(){return a},r.setEditPanelModelControl=function(e){var o=!1;return\"undefined\"!=typeof e&&(a=angular.copy(e),o=!0),o},r.getEditPanelModelColumnIndex=function(){return a.columnIndex},r.setEditPanelModelColumnIndex=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.columnIndex=e,o=!0),o},r.getEditPanelModelLineIndex=function(){return a.lineIndex},r.setEditPanelModelLineIndex=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.lineIndex=e,o=!0),o},r.getEditPanelModelControl=function(){return a.control},r.setEditPanelModelControl=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.control=angular.copy(e),o=!0),o},r.getEditPanelModelToggle=function(){return a.toggle},r.setEditPanelModelToggle=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.toggle=e,o=!0),o};var s={rows:[]};return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:\"\"}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:\"\"}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:\"\"}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:\"\"}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:\"\"}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:\"\"}),!0},r.bindSpecialCtrlTemporyModelsToProxyModel=function(){\n\"BasicSelect\"===r.proxyModel.selectedControl&&r.bindBasicSelectToProxyModel(r.basicSelectRowCollection),\"GroupedSelect\"===r.proxyModel.selectedControl&&r.bindGroupedSelectToProxyModel(r.groupedSelectRowCollection),\"Radio\"===r.proxyModel.selectedControl&&r.bindRadioToProxyModel(r.radioRowCollection)},r.bindBasicSelectFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.rows.push(t)}},r.bindBasicSelectToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r.bindGroupedSelectFromProxyModel=function(e,o){if(r.proxyModel.temporyConfig.formlyOptions.length>0){for(var t=0;t<=r.proxyModel.temporyConfig.formlyOptions.length-1;t++){var l={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(l)}var n=_.uniq(_.pluck(e.rows,\"group\"));angular.copy(n,o.list)}},r.bindGroupedSelectToProxyModel=function(e){r.proxyModel.temporyConfig.formlyOptions=[];for(var o=0;o<=e.rows.length-1;o++){var t={name:e.rows[o].option,value:o,group:e.rows[o].group};r.proxyModel.temporyConfig.formlyOptions.push(t)}},r.bindRadioFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.rows.push(t)}},r.bindRadioToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r}]),angular.module(\"edaApp.services.formFieldManage\",[]).factory(\"formFieldManage\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,l){var n=t.lines[l].columns.length,i=o.push({className:\"row\",fieldGroup:[]})-1;t.lines[l].columns.forEach(function(t,l){var r={};if(\"undefined\"!=typeof r&&\"none\"!==t.control.type){if(\"header\"===t.control.type||\"subTitle\"===t.control.type){var a=t.control.templateOptions.description;r.template=e.getHeaderTemplateForNcolumnLine(n,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(n,t.control.type),r.className=t.control.className,r.type=t.control.type,r.key=t.control.key,r.templateOptions.type=t.control.templateOptions.type,r.templateOptions.label=t.control.templateOptions.label,r.templateOptions.required=t.control.templateOptions.required,r.templateOptions.placeholder=t.control.templateOptions.placeholder,r.templateOptions.description=t.control.templateOptions.description,r.templateOptions.options=[].concat(t.control.templateOptions.options),\"undefined\"!=typeof r.templateOptions.datepickerPopup&&(t.control.templateOptions.datepickerPopup=r.templateOptions.datepickerPopup);o[i].fieldGroup.push(r)}})}function l(e){var o={};return angular.copy(o,e),!0}function n(e,o){var t={noError:!1,title:\"\",Message:\"\"};return t.noError=!1,t.title=e,t.Message=o,t}function i(e,o){var t={noError:!1,title:\"\",Message:\"\"};return t.noError=!0,t.title=e,t.Message=o,t}var r={};return r.initConfigurationEditFromScratch=function(o,t){var l=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(l,o)},r.bindConfigurationLines=function(o,t,l){if(\"[object Array]\"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(l);return r.lines=[].concat(t),angular.copy(r,o),i(\"configuration model is bound\",\"lines are bound to configuration model.\")}return n(\"lines is not an array\",\"Checks lines type, it is not an array.\")},r.applyConfigurationToformlyModel=function(e,n,i){o(n),l(i);for(var r=e.lines.length,a=0;r>a;a++)t(n,e,a)},r}]),angular.module(\"edaApp.services.formsByIdService\",[\"ngResource\"]).factory(\"formsByIdService\",[\"$resource\",function(e){return e(\"/api/formGen/:id\",{id:\"@id\"},{})}]),angular.module(\"edaApp.services.selectOptionManage\",[]).factory(\"selectOptionManage\",[function(){function e(e,o){var t={resultFlag:!1,details:\"\"};if(\"undefined\"==typeof o)return t.resultFlag=!1,t.details=\"Entered option is empty\",t;if(\"\"!==o){for(var l=e.rows.length-1;l>=0;l--)if(e.rows[l].option===o)return t.resultFlag=!1,t.details=\"Entered option is not unique\",t;return t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Entered option is empty\",t}function o(e){var o={rows:[]};angular.copy(o,e)}return{testMe:function(){return\"selectOptionManage is here.\"},initModel:function(e){o(e)},isOptionUnique:function(e,o){for(var t=e.rows.length-1;t>=0;t--)if(e.rows[t].option===o)return!1;return!0},isOptionValidFormat:function(e){return\"\"!==e?!0:!1},addNewOptionRadio:function(o,t){var l={resultFlag:!1,details:\"\"},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details=\"\",l}return angular.copy(n,l),l},addNewOptionBasicSelect:function(o,t){var l={resultFlag:!1,details:\"\"},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details=\"\",l}return angular.copy(n,l),l},addNewOptionGroupedSelect:function(o,t,l){var n={resultFlag:!1,details:\"\"},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:l,order:o.rows.length};return o.rows.push(r),n.resultFlag=!0,n.details=\"\",n}return angular.copy(i,n),n},removeOption:function(e,o){var t={resultFlag:!1,details:\"\"};return-1!==o?(e.rows.splice(o,1),t.resultFlag=!0,t.details=\"\",t):(t.resultFlag=!1,t.details=\"Option index not valid\",t)},upthisOption:function(e,o){var t={resultFlag:!1,details:\"\"};if(o>-1){if(o>0){if(e.rows[o-1]){var l=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,l),t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Can't retreive option from option index\",t}return t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Option index not valid\",t},downthisOption:function(e,o){var t={resultFlag:!1,details:\"\"};if(o>-1){if(o','\t\",'\t\",\"
\"].join(\"\")}function t(){return['
','
','\t
','\t
','\t
  Edit :
',\"\t
\",\"\t
\",'\t
','\t
','\t
Column will be blank
',\"\t
\",\"\t
\",\"
\",f,\"
\"].join(\"\")}function l(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function n(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function i(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function r(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function a(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
',' ','
','
    ','
  1. ',\" {{dateformat}}\",\"
  2. \",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function s(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function d(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function c(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no radio : add new radio values -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',\" \",\" \",' ',' \",' ',\" \",\" \",\" \",' ',' ',' ',' \",\" \",\" \",\"
orderoption
',' ',\"
{{$index}}{{radioRow.option}}','
',' ',' ',' ',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function p(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function u(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no option : add new options -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',\" \",\" \",' ',' \",' ',\" \",\" \",\" \",' ',' ',' ',' \",\" \",\" \",\"
orderoption
',' ',\"
{{$index}}{{basicSelectRow.option}}','
',' ',' ',' \t',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function m(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no option : add new options -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',' ',\" \",\" \",' ',' ',' \",' ',\" \",\" \",\" \",' ',' ',' \",' ',' \",\" \",\" \",\"
ordergroupoption
',' ',\"
{{$index}}','
','
','

- add new groups -

',\"
\",'
0\">','
    ','
  1. ',\" {{GroupedSelectGroup}}\",\"
  2. \",\"
\",\"
\",\"
\",'
',\" {{groupedSelectRow.group}}\",\"
\",\"
{{groupedSelectRow.option}}','
',' ',' ',' ',' ',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}var f=o();e.put(\"editPanelBlankCtrl-tpls.html\",t()),e.put(\"editPanelHeaderCtrl-tpls.html\",l()),e.put(\"editPanelSubTitleCtrl-tpls.html\",n()),e.put(\"editPanelTextInputCtrl-tpls.html\",i()),e.put(\"editPanelPasswordCtrl-tpls.html\",r()),e.put(\"editPanelDateCtrl-tpls.html\",a()),e.put(\"editPanelTextareaCtrl-tpls.html\",s()),e.put(\"editPanelRichTextEditorCtrl-tpls.html\",d()),e.put(\"editPanelRadioCtrl-tpls.html\",c()),e.put(\"editPanelCheckboxCtrl-tpls.html\",p()),e.put(\"editPanelBasicSelectCtrl-tpls.html\",u()),e.put(\"editPanelGroupedSelectCtrl-tpls.html\",m())}angular.module(\"edaApp\",[\"edaApp.providers\",\"edaApp.controllers\",\"edaApp.services\",\"edaApp.filters\",\"edaApp.directives\",\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"dndLists\",\"mgcrea.ngStrap.affix\",\"pageslide-directive\"]).value(\"easyFormGenVersion\",\"v1.0.19\").run(e),\ne.$inject=[\"$templateCache\"],angular.module(\"edaApp\").config([\"dragDropConfigProvider\",function(e){e.setItemsNotTocount({itemBeingDragged:\"dndDraggingSource\"})}]),angular.module(\"edaApp\").config([\"formlyConfigProvider\",\"EasyFormGenFormlyBindingModelsProvider\",\"dragDropConfigProvider\",function(e,o,t){function l(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"blank\",template:\"
\"}),o.addEasyFormControlToList({id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
',\"
\",\"
\",\"
\"].join(\"\"),control:\"empty\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"blank\"}),o.addEasyFormControlToList({id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

Header

',\"
\",\"
\",\"
\",\"
\"].join(\"\"),control:\"Header\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"headers\"});var n=['
','
','

{{options.templateOptions.placeholder}}

',\"
\",\"

\",\"
\"].join(\" \");e.setType({name:\"subTitle\",template:n}),o.addEasyFormControlToList({id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

SubTitle

',\"
\",\"
\",\"
\",\"
\"].join(\"\"),control:\"Subtitle\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"headers\"}),o.addEasyFormControlToList({id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' ','

Description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"TextInput\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"}),o.addEasyFormControlToList({id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' ','

Description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Password\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"});var i=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],r=[\"datepicker-mode\",\"min-date\",\"max-date\"],a={};angular.forEach(i,function(e){a[l(e)]={attribute:e}}),angular.forEach(r,function(e){a[l(e)]={bound:e}});var s=[\"\"].join(\" \");e.setType({name:\"datepicker\",template:s,wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:a,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,t){t.to.isOpen=!t.to.isOpen},datepickerOptions:{}}}}),o.addEasyFormControlToList({id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\"}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' \t\t\t\t\t
',' \t\t\t\t\t',' \t\t\t\t\t',\" \t\t\t\t\t
\",\"\t\t\t\t\t
\",'

description

',\"
\",\"
\"].join(\"\"),control:\"Date\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"}),o.addEasyFormControlToList({id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Texarea\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"textareas\"});var d=['',\"\"].join(\" \");e.setType({name:\"richEditor\",template:d}),o.addEasyFormControlToList({id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"RichTextEditor\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"textareas\"}),o.addEasyFormControlToList({id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
','
','
',' \",'
',' \",\"
\",'

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Radio\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"radios\"}),o.addEasyFormControlToList({id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",\"
\",'

description

',\"
\"].join(\"\"),control:\"Checkbox\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"checkboxes\"});var c=['
    ','
  1. ',\" {{option.name}} \",\"
  2. \",\"
\"].join(\"\");e.setType({name:\"basicSelect\",template:c}),o.addEasyFormControlToList({id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' \",\"
\",\"
\"].join(\"\"),control:\"BasicSelect\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"selects\"});var p=['
    ','
  1. ',' {{$group}}',\" \",\" {{option.name}}\",' ',\" \",\"
  2. \",\"
\"].join(\" \");e.setType({name:\"groupedSelect\",template:p}),o.addEasyFormControlToList({id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' \",\"
\",\"
\"].join(\"\"),control:\"GroupedSelect\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"selects\"})}]),angular.module(\"edaApp\").run([\"$templateCache\",function(e){e.put(\"editModalTemplate.html\",\"

no use right now

\")}]),angular.module(\"edaApp.providers.dragDropConfigProvider\",[]).provider(\"dragDropConfig\",[function(){function e(e,o){if(l[0].length>0){if(l[0].lengthi;i++)l[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){l[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}var o=[{cssClass:\"col-md-12\",numberItemPerRow:0},{cssClass:\"col-md-12\",numberItemPerRow:1},{cssClass:\"col-md-6\",numberItemPerRow:2},{cssClass:\"col-md-4\",numberItemPerRow:3}],t={dropZoneConfig:{decoration:[{WhenIndex:0,ApplycssClass:\"col-md-4\",fontAwesomeIcon:\"fa fa-level-up\",title:\"Drag control from here : \"},{WhenIndex:1,ApplycssClass:\"col-md-8\",fontAwesomeIcon:\"fa fa-level-down\",title:\"Drop control into here : \"}],verboseMode:!1},containerConfig:{decoration:[{WhenIndex:0,ApplycssClass:\"col-md-12\",title:\"Blank : \",groupId:\"blank\",isCollapsed:!0},{WhenIndex:1,ApplycssClass:\"col-md-12\",title:\"Headers : \",groupId:\"headers\",isCollapsed:!0},{WhenIndex:2,ApplycssClass:\"col-md-12\",title:\"Text inputs : \",groupId:\"inputs\",isCollapsed:!0},{WhenIndex:3,ApplycssClass:\"col-md-12\",title:\"Textareas : \",groupId:\"textareas\",isCollapsed:!0},{WhenIndex:4,ApplycssClass:\"col-md-12\",title:\"Radios : \",groupId:\"radios\",isCollapsed:!0},{WhenIndex:5,ApplycssClass:\"col-md-12\",title:\"Checkboxes : \",groupId:\"checkboxes\",isCollapsed:!0},{WhenIndex:6,ApplycssClass:\"col-md-12\",title:\"Selects : \",groupId:\"selects\",isCollapsed:!0}],verboseMode:!1,collapseEnabled:!0,collapseCtrl:[{atIndex:0,collapse:!0},{atIndex:1,collapse:!0}]},itemConfig:{verboseMode:!1}},l=[[],[[]]],n={itemBeingDragged:\"\"};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return n},this.setItemsNotTocount=function(e){n=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return l},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return n},e.getItemCssDependingNumberItemsInRow=function(e){if(\"undefined\"!=typeof e){for(var t=\"\",l=o.length-1;l>=0;l--)o[l].numberItemPerRow===e&&(t=o[l].cssClass);return t}return\"\"},e.getDistinctItemCssClass=function(){var e=[];return angular.forEach(o,function(o){var t=o.cssClass;if(0===e.length)e.push(t);else{var l=!0;angular.forEach(e,function(e){var o=e;t===o&&(l=!1)}),l&&e.push(t)}}),e},e.getDragDropConfigModel=function(){return t},e.setDragDropConfigContainerDecorationCollapse=function(e,o,t){return\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&o===parseInt(o,10)&&(e.containerConfig.decoration[o].isCollapsed=t),!0},e.getDragDropPresentationModel=function(){return l},e}]}]),angular.module(\"edaApp.providers.EasyFormGenFormlyBindingModels\",[]).provider(\"EasyFormGenFormlyBindingModels\",[function(){var e={controls:[],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[]}},o={line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]},t={control:{type:\"none\",key:\"none\"}},l={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[].concat(o)},n={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0},i={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]},r={cssClass:[\"col-xs-12\",\"col-xs-6\",\"col-xs-4\"],textContent:\"\",html_part1:['
','

'].join(\"\"),html_part3:this.textContent,html_part4:[\"

\",\"
\",\"

\"].join(\"\"),simpleHtml1:['

'].join(\"\"),simpleHtml2:[\"

\",\"
\"].join(\"\")},a={className:[\"col-xs-12\",\"col-xs-6\",\"col-xs-4\"],type:\"\",key:\"\",templateOptions:{type:\"\",label:\"\",required:\"\",placeholder:\"\",description:\"\",options:\"\"}},s=[{controlType:\"datepicker\",properties:[{isRoot:!1,isTemplateOptions:!0,value:\"datepickerPopup\"}]}];this.getAllParticularControlProperties=function(){return s},this.addParticularControlProperties=function(e){if(\"controlType\"in e&&\"properties\"in e){var o=!1;s.length>0&&s.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||s.push(e)}return s},this.getEasyFormListControls=function(){return e},this.addEasyFormControlToList=function(o){\"undefined\"!=typeof o&&e.controls.push(o)},this.getHeaderTemplates=function(){return r},this.addHeaderTemplateCssClass=function(e){\"undefined\"!=typeof e&&r.cssClass.push(e)},this.getFormlyControlTemplate=function(){return a},this.addformlyControlTemplatesCssClass=function(e){\"undefined\"!=typeof e&&a.className.push(e)},this.setFormlyControlTemplate=function(e){return\"className\"in e&&\"type\"in e&&\"key\"in e&&\"templateOptions\"in e&&(a=angular.copy(e)),!0},this.$get=[function(){var d={};return d.getEasyFormListControls=function(){return e},d.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(l);return\"undefined\"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return\"undefined\"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormEmptyConfigurationLineModel=function(){return o},d.getEasyFormConfigurationEmptyControlModel=function(){return t},d.getRawHeaderTemplates=function(){return r},d.getHeaderTemplateForNcolumnLine=function(e,o){if(\"undefined\"!=typeof e&&\"undefined\"!=typeof o&&e===parseInt(e,10)&&e<=r.cssClass.length){var t={};return t.className=r.cssClass[e-1],r.textContent=o,r.selectedClass=t.className,t.template=[r.simpleHtml1,o,r.simpleHtml2].join(\"\"),t}},d.getRawFormlyControlTemplates=function(){return a},d.getFormlyControlTemplateForNcolumnLine=function(e,o){if(\"undefined\"!=typeof e&&e===parseInt(e,10)&&e<=a.className.length){var t=angular.copy(a);return t.className=a.className[e-1],\"undefined\"!=typeof o&&s.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=\"\"),e.isTemplateOptions&&(t.templateOptions[e.value]=\"\")})}),t}},d}]}]),angular.module(\"edaApp.providers\",[\"edaApp.providers.dragDropConfigProvider\",\"edaApp.providers.EasyFormGenFormlyBindingModels\",function(){}]),angular.module(\"edaApp.controllers\",[\"edaApp.controllers.edaMainController\",\"edaApp.controllers.edaEditController\",\"edaApp.controllers.edaEditMODALController\",\"edaApp.controllers.edaEditPanelController\"]),angular.module(\"edaApp.controllers.edaEditController\",[]).controller(\"edaEditController\",[\"$scope\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"formsByIdService\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\",function(e,o,t,l,n,i,r,a,s,d,c,p,u,m,f){function g(){n.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function y(){s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}e.easyFormGeneratorVERSION=o,e.tab={editTab:{active:!0},previewTab:{active:!1}},e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.ihm={preview:{formlyModelViewExpanded:!0,formlyFieldsViewExpanded:!0,customizeFormButtonsExpanded:!0,saveThisFormExpanded:!0}},e.easyFormDragDropProperties=u.getDragDropConfigModel(),e.dragDropModel=[].concat(u.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},s.initConfigurationEditFromScratch(e.configuration,!1),c.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&u.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=g,e.resetToZeroModel=function(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()},e.countConfigurationModelLines=function(){return e.configuration.lines.length},e.setActiveLineNumber=function(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)},e.upThisLine=function(o){if(o>-1&&e.configuration.lines[o-1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.downThisLine=function(o){if(o>-1&&e.configuration.lines[o+1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.removeThisLine=function(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):i(function(){n.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))},e.increaseNumberOfColumns=function(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){if(\"undefined\"==typeof e.configuration.formName)return n.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1;if(\"\"===e.configuration.formName)return n.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1;n.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0});var o=new d;return o.formName=e.configuration.formName,o.submitButtonText=e.configuration.submitButtonText,o.cancelButtonText=e.configuration.cancelButtonText,o.formlyField=JSON.stringify(e.configuration.lines),n.clear(),n.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),!0},e.nyaSelect={},c.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,l){var n=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return c.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,l)}}});n.result.then(function(o){c.bindConfigurationModelFromModalReturn(t,l,o,e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},function(){a.info(\"Modal dismissed at: \"+new Date)})},e.dragoverCallbackContainer=function(e,o,t){return 0===t?!1:!0},e.dropCallback=function(o,t,l,n,r,a){if(n){if(\"itemType\"===a&&!l.label)return!1;if(\"containerType\"===a&&!angular.isArray(l))return!1}var d=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(d)}),l},e.dndItemMoved=function(o,t,l){o>0&&e.dragDropModel[o][t].splice(l,1)},e.dragoverCallbackItems=function(e,o,t,l){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,l,n,r,a,d,c,p,u){if(c){if(\"itemType\"===u&&!d.label)return!1;if(\"containerType\"===u&&!angular.isArray(d))return!1}var g=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return f.setUnRightClicked(d),e.$on(\"$destroy\",function(){i.cancel(g)}),d},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){c.bindSpecialCtrlTemporyModelsToProxyModel(),c.bindConfigurationModelFromProxyModel(c.getEditPanelModelLineIndex(),c.getEditPanelModelColumnIndex(),e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),f.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){f.resetAllDragDropItemSelectedState(e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.debugProxyModel=c.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,l,n){if(f.resetAllDragDropItemSelectedState(e.dragDropModel),c.getEditPanelModelToggle()){if(c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),\"undefined\"!=typeof c.getEditPanelModelLineIndex()&&\"undefined\"!=typeof c.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof c.getEditPanelModelControl())if(c.getEditPanelModelLineIndex()===t&&c.getEditPanelModelColumnIndex()===l&&angular.equals(c.getEditPanelModelControl(),n));else{n.rightCliked=!0;var r=i(function(){c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else n.rightCliked=!0,c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){y(),e.dragDropModel[1].push([])}}]),angular.module(\"edaApp.controllers.edaEditMODALController\",[]).controller(\"edaEditMODALController\",[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,l,n,i,r){function a(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.radioRowCollection.rows.push(t)}}function s(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.radioRowCollection.rows.length>0)for(var t=0;t<=e.radioRowCollection.rows.length-1;t++){var l={name:e.radioRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function d(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.basicSelectRowCollection.rows.push(t)}}function c(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.basicSelectRowCollection.rows.length>0)for(var t=0;t<=e.basicSelectRowCollection.rows.length-1;t++){var l={name:e.basicSelectRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function p(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0){for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:e.nyaSelect.temporyConfig.formlyOptions[o].group};e.groupedSelectRowCollection.rows.push(t)}var l=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(l,e.GroupedSelectGroups.list)}}function u(){e.nyaSelect.temporyConfig.formlyOptions=[];for(var o=0;o<=e.groupedSelectRowCollection.rows.length-1;o++){var t={name:e.groupedSelectRowCollection.rows[o].option,value:o,group:e.groupedSelectRowCollection.rows[o].group};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function m(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function f(){e.nyaSelect.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var g={rows:[]};if(e.radioRowCollection=g,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=function(){var o=i.addNewOptionRadio(e.radioRowCollection,e.newOptionRadio.saisie);o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionRadio={saisie:\"\"}},e.removeRadioRow=function(o){var t=i.removeOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisRadioRow=function(o){var t=i.upthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisRadioRow=function(o){var t=i.downthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.basicSelectRowCollection=g,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=function(){var o=i.addNewOptionBasicSelect(e.basicSelectRowCollection,e.newOptionBasicSelect.saisie);o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionBasicSelect={saisie:\"\"}},e.removeRow=function(o){var t=i.removeOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisRow=function(o){var t=i.upthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisRow=function(o){var t=i.downthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({\ntype:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.groupedSelectRowCollection=g,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=function(){e.groupSelectGroupClick.showList=!e.groupSelectGroupClick.showList},e.addNewGroupToGroupedSelect=function(){if(\"\"!==e.newGroupGroupedSelect.saisie){for(var o=e.GroupedSelectGroups.list.length-1;o>=0;o--)e.GroupedSelectGroups.list[o]===e.newGroupGroupedSelect.saisie&&l.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else l.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});e.newGroupGroupedSelect.saisie=\"\"},e.addNewOptionGroupedSelect=function(){var o=i.addNewOptionGroupedSelect(e.groupedSelectRowCollection,e.newOptionGroupedSelect.saisie,\"\");o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionGroupedSelect={saisie:\"\"}},e.removeGroupedSelectRow=function(o){var t=i.removeOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisGroupedSelectRow=function(o){var t=i.upthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisGroupedSelectRow=function(o){var t=i.downthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.demodt={},e.today=function(){e.demodt.dt=new Date},e.today(),e.clear=function(){e.demodt.dt=null},e.open=function(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0},e.dateOptions={formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null},e.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"],e.nyaSelect=t,e.nyaSelect.selectedControl=e.nyaSelect.temporyConfig.selectedControl,\"none\"!==t.selectedControl){for(var y=e.nyaSelect.controls.length-1;y>=0;y--)e.nyaSelect.controls[y].id===t.selectedControl&&(e.modelNyaSelect=t.controls[y]);\"BasicSelect\"===e.nyaSelect.selectedControl&&d(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&p(),\"Radio\"===e.nyaSelect.selectedControl&&a()}e.selectThisControl=function(o){e.nyaSelect.selectedControl=\"none\",f();for(var t=e.nyaSelect.controls.length-1;t>=0;t--)e.nyaSelect.controls[t].id===o&&(e.nyaSelect.selectedControl=e.nyaSelect.controls[t].id);\"Date\"===e.nyaSelect.selectedControl&&m()},e.ok=function(){\"BasicSelect\"===e.nyaSelect.selectedControl&&c(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&u(),\"Radio\"===e.nyaSelect.selectedControl&&s(),r.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)},e.cancel=function(){o.dismiss(\"cancel\")}}]),angular.module(\"edaApp.controllers.edaEditPanelController\",[]).controller(\"edaEditPanelController\",[\"$scope\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,l,n){function i(){a.proxyModel.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function r(){a.proxyModel.temporyConfig.datepickerPopup=a.demodt.formats[0]}var a=this;if(a.proxyModel=n.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=n.basicSelectRowCollection,a.newOptionBasicSelect=n.newOptionBasicSelect,a.groupedSelectRowCollection=n.groupedSelectRowCollection,a.newOptionGroupedSelect=n.newOptionGroupedSelect,a.GroupedSelectGroups=n.GroupedSelectGroups,a.newGroupGroupedSelect=n.newGroupGroupedSelect,a.groupSelectGroupClick=n.groupSelectGroupClick,a.radioRowCollection=n.radioRowCollection,a.newOptionRadio=n.newOptionRadio,n.resetAllTemporyModels(),\"none\"!==a.proxyModel.temporyConfig.selectedControl){for(var s=a.proxyModel.controls.length-1;s>=0;s--)a.proxyModel.controls[s].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[s]);\"BasicSelect\"===a.proxyModel.temporyConfig.selectedControl&&n.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),\"GroupedSelect\"===a.proxyModel.temporyConfig.selectedControl&&n.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),\"Radio\"===a.proxyModel.temporyConfig.selectedControl&&n.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return n.basicSelectRowCollection=a.basicSelectRowCollection,n.newOptionBasicSelect=a.newOptionBasicSelect,n.groupedSelectRowCollection=a.groupedSelectRowCollection,n.newOptionGroupedSelect=a.newOptionGroupedSelect,n.GroupedSelectGroups=a.GroupedSelectGroups,n.newGroupGroupedSelect=a.newGroupGroupedSelect,n.groupSelectGroupClick=a.groupSelectGroupClick,n.radioRowCollection=a.radioRowCollection,n.newOptionRadio=a.newOptionRadio,n.bindSpecialCtrlTemporyModelsToProxyModel(),!0},a.resetControl=function(){a.proxyModel.temporyConfig.formlyLabel=\"\",a.proxyModel.temporyConfig.formlyRequired=!1,a.proxyModel.temporyConfig.formlyPlaceholder=\"\",a.proxyModel.temporyConfig.formlyDesciption=\"\",a.proxyModel.temporyConfig.formlyOptions=[],a.proxyModel.temporyConfig.datepickerPopup=r()},a.selectThisControl=function(e){a.proxyModel.selectedControl=\"none\",i();for(var o=a.proxyModel.controls.length-1;o>=0;o--)a.proxyModel.controls[o].id===e&&(a.proxyModel.selectedControl=a.proxyModel.controls[o].id);\"Date\"===a.proxyModel.selectedControl&&r()},a.addNewOptionRadio=function(){var e=l.addNewOptionRadio(a.radioRowCollection,a.newOptionRadio.saisie);e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionRadio={saisie:\"\"}},a.removeRadioRow=function(e){var t=l.removeOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisRadioRow=function(e){var t=l.upthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisRadioRow=function(e){var t=l.downthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.addNewOptionBasicSelect=function(){var e=l.addNewOptionBasicSelect(a.basicSelectRowCollection,a.newOptionBasicSelect.saisie);e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionBasicSelect={saisie:\"\"}},a.removeRow=function(e){var t=l.removeOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisRow=function(e){var t=l.upthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisRow=function(e){var t=l.downthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.showGroupListToChoose=function(){a.groupSelectGroupClick.showList=!a.groupSelectGroupClick.showList},a.addNewGroupToGroupedSelect=function(){if(\"\"!==a.newGroupGroupedSelect.saisie){for(var e=a.GroupedSelectGroups.list.length-1;e>=0;e--)a.GroupedSelectGroups.list[e]===a.newGroupGroupedSelect.saisie&&o.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});a.GroupedSelectGroups.list.push(a.newGroupGroupedSelect.saisie)}else o.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});a.newGroupGroupedSelect.saisie=\"\"},a.addNewOptionGroupedSelect=function(){var e=l.addNewOptionGroupedSelect(a.groupedSelectRowCollection,a.newOptionGroupedSelect.saisie,\"\");e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionGroupedSelect={saisie:\"\"}},a.removeGroupedSelectRow=function(e){var t=l.removeOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisGroupedSelectRow=function(e){var t=l.upthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisGroupedSelectRow=function(e){var t=l.downthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.demodt={},a.today=function(){a.demodt.dt=new Date},a.today(),a.clear=function(){a.demodt.dt=null},a.open=function(e){e.preventDefault(),e.stopPropagation(),a.demodt.opened=!0},a.dateOptions={formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null},a.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"]}]),angular.module(\"edaApp.controllers.edaMainController\",[]).controller(\"edaMainController\",[function(){}]),angular.module(\"edaApp.directives.edaDdContentCounterDirective\",[]).directive(\"ddContentCounter\",[\"dragDropItemCounterService\",\"$timeout\",function(e,o){return{scope:{valueWhenPlaceholder:\"@ddValueWhenPlaceholder\",valueWhendragging:\"@ddValueWhenDragging\",fullModel:\"=ddFullModel\",currentIndex:\"@ddContentCounterCurrentIndex\",parentIndex:\"@ddContentCounterParentIndex\",forceRefresh:\"=ddContentCounterForceCssRefresh\"},restrict:\"A\",link:function(t,l){var n;t.$watch(function(){return l[0].children.length},function(i,r){if(i!==r){for(var a=0,s=[],d=l[0].children.length-1;d>=0;d--)e.isHtmlElementToCount(l[0].children[d].classList)?(a++,s.push({item:d,isReal:!0})):s.push({item:d,isReal:!1});t.contentRealCount=a,n=o(function(){e.updateLineItemCss(t.fullModel,s,t.parentIndex,t.currentIndex,a)},20)}}),t.$on(\"$destroy\",function(){console.warn(\"ddContentCounter timer destruction!\"),o.cancel(n)})}}}]),angular.module(\"edaApp.directives.edaDdDecorContainerDirective\",[]).directive(\"ddDecorContainer\",[function(){var e=['
','
 {{currentTitle}}
',\"
\",'
','
',\"
\"].join(\" \");return{scope:{styleParam:\"=ddContainerProperties\",isStillCollapsed:\"=ddContainerIsCollpased\",verboseMode:\"@ddContainerVerboseMode\",currentIndex:\"@ddContainerCurrentIndex\",collpaseAll:\"&ddCollapseAll\"},restrict:\"A\",template:e,transclude:!0,controller:function(e){e.config={isEnabled:!1},e.collapseFct=function(){e.collpaseAll({exceptThisOne:e.styleParam.WhenIndex}),e.isCollapsed=!e.isCollapsed,e.isStillCollapsed=e.isCollapsed},e.icons={closedClass:\"glyphicon glyphicon-eye-open\",opened:\"glyphicon glyphicon-eye-close\"},e.currentIconClass=function(){return e.isCollapsed?e.icons.closedClass:e.icons.opened}},link:function(e,o,t,l,n){var i=e.verboseMode,r=e.currentIndex;if(e.isCollapsed=!1,\"\"!==i){var a=angular.lowercase(i);(\"true\"===a||\"1\"===a)&&console.dir({whoAmI:\"I am verbose from ddDecorContainer link\",verbodeMode:a,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:r,styleParam:e.styleParam,columnindex:e.$parent.$parent.$parent.$parent.$index})}e.$watch(function(){return e.isStillCollapsed},function(o,t){o!==t&&0===e.$parent.$parent.$index&&(e.isCollapsed=o)}),e.config.isEnabled=!1,\"undefined\"!=typeof r&&\"\"!==r&&\"0\"===r&&\"undefined\"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title,e.config.isEnabled=!0,e.isCollapsed=!0),n(e.$parent,function(e){var t=angular.element(o.children()[1]);t.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdDecorDropZoneDirective\",[]).directive(\"ddDecorDropZone\",[function(){var e=['
','
','
','
','

','  ',\" {{currentTitle}}\",'
',' \",\"
\",\"

\",\"
\",'
','
','
',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\"].join(\" \");return{scope:{styleParam:\"=ddDropZoneProperties\",verboseMode:\"@ddDropZoneVerboseMode\",currentIndex:\"@ddDropZoneCurrentIndex\",addNewLineFct:\"&ddDropZoneAddNewLine\"},restrict:\"A\",template:e,transclude:!0,link:function(e){var o=e.verboseMode,t=e.currentIndex;if(e.headerConfig={HeaderButtonVisible:!1,affixAttr:\"bs-affix\",affixEnabled:!1},\"\"!==o){var l=angular.lowercase(o);(\"true\"===l||\"1\"===l)&&console.dir({whoAmI:\"I am verbose from ddDecorDropZone link\",verbodeMode:l,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:t,styleParam:e.styleParam})}\"undefined\"!=typeof t&&\"\"!==t&&(\"undefined\"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title),\"undefined\"!=typeof e.styleParam.fontAwesomeIcon&&(e.currentFontAwesome=e.styleParam.fontAwesomeIcon),\"1\"===t&&(e.headerConfig.HeaderButtonVisible=!0))}}}]),angular.module(\"edaApp.directives.edaDdDecorItemDirective\",[]).directive(\"ddDecorItem\",[\"dragDropConfig\",function(e){var o=[\"
\",'
',\"
\"].join(\" \");return{scope:{verboseMode:\"@ddItemVerboseMode\",currentIndex:\"@ddItemCurrentIndex\",parentIndex:\"@ddItemParentIndex\",parentParentIndex:\"@ddItemParentParentIndex\",lineItemsCount:\"@ddItemsCount\",cssClass:\"@ddItemCssClass\"},restrict:\"A\",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex,d=e.getDistinctItemCssClass();if(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch(\"cssClass\",function(e,o){e!==o&&(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(e))}),\"\"!==r){var c=angular.lowercase(r);(\"true\"===c||\"1\"===c)&&console.dir({whoAmI:\"I am verbose from ddDecorItem directive link\",verbodeMode:c,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}\"0\"===o.parentParentIndex&&t.addClass(d[0]),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdDecorLineDirective\",[]).directive(\"ddDecorLine\",[\"$timeout\",function(e){var o=['
',' ',\"
\",'
'].join(\" \");return{scope:{verboseMode:\"@ddLineVerboseMode\",currentIndex:\"@ddLineCurrentIndex\",parentIndex:\"@ddLineParentIndex\",removeLine:\"&ddRemoveLine\"},restrict:\"A\",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,\"\"!==r){var d=angular.lowercase(r);(\"true\"===d||\"1\"===d)&&console.dir({whoAmI:\"I am verbose from ddDecorLine directive link\",verbodeMode:d,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,currentIndex:a})}o.removeMe=function(t){t.preventDefault(),t.stopPropagation(),\"1\"===o.parentIndex&&(1===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1,o.removeLine(),e.cancel(c)),0===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=o.deleteLine.dblClickCount+1,o.deleteLine.readyToDelete=!0))};var c;o.cancelDelete=function(t){c=e(function(){o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1},500)},o.$on(\"$destroy\",function(){e.cancel(c)}),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdNoEditableControlDirective\",[]).directive(\"ddNoEditableControl\",[function(){return{restrict:\"A\",link:function(e,o){o.on(\"click\",function(e){e.preventDefault()})}}}]),angular.module(\"edaApp.directives\",[\"edaApp.directives.edaStRationDirective\",\"edaApp.directives.edaDdDecorDropZoneDirective\",\"edaApp.directives.edaDdDecorContainerDirective\",\"edaApp.directives.edaDdDecorLineDirective\",\"edaApp.directives.edaDdDecorItemDirective\",\"edaApp.directives.edaDdNoEditableControlDirective\",\"edaApp.directives.edaDdContentCounterDirective\",\"edaApp.directives.edaRightClickDirective\"]),angular.module(\"edaApp.directives.edaRightClickDirective\",[]).directive(\"edaRightClick\",[\"$parse\",function(e){return{restrict:\"A\",link:function(o,t,l){var n=e(l.edaRightClick),i=e(l.edaRightClickColIndex),r=e(l.edaSetRightClicked);t.on(\"contextmenu\",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&n(o,{$event:e})})})}}}]),angular.module(\"edaApp.directives.edaStRationDirective\",[]).directive(\"stRatio\",[function(){return{restrict:\"A\",link:function(e,o,t){var l=+t.stRatio;o.css(\"width\",l+\"%\")}}}]),angular.module(\"edaApp.services.dragDropItemCountersService\",[]).factory(\"dragDropItemCounterService\",[\"dragDropConfig\",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),l={};return l.getItemsNotToCount=function(){return t},l.getModelItemsRealCounter=function(){return o},l.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var l=e.length-1;l>=0;l--)e[l]===t&&(o&=!1)}),o},l.updateLineItemCss=function(o,t,l,n,i){if(\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&\"undefined\"!=typeof l&&\"undefined\"!=typeof n&&\"undefined\"!=typeof i){for(var r=o[l][n].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][l][r].cssClass=e.getItemCssDependingNumberItemsInRow(n);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if(\"undefined\"!=typeof t&&\"undefined\"!=typeof o){for(var l=o[t].length-1;l>=0;l--)for(var n=o[t][l].length-1;n>=0;n--)o[t][l][n].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][l].length);return!0}return!1},t}]),angular.module(\"edaApp.services.dragDropModelConfigModelProxyService\",[]).factory(\"ddModelConfModelProxyService\",[\"EasyFormGenFormlyBindingModels\",\"controllerModalProxy\",\"$parse\",function(e,o,t){function l(o){var l={},n=e.getEasyFormListControls(),i=t(\"controls\");return angular.forEach(i(n),function(e){e.id===o.control&&(l=e)}),l}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)\"undefined\"!=typeof o.lines[l].columns[n].control&&o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(e,o){var t=e+\"-\"+Date.now();return n(t,o)===!0?t:(t=e+\"-\"+Date.now(),n(t,o)===!0?t:t=e+\"-\"+Date.now())}function r(e,o,t){angular.forEach(t.lines,function(t,l){l===o&&(t.line=e)})}function a(e,o,l){t(\"control.selectedControl\").assign(o,t(\"selectedControl\")(e)),t(\"control.type\").assign(o,t(\"formlyType\")(e)),t(\"control.key\").assign(o,i(t(\"control.type\")(o),l)),t(\"control.subtype\").assign(o,t(\"formlySubtype\")(e)),t(\"control.templateOptions.label\").assign(o,t(\"formlyLabel\")(e)),t(\"control.templateOptions.required\").assign(o,t(\"formlyRequired\")(e)),t(\"control.templateOptions.description\").assign(o,t(\"formlyDesciption\")(e)),t(\"control.templateOptions.placeholder\").assign(o,t(\"formlyPlaceholder\")(e)),t(\"control.templateOptions.options\").assign(o,t(\"formlyOptions\")(e)),\"datepicker\"===t(\"control.type\")(o)&&t(\"control.templateOptions.datepickerPopup\").assign(o,t(\"datepickerPopup\")(e))}var s={};return s.refreshAllConfigurationFromDragAndDropModel=function(o,t){angular.copy(o);return o.lines=[],angular.forEach(t[1],function(t,n){o.lines.push(angular.copy(e.getEasyFormEmptyConfigurationLineModel())),r(n+1,n,o),angular.forEach(t,function(i,r){var s={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},d=l(t[r]);if(\"undefined\"!=typeof i.key){console.warn(\"debug dragdropModel show this control key : \"+i.key),s.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);s.control.className=c.className,s.control.cssClass=c.className}else a(d,s,o);\"undefined\"==typeof o.lines[n].columns[r]&&o.lines[n].columns.push(angular.copy(e.getEasyFormConfigurationEmptyControlModel())),o.lines[n].columns[r].control=angular.copy(s.control),o.lines[n].columns[r].numColumn=r+1,o.lines[n].columns[r].exist=!0})}),o},s.refreshControlsKeys=function(e,o){angular.forEach(e.lines,function(e,t){angular.forEach(e.columns,function(e,l){\"undefined\"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][l].key=e.control.key,o[1][t][l].configModelControl=angular.copy(e.control))})}),console.info(\"refreshControlsKeys\"),console.dir({when:\"starting\",\"configModel is \":angular.copy(e),\"dragDropModel is \":angular.copy(o)})},s}]),angular.module(\"edaApp.services.edaEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(o){var t=e.getEasyFormListControls();return angular.copy(t,o),!0}function t(){var o=e.getEasyFormListControls();return r.proxyModel=angular.copy(o),!0}function l(e){for(var o={selectedControl:\"none\",formlyType:\"none\",formlySubtype:\"none\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[]},t=e.controls.length-1;t>=0;t--)e.selectedControl===e.controls[t].id&&(o.selectedControl=e.selectedControl,o.formlyType=e.controls[t].formlyType,o.formlySubtype=e.controls[t].formlySubtype,o.formlyLabel=e.controls[t].formlyLabel,o.formlyRequired=e.controls[t].formlyRequired,o.formlyDesciption=e.controls[t].formlyDesciption,o.formlyPlaceholder=e.controls[t].formlyPlaceholder,o.formlyOptions=e.controls[t].formlyOptions,\"datepicker\"===e.controls[t].formlyType&&(o.datepickerPopup=e.controls[t].datepickerPopup));return o}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(o){var t=\"none\",l=angular.copy(e.getEasyFormListControls().controls);return l.forEach(function(e){return e.formlyType===o.type&&e.formlySubtype===o.subtype?t=e.id:void 0}),t}var r={};r.ProxyModel={},t(),r.initNyaSelect=function(e){return o(e)},r.getNyASelectFromSelectedLineColumn=function(e,t,l,n){return o(e),\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof t.lines[l].columns[n].control.selectedControl?t.lines[l].columns[n].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.label?t.lines[l].columns[n].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.required?t.lines[l].columns[n].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.description?t.lines[l].columns[n].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.placeholder?t.lines[l].columns[n].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.options?t.lines[l].columns[n].control.templateOptions.options:\"\",\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.datepickerPopup?t.lines[l].columns[n].control.templateOptions.datepickerPopup:\"\")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=l(t);i.lines[e].columns[o].control.selectedControl=r.selectedControl,i.lines[e].columns[o].control.type=r.formlyType,i.lines[e].columns[o].control.subtype=r.formlySubtype,i.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},i.lines[e].columns[o].control.templateOptions.label=r.formlyLabel,i.lines[e].columns[o].control.templateOptions.required=r.formlyRequired,i.lines[e].columns[o].control.templateOptions.description=r.formlyDesciption,i.lines[e].columns[o].control.templateOptions.placeholder=r.formlyPlaceholder,i.lines[e].columns[o].control.templateOptions.options=r.formlyOptions,\"datepicker\"===i.lines[e].columns[o].control.type&&(i.lines[e].columns[o].control.templateOptions.datepickerPopup=r.datepickerPopup);var a=i.lines[e].columns[o].control.type+\"-\"+Date.now();n(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+\"-\"+Date.now(),n(a,i)===!0?i.lines[e].columns[o].control.key=a:a=i.lines[e].columns[o].control.type+\"-\"+Date.now()),i.lines[e].columns[o].control.edited=!0},r.applyConfigToSelectedControl=function(e){for(var o=e.controls.length-1;o>=0;o--)e.controls[o].id===e.selectedControl&&(e.controls[o].formlyLabel=e.temporyConfig.formlyLabel,e.controls[o].formlyRequired=e.temporyConfig.formlyRequired,e.controls[o].formlyDesciption=e.temporyConfig.formlyDesciption,e.controls[o].formlyPlaceholder=e.temporyConfig.formlyPlaceholder,e.controls[o].formlyOptions=e.temporyConfig.formlyOptions,\"Date\"===e.controls[o].id&&(e.controls[o].datepickerPopup=e.temporyConfig.datepickerPopup))},r.initProxyModel=function(e){return t(e)},r.bindConfigurationModelFromProxyModel=function(e,o,t){var l=angular.copy(r.proxyModel.temporyConfig);console.warn(\"debug edaEditCtrlControllerModalProxy\"),console.dir(l),t.lines[e].columns[o].control.selectedControl=l.selectedControl,t.lines[e].columns[o].control.type=l.formlyType,t.lines[e].columns[o].control.subtype=l.formlySubtype,t.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},t.lines[e].columns[o].control.templateOptions.label=l.formlyLabel,t.lines[e].columns[o].control.templateOptions.required=l.formlyRequired,t.lines[e].columns[o].control.templateOptions.description=l.formlyDesciption,t.lines[e].columns[o].control.templateOptions.placeholder=l.formlyPlaceholder,t.lines[e].columns[o].control.templateOptions.options=l.formlyOptions,\"datepicker\"===t.lines[e].columns[o].control.type&&(t.lines[e].columns[o].control.templateOptions.datepickerPopup=l.datepickerPopup);var i=t.lines[e].columns[o].control.type+\"-\"+Date.now();n(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),n(i,t)===!0?t.lines[e].columns[o].control.key=i:i=t.lines[e].columns[o].control.type+\"-\"+Date.now()),t.lines[e].columns[o].control.edited=!0},r.setProxyModelFromConfigurationSelection=function(e,o,t){return\"undefined\"!=typeof e.lines[o].columns[t].control&&(r.proxyModel.selectedControl=\"undefined\"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):\"none\",r.proxyModel.temporyConfig.selectedControl=\"undefined\"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):\"none\",r.proxyModel.temporyConfig.formlyType=\"undefined\"!=typeof e.lines[o].columns[t].control.type?e.lines[o].columns[t].control.type:\"none\",r.proxyModel.temporyConfig.formlySubtype=\"undefined\"!=typeof e.lines[o].columns[t].control.subtype?e.lines[o].columns[t].control.subtype:\"none\",r.proxyModel.temporyConfig.formlyLabel=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.label?e.lines[o].columns[t].control.templateOptions.label:\"\",r.proxyModel.temporyConfig.formlyRequired=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.required?e.lines[o].columns[t].control.templateOptions.required:\"\",r.proxyModel.temporyConfig.formlyDesciption=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.description?e.lines[o].columns[t].control.templateOptions.description:\"\",r.proxyModel.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.placeholder?e.lines[o].columns[t].control.templateOptions.placeholder:\"\",r.proxyModel.temporyConfig.formlyOptions=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.options?e.lines[o].columns[t].control.templateOptions.options:\"\",\"Date\"===r.proxyModel.temporyConfig.selectedControl&&(r.proxyModel.temporyConfig.datepickerPopup=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.datepickerPopup?e.lines[o].columns[t].control.templateOptions.datepickerPopup:\"\")),r.proxyModel},r.getProxyModel=function(){return r.proxyModel};var a={toggle:!1,lineIndex:-1,columnIndex:-1,control:{}};r.getEditPanelModelAllModel=function(){return a},r.setEditPanelModelControl=function(e){var o=!1;return\"undefined\"!=typeof e&&(a=angular.copy(e),o=!0),o},r.getEditPanelModelColumnIndex=function(){return a.columnIndex},r.setEditPanelModelColumnIndex=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.columnIndex=e,o=!0),o},r.getEditPanelModelLineIndex=function(){return a.lineIndex},r.setEditPanelModelLineIndex=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.lineIndex=e,o=!0),o},r.getEditPanelModelControl=function(){return a.control},r.setEditPanelModelControl=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.control=angular.copy(e),o=!0),o},r.getEditPanelModelToggle=function(){return a.toggle},r.setEditPanelModelToggle=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.toggle=e,o=!0),o};var s={rows:[]};return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:\"\"}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:\"\"}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:\"\"}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:\"\"}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:\"\"}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:\"\"}),!0},r.bindSpecialCtrlTemporyModelsToProxyModel=function(){\n\"BasicSelect\"===r.proxyModel.selectedControl&&r.bindBasicSelectToProxyModel(r.basicSelectRowCollection),\"GroupedSelect\"===r.proxyModel.selectedControl&&r.bindGroupedSelectToProxyModel(r.groupedSelectRowCollection),\"Radio\"===r.proxyModel.selectedControl&&r.bindRadioToProxyModel(r.radioRowCollection)},r.bindBasicSelectFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.rows.push(t)}},r.bindBasicSelectToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r.bindGroupedSelectFromProxyModel=function(e,o){if(r.proxyModel.temporyConfig.formlyOptions.length>0){for(var t=0;t<=r.proxyModel.temporyConfig.formlyOptions.length-1;t++){var l={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(l)}var n=_.uniq(_.pluck(e.rows,\"group\"));angular.copy(n,o.list)}},r.bindGroupedSelectToProxyModel=function(e){r.proxyModel.temporyConfig.formlyOptions=[];for(var o=0;o<=e.rows.length-1;o++){var t={name:e.rows[o].option,value:o,group:e.rows[o].group};r.proxyModel.temporyConfig.formlyOptions.push(t)}},r.bindRadioFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.rows.push(t)}},r.bindRadioToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r}]),angular.module(\"edaApp.services.formFieldManage\",[]).factory(\"formFieldManage\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,l){var n=t.lines[l].columns.length,i=o.push({className:\"row\",fieldGroup:[]})-1;t.lines[l].columns.forEach(function(t,l){var r={};if(\"undefined\"!=typeof r&&\"none\"!==t.control.type){if(\"header\"===t.control.type||\"subTitle\"===t.control.type){var a=t.control.templateOptions.description;r.template=e.getHeaderTemplateForNcolumnLine(n,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(n,t.control.type),r.className=t.control.className,r.type=t.control.type,r.key=t.control.key,r.templateOptions.type=t.control.templateOptions.type,r.templateOptions.label=t.control.templateOptions.label,r.templateOptions.required=t.control.templateOptions.required,r.templateOptions.placeholder=t.control.templateOptions.placeholder,r.templateOptions.description=t.control.templateOptions.description,r.templateOptions.options=[].concat(t.control.templateOptions.options),\"undefined\"!=typeof r.templateOptions.datepickerPopup&&(t.control.templateOptions.datepickerPopup=r.templateOptions.datepickerPopup);o[i].fieldGroup.push(r)}})}function l(e){var o={};return angular.copy(o,e),!0}function n(e,o){var t={noError:!1,title:\"\",Message:\"\"};return t.noError=!1,t.title=e,t.Message=o,t}function i(e,o){var t={noError:!1,title:\"\",Message:\"\"};return t.noError=!0,t.title=e,t.Message=o,t}var r={};return r.initConfigurationEditFromScratch=function(o,t){var l=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(l,o)},r.bindConfigurationLines=function(o,t,l){if(\"[object Array]\"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(l);return r.lines=[].concat(t),angular.copy(r,o),i(\"configuration model is bound\",\"lines are bound to configuration model.\")}return n(\"lines is not an array\",\"Checks lines type, it is not an array.\")},r.applyConfigurationToformlyModel=function(e,n,i){o(n),l(i);for(var r=e.lines.length,a=0;r>a;a++)t(n,e,a)},r}]),angular.module(\"edaApp.services.formsByIdService\",[\"ngResource\"]).factory(\"formsByIdService\",[\"$resource\",function(e){return e(\"/api/formGen/:id\",{id:\"@id\"},{})}]),angular.module(\"edaApp.services.selectOptionManage\",[]).factory(\"selectOptionManage\",[function(){function e(e,o){var t={resultFlag:!1,details:\"\"};if(\"undefined\"==typeof o)return t.resultFlag=!1,t.details=\"Entered option is empty\",t;if(\"\"!==o){for(var l=e.rows.length-1;l>=0;l--)if(e.rows[l].option===o)return t.resultFlag=!1,t.details=\"Entered option is not unique\",t;return t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Entered option is empty\",t}function o(e){var o={rows:[]};angular.copy(o,e)}return{testMe:function(){return\"selectOptionManage is here.\"},initModel:function(e){o(e)},isOptionUnique:function(e,o){for(var t=e.rows.length-1;t>=0;t--)if(e.rows[t].option===o)return!1;return!0},isOptionValidFormat:function(e){return\"\"!==e?!0:!1},addNewOptionRadio:function(o,t){var l={resultFlag:!1,details:\"\"},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details=\"\",l}return angular.copy(n,l),l},addNewOptionBasicSelect:function(o,t){var l={resultFlag:!1,details:\"\"},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details=\"\",l}return angular.copy(n,l),l},addNewOptionGroupedSelect:function(o,t,l){var n={resultFlag:!1,details:\"\"},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:l,order:o.rows.length};return o.rows.push(r),n.resultFlag=!0,n.details=\"\",n}return angular.copy(i,n),n},removeOption:function(e,o){var t={resultFlag:!1,details:\"\"};return-1!==o?(e.rows.splice(o,1),t.resultFlag=!0,t.details=\"\",t):(t.resultFlag=!1,t.details=\"Option index not valid\",t)},upthisOption:function(e,o){var t={resultFlag:!1,details:\"\"};if(o>-1){if(o>0){if(e.rows[o-1]){var l=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,l),t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Can't retreive option from option index\",t}return t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Option index not valid\",t},downthisOption:function(e,o){var t={resultFlag:!1,details:\"\"};if(o>-1){if(o'}),e.setType({name:"blank",template:"
"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:"subTitle",template:n});var t='
  1. {{option.name}}
';e.setType({name:"basicSelect",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:"groupedSelect",template:l});var r=["date-disabled","custom-class","show-weeks","starting-day","init-date","min-mode","max-mode","format-day","format-month","format-year","format-day-header","format-day-title","format-month-title","year-range","shortcut-propagation","datepicker-popup","show-button-bar","current-text","clear-text","close-text","close-on-date-selection","datepicker-append-to-body"],i=["datepicker-mode","min-date","max-date"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:"datepicker",template:'',wrapper:["bootstrapLabel","bootstrapHasError"],controller:["$scope",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{"class":"glyphicon glyphicon-calendar",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
"," ",'
','
','
'," {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}","
","
","
"].join(" ")}])}angular.module("eda.easyFormViewer").config(e)}(),angular.module("eda.easyFormViewer").run(["$templateCache",function(e){e.put("eda.easyFormViewer.Template.html",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||"Submit")}function m(e,n){e!==n&&(o.vm.cancelText=e||"Submit")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||"Submit",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||"Cancel",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}var t={restrict:"E",scope:{edaEasyFormViewerDataModel:"=?",edaEasyFormViewerEasyFormGeneratorFieldsModel:"=?",edaEasyFormViewerSubmitButtonText:"=?",edaEasyFormViewerCancelButtonText:"=?",edaEasyFormViewerSubmitFormEvent:"&?",edaEasyFormViewerCancelFormEvent:"&?"},replace:!1,controller:n,controllerAs:"vm",templateUrl:"eda.easyFormViewer.Template.html",link:o};return t}angular.module("eda.easyFormViewer.Directive",[]).directive("edaEasyFormViewer",e),e.$inject=["modelsTranslator"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:"empty",name:"no control",subtitle:"no control",group:"Blank",formlyType:"blank",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Header",name:"Header",subtitle:"no control",group:"Decoration",formlyType:"header",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Subtitle",name:"Subtitle",subtitle:"no control",group:"Decoration",formlyType:"subTitle",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"TextInput",name:"Text input",subtitle:"Text input",group:"input",formlyType:"input",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Text input field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Password",name:"Password",subtitle:"Password",group:"input",formlyType:"input",formlySubtype:"password",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Email",name:"Email",subtitle:"Email",group:"input",formlyType:"input",formlySubtype:"email",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\.[a-z.]{2,5}$/.test(n)},message:"$viewValue + ' is not a valid email'"}},formlyValidation:{messages:{required:function(e,o,n){var t="this Email field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return n.to.required?l:void 0}}}},{id:"Date",name:"Date",subtitle:"Date",group:"input",formlyType:"datepicker",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],datepickerPopup:"dd-MMMM-yyyy",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Date field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Texarea",name:"Textarea",subtitle:"Textarea",group:"Textarea",formlyType:"textarea",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Textarea field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"RichTextEditor",name:"RichTextEditor",subtitle:"RichTextEditor",group:"Textarea",formlyType:"richEditor",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this RichTextEditor field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Radio",name:"Radio",subtitle:"Radio",options:[],group:"Radio",formlyType:"radio",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Checkbox",name:"Checkbox",subtitle:"Checkbox",group:"Checkbox",formlyType:"checkbox",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Checkbox field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"BasicSelect",name:"Basic select",subtitle:"Basic select",options:[],group:"Select",formlyType:"basicSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Basic select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"GroupedSelect",name:"Grouped Select",subtitle:"Grouped Select",options:[],group:"Select",formlyType:"groupedSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Grouped Select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}}],selectedControl:"none",temporyConfig:{selectedControl:"none",formlyLabel:"label",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}]};angular.copy(o,e)}function a(e,o){if("[object Array]"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q("configuration model is bound","lines are bound to configuration model.")}return S("lines is not an array","Checks lines type, it is not an array.")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&("header"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+"


";e.push({template:"undefined"!=typeof o.lines[n].columns[0].control.type&&"header"===o.lines[n].columns[0].control.type?t:"
"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:"col-xs-12",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:"col-xs-6",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-6",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push("header"===o.lines[n].columns[0].control.type?t:r),s.push("header"===o.lines[n].columns[1].control.type?l:i),e.push({className:"row",fieldGroup:s})}function y(e,o,n){var t={className:"col-xs-4",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-4",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-4",template:'

'+w(o.lines[n].columns[2].control)+"


"},i={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[2].control.type?"none"===o.lines[n].columns[2].control.type?"blank":o.lines[n].columns[2].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:h(o.lines[n].columns[2].control),validators:g(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};"datepicker"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push("header"===o.lines[n].columns[0].control.type?t:i),c.push("header"===o.lines[n].columns[1].control.type?l:s),c.push("header"===o.lines[n].columns[2].control.type?r:a),e.push({className:"row",fieldGroup:c})}function b(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.label?e.templateOptions.label:""}function v(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:""}function h(e){return"undefined"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function g(e){return"undefined"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return"undefined"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.required?e.templateOptions.required:""}function E(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.options?e.templateOptions.options:""}function V(e){return"undefined"!=typeof e.subtype?e.subtype:""}function T(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:""}function w(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.description?e.templateOptions.description:""}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!0,n.title=e,n.Message=o,n}angular.module("eda.modelsTranslator.Service",[]).factory("modelsTranslator",e),e.$inject=[]}()}(this); +!function(){"use strict";!function(){angular.module("eda.easyFormViewer",["textAngular","formly","ngAnimate","formlyBootstrap","ui.bootstrap","nya.bootstrap.select","eda.easyFormViewer.Directive","eda.modelsTranslator.Service"])}(),function(){function e(e){function o(e){return e=e.replace(/[\-_\s]+(.)?/g,function(e,o){return o?o.toUpperCase():""}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():""})}e.setType({name:"richEditor",template:''}),e.setType({name:"blank",template:"
"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:"subTitle",template:n});var t='
  1. {{option.name}}
';e.setType({name:"basicSelect",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:"groupedSelect",template:l});var r=["date-disabled","custom-class","show-weeks","starting-day","init-date","min-mode","max-mode","format-day","format-month","format-year","format-day-header","format-day-title","format-month-title","year-range","shortcut-propagation","datepicker-popup","show-button-bar","current-text","clear-text","close-text","close-on-date-selection","datepicker-append-to-body"],i=["datepicker-mode","min-date","max-date"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:"datepicker",template:'',wrapper:["bootstrapLabel","bootstrapHasError"],controller:["$scope",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{"class":"glyphicon glyphicon-calendar",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
"," ",'
','
','
'," {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}","
","
","
"].join(" ")}])}angular.module("eda.easyFormViewer").config(e),e.$inject=["formlyConfigProvider"]}(),angular.module("eda.easyFormViewer").run(["$templateCache",function(e){e.put("eda.easyFormViewer.Template.html",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||"Submit")}function m(e,n){e!==n&&(o.vm.cancelText=e||"Submit")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||"Submit",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||"Cancel",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}n.$inject=[];var t={restrict:"E",scope:{edaEasyFormViewerDataModel:"=?",edaEasyFormViewerEasyFormGeneratorFieldsModel:"=?",edaEasyFormViewerSubmitButtonText:"=?",edaEasyFormViewerCancelButtonText:"=?",edaEasyFormViewerSubmitFormEvent:"&?",edaEasyFormViewerCancelFormEvent:"&?"},replace:!1,controller:n,controllerAs:"vm",templateUrl:"eda.easyFormViewer.Template.html",link:o};return t}angular.module("eda.easyFormViewer.Directive",[]).directive("edaEasyFormViewer",e),e.$inject=["modelsTranslator"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:"empty",name:"no control",subtitle:"no control",group:"Blank",formlyType:"blank",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Header",name:"Header",subtitle:"no control",group:"Decoration",formlyType:"header",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Subtitle",name:"Subtitle",subtitle:"no control",group:"Decoration",formlyType:"subTitle",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"TextInput",name:"Text input",subtitle:"Text input",group:"input",formlyType:"input",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Text input field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Password",name:"Password",subtitle:"Password",group:"input",formlyType:"input",formlySubtype:"password",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Email",name:"Email",subtitle:"Email",group:"input",formlyType:"input",formlySubtype:"email",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\.[a-z.]{2,5}$/.test(n)},message:"$viewValue + ' is not a valid email'"}},formlyValidation:{messages:{required:function(e,o,n){var t="this Email field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return n.to.required?l:void 0}}}},{id:"Date",name:"Date",subtitle:"Date",group:"input",formlyType:"datepicker",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],datepickerPopup:"dd-MMMM-yyyy",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Date field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Texarea",name:"Textarea",subtitle:"Textarea",group:"Textarea",formlyType:"textarea",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Textarea field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"RichTextEditor",name:"RichTextEditor",subtitle:"RichTextEditor",group:"Textarea",formlyType:"richEditor",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this RichTextEditor field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Radio",name:"Radio",subtitle:"Radio",options:[],group:"Radio",formlyType:"radio",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Checkbox",name:"Checkbox",subtitle:"Checkbox",group:"Checkbox",formlyType:"checkbox",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Checkbox field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"BasicSelect",name:"Basic select",subtitle:"Basic select",options:[],group:"Select",formlyType:"basicSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Basic select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"GroupedSelect",name:"Grouped Select",subtitle:"Grouped Select",options:[],group:"Select",formlyType:"groupedSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Grouped Select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}}],selectedControl:"none",temporyConfig:{selectedControl:"none",formlyLabel:"label",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}]};angular.copy(o,e)}function a(e,o){if("[object Array]"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q("configuration model is bound","lines are bound to configuration model.")}return S("lines is not an array","Checks lines type, it is not an array.")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&("header"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+"


";e.push({template:"undefined"!=typeof o.lines[n].columns[0].control.type&&"header"===o.lines[n].columns[0].control.type?t:"
"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:"col-xs-12",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:g(o.lines[n].columns[0].control),validators:h(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:"col-xs-6",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-6",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:g(o.lines[n].columns[0].control),validators:h(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:g(o.lines[n].columns[1].control),validators:h(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push("header"===o.lines[n].columns[0].control.type?t:r),s.push("header"===o.lines[n].columns[1].control.type?l:i),e.push({className:"row",fieldGroup:s})}function y(e,o,n){var t={className:"col-xs-4",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-4",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-4",template:'

'+w(o.lines[n].columns[2].control)+"


"},i={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:g(o.lines[n].columns[0].control),validators:h(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:g(o.lines[n].columns[1].control),validators:h(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[2].control.type?"none"===o.lines[n].columns[2].control.type?"blank":o.lines[n].columns[2].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:g(o.lines[n].columns[2].control),validators:h(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};"datepicker"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push("header"===o.lines[n].columns[0].control.type?t:i),c.push("header"===o.lines[n].columns[1].control.type?l:s),c.push("header"===o.lines[n].columns[2].control.type?r:a),e.push({className:"row",fieldGroup:c})}function b(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.label?e.templateOptions.label:""}function v(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:""}function g(e){return"undefined"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function h(e){return"undefined"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return"undefined"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.required?e.templateOptions.required:""}function E(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.options?e.templateOptions.options:""}function V(e){return"undefined"!=typeof e.subtype?e.subtype:""}function T(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:""}function w(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.description?e.templateOptions.description:""}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!0,n.title=e,n.Message=o,n}angular.module("eda.modelsTranslator.Service",[]).factory("modelsTranslator",e),e.$inject=[]}()}(this); //# sourceMappingURL=eda.easyFormViewer.min.js.map \ No newline at end of file diff --git a/dist/public/js/eda.easyFormViewer.min.js.map b/dist/public/js/eda.easyFormViewer.min.js.map index 7330d8f5..88233b0a 100644 --- a/dist/public/js/eda.easyFormViewer.min.js.map +++ b/dist/public/js/eda.easyFormViewer.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["eda.easyFormViewer.min.js"],"names":["angular","module","configFct","formlyConfigProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","subTitleTemplate","basicSelectTemplate","groupedSelectTemplate","attributes","bindings","ngModelAttrs","forEach","attr","attribute","binding","bound","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","scope","isOpen","onFocus","$viewValue","$modelValue","to","datepickerOptions","setWrapper","join","config","run","$templateCache","put","edaEasyFormViewer","modelsTranslator","linkFct","element","attrs","fieldsModelToWatch","edaEasyFormViewerEasyFormGeneratorFieldsModel","submitBtnTextToWatch","edaEasyFormViewerSubmitButtonText","cancelBtnTextToWatch","edaEasyFormViewerCancelButtonText","submitEventToWatch","vm","hasJustSumitted","cancelEventToWatch","hasJustCancelled","fieldsModelWatcher","newFieldsModel","oldFieldsModel","fields","loadExistingConfigurationModel","submitBtnTextWatcher","newSubmitBtntext","oldSubmitBtntext","submitText","cancelBtnTextWatcher","newCancelBtntext","oldCancelBtntext","cancelText","submitEventWatcher","newSubmitEvent","oldSubmitEvent","isFunction","edaEasyFormViewerSubmitFormEvent","_dataModelSubmitted","model","dataModelSubmitted","cancelEventWatcher","newCancelEvent","oldCancelEvent","edaEasyFormViewerCancelFormEvent","loadFieldsModel","initialFieldsModel","isArray","loadedFieldModel","configlines","returnAttributeConfigurationLinesIfNotEmpty","formlyFieldsModel","configurationLoaded","bindConfigurationLines","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","configuration","copy","applyConfigurationToformlyModel","edaEasyFormGeneratorModelToReturn","length","emptyEdaFieldsModel","emptyModel","line","activeColumn","columns","numColumn","exist","control","type","key","$watch","edaEasyFormViewerCtrl","edaSubmitThisDataModel","edaCancelEvent","this","directive","restrict","edaEasyFormViewerDataModel","controllerAs","templateUrl","link","$inject","controllerModalProxy","service","initNyaSelect","getControlsDefinition","initConfigurationEditFromScratch","nyaSelectObj","resetNyaSelect","controls","configurationModel","isObject","lines","indexLine","column","controlIndex","_controlsDefinition","aControl","aControlIndex","formlyType","subtype","formlySubtype","formlyExpressionProperties","formlyValidators","formlyValidation","newNyaSelectObj","id","subtitle","group","formlyLabel","formlyRequired","formlyDesciption","formlyOptions","messages","required","viewValue","modelValue","defaultReturnMsg","returnMsg","label","emailShape","expression","value","test","message","datepickerPopup","selectedControl","temporyConfig","formlyPlaceholder","configurationModelInit","activeLine","listConfigStep","stepIndicators","configStepCounter","submitButtonText","cancelButtonText","Object","prototype","toString","call","configurationModelResult","concat","getMessageObject","getErrorObject","formlyModel","formlyDataModel","resetFormlyModel","resetDataModel","lineNumber","i","addOneColumnHeader","addOneColumnControl","addTwoColumnControl","addThreeColumnControl","resetformly","lineIndex","headerTemplateCol0","extractTemplateOptionDescription","push","addDatepickerPopupProperty","fieldToPush","extractTemplateOptionDatepickerPopup","className","Date","now","extractTemplateOptionType","extractTemplateOptionLabel","extractTemplateOptionRequired","placeholder","extractTemplateOptionPlaceholder","description","extractTemplateOptionOptions","expressionProperties","extractFormlyExpressionProperties","validators","extractFormlyValidators","validation","extractFormlyValidation","headerTemplateCol1","controlCol0","controlCol1","FieldGroup","fieldGroup","headerTemplateCol2","controlCol2","obj","emptyDataModel","errorTitle","errorMessage","messageObj","noError","title","Message","messageTitle","messageBody","factory"],"mappings":"CAOE,WACA,cAeD,WAGAA,QACEC,OAAO,sBACP,cACA,SACA,YACA,kBACA,eACA,uBACA,+BACA,oCAgBF,WAOC,QAASC,GAAUC,GAyKf,QAASC,GAASC,GAKhB,MAJAA,GAASA,EAAOC,QAAQ,gBAAiB,SAASC,EAAOC,GACvD,MAAOA,GAAMA,EAAIC,cAAgB,KAG5BJ,EAAOC,QAAQ,WAAY,SAASC,EAAOC,GAChD,MAAOA,GAAMA,EAAIE,cAAgB,KA3KrCP,EAAqBQ,SAEjBC,KAAM,aAENC,SAAU,+GAIdV,EAAqBQ,SAEjBC,KAAM,QACNC,SAAU,eAKd,IAAIC,GAAmB,qHACvBX,GAAqBQ,SAEjBC,KAAM,WACNC,SAAUC,GAId,IAAIC,GAAwB,qUAS7BZ,GAAqBQ,SAEhBC,KAAM,cACNC,SAAUE,GAKf,IAAIC,GAA0B,mgBAc9Bb,GAAqBQ,SAEhBC,KAAM,gBACNC,SAAUG,GASd,IAAIC,IACF,gBACA,eACA,aACA,eACA,YACA,WACA,WACA,aACA,eACA,cACA,oBACA,mBACA,qBACA,aACA,uBACA,mBACA,kBACA,eACA,aACA,aACA,0BACA,6BAGEC,GACF,kBACA,WACA,YAGEC,IAEJnB,SAAQoB,QAAQH,EAAY,SAASI,GACnCF,EAAaf,EAASiB,KAAUC,UAAWD,KAG7CrB,QAAQoB,QAAQF,EAAU,SAASK,GACjCJ,EAAaf,EAASmB,KAAaC,MAAOD,KAK5CpB,EAAqBQ,SACnBC,KAAM,aACNC,SAAU,wMACVY,SAAU,iBAAkB,qBAC5BC,YAAa,SAAU,SAASC,GAC7BA,EAAOC,KAAO,SAASC,GACtBA,EAAOC,iBACPD,EAAOE,kBACPJ,EAAOK,QAAS,KAIpBC,gBACEd,aAAcA,EACde,iBACEC,WACEC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(){angular.module(\"eda.easyFormViewer\",[\"textAngular\",\"formly\",\"ngAnimate\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"eda.easyFormViewer.Directive\",\"eda.modelsTranslator.Service\"])}(),function(){function e(e){function o(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"richEditor\",template:''}),e.setType({name:\"blank\",template:\"
\"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:\"subTitle\",template:n});var t='
  1. {{option.name}}
';e.setType({name:\"basicSelect\",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:\"groupedSelect\",template:l});var r=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],i=[\"datepicker-mode\",\"min-date\",\"max-date\"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:\"datepicker\",template:'',wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
\",\" \",'
','
','
',\" {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\",\"
\",\"
\",\"
\"].join(\" \")}])}angular.module(\"eda.easyFormViewer\").config(e)}(),angular.module(\"eda.easyFormViewer\").run([\"$templateCache\",function(e){e.put(\"eda.easyFormViewer.Template.html\",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||\"Submit\")}function m(e,n){e!==n&&(o.vm.cancelText=e||\"Submit\")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||\"Submit\",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||\"Cancel\",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}var t={restrict:\"E\",scope:{edaEasyFormViewerDataModel:\"=?\",edaEasyFormViewerEasyFormGeneratorFieldsModel:\"=?\",edaEasyFormViewerSubmitButtonText:\"=?\",edaEasyFormViewerCancelButtonText:\"=?\",edaEasyFormViewerSubmitFormEvent:\"&?\",edaEasyFormViewerCancelFormEvent:\"&?\"},replace:!1,controller:n,controllerAs:\"vm\",templateUrl:\"eda.easyFormViewer.Template.html\",link:o};return t}angular.module(\"eda.easyFormViewer.Directive\",[]).directive(\"edaEasyFormViewer\",e),e.$inject=[\"modelsTranslator\"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Text input field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Password field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Email\",name:\"Email\",subtitle:\"Email\",group:\"input\",formlyType:\"input\",formlySubtype:\"email\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\\.[a-z.]{2,5}$/.test(n)},message:\"$viewValue + ' is not a valid email'\"}},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Email field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return n.to.required?l:void 0}}}},{id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Date field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Textarea field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this RichTextEditor field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Password field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Checkbox field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Basic select field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Grouped Select field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}}],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}]};angular.copy(o,e)}function a(e,o){if(\"[object Array]\"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q(\"configuration model is bound\",\"lines are bound to configuration model.\")}return S(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&(\"header\"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+\"


\";e.push({template:\"undefined\"!=typeof o.lines[n].columns[0].control.type&&\"header\"===o.lines[n].columns[0].control.type?t:\"
\"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:\"col-xs-12\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:\"col-xs-6\",template:'

'+w(o.lines[n].columns[0].control)+\"


\"},l={className:\"col-xs-6\",template:'

'+w(o.lines[n].columns[1].control)+\"


\"},r={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[n].columns[1].control.type?\"none\"===o.lines[n].columns[1].control.type?\"blank\":o.lines[n].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};\"datepicker\"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push(\"header\"===o.lines[n].columns[0].control.type?t:r),s.push(\"header\"===o.lines[n].columns[1].control.type?l:i),e.push({className:\"row\",fieldGroup:s})}function y(e,o,n){var t={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[0].control)+\"


\"},l={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[1].control)+\"


\"},r={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[2].control)+\"


\"},i={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[1].control.type?\"none\"===o.lines[n].columns[1].control.type?\"blank\":o.lines[n].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};\"datepicker\"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[2].control.type?\"none\"===o.lines[n].columns[2].control.type?\"blank\":o.lines[n].columns[2].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:h(o.lines[n].columns[2].control),validators:g(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};\"datepicker\"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push(\"header\"===o.lines[n].columns[0].control.type?t:i),c.push(\"header\"===o.lines[n].columns[1].control.type?l:s),c.push(\"header\"===o.lines[n].columns[2].control.type?r:a),e.push({className:\"row\",fieldGroup:c})}function b(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.label?e.templateOptions.label:\"\"}function v(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:\"\"}function h(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function g(e){return\"undefined\"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return\"undefined\"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.required?e.templateOptions.required:\"\"}function E(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.options?e.templateOptions.options:\"\"}function V(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function T(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:\"\"}function w(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.description?e.templateOptions.description:\"\"}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:\"\",Message:\"\"};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:\"\",Message:\"\"};return n.noError=!0,n.title=e,n.Message=o,n}angular.module(\"eda.modelsTranslator.Service\",[]).factory(\"modelsTranslator\",e),e.$inject=[]}()}(this);\n//# sourceMappingURL=eda.easyFormViewer.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["eda.easyFormViewer.min.js"],"names":["angular","module","configFct","formlyConfigProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","subTitleTemplate","basicSelectTemplate","groupedSelectTemplate","attributes","bindings","ngModelAttrs","forEach","attr","attribute","binding","bound","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","scope","isOpen","onFocus","$viewValue","$modelValue","to","datepickerOptions","setWrapper","join","config","$inject","run","$templateCache","put","edaEasyFormViewer","modelsTranslator","linkFct","element","attrs","fieldsModelToWatch","edaEasyFormViewerEasyFormGeneratorFieldsModel","submitBtnTextToWatch","edaEasyFormViewerSubmitButtonText","cancelBtnTextToWatch","edaEasyFormViewerCancelButtonText","submitEventToWatch","vm","hasJustSumitted","cancelEventToWatch","hasJustCancelled","fieldsModelWatcher","newFieldsModel","oldFieldsModel","fields","loadExistingConfigurationModel","submitBtnTextWatcher","newSubmitBtntext","oldSubmitBtntext","submitText","cancelBtnTextWatcher","newCancelBtntext","oldCancelBtntext","cancelText","submitEventWatcher","newSubmitEvent","oldSubmitEvent","isFunction","edaEasyFormViewerSubmitFormEvent","_dataModelSubmitted","model","dataModelSubmitted","cancelEventWatcher","newCancelEvent","oldCancelEvent","edaEasyFormViewerCancelFormEvent","loadFieldsModel","initialFieldsModel","isArray","loadedFieldModel","configlines","returnAttributeConfigurationLinesIfNotEmpty","formlyFieldsModel","configurationLoaded","bindConfigurationLines","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","configuration","copy","applyConfigurationToformlyModel","edaEasyFormGeneratorModelToReturn","length","emptyEdaFieldsModel","emptyModel","line","activeColumn","columns","numColumn","exist","control","type","key","$watch","edaEasyFormViewerCtrl","edaSubmitThisDataModel","edaCancelEvent","this","directive","restrict","edaEasyFormViewerDataModel","controllerAs","templateUrl","link","controllerModalProxy","service","initNyaSelect","getControlsDefinition","initConfigurationEditFromScratch","nyaSelectObj","resetNyaSelect","controls","configurationModel","isObject","lines","indexLine","column","controlIndex","_controlsDefinition","aControl","aControlIndex","formlyType","subtype","formlySubtype","formlyExpressionProperties","formlyValidators","formlyValidation","newNyaSelectObj","id","subtitle","group","formlyLabel","formlyRequired","formlyDesciption","formlyOptions","messages","required","viewValue","modelValue","defaultReturnMsg","returnMsg","label","emailShape","expression","value","test","message","datepickerPopup","selectedControl","temporyConfig","formlyPlaceholder","configurationModelInit","activeLine","listConfigStep","stepIndicators","configStepCounter","submitButtonText","cancelButtonText","Object","prototype","toString","call","configurationModelResult","concat","getMessageObject","getErrorObject","formlyModel","formlyDataModel","resetFormlyModel","resetDataModel","lineNumber","i","addOneColumnHeader","addOneColumnControl","addTwoColumnControl","addThreeColumnControl","resetformly","lineIndex","headerTemplateCol0","extractTemplateOptionDescription","push","addDatepickerPopupProperty","fieldToPush","extractTemplateOptionDatepickerPopup","className","Date","now","extractTemplateOptionType","extractTemplateOptionLabel","extractTemplateOptionRequired","placeholder","extractTemplateOptionPlaceholder","description","extractTemplateOptionOptions","expressionProperties","extractFormlyExpressionProperties","validators","extractFormlyValidators","validation","extractFormlyValidation","headerTemplateCol1","controlCol0","controlCol1","FieldGroup","fieldGroup","headerTemplateCol2","controlCol2","obj","emptyDataModel","errorTitle","errorMessage","messageObj","noError","title","Message","messageTitle","messageBody","factory"],"mappings":"CAOE,WACA,cAeD,WAGAA,QACEC,OAAO,sBACP,cACA,SACA,YACA,kBACA,eACA,uBACA,+BACA,oCAgBF,WAQC,QAASC,GAAUC,GAyKf,QAASC,GAASC,GAKhB,MAJAA,GAASA,EAAOC,QAAQ,gBAAiB,SAASC,EAAOC,GACvD,MAAOA,GAAMA,EAAIC,cAAgB,KAG5BJ,EAAOC,QAAQ,WAAY,SAASC,EAAOC,GAChD,MAAOA,GAAMA,EAAIE,cAAgB,KA3KrCP,EAAqBQ,SAEjBC,KAAM,aAENC,SAAU,+GAIdV,EAAqBQ,SAEjBC,KAAM,QACNC,SAAU,eAKd,IAAIC,GAAmB,qHACvBX,GAAqBQ,SAEjBC,KAAM,WACNC,SAAUC,GAId,IAAIC,GAAwB,qUAS7BZ,GAAqBQ,SAEhBC,KAAM,cACNC,SAAUE,GAKf,IAAIC,GAA0B,mgBAc9Bb,GAAqBQ,SAEhBC,KAAM,gBACNC,SAAUG,GASd,IAAI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EAAIzM,gBAAgB0L,YAAmB,GAGtJ,QAASvB,GAAesC,GACvB,GAAIC,KAEJ,OADA5O,SAAQ2G,KAAKiI,EAAgBD,IACtB,EAGR,QAAS1C,GAAe4C,EAAYC,GAEnC,GAAIC,IACHC,SAAU,EACVC,MAAO,GACPC,QAAS,GAMV,OAHAH,GAAWC,SAAU,EACrBD,EAAWE,MAAQJ,EACnBE,EAAWG,QAAUJ,EACdC,EAGR,QAAS/C,GAAiBmD,EAAcC,GACvC,GAAIL,IACHC,SAAU,EACVC,MAAO,GACPC,QAAS,GAMV,OAHAH,GAAWC,SAAU,EACrBD,EAAWE,MAAQE,EACnBJ,EAAWG,QAAUE,EACdL,EAz3BT/O,QACEC,OAAO,mCACPoP,QAAQ,mBAAoBjH,GAE7BA,EAAqBnF,eA63BpB4E","file":"eda.easyFormViewer.min.js","sourcesContent":["!function(){\"use strict\";!function(){angular.module(\"eda.easyFormViewer\",[\"textAngular\",\"formly\",\"ngAnimate\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"eda.easyFormViewer.Directive\",\"eda.modelsTranslator.Service\"])}(),function(){function e(e){function o(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"richEditor\",template:''}),e.setType({name:\"blank\",template:\"
\"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:\"subTitle\",template:n});var t='
  1. {{option.name}}
';e.setType({name:\"basicSelect\",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:\"groupedSelect\",template:l});var r=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],i=[\"datepicker-mode\",\"min-date\",\"max-date\"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:\"datepicker\",template:'',wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
\",\" \",'
','
','
',\" {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\",\"
\",\"
\",\"
\"].join(\" \")}])}angular.module(\"eda.easyFormViewer\").config(e)}(),angular.module(\"eda.easyFormViewer\").run([\"$templateCache\",function(e){e.put(\"eda.easyFormViewer.Template.html\",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||\"Submit\")}function m(e,n){e!==n&&(o.vm.cancelText=e||\"Submit\")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||\"Submit\",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||\"Cancel\",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}n.$inject=[];var t={restrict:\"E\",scope:{edaEasyFormViewerDataModel:\"=?\",edaEasyFormViewerEasyFormGeneratorFieldsModel:\"=?\",edaEasyFormViewerSubmitButtonText:\"=?\",edaEasyFormViewerCancelButtonText:\"=?\",edaEasyFormViewerSubmitFormEvent:\"&?\",edaEasyFormViewerCancelFormEvent:\"&?\"},replace:!1,controller:n,controllerAs:\"vm\",templateUrl:\"eda.easyFormViewer.Template.html\",link:o};return t}angular.module(\"eda.easyFormViewer.Directive\",[]).directive(\"edaEasyFormViewer\",e),e.$inject=[\"modelsTranslator\"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Text input field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Password field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Email\",name:\"Email\",subtitle:\"Email\",group:\"input\",formlyType:\"input\",formlySubtype:\"email\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\\.[a-z.]{2,5}$/.test(n)},message:\"$viewValue + ' is not a valid email'\"}},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Email field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return n.to.required?l:void 0}}}},{id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Date field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Textarea field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this RichTextEditor field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Password field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Checkbox field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Basic select field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Grouped Select field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}}],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}]};angular.copy(o,e)}function a(e,o){if(\"[object Array]\"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q(\"configuration model is bound\",\"lines are bound to configuration model.\")}return S(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&(\"header\"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+\"


\";e.push({template:\"undefined\"!=typeof o.lines[n].columns[0].control.type&&\"header\"===o.lines[n].columns[0].control.type?t:\"
\"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:\"col-xs-12\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:\"col-xs-6\",template:'

'+w(o.lines[n].columns[0].control)+\"


\"},l={className:\"col-xs-6\",template:'

'+w(o.lines[n].columns[1].control)+\"


\"},r={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[n].columns[1].control.type?\"none\"===o.lines[n].columns[1].control.type?\"blank\":o.lines[n].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};\"datepicker\"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push(\"header\"===o.lines[n].columns[0].control.type?t:r),s.push(\"header\"===o.lines[n].columns[1].control.type?l:i),e.push({className:\"row\",fieldGroup:s})}function y(e,o,n){var t={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[0].control)+\"


\"},l={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[1].control)+\"


\"},r={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[2].control)+\"


\"},i={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[1].control.type?\"none\"===o.lines[n].columns[1].control.type?\"blank\":o.lines[n].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};\"datepicker\"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[2].control.type?\"none\"===o.lines[n].columns[2].control.type?\"blank\":o.lines[n].columns[2].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:h(o.lines[n].columns[2].control),validators:g(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};\"datepicker\"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push(\"header\"===o.lines[n].columns[0].control.type?t:i),c.push(\"header\"===o.lines[n].columns[1].control.type?l:s),c.push(\"header\"===o.lines[n].columns[2].control.type?r:a),e.push({className:\"row\",fieldGroup:c})}function b(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.label?e.templateOptions.label:\"\"}function v(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:\"\"}function h(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function g(e){return\"undefined\"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return\"undefined\"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.required?e.templateOptions.required:\"\"}function E(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.options?e.templateOptions.options:\"\"}function V(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function T(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:\"\"}function w(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.description?e.templateOptions.description:\"\"}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:\"\",Message:\"\"};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:\"\",Message:\"\"};return n.noError=!0,n.title=e,n.Message=o,n}angular.module(\"eda.modelsTranslator.Service\",[]).factory(\"modelsTranslator\",e),e.$inject=[]}()}(this);\n//# sourceMappingURL=eda.easyFormViewer.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file diff --git a/dist/public/js/eda.stepway.min.js.map b/dist/public/js/eda.stepway.min.js.map index ae20eaf1..20b76b60 100644 --- a/dist/public/js/eda.stepway.min.js.map +++ b/dist/public/js/eda.stepway.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["eda.stepway.min.js"],"names":["configfct","formlyConfigProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","subTitleTemplate","basicSelectTemplate","groupedSelectTemplate","attributes","bindings","ngModelAttrs","angular","forEach","attr","attribute","binding","bound","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","scope","isOpen","onFocus","$viewValue","$modelValue","to","datepickerOptions","setWrapper","join","module","value","config","$inject","run","$templateCache","put","ngwfMainController","$timeout","FormNameAsTest","ngwfWfEditController","easyFormGenVersion","$filter","$anchorScroll","toaster","$modal","$log","formFieldManage","controllerModalProxy","initDebugModel","showDebug","configurationModelNumberofLines","initTabModel","editTab","active","previewTab","previewExistingform","formlyform","configlines","JSON","parse","formlyField","configurationLoaded","bindConfigurationLines","applyConfigurationToformlyModel","previewLoadedForm","fieldsModel","vm","model","wfFormFieldsOnlyNeededProperties","copy","wfFormFields","cancelButtonText","submitButtonText","onSubmit","pop","type","timeout","title","body","showCloseButton","initColumnTemplate","numColumn","exist","control","key","subtype","initLineTemplate","line","activeColumn","columns","resetToZeroModel","configuration","activeLine","lines","length","splice","countConfigurationModelLines","debug","setActiveLineNumber","lineNumber","upThisLine","indexLine","currentLineObj","downThisLine","addNewline","push","removeThisLine","index","increaseNumberOfColumns","MaxNumberOfColumns","newNumberOfColumns","decreaseNumberOfColumns","resetStepCounter","configStepCounter","nextConfigStep","configStepCounterMAX","listConfigStep","setTrueThisStepIndicator","previousConfigStep","stepReachable","indexStep","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","animationsEnabled","templateUrl","resolve","nyaSelect","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","toggleAnimation","loadExistingFormsAsList","saveThisForm","formName","clear","resetAllIndicators","i","stepIndicators","indexIndicator","this","easyFormGeneratorVERSION","tab","numberOfColumns","MinNumberOfColumns","columnTemplate","lineTemplate","loadExistingFormsList","formlyList","initConfigurationEditFromScratch","initNyaSelect","ngwfWfEditMODALController","$modalInstance","selectOptionManage","addNewOptionRadio","radioRowCollection","newOptionRadio","saisie","resultFlag","details","removeRadioRow","removeOption","upThisRadioRow","upthisOption","downThisRadioRow","downthisOption","addNewOptionBasicSelect","basicSelectRowCollection","newOptionBasicSelect","removeRow","upThisRow","downThisRow","showGroupListToChoose","groupSelectGroupClick","showList","addNewGroupToGroupedSelect","newGroupGroupedSelect","GroupedSelectGroups","list","addNewOptionGroupedSelect","groupedSelectRowCollection","newOptionGroupedSelect","removeGroupedSelectRow","upThisGroupedSelectRow","downThisGroupedSelectRow","today","demodt","dt","Date","openfct","dateOptionsInit","formatYear","startingDay","showWeeks","initDate","selectThisControl","controlName","selectedControl","resetTemporyConfig","controls","id","initDatePicker","okfct","bindBasicSelectToNya","bindGroupedSelectToNya","bindRadioToNya","applyConfigToSelectedControl","close","cancelfct","dismiss","bindRadioFromNYA","temporyConfig","formlyOptions","newOption","option","order","group","rows","resetNyASelectOptions","bindBasicSelectFromNYA","bindGroupedSelectFromNYA","filteredgroup","_","uniq","pluck","datepickerPopup","formats","initNyaSelectConformingSelectedControl","modelNyaSelect","formlyLabel","formlyRequired","formlyPlaceholder","formlyDesciption","initOptionModel","dateOptions","ok","cancel","edaStepWayEasyFormGen","linkFct","element","attrs","returnAttributeConfigurationLinesIfNotEmpty","edaEasyFormGeneratorModelToReturn","isArray","edaEasyFormGeneratorModel","edaFieldsModel","emptyEdaFieldsModel","emptyModel","returnAttributeDataModelIfNotEmpty","dataModelToReturn","dataModel","watchEdaEasyFormModelExpression","watchEdaEasyFormModelHasChanged","newValue","oldValue","loadExistingConfigurationModel","watchReturnSaveEventExpression","returnSaveEvent","watchReturnSaveEventhasChanged","_easyFormGeneratorModel","btnSubmitText","btnCancelText","edaFieldsModelStringified","toJson","formlyFieldsModel","edaSaveFormEvent","isDefined","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","isString","$watch","edaStepWayEasyFormGenCtrl","directive","restrict","controllerAs","link","stRatio","linkfct","ratio","css","nyaSelectObj","resetNyaSelect","getControlsDefinition","configurationModel","isObject","column","controlIndex","_controlsDefinition","aControl","aControlIndex","formlyType","formlySubtype","formlyExpressionProperties","formlyValidators","formlyValidation","configurationObj","label","required","description","placeholder","extractedProps","returnControlFromAddCtrlModalModel","newKey","now","validKeyUniqueness","edited","newNyaSelectObj","subtitle","messages","viewValue","modelValue","defaultReturnMsg","returnMsg","emailShape","expression","test","message","CtrlModalModel","modelToReturn","thisKey","isUnique","j","service","factory","configurationModelInit","Object","prototype","toString","call","configurationModelResult","concat","getMessageObject","getErrorObject","formlyModel","formlyDataModel","resetFormlyModel","resetDataModel","addOneColumnHeader","addOneColumnControl","addTwoColumnControl","addThreeColumnControl","resetformly","lineIndex","headerTemplateCol0","extractTemplateOptionDescription","addDatepickerPopupProperty","fieldToPush","extractTemplateOptionDatepickerPopup","className","extractTemplateOptionType","extractTemplateOptionLabel","extractTemplateOptionRequired","extractTemplateOptionPlaceholder","extractTemplateOptionOptions","expressionProperties","extractFormlyExpressionProperties","validators","extractFormlyValidators","validation","extractFormlyValidation","headerTemplateCol1","controlCol0","controlCol1","FieldGroup","fieldGroup","headerTemplateCol2","controlCol2","obj","emptyDataModel","errorTitle","errorMessage","messageObj","noError","Message","messageTitle","messageBody","testMe","initModel","selectObj","resetModel","isOptionUnique","textValue","isOptionValidFormat","newOptionText","fullResponse","checkResult","validOption","newOptionGroup","AtIndex","indexOption","currentOption","zeroModel"],"mappings":"CAOE,WACA,cAeD,WAwBG,QAASA,GAAUC,GAyKjB,QAASC,GAASC,GAKhB,MAJAA,GAASA,EAAOC,QAAQ,gBAAiB,SAASC,EAAOC,GACvD,MAAOA,GAAMA,EAAIC,cAAgB,KAG5BJ,EAAOC,QAAQ,WAAY,SAASC,EAAOC,GAChD,MAAOA,GAAMA,EAAIE,cAAgB,KA3KrCP,EAAqBQ,SAEjBC,KAAM,aAENC,SAAU,+GAIdV,EAAqBQ,SAEjBC,KAAM,QACNC,SAAU,eAKd,IAAIC,GAAmB,qHACvBX,GAAqBQ,SAEjBC,KAAM,WACNC,SAAUC,GAId,IAAIC,GAAwB,qUAS7BZ,GAAqBQ,SAEhBC,KAAM,cACNC,SAAUE,GAKf,IAAIC,GAA0B,mgBAc9Bb,GAAqBQ,SAEhBC,KAAM,gBACNC,SAAUG,GASd,IAAIC,IACF,gBACA,eACA,aACA,eACA,YACA,WACA,WACA,aACA,eACA,cACA,oBACA,mBACA,qBACA,aACA,uBACA,mBACA,kBACA,eACA,aACA,aACA,0BACA,6BAGEC,GACF,kBACA,WACA,YAGEC,IAEJC,SAAQC,QAAQJ,EAAY,SAASK,GACnCH,EAAaf,EAASkB,KAAUC,UAAWD,KAG7CF,QAAQC,QAAQH,EAAU,SAASM,GACjCL,EAAaf,EAASoB,KAAaC,MAAOD,KAK5CrB,EAAqBQ,SACnBC,KAAM,aACNC,SAAU,wMACVa,SAAU,iBAAkB,qBAC5BC,YAAa,SAAU,SAASC,GAC7BA,EAAOC,KAAO,SAASC,GACtBA,EAAOC,iBACPD,EAAOE,kBACPJ,EAAOK,QAAS,KAIpBC,gBACE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sB3K,GAE/BA,EAAmB7H,cAyiBtB,WAGAhC,QAAQ6B,OACA,oBACW,mCACA,sCACA,yDAmBnB,WAGA7B,QACE6B,OAAO,0BAMPmH","file":"eda.stepway.min.js","sourcesContent":["!function(){\"use strict\";!function(){function e(e){function o(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"richEditor\",template:''}),e.setType({name:\"blank\",template:\"
\"});var l='

{{options.templateOptions.placeholder}}


';e.setType({name:\"subTitle\",template:l});var t='
  1. {{option.name}}
';e.setType({name:\"basicSelect\",template:t});var n='
  1. {{$group}} {{option.name}}
';e.setType({name:\"groupedSelect\",template:n});var i=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],s=[\"datepicker-mode\",\"min-date\",\"max-date\"],a={};angular.forEach(i,function(e){a[o(e)]={attribute:e}}),angular.forEach(s,function(e){a[o(e)]={bound:e}}),e.setType({name:\"datepicker\",template:'',wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:a,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,l){l.to.isOpen=!l.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
\",\" \",'
','
','
',\" {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\",\"
\",\"
\",\"
\"].join(\" \")}])}angular.module(\"eda.easyformGen.stepway\",[\"ngwfApp\"]),angular.module(\"ngwfApp\",[\"ngwfApp.core\",\"ngwfApp.controllers\",\"ngwfApp.services\",\"ngwfApp.filters\",\"ngwfApp.directives\"]).value(\"easyFormGenVersion\",\"v1.0.18\").config(e),e.$inject=[\"formlyConfigProvider\"]}(),angular.module(\"ngwfApp\").run([\"$templateCache\",function(e){e.put(\"edaStepWayEasyFormGeneratorTemplate.html\",'

lines

layout

controls

save

Command

Add a new line : 

Visual

  • 1\">
    1\">
    1\">

Command

– Selected line –

number of columns :

{{configuration.lines[configuration.activeLine -1].columns.length}}

Visual

  • 1\">
    1\">
    1\">

Command

– Apply controls to columns –


  Click / Tap on column to open control selection.

  Select desired control and valid to apply it to column.

Visual

  • 1\">
    1\">
    1\">

 Command



 Final Step : form preview

DATA MODEL

\\n\t\t\t\t\t\t\t\t\t\t{{vm.model | json}}\\n\t\t\t\t\t\t\t\t\t

FIELDS MODEL (ready to save to database one)

\\n\t\t\t\t\t\t\t\t\t\t{{vm.wfFormFieldsOnlyNeededProperties | json}}\\n\t\t\t\t\t\t\t\t\t

Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put(\"editModalTemplate.html\",'');\n\n}]),function(){angular.module(\"ngwfApp.core\",[\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\"])}(),function(){angular.module(\"ngwfApp.controllers\",[\"ngwfApp.controllers.ngwfMainController\",\"ngwfApp.controllers.ngwfWfEditController\",\"ngwfApp.controllers.ngwfWfEditMODALController\"])}(),function(){function e(e,o){e.FormNameAsTest=\"initial_name\",o(function(){e.FormNameAsTest=\"name changed after 3s\"},3e3)}angular.module(\"ngwfApp.controllers.ngwfMainController\",[]).controller(\"ngwfMainController\",e),e.$inject=[\"$scope\",\"$timeout\"]}(),function(){function e(e,o,l,t,n,i,s,a,r,c,d){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function u(){return{editTab:{active:!0},previewTab:{active:!1}}}function m(o){var l=JSON.parse(o.formlyField);e.configurationLoaded={},c.bindConfigurationLines(e.configurationLoaded,l),c.applyConfigurationToformlyModel(e.configurationLoaded,e.previewLoadedForm.fieldsModel,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.previewLoadedForm.cancelButtonText=o.cancelButtonText,e.previewLoadedForm.submitButtonText=o.submitButtonText}function f(){i.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function v(){return{numColumn:-1,exist:!0,control:{type:\"none\",key:\"none\",subtype:\"none\"}}}function g(){return{line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}}function y(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function b(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function h(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function w(o){if(o>-1&&e.configuration.lines[o-1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function x(o){if(o>-1&&e.configuration.lines[o+1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function C(){e.configuration.lines.push({line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function S(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):s(function(){i.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))}function T(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function L(){e.configuration.configStepCounter=0}function k(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,N(e.configuration.configStepCounter)}function O(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,N(e.configuration.configStepCounter)}function R(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function N(o){D(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=f,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=u(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=v(),e.lineTemplate=g(),e.resetToZeroModel=y,e.countConfigurationModelLines=b,e.setActiveLineNumber=h,e.upThisLine=w,e.downThisLine=x,e.addNewline=C,e.removeThisLine=S,e.increaseNumberOfColumns=T,e.decreaseNumberOfColumns=F,e.resetStepCounter=L,e.nextConfigStep=k,e.previousConfigStep=O,e.stepReachable=R,e.toggleAnimation=E,e.nyaSelect={},e.animationsEnabled=!1,e.showModalAddCtrlToColumn=P,e.loadExistingFormsList=q(),e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=m,e.saveThisForm=M,q(),c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}angular.module(\"ngwfApp.controllers.ngwfWfEditController\",[]).controller(\"ngwfWfEditController\",e),e.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\"]}(),function(){function e(e,o,l,t,n,i,s){function a(){var o=i.addNewOptionRadio(e.radioRowCollection,e.newOptionRadio.saisie);o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionRadio={saisie:\"\"}}function r(o){var l=i.removeOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function c(o){var l=i.upthisOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function d(o){var l=i.downthisOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function p(){var o=i.addNewOptionBasicSelect(e.basicSelectRowCollection,e.newOptionBasicSelect.saisie);o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionBasicSelect={saisie:\"\"}}function u(o){var l=i.removeOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function m(o){var l=i.upthisOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function f(o){var l=i.downthisOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function v(){e.groupSelectGroupClick.showList=!e.groupSelectGroupClick.showList}function g(){if(\"\"!==e.newGroupGroupedSelect.saisie){for(var o=e.GroupedSelectGroups.list.length-1;o>=0;o--)e.GroupedSelectGroups.list[o]===e.newGroupGroupedSelect.saisie&&t.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else t.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});e.newGroupGroupedSelect.saisie=\"\"}function y(){var o=i.addNewOptionGroupedSelect(e.groupedSelectRowCollection,e.newOptionGroupedSelect.saisie,\"\");o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionGroupedSelect={saisie:\"\"}}function b(o){var l=i.removeOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function h(o){var l=i.upthisOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function w(o){var l=i.downthisOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function x(){e.demodt.dt=new Date}function C(){e.demodt.dt=null}function S(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0}function T(){return{formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null}}function F(o){e.nyaSelect.selectedControl=\"none\",$();for(var l=e.nyaSelect.controls.length-1;l>=0;l--)e.nyaSelect.controls[l].id===o&&(e.nyaSelect.selectedControl=e.nyaSelect.controls[l].id);\"Date\"===e.nyaSelect.selectedControl&&D()}function L(){\"BasicSelect\"===e.nyaSelect.selectedControl&&E(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&M(),\"Radio\"===e.nyaSelect.selectedControl&&R(),s.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)}function k(){o.dismiss(\"cancel\")}function O(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.radioRowCollection.rows.push(l)}}function R(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.radioRowCollection.rows.length>0)for(var l=0;l<=e.radioRowCollection.rows.length-1;l++){var t={name:e.radioRowCollection.rows[l].option,value:l,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function P(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.basicSelectRowCollection.rows.push(l)}}function E(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.basicSelectRowCollection.rows.length>0)for(var l=0;l<=e.basicSelectRowCollection.rows.length-1;l++){var t={name:e.basicSelectRowCollection.rows[l].option,value:l,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function q(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0){for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:e.nyaSelect.temporyConfig.formlyOptions[o].group};e.groupedSelectRowCollection.rows.push(l)}var t=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(t,e.GroupedSelectGroups.list)}}function M(){e.nyaSelect.temporyConfig.formlyOptions=[];for(var o=0;o<=e.groupedSelectRowCollection.rows.length-1;o++){var l={name:e.groupedSelectRowCollection.rows[o].option,value:o,group:e.groupedSelectRowCollection.rows[o].group};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function D(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function N(){if(\"none\"!==l.selectedControl){for(var o=e.nyaSelect.controls.length-1;o>=0;o--)e.nyaSelect.controls[o].id===l.selectedControl&&(e.modelNyaSelect=l.controls[o]);\"BasicSelect\"===e.nyaSelect.selectedControl&&P(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&q(),\"Radio\"===e.nyaSelect.selectedControl&&O()}}function $(){e.nyaSelect.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var A={rows:[]};e.radioRowCollection=A,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=a,e.removeRadioRow=r,e.upThisRadioRow=c,e.downThisRadioRow=d,e.basicSelectRowCollection=A,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=p,e.removeRow=u,e.upThisRow=m,e.downThisRow=f,e.groupedSelectRowCollection=A,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=v,e.addNewGroupToGroupedSelect=g,e.addNewOptionGroupedSelect=y,e.removeGroupedSelectRow=b,e.upThisGroupedSelectRow=h,e.downThisGroupedSelectRow=w,e.demodt={},e.today=x,e.clear=C,e.open=S,e.dateOptions=T(),e.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"],e.nyaSelect=l,e.nyaSelect.selectedControl=e.nyaSelect.temporyConfig.selectedControl,e.selectThisControl=F,e.ok=L,e.cancel=k,x(),N()}angular.module(\"ngwfApp.controllers.ngwfWfEditMODALController\",[]).controller(\"ngwfWfEditMODALController\",e),e.$inject=[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\"]}(),function(){function e(e,o,l,t){function n(e,o,n){function i(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:s();return o}function s(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function a(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function r(){return e.edaEasyFormGeneratorModel}function c(e,o){u()}function d(){return e.returnSaveEvent}function p(o,l){if(o===!0){var t={formName:e.configuration.formName,btnSubmitText:e.configuration.submitButtonText,btnCancelText:e.configuration.cancelButtonText,edaFieldsModel:e.configuration.lines,edaFieldsModelStringified:angular.toJson(e.configuration.lines),formlyFieldsModel:e.vm.wfFormFieldsOnlyNeededProperties,dataModel:e.vm.model};e.edaSaveFormEvent({edaEasyFormGeneratorModel:t}),e.returnSaveEvent=!1}}function u(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var o=i();e.configurationLoaded={},l.bindConfigurationLines(e.configurationLoaded,o),t.refreshControlFormlyExpressionProperties(e.configurationLoaded),t.refreshControlFormlyValidators(e.configurationLoaded),t.refreshControlFormlyValidation(e.configurationLoaded),e.configuration=angular.copy(e.configurationLoaded),l.applyConfigurationToformlyModel(e.configurationLoaded,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=a,e.configuration.formName=angular.isString(e.edaEasyFormGeneratorModel.formName)?e.edaEasyFormGeneratorModel.formName:\"\",e.configuration.submitButtonText=angular.isString(e.edaEasyFormGeneratorModel.btnSubmitText)?e.edaEasyFormGeneratorModel.btnSubmitText:\"Submit\",e.configuration.cancelButtonText=angular.isString(e.edaEasyFormGeneratorModel.btnCancelText)?e.edaEasyFormGeneratorModel.btnCancelText:\"Cancel\"}}e.$watch(r,c,!0),e.$watch(d,p)}function i(e,o,l,t,n,i,s,a,r,c,d){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function u(){return{editTab:{active:!0},previewTab:{active:!1}}}function m(o){var l=JSON.parse(o.formlyField);e.configurationLoaded={},c.bindConfigurationLines(e.configurationLoaded,l),c.applyConfigurationToformlyModel(e.configurationLoaded,e.previewLoadedForm.fieldsModel,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.previewLoadedForm.cancelButtonText=o.cancelButtonText,e.previewLoadedForm.submitButtonText=o.submitButtonText}function f(){i.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function v(){return{numColumn:-1,exist:!0,control:{type:\"none\",key:\"none\",subtype:\"none\"}}}function g(){return{line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}}function y(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function b(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function h(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function w(o){if(o>-1&&e.configuration.lines[o-1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function x(o){if(o>-1&&e.configuration.lines[o+1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function C(){e.configuration.lines.push({line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function S(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):s(function(){i.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))}function T(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function L(){e.configuration.configStepCounter=0}function k(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,D(e.configuration.configStepCounter)}function O(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,D(e.configuration.configStepCounter)}function R(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function D(o){M(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=f,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=u(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=v(),e.lineTemplate=g(),e.resetToZeroModel=y,e.countConfigurationModelLines=b,e.setActiveLineNumber=h,e.upThisLine=w,e.downThisLine=x,e.addNewline=C,e.removeThisLine=S,e.increaseNumberOfColumns=T,e.decreaseNumberOfColumns=F,e.resetStepCounter=L,e.nextConfigStep=k,e.previousConfigStep=O,e.stepReachable=R,e.toggleAnimation=E,e.nyaSelect={},e.animationsEnabled=!1,e.showModalAddCtrlToColumn=P,e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=m,e.saveThisForm=q,e.returnSaveEvent=!1,c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}i.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\"];var s={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaStepWayEasyFormGeneratorTemplate.html\",link:n};return s}angular.module(\"ngwfApp.directives.edaStepWayEasyFormGenDirective\",[]).directive(\"edaStepWayEasyFormGen\",e),e.$inject=[\"$templateCache\",\"$timeout\",\"formFieldManage\",\"controllerModalProxy\"]}(),function(){angular.module(\"ngwfApp.directives\",[\"ngwfApp.directives.ngwfStRatioDirective\",\"ngwfApp.directives.edaStepWayEasyFormGenDirective\"])}(),function(){function e(){function e(e,o,l){var t=+l.stRatio;o.css(\"width\",t+\"%\")}var o={link:e};return o}angular.module(\"ngwfApp.directives.ngwfStRatioDirective\",[]).directive(\"stRatio\",e),e.$inject=[]}(),function(){function e(){function e(e){return c(e)}function o(){var e={};return c(e),e}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function n(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e,o,l,t){return c(e),\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof o.lines[l].columns[t].control.selectedControl?o.lines[l].columns[t].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.label?o.lines[l].columns[t].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.required?o.lines[l].columns[t].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.description?o.lines[l].columns[t].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.placeholder?o.lines[l].columns[t].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.options?o.lines[l].columns[t].control.templateOptions.options:\"\",e.temporyConfig.formlyExpressionProperties=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyExpressionProperties?angular.copy(o.lines[l].columns[t].control.formlyExpressionProperties):{},e.temporyConfig.formlyValidators=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyValidators?angular.copy(o.lines[l].columns[t].control.formlyValidators):{},e.temporyConfig.formlyValidation=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyValidation?angular.copy(o.lines[l].columns[t].control.formlyValidation):{},\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.datepickerPopup?o.lines[l].columns[t].control.templateOptions.datepickerPopup:\"\")),e}function s(e,o,l,t){var n=d(l);t.lines[e].columns[o].control.selectedControl=n.selectedControl,t.lines[e].columns[o].control.type=n.formlyType,t.lines[e].columns[o].control.subtype=n.formlySubtype,t.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},t.lines[e].columns[o].control.templateOptions.label=n.formlyLabel,t.lines[e].columns[o].control.templateOptions.required=n.formlyRequired,t.lines[e].columns[o].control.templateOptions.description=n.formlyDesciption,t.lines[e].columns[o].control.templateOptions.placeholder=n.formlyPlaceholder,t.lines[e].columns[o].control.templateOptions.options=n.formlyOptions,t.lines[e].columns[o].control.formlyExpressionProperties=angular.copy(n.formlyExpressionProperties),t.lines[e].columns[o].control.formlyValidators=angular.copy(n.formlyValidators),t.lines[e].columns[o].control.formlyValidation=angular.copy(n.formlyValidation),\"datepicker\"===t.lines[e].columns[o].control.type&&(t.lines[e].columns[o].control.templateOptions.datepickerPopup=n.datepickerPopup);var i=t.lines[e].columns[o].control.type+\"-\"+Date.now();p(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),p(i,t)===!0?t.lines[e].columns[o].control.key=i:i=t.lines[e].columns[o].control.type+\"-\"+Date.now()),t.lines[e].columns[o].control.edited=!0}function a(e){for(var o=e.controls.length-1;o>=0;o--)e.controls[o].id===e.selectedControl&&(e.controls[o].formlyLabel=e.temporyConfig.formlyLabel,e.controls[o].formlyRequired=e.temporyConfig.formlyRequired,e.controls[o].formlyDesciption=e.temporyConfig.formlyDesciption,e.controls[o].formlyPlaceholder=e.temporyConfig.formlyPlaceholder,e.controls[o].formlyOptions=e.temporyConfig.formlyOptions,\"Date\"===e.controls[o].id&&(e.controls[o].datepickerPopup=e.temporyConfig.datepickerPopup))}function r(){return{formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function c(e){var o={controls:[{id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Text input field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Password field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Email\",name:\"Email\",subtitle:\"Email\",group:\"input\",formlyType:\"input\",formlySubtype:\"email\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var l=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\\.[a-z.]{2,5}$/.test(l)},message:\"$viewValue + ' is not a valid email'\"}},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Email field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return l.to.required?n:void 0}}}},{id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Date field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Textarea field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this RichTextEditor field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Password field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{\nmessages:{required:function(e,o,l){var t=\"this Checkbox field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Basic select field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Grouped Select field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}}],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function d(e){for(var o={selectedControl:\"none\",formlyType:\"none\",formlySubtype:\"none\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},l=e.controls.length-1;l>=0;l--)e.selectedControl===e.controls[l].id&&(o.selectedControl=e.selectedControl,o.formlyType=e.controls[l].formlyType,o.formlySubtype=e.controls[l].formlySubtype,o.formlyLabel=e.controls[l].formlyLabel,o.formlyRequired=e.controls[l].formlyRequired,o.formlyDesciption=e.controls[l].formlyDesciption,o.formlyPlaceholder=e.controls[l].formlyPlaceholder,o.formlyOptions=e.controls[l].formlyOptions,o.formlyExpressionProperties=angular.copy(e.controls[l].formlyExpressionProperties),o.formlyValidators=angular.copy(e.controls[l].formlyValidators),o.formlyValidation=angular.copy(e.controls[l].formlyValidation),\"datepicker\"===e.controls[l].formlyType&&(o.datepickerPopup=e.controls[l].datepickerPopup));return o}function p(e,o){for(var l=!0,t=o.lines.length-1;t>=0;t--)for(var n=o.lines[t].columns.length-1;n>=0;n--)o.lines[t].columns[n].control.key===e&&(l=!1);return l}var u={initNyaSelect:e,getNyASelectFromSelectedLineColumn:i,bindConfigurationModelFromModalReturn:s,applyConfigToSelectedControl:a,resetTemporyConfig:r,getControlsDefinition:o,refreshControlFormlyExpressionProperties:l,refreshControlFormlyValidators:t,refreshControlFormlyValidation:n};return u}angular.module(\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",e),e.$inject=[]}(),function(){function e(){function e(e){var o={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}]};angular.copy(o,e)}function o(e,o){if(\"[object Array]\"===Object.prototype.toString.call(o)){var l={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]};return l.lines=[].concat(o),angular.copy(l,e),x(\"configuration model is bound\",\"lines are bound to configuration model.\")}return w(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function l(e,o,l){t(o),h(l);for(var i=e.lines.length,c=0;i>c;c++)1===e.lines[c].columns.length&&(\"header\"===e.lines[c].columns[0].control.type?n(o,e,c):s(o,e,c)),2===e.lines[c].columns.length&&a(o,e,c),3===e.lines[c].columns.length&&r(o,e,c)}function t(e){var o=[];angular.copy(o,e)}function n(e,o,l){var t='

'+b(o.lines[l].columns[0].control)+\"


\";e.push({template:\"undefined\"!=typeof o.lines[l].columns[0].control.type&&\"header\"===o.lines[l].columns[0].control.type?t:\"
\"})}function i(e,o,l){e.templateOptions.datepickerPopup=d(o.lines[l].columns[0].control)}function s(e,o,l){var t={className:\"col-xs-12\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(t,o,l),e.push(t)}function a(e,o,l){var t={className:\"col-xs-6\",template:'

'+b(o.lines[l].columns[0].control)+\"


\"},n={className:\"col-xs-6\",template:'

'+b(o.lines[l].columns[1].control)+\"


\"},s={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(s,o,l);var a={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[l].columns[1].control.type?\"none\"===o.lines[l].columns[1].control.type?\"blank\":o.lines[l].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[1].control.key?o.lines[l].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:y(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:p(o.lines[l].columns[1].control),validators:u(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(a,o,l);var r=[];r.push(\"header\"===o.lines[l].columns[0].control.type?t:s),r.push(\"header\"===o.lines[l].columns[1].control.type?n:a),e.push({className:\"row\",fieldGroup:r})}function r(e,o,l){var t={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[0].control)+\"


\"},n={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[1].control)+\"


\"},s={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[2].control)+\"


\"},a={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(a,o,l);var r={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[1].control.type?\"none\"===o.lines[l].columns[1].control.type?\"blank\":o.lines[l].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[1].control.key?o.lines[l].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:y(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:p(o.lines[l].columns[1].control),validators:u(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(r,o,l);var d={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[2].control.type?\"none\"===o.lines[l].columns[2].control.type?\"blank\":o.lines[l].columns[2].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[2].control.key?o.lines[l].columns[2].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[2].control),label:c(o.lines[l].columns[2].control),required:f(o.lines[l].columns[2].control),placeholder:y(o.lines[l].columns[2].control),description:b(o.lines[l].columns[2].control),options:v(o.lines[l].columns[2].control)},expressionProperties:p(o.lines[l].columns[2].control),validators:u(o.lines[l].columns[2].control),validation:m(o.lines[l].columns[2].control)};\"datepicker\"===o.lines[l].columns[2].control.type&&i(d,o,l);var h=[];h.push(\"header\"===o.lines[l].columns[0].control.type?t:a),h.push(\"header\"===o.lines[l].columns[1].control.type?n:r),h.push(\"header\"===o.lines[l].columns[2].control.type?s:d),e.push({className:\"row\",fieldGroup:h})}function c(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.label?e.templateOptions.label:\"\"}function d(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:\"\"}function p(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function u(e){return\"undefined\"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function m(e){return\"undefined\"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function f(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.required?e.templateOptions.required:\"\"}function v(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.options?e.templateOptions.options:\"\"}function g(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function y(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:\"\"}function b(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.description?e.templateOptions.description:\"\"}function h(e){var o={};return angular.copy(o,e),!0}function w(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!1,l.title=e,l.Message=o,l}function x(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!0,l.title=e,l.Message=o,l}var C={initConfigurationEditFromScratch:e,bindConfigurationLines:o,applyConfigurationToformlyModel:l};return C}angular.module(\"ngwfApp.services.formFieldManage\",[]).factory(\"formFieldManage\",e),e.$inject=[]}(),function(){function e(){function e(){return\"selectOptionManage is here.\"}function o(e){p(e)}function l(e,o){for(var l=e.rows.length-1;l>=0;l--)if(e.rows[l].option===o)return!1;return!0}function t(e){return\"\"!==e?!0:!1}function n(e,o){var l={resultFlag:!1,details:\"\"},t=d(e,o);if(t.resultFlag===!0){var n={option:o,order:e.rows.length};return e.rows.push(n),l.resultFlag=!0,l.details=\"\",l}return angular.copy(t,l),l}function i(e,o){var l={resultFlag:!1,details:\"\"},t=d(e,o);if(t.resultFlag===!0){var n={option:o,order:e.rows.length};return e.rows.push(n),l.resultFlag=!0,l.details=\"\",l}return angular.copy(t,l),l}function s(e,o,l){var t={resultFlag:!1,details:\"\"},n=d(e,o);if(n.resultFlag===!0){var i={option:o,group:l,order:e.rows.length};return e.rows.push(i),t.resultFlag=!0,t.details=\"\",t}return angular.copy(n,t),t}function a(e,o){var l={resultFlag:!1,details:\"\"};return-1!==o?(e.rows.splice(o,1),l.resultFlag=!0,l.details=\"\",l):(l.resultFlag=!1,l.details=\"Option index not valid\",l)}function r(e,o){var l={resultFlag:!1,details:\"\"};if(o>-1){if(o>0){if(e.rows[o-1]){var t=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,t),l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Can't retreive option from option index\",l}return l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Option index not valid\",l}function c(e,o){var l={resultFlag:!1,details:\"\"};if(o>-1){if(o=0;t--)if(e.rows[t].option===o)return l.resultFlag=!1,l.details=\"Entered option is not unique\",l;return l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Entered option is empty\",l}function p(e){var o={rows:[]};angular.copy(o,e)}var u={testMe:e,initModel:o,isOptionUnique:l,isOptionValidFormat:t,addNewOptionRadio:n,addNewOptionBasicSelect:i,addNewOptionGroupedSelect:s,removeOption:a,upthisOption:r,downthisOption:c};return u}angular.module(\"ngwfApp.services.selectOptionManage\",[]).factory(\"selectOptionManage\",e),e.$inject=[]}(),function(){angular.module(\"ngwfApp.services\",[\"ngwfApp.services.formFieldManage\",\"ngwfApp.services.selectOptionManage\",\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\"])}(),function(){angular.module(\"ngwfApp.filters\",[])}()}(this);\n//# sourceMappingURL=eda.stepway.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["eda.stepway.min.js"],"names":["configfct","formlyConfigProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","subTitleTemplate","basicSelectTemplate","groupedSelectTemplate","attributes","bindings","ngModelAttrs","angular","forEach","attr","attribute","binding","bound","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","scope","isOpen","onFocus","$viewValue","$modelValue","to","datepickerOptions","setWrapper","join","module","value","config","$inject","run","$templateCache","put","ngwfMainController","$timeout","FormNameAsTest","ngwfWfEditController","easyFormGenVersion","$filter","$anchorScroll","toaster","$modal","$log","formFieldManage","controllerModalProxy","initDebugModel","showDebug","configurationModelNumberofLines","initTabModel","editTab","active","previewTab","previewExistingform","formlyform","configlines","JSON","parse","formlyField","configurationLoaded","bindConfigurationLines","applyConfigurationToformlyModel","previewLoadedForm","fieldsModel","vm","model","wfFormFieldsOnlyNeededProperties","copy","wfFormFields","cancelButtonText","submitButtonText","onSubmit","pop","type","timeout","title","body","showCloseButton","initColumnTemplate","numColumn","exist","control","key","subtype","initLineTemplate","line","activeColumn","columns","resetToZeroModel","configuration","activeLine","lines","length","splice","countConfigurationModelLines","debug","setActiveLineNumber","lineNumber","upThisLine","indexLine","currentLineObj","downThisLine","addNewline","push","removeThisLine","index","increaseNumberOfColumns","MaxNumberOfColumns","newNumberOfColumns","decreaseNumberOfColumns","resetStepCounter","configStepCounter","nextConfigStep","configStepCounterMAX","listConfigStep","setTrueThisStepIndicator","previousConfigStep","stepReachable","indexStep","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","animationsEnabled","templateUrl","resolve","nyaSelect","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","toggleAnimation","loadExistingFormsAsList","saveThisForm","formName","clear","resetAllIndicators","i","stepIndicators","indexIndicator","this","easyFormGeneratorVERSION","tab","numberOfColumns","MinNumberOfColumns","columnTemplate","lineTemplate","loadExistingFormsList","formlyList","initConfigurationEditFromScratch","initNyaSelect","ngwfWfEditMODALController","$modalInstance","selectOptionManage","addNewOptionRadio","radioRowCollection","newOptionRadio","saisie","resultFlag","details","removeRadioRow","removeOption","upThisRadioRow","upthisOption","downThisRadioRow","downthisOption","addNewOptionBasicSelect","basicSelectRowCollection","newOptionBasicSelect","removeRow","upThisRow","downThisRow","showGroupListToChoose","groupSelectGroupClick","showList","addNewGroupToGroupedSelect","newGroupGroupedSelect","GroupedSelectGroups","list","addNewOptionGroupedSelect","groupedSelectRowCollection","newOptionGroupedSelect","removeGroupedSelectRow","upThisGroupedSelectRow","downThisGroupedSelectRow","today","demodt","dt","Date","openfct","dateOptionsInit","formatYear","startingDay","showWeeks","initDate","selectThisControl","controlName","selectedControl","resetTemporyConfig","controls","id","initDatePicker","okfct","bindBasicSelectToNya","bindGroupedSelectToNya","bindRadioToNya","applyConfigToSelectedControl","close","cancelfct","dismiss","bindRadioFromNYA","temporyConfig","formlyOptions","newOption","option","order","group","rows","resetNyASelectOptions","bindBasicSelectFromNYA","bindGroupedSelectFromNYA","filteredgroup","_","uniq","pluck","datepickerPopup","formats","initNyaSelectConformingSelectedControl","modelNyaSelect","formlyLabel","formlyRequired","formlyPlaceholder","formlyDesciption","initOptionModel","dateOptions","ok","cancel","edaStepWayEasyFormGen","linkFct","element","attrs","returnAttributeConfigurationLinesIfNotEmpty","edaEasyFormGeneratorModelToReturn","isArray","edaEasyFormGeneratorModel","edaFieldsModel","emptyEdaFieldsModel","emptyModel","returnAttributeDataModelIfNotEmpty","dataModelToReturn","dataModel","watchEdaEasyFormModelExpression","watchEdaEasyFormModelHasChanged","newValue","oldValue","loadExistingConfigurationModel","watchReturnSaveEventExpression","returnSaveEvent","watchReturnSaveEventhasChanged","_easyFormGeneratorModel","btnSubmitText","btnCancelText","edaFieldsModelStringified","toJson","formlyFieldsModel","edaSaveFormEvent","isDefined","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","isString","$watch","edaStepWayEasyFormGenCtrl","directive","restrict","controllerAs","link","stRatio","linkfct","ratio","css","nyaSelectObj","resetNyaSelect","getControlsDefinition","configurationModel","isObject","column","controlIndex","_controlsDefinition","aControl","aControlIndex","formlyType","formlySubtype","formlyExpressionProperties","formlyValidators","formlyValidation","configurationObj","label","required","description","placeholder","extractedProps","returnControlFromAddCtrlModalModel","newKey","now","validKeyUniqueness","edited","newNyaSelectObj","subtitle","messages","viewValue","modelValue","defaultReturnMsg","returnMsg","emailShape","expression","test","message","CtrlModalModel","modelToReturn","thisKey","isUnique","j","service","factory","configurationModelInit","Object","prototype","toString","call","configurationModelResult","concat","getMessageObject","getErrorObject","formlyModel","formlyDataModel","resetFormlyModel","resetDataModel","addOneColumnHeader","addOneColumnControl","addTwoColumnControl","addThreeColumnControl","resetformly","lineIndex","headerTemplateCol0","extractTemplateOptionDescription","addDatepickerPopupProperty","fieldToPush","extractTemplateOptionDatepickerPopup","className","extractTemplateOptionType","extractTemplateOptionLabel","extractTemplateOptionRequired","extractTemplateOptionPlaceholder","extractTemplateOptionOptions","expressionProperties","extractFormlyExpressionProperties","validators","extractFormlyValidators","validation","extractFormlyValidation","headerTemplateCol1","controlCol0","controlCol1","FieldGroup","fieldGroup","headerTemplateCol2","controlCol2","obj","emptyDataModel","errorTitle","errorMessage","messageObj","noError","Message","messageTitle","messageBody","testMe","initModel","selectObj","resetModel","isOptionUnique","textValue","isOptionValidFormat","newOptionText","fullResponse","checkResult","validOption","newOptionGroup","AtIndex","indexOption","currentOption","zeroModel"],"mappings":"CAOE,WACA,cAeD,WAwBG,QAASA,GAAUC,GAyKjB,QAASC,GAASC,GAKhB,MAJAA,GAASA,EAAOC,QAAQ,gBAAiB,SAASC,EAAOC,GACvD,MAAOA,GAAMA,EAAIC,cAAgB,KAG5BJ,EAAOC,QAAQ,WAAY,SAASC,EAAOC,GAChD,MAAOA,GAAMA,EAAIE,cAAgB,KA3KrCP,EAAqBQ,SAEjBC,KAAM,aAENC,SAAU,+GAIdV,EAAqBQ,SAEjBC,KAAM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FAC,GAAanO,YAAa,EAC1BmO,EAAalO,QAAa,0BACnBkO,CAGX,IAAsB,KAAlBD,EAAsB,CACpB,IAAK,GAAIvP,GAAIkP,EAAUlK,KAAK/H,OAAS,EAAG+C,GAAK,EAAGA,IAC9C,GAAIkP,EAAUlK,KAAKhF,GAAG6E,SAAW0K,EAG/B,MAFAC,GAAanO,YAAa,EAC1BmO,EAAalO,QAAa,+BACnBkO,CAKX,OAFAA,GAAanO,YAAa,EAC1BmO,EAAalO,QAAa,GACnBkO,EAIb,MAFAA,GAAanO,YAAa,EAC1BmO,EAAalO,QAAa,0BACnBkO,EAGX,QAASL,GAAWD,GAClB,GAAIa,IAAc/K,QAClB7N,SAAQqE,KAAKuU,EAAWb,GAvO1B,GAAIxD,IACFsD,OAA4BA,EAC5BC,UAA4BA,EAC5BG,eAA4BA,EAC5BE,oBAA4BA,EAC5BrO,kBAA4BA,EAC5BY,wBAA4BA,EAC5Ba,0BAA4BA,EAC5BlB,aAA4BA,EAC5BE,aAA4BA,EAC5BE,eAA4BA,EAE9B,OAAO8J,GAlBXvU,QACG6B,OAAO,0CACP2S,QAAQ,qBAAsB3K,GAE/BA,EAAmB7H,cAyiBtB,WAGAhC,QAAQ6B,OACA,oBACW,mCACA,sCACA,yDAmBnB,WAGA7B,QACE6B,OAAO,0BAMPmH","file":"eda.stepway.min.js","sourcesContent":["!function(){\"use strict\";!function(){function e(e){function o(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"richEditor\",template:''}),e.setType({name:\"blank\",template:\"
\"});var l='

{{options.templateOptions.placeholder}}


';e.setType({name:\"subTitle\",template:l});var t='
  1. {{option.name}}
';e.setType({name:\"basicSelect\",template:t});var n='
  1. {{$group}} {{option.name}}
';e.setType({name:\"groupedSelect\",template:n});var i=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],s=[\"datepicker-mode\",\"min-date\",\"max-date\"],a={};angular.forEach(i,function(e){a[o(e)]={attribute:e}}),angular.forEach(s,function(e){a[o(e)]={bound:e}}),e.setType({name:\"datepicker\",template:'',wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:a,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,l){l.to.isOpen=!l.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
\",\" \",'
','
','
',\" {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\",\"
\",\"
\",\"
\"].join(\" \")}])}angular.module(\"eda.easyformGen.stepway\",[\"ngwfApp\"]),angular.module(\"ngwfApp\",[\"ngwfApp.core\",\"ngwfApp.controllers\",\"ngwfApp.services\",\"ngwfApp.filters\",\"ngwfApp.directives\"]).value(\"easyFormGenVersion\",\"v1.0.19\").config(e),e.$inject=[\"formlyConfigProvider\"]}(),angular.module(\"ngwfApp\").run([\"$templateCache\",function(e){e.put(\"edaStepWayEasyFormGeneratorTemplate.html\",'

lines

layout

controls

save

Command

Add a new line : 

Visual

  • 1\">
    1\">
    1\">

Command

– Selected line –

number of columns :

{{configuration.lines[configuration.activeLine -1].columns.length}}

Visual

  • 1\">
    1\">
    1\">

Command

– Apply controls to columns –


  Click / Tap on column to open control selection.

  Select desired control and valid to apply it to column.

Visual

  • 1\">
    1\">
    1\">

 Command



 Final Step : form preview

DATA MODEL

\\n\t\t\t\t\t\t\t\t\t\t{{vm.model | json}}\\n\t\t\t\t\t\t\t\t\t

FIELDS MODEL (ready to save to database one)

\\n\t\t\t\t\t\t\t\t\t\t{{vm.wfFormFieldsOnlyNeededProperties | json}}\\n\t\t\t\t\t\t\t\t\t

Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put(\"editModalTemplate.html\",'');\n\n}]),function(){angular.module(\"ngwfApp.core\",[\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\"])}(),function(){angular.module(\"ngwfApp.controllers\",[\"ngwfApp.controllers.ngwfMainController\",\"ngwfApp.controllers.ngwfWfEditController\",\"ngwfApp.controllers.ngwfWfEditMODALController\"])}(),function(){function e(e,o){e.FormNameAsTest=\"initial_name\",o(function(){e.FormNameAsTest=\"name changed after 3s\"},3e3)}angular.module(\"ngwfApp.controllers.ngwfMainController\",[]).controller(\"ngwfMainController\",e),e.$inject=[\"$scope\",\"$timeout\"]}(),function(){function e(e,o,l,t,n,i,s,a,r,c,d){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function u(){return{editTab:{active:!0},previewTab:{active:!1}}}function m(o){var l=JSON.parse(o.formlyField);e.configurationLoaded={},c.bindConfigurationLines(e.configurationLoaded,l),c.applyConfigurationToformlyModel(e.configurationLoaded,e.previewLoadedForm.fieldsModel,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.previewLoadedForm.cancelButtonText=o.cancelButtonText,e.previewLoadedForm.submitButtonText=o.submitButtonText}function f(){i.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function v(){return{numColumn:-1,exist:!0,control:{type:\"none\",key:\"none\",subtype:\"none\"}}}function g(){return{line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}}function y(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function b(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function h(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function w(o){if(o>-1&&e.configuration.lines[o-1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function x(o){if(o>-1&&e.configuration.lines[o+1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function C(){e.configuration.lines.push({line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function S(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):s(function(){i.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))}function T(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function L(){e.configuration.configStepCounter=0}function k(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,N(e.configuration.configStepCounter)}function O(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,N(e.configuration.configStepCounter)}function R(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function N(o){D(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=f,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=u(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=v(),e.lineTemplate=g(),e.resetToZeroModel=y,e.countConfigurationModelLines=b,e.setActiveLineNumber=h,e.upThisLine=w,e.downThisLine=x,e.addNewline=C,e.removeThisLine=S,e.increaseNumberOfColumns=T,e.decreaseNumberOfColumns=F,e.resetStepCounter=L,e.nextConfigStep=k,e.previousConfigStep=O,e.stepReachable=R,e.toggleAnimation=E,e.nyaSelect={},e.animationsEnabled=!1,e.showModalAddCtrlToColumn=P,e.loadExistingFormsList=q(),e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=m,e.saveThisForm=M,q(),c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}angular.module(\"ngwfApp.controllers.ngwfWfEditController\",[]).controller(\"ngwfWfEditController\",e),e.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\"]}(),function(){function e(e,o,l,t,n,i,s){function a(){var o=i.addNewOptionRadio(e.radioRowCollection,e.newOptionRadio.saisie);o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionRadio={saisie:\"\"}}function r(o){var l=i.removeOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function c(o){var l=i.upthisOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function d(o){var l=i.downthisOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function p(){var o=i.addNewOptionBasicSelect(e.basicSelectRowCollection,e.newOptionBasicSelect.saisie);o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionBasicSelect={saisie:\"\"}}function u(o){var l=i.removeOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function m(o){var l=i.upthisOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function f(o){var l=i.downthisOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function v(){e.groupSelectGroupClick.showList=!e.groupSelectGroupClick.showList}function g(){if(\"\"!==e.newGroupGroupedSelect.saisie){for(var o=e.GroupedSelectGroups.list.length-1;o>=0;o--)e.GroupedSelectGroups.list[o]===e.newGroupGroupedSelect.saisie&&t.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else t.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});e.newGroupGroupedSelect.saisie=\"\"}function y(){var o=i.addNewOptionGroupedSelect(e.groupedSelectRowCollection,e.newOptionGroupedSelect.saisie,\"\");o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionGroupedSelect={saisie:\"\"}}function b(o){var l=i.removeOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function h(o){var l=i.upthisOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function w(o){var l=i.downthisOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function x(){e.demodt.dt=new Date}function C(){e.demodt.dt=null}function S(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0}function T(){return{formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null}}function F(o){e.nyaSelect.selectedControl=\"none\",$();for(var l=e.nyaSelect.controls.length-1;l>=0;l--)e.nyaSelect.controls[l].id===o&&(e.nyaSelect.selectedControl=e.nyaSelect.controls[l].id);\"Date\"===e.nyaSelect.selectedControl&&D()}function L(){\"BasicSelect\"===e.nyaSelect.selectedControl&&E(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&M(),\"Radio\"===e.nyaSelect.selectedControl&&R(),s.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)}function k(){o.dismiss(\"cancel\")}function O(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.radioRowCollection.rows.push(l)}}function R(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.radioRowCollection.rows.length>0)for(var l=0;l<=e.radioRowCollection.rows.length-1;l++){var t={name:e.radioRowCollection.rows[l].option,value:l,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function P(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.basicSelectRowCollection.rows.push(l)}}function E(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.basicSelectRowCollection.rows.length>0)for(var l=0;l<=e.basicSelectRowCollection.rows.length-1;l++){var t={name:e.basicSelectRowCollection.rows[l].option,value:l,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function q(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0){for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:e.nyaSelect.temporyConfig.formlyOptions[o].group};e.groupedSelectRowCollection.rows.push(l)}var t=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(t,e.GroupedSelectGroups.list)}}function M(){e.nyaSelect.temporyConfig.formlyOptions=[];for(var o=0;o<=e.groupedSelectRowCollection.rows.length-1;o++){var l={name:e.groupedSelectRowCollection.rows[o].option,value:o,group:e.groupedSelectRowCollection.rows[o].group};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function D(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function N(){if(\"none\"!==l.selectedControl){for(var o=e.nyaSelect.controls.length-1;o>=0;o--)e.nyaSelect.controls[o].id===l.selectedControl&&(e.modelNyaSelect=l.controls[o]);\"BasicSelect\"===e.nyaSelect.selectedControl&&P(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&q(),\"Radio\"===e.nyaSelect.selectedControl&&O()}}function $(){e.nyaSelect.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var A={rows:[]};e.radioRowCollection=A,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=a,e.removeRadioRow=r,e.upThisRadioRow=c,e.downThisRadioRow=d,e.basicSelectRowCollection=A,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=p,e.removeRow=u,e.upThisRow=m,e.downThisRow=f,e.groupedSelectRowCollection=A,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=v,e.addNewGroupToGroupedSelect=g,e.addNewOptionGroupedSelect=y,e.removeGroupedSelectRow=b,e.upThisGroupedSelectRow=h,e.downThisGroupedSelectRow=w,e.demodt={},e.today=x,e.clear=C,e.open=S,e.dateOptions=T(),e.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"],e.nyaSelect=l,e.nyaSelect.selectedControl=e.nyaSelect.temporyConfig.selectedControl,e.selectThisControl=F,e.ok=L,e.cancel=k,x(),N()}angular.module(\"ngwfApp.controllers.ngwfWfEditMODALController\",[]).controller(\"ngwfWfEditMODALController\",e),e.$inject=[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\"]}(),function(){function e(e,o,l,t){function n(e,o,n){function i(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:s();return o}function s(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function a(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function r(){return e.edaEasyFormGeneratorModel}function c(e,o){u()}function d(){return e.returnSaveEvent}function p(o,l){if(o===!0){var t={formName:e.configuration.formName,btnSubmitText:e.configuration.submitButtonText,btnCancelText:e.configuration.cancelButtonText,edaFieldsModel:e.configuration.lines,edaFieldsModelStringified:angular.toJson(e.configuration.lines),formlyFieldsModel:e.vm.wfFormFieldsOnlyNeededProperties,dataModel:e.vm.model};e.edaSaveFormEvent({edaEasyFormGeneratorModel:t}),e.returnSaveEvent=!1}}function u(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var o=i();e.configurationLoaded={},l.bindConfigurationLines(e.configurationLoaded,o),t.refreshControlFormlyExpressionProperties(e.configurationLoaded),t.refreshControlFormlyValidators(e.configurationLoaded),t.refreshControlFormlyValidation(e.configurationLoaded),e.configuration=angular.copy(e.configurationLoaded),l.applyConfigurationToformlyModel(e.configurationLoaded,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=a,e.configuration.formName=angular.isString(e.edaEasyFormGeneratorModel.formName)?e.edaEasyFormGeneratorModel.formName:\"\",e.configuration.submitButtonText=angular.isString(e.edaEasyFormGeneratorModel.btnSubmitText)?e.edaEasyFormGeneratorModel.btnSubmitText:\"Submit\",e.configuration.cancelButtonText=angular.isString(e.edaEasyFormGeneratorModel.btnCancelText)?e.edaEasyFormGeneratorModel.btnCancelText:\"Cancel\"}}e.$watch(r,c,!0),e.$watch(d,p)}function i(e,o,l,t,n,i,s,a,r,c,d){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function u(){return{editTab:{active:!0},previewTab:{active:!1}}}function m(o){var l=JSON.parse(o.formlyField);e.configurationLoaded={},c.bindConfigurationLines(e.configurationLoaded,l),c.applyConfigurationToformlyModel(e.configurationLoaded,e.previewLoadedForm.fieldsModel,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.previewLoadedForm.cancelButtonText=o.cancelButtonText,e.previewLoadedForm.submitButtonText=o.submitButtonText}function f(){i.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function v(){return{numColumn:-1,exist:!0,control:{type:\"none\",key:\"none\",subtype:\"none\"}}}function g(){return{line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}}function y(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function b(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function h(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function w(o){if(o>-1&&e.configuration.lines[o-1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function x(o){if(o>-1&&e.configuration.lines[o+1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function C(){e.configuration.lines.push({line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function S(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):s(function(){i.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))}function T(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function L(){e.configuration.configStepCounter=0}function k(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,D(e.configuration.configStepCounter)}function O(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,D(e.configuration.configStepCounter)}function R(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function D(o){M(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=f,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=u(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=v(),e.lineTemplate=g(),e.resetToZeroModel=y,e.countConfigurationModelLines=b,e.setActiveLineNumber=h,e.upThisLine=w,e.downThisLine=x,e.addNewline=C,e.removeThisLine=S,e.increaseNumberOfColumns=T,e.decreaseNumberOfColumns=F,e.resetStepCounter=L,e.nextConfigStep=k,e.previousConfigStep=O,e.stepReachable=R,e.toggleAnimation=E,e.nyaSelect={},e.animationsEnabled=!1,e.showModalAddCtrlToColumn=P,e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=m,e.saveThisForm=q,e.returnSaveEvent=!1,c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}i.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\"];var s={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaStepWayEasyFormGeneratorTemplate.html\",link:n};return s}angular.module(\"ngwfApp.directives.edaStepWayEasyFormGenDirective\",[]).directive(\"edaStepWayEasyFormGen\",e),e.$inject=[\"$templateCache\",\"$timeout\",\"formFieldManage\",\"controllerModalProxy\"]}(),function(){angular.module(\"ngwfApp.directives\",[\"ngwfApp.directives.ngwfStRatioDirective\",\"ngwfApp.directives.edaStepWayEasyFormGenDirective\"])}(),function(){function e(){function e(e,o,l){var t=+l.stRatio;o.css(\"width\",t+\"%\")}var o={link:e};return o}angular.module(\"ngwfApp.directives.ngwfStRatioDirective\",[]).directive(\"stRatio\",e),e.$inject=[]}(),function(){function e(){function e(e){return c(e)}function o(){var e={};return c(e),e}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function n(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e,o,l,t){return c(e),\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof o.lines[l].columns[t].control.selectedControl?o.lines[l].columns[t].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.label?o.lines[l].columns[t].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.required?o.lines[l].columns[t].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.description?o.lines[l].columns[t].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.placeholder?o.lines[l].columns[t].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.options?o.lines[l].columns[t].control.templateOptions.options:\"\",e.temporyConfig.formlyExpressionProperties=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyExpressionProperties?angular.copy(o.lines[l].columns[t].control.formlyExpressionProperties):{},e.temporyConfig.formlyValidators=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyValidators?angular.copy(o.lines[l].columns[t].control.formlyValidators):{},e.temporyConfig.formlyValidation=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyValidation?angular.copy(o.lines[l].columns[t].control.formlyValidation):{},\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.datepickerPopup?o.lines[l].columns[t].control.templateOptions.datepickerPopup:\"\")),e}function s(e,o,l,t){var n=d(l);t.lines[e].columns[o].control.selectedControl=n.selectedControl,t.lines[e].columns[o].control.type=n.formlyType,t.lines[e].columns[o].control.subtype=n.formlySubtype,t.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},t.lines[e].columns[o].control.templateOptions.label=n.formlyLabel,t.lines[e].columns[o].control.templateOptions.required=n.formlyRequired,t.lines[e].columns[o].control.templateOptions.description=n.formlyDesciption,t.lines[e].columns[o].control.templateOptions.placeholder=n.formlyPlaceholder,t.lines[e].columns[o].control.templateOptions.options=n.formlyOptions,t.lines[e].columns[o].control.formlyExpressionProperties=angular.copy(n.formlyExpressionProperties),t.lines[e].columns[o].control.formlyValidators=angular.copy(n.formlyValidators),t.lines[e].columns[o].control.formlyValidation=angular.copy(n.formlyValidation),\"datepicker\"===t.lines[e].columns[o].control.type&&(t.lines[e].columns[o].control.templateOptions.datepickerPopup=n.datepickerPopup);var i=t.lines[e].columns[o].control.type+\"-\"+Date.now();p(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),p(i,t)===!0?t.lines[e].columns[o].control.key=i:i=t.lines[e].columns[o].control.type+\"-\"+Date.now()),t.lines[e].columns[o].control.edited=!0}function a(e){for(var o=e.controls.length-1;o>=0;o--)e.controls[o].id===e.selectedControl&&(e.controls[o].formlyLabel=e.temporyConfig.formlyLabel,e.controls[o].formlyRequired=e.temporyConfig.formlyRequired,e.controls[o].formlyDesciption=e.temporyConfig.formlyDesciption,e.controls[o].formlyPlaceholder=e.temporyConfig.formlyPlaceholder,e.controls[o].formlyOptions=e.temporyConfig.formlyOptions,\"Date\"===e.controls[o].id&&(e.controls[o].datepickerPopup=e.temporyConfig.datepickerPopup))}function r(){return{formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function c(e){var o={controls:[{id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Text input field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Password field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Email\",name:\"Email\",subtitle:\"Email\",group:\"input\",formlyType:\"input\",formlySubtype:\"email\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var l=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\\.[a-z.]{2,5}$/.test(l)},message:\"$viewValue + ' is not a valid email'\"}},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Email field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return l.to.required?n:void 0}}}},{id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Date field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Textarea field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this RichTextEditor field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Password field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{\nmessages:{required:function(e,o,l){var t=\"this Checkbox field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Basic select field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Grouped Select field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}}],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function d(e){for(var o={selectedControl:\"none\",formlyType:\"none\",formlySubtype:\"none\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},l=e.controls.length-1;l>=0;l--)e.selectedControl===e.controls[l].id&&(o.selectedControl=e.selectedControl,o.formlyType=e.controls[l].formlyType,o.formlySubtype=e.controls[l].formlySubtype,o.formlyLabel=e.controls[l].formlyLabel,o.formlyRequired=e.controls[l].formlyRequired,o.formlyDesciption=e.controls[l].formlyDesciption,o.formlyPlaceholder=e.controls[l].formlyPlaceholder,o.formlyOptions=e.controls[l].formlyOptions,o.formlyExpressionProperties=angular.copy(e.controls[l].formlyExpressionProperties),o.formlyValidators=angular.copy(e.controls[l].formlyValidators),o.formlyValidation=angular.copy(e.controls[l].formlyValidation),\"datepicker\"===e.controls[l].formlyType&&(o.datepickerPopup=e.controls[l].datepickerPopup));return o}function p(e,o){for(var l=!0,t=o.lines.length-1;t>=0;t--)for(var n=o.lines[t].columns.length-1;n>=0;n--)o.lines[t].columns[n].control.key===e&&(l=!1);return l}var u={initNyaSelect:e,getNyASelectFromSelectedLineColumn:i,bindConfigurationModelFromModalReturn:s,applyConfigToSelectedControl:a,resetTemporyConfig:r,getControlsDefinition:o,refreshControlFormlyExpressionProperties:l,refreshControlFormlyValidators:t,refreshControlFormlyValidation:n};return u}angular.module(\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",e),e.$inject=[]}(),function(){function e(){function e(e){var o={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}]};angular.copy(o,e)}function o(e,o){if(\"[object Array]\"===Object.prototype.toString.call(o)){var l={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]};return l.lines=[].concat(o),angular.copy(l,e),x(\"configuration model is bound\",\"lines are bound to configuration model.\")}return w(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function l(e,o,l){t(o),h(l);for(var i=e.lines.length,c=0;i>c;c++)1===e.lines[c].columns.length&&(\"header\"===e.lines[c].columns[0].control.type?n(o,e,c):s(o,e,c)),2===e.lines[c].columns.length&&a(o,e,c),3===e.lines[c].columns.length&&r(o,e,c)}function t(e){var o=[];angular.copy(o,e)}function n(e,o,l){var t='

'+b(o.lines[l].columns[0].control)+\"


\";e.push({template:\"undefined\"!=typeof o.lines[l].columns[0].control.type&&\"header\"===o.lines[l].columns[0].control.type?t:\"
\"})}function i(e,o,l){e.templateOptions.datepickerPopup=d(o.lines[l].columns[0].control)}function s(e,o,l){var t={className:\"col-xs-12\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(t,o,l),e.push(t)}function a(e,o,l){var t={className:\"col-xs-6\",template:'

'+b(o.lines[l].columns[0].control)+\"


\"},n={className:\"col-xs-6\",template:'

'+b(o.lines[l].columns[1].control)+\"


\"},s={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(s,o,l);var a={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[l].columns[1].control.type?\"none\"===o.lines[l].columns[1].control.type?\"blank\":o.lines[l].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[1].control.key?o.lines[l].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:y(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:p(o.lines[l].columns[1].control),validators:u(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(a,o,l);var r=[];r.push(\"header\"===o.lines[l].columns[0].control.type?t:s),r.push(\"header\"===o.lines[l].columns[1].control.type?n:a),e.push({className:\"row\",fieldGroup:r})}function r(e,o,l){var t={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[0].control)+\"


\"},n={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[1].control)+\"


\"},s={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[2].control)+\"


\"},a={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(a,o,l);var r={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[1].control.type?\"none\"===o.lines[l].columns[1].control.type?\"blank\":o.lines[l].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[1].control.key?o.lines[l].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:y(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:p(o.lines[l].columns[1].control),validators:u(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(r,o,l);var d={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[2].control.type?\"none\"===o.lines[l].columns[2].control.type?\"blank\":o.lines[l].columns[2].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[2].control.key?o.lines[l].columns[2].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[2].control),label:c(o.lines[l].columns[2].control),required:f(o.lines[l].columns[2].control),placeholder:y(o.lines[l].columns[2].control),description:b(o.lines[l].columns[2].control),options:v(o.lines[l].columns[2].control)},expressionProperties:p(o.lines[l].columns[2].control),validators:u(o.lines[l].columns[2].control),validation:m(o.lines[l].columns[2].control)};\"datepicker\"===o.lines[l].columns[2].control.type&&i(d,o,l);var h=[];h.push(\"header\"===o.lines[l].columns[0].control.type?t:a),h.push(\"header\"===o.lines[l].columns[1].control.type?n:r),h.push(\"header\"===o.lines[l].columns[2].control.type?s:d),e.push({className:\"row\",fieldGroup:h})}function c(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.label?e.templateOptions.label:\"\"}function d(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:\"\"}function p(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function u(e){return\"undefined\"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function m(e){return\"undefined\"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function f(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.required?e.templateOptions.required:\"\"}function v(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.options?e.templateOptions.options:\"\"}function g(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function y(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:\"\"}function b(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.description?e.templateOptions.description:\"\"}function h(e){var o={};return angular.copy(o,e),!0}function w(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!1,l.title=e,l.Message=o,l}function x(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!0,l.title=e,l.Message=o,l}var C={initConfigurationEditFromScratch:e,bindConfigurationLines:o,applyConfigurationToformlyModel:l};return C}angular.module(\"ngwfApp.services.formFieldManage\",[]).factory(\"formFieldManage\",e),e.$inject=[]}(),function(){function e(){function e(){return\"selectOptionManage is here.\"}function o(e){p(e)}function l(e,o){for(var l=e.rows.length-1;l>=0;l--)if(e.rows[l].option===o)return!1;return!0}function t(e){return\"\"!==e?!0:!1}function n(e,o){var l={resultFlag:!1,details:\"\"},t=d(e,o);if(t.resultFlag===!0){var n={option:o,order:e.rows.length};return e.rows.push(n),l.resultFlag=!0,l.details=\"\",l}return angular.copy(t,l),l}function i(e,o){var l={resultFlag:!1,details:\"\"},t=d(e,o);if(t.resultFlag===!0){var n={option:o,order:e.rows.length};return e.rows.push(n),l.resultFlag=!0,l.details=\"\",l}return angular.copy(t,l),l}function s(e,o,l){var t={resultFlag:!1,details:\"\"},n=d(e,o);if(n.resultFlag===!0){var i={option:o,group:l,order:e.rows.length};return e.rows.push(i),t.resultFlag=!0,t.details=\"\",t}return angular.copy(n,t),t}function a(e,o){var l={resultFlag:!1,details:\"\"};return-1!==o?(e.rows.splice(o,1),l.resultFlag=!0,l.details=\"\",l):(l.resultFlag=!1,l.details=\"Option index not valid\",l)}function r(e,o){var l={resultFlag:!1,details:\"\"};if(o>-1){if(o>0){if(e.rows[o-1]){var t=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,t),l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Can't retreive option from option index\",l}return l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Option index not valid\",l}function c(e,o){var l={resultFlag:!1,details:\"\"};if(o>-1){if(o=0;t--)if(e.rows[t].option===o)return l.resultFlag=!1,l.details=\"Entered option is not unique\",l;return l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Entered option is empty\",l}function p(e){var o={rows:[]};angular.copy(o,e)}var u={testMe:e,initModel:o,isOptionUnique:l,isOptionValidFormat:t,addNewOptionRadio:n,addNewOptionBasicSelect:i,addNewOptionGroupedSelect:s,removeOption:a,upthisOption:r,downthisOption:c};return u}angular.module(\"ngwfApp.services.selectOptionManage\",[]).factory(\"selectOptionManage\",e),e.$inject=[]}(),function(){angular.module(\"ngwfApp.services\",[\"ngwfApp.services.formFieldManage\",\"ngwfApp.services.selectOptionManage\",\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\"])}(),function(){angular.module(\"ngwfApp.filters\",[])}()}(this);\n//# sourceMappingURL=eda.stepway.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file diff --git a/index_easyFormViewer_Module.html b/index_easyFormViewer_Module.html index 56c999ab..e25a94de 100644 --- a/index_easyFormViewer_Module.html +++ b/index_easyFormViewer_Module.html @@ -33,7 +33,7 @@
- - + diff --git a/public/js/eda.dragdropway.min.js.map b/public/js/eda.dragdropway.min.js.map index 65fc4c4e..93c35633 100644 --- a/public/js/eda.dragdropway.min.js.map +++ b/public/js/eda.dragdropway.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["eda.dragdropway.min.js"],"names":["runfct","$templateCache","validEditFooterTpl","join","editPanelBlankCtrlTpls","validEditFooter","editPanelHeaderCtrlTpl","editPanelSubTitleCtrlTpl","editPanelTextInputCtrlTpl","editPanelPasswordCtrlTpl","editPanelDateCtrlTpl","editPanelTextareaCtrlTpl","editPanelRichTextEditorCtrlTpl","editPanelRadioCtrlTpl","editPanelCheckboxCtrlTpl","editPanelBasicSelectCtrlTpl","editPanelGroupedSelectCtrlTpl","put","angular","module","value","run","$inject","config","dragDropConfigProvider","setItemsNotTocount","itemBeingDragged","formlyConfigProvider","EasyFormGenFormlyBindingModelsProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","addEasyFormControlToList","id","subtitle","group","formlyType","formlySubtype","formlyLabel","formlyRequired","formlyDesciption","formlyOptions","addControlToDragDropPresentationModel","label","control","cssClass","addToGroupCtrl","subTitleTemplate","attributes","bindings","ngModelAttrs","forEach","attr","attribute","binding","bound","angularUIDatePickerTemplate","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","isOpen","onFocus","$viewValue","$modelValue","scope","to","datepickerOptions","datepickerPopup","richTexEditorTemplate","basicSelectTemplate","groupedSelectTemplate","provider","addToGroupControl","thisControl","thisGroup","_dragDropPresentationModel","length","_dragDropConfigModel","containerConfig","decoration","missingGroupNumber","i","push","groupConfig","groupId","WhenIndex","_listDragDropItemCssClasses","numberItemPerRow","dropZoneConfig","ApplycssClass","fontAwesomeIcon","title","verboseMode","isCollapsed","collapseEnabled","collapseCtrl","atIndex","collapse","itemConfig","_itemsNotToCountFoReal","this","setListItemCssClass","fromConfig","concat","getItemsNotTocount","copy","controlToAdd","groupToAdd","getDragDropPresentationModel","$get","Service","getListItemCssClass","getItemsNotToCount","getItemCssDependingNumberItemsInRow","numberOfItems","classToReturn","getDistinctItemCssClass","distinctCssClass","valueRef","cssClassRef","canAdd","valueProc","cssClassProc","getDragDropConfigModel","setDragDropConfigContainerDecorationCollapse","dragDropConfigModel","indexValue","isCollapsedBool","parseInt","_easyFormListControls","controls","selectedControl","temporyConfig","formlyPlaceholder","_easyFormEmptyConfigurationLineModel","line","activeColumn","columns","numColumn","exist","type","key","_emptyControlFieldModel","_easyFormInitialStateConfigurationModel","submitButtonText","cancelButtonText","lines","_easyFormInitialStateConfigurationModelAddOnForStepWay","activeLine","listConfigStep","stepIndicators","configStepCounter","_easyFormReloadConfigurationModel","_headerTemplates","textContent","html_part1","selectedClass","html_part2","html_part3","html_part4","simpleHtml1","simpleHtml2","_formlyControlTemplates","className","required","placeholder","description","_particularControlProperties","controlType","properties","isRoot","isTemplateOptions","getAllParticularControlProperties","addParticularControlProperties","newParticularControlProperty","isAnUpdate","controlProp","getEasyFormListControls","controlDeclaration","getHeaderTemplates","addHeaderTemplateCssClass","cssClassToAdd","getFormlyControlTemplate","addformlyControlTemplatesCssClass","setFormlyControlTemplate","newFormlyControlTemplate","getEasyFormInitialStateConfigurationModel","addStepWayProperties","initialConfigurationModel","extend","getEasyFormReloadConfigurationModel","getEasyFormEmptyConfigurationLineModel","getEasyFormConfigurationEmptyControlModel","getRawHeaderTemplates","getHeaderTemplateForNcolumnLine","nbColInLines","headerToReturn","getRawFormlyControlTemplates","getFormlyControlTemplateForNcolumnLine","controlToReturn","aPropToAdd","easyFormGenVersion","$filter","$anchorScroll","toaster","$timeout","$modal","$log","formFieldManage","formsByIdService","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager","onSubmit","pop","timeout","body","vm","model","showCloseButton","addNewline","applyConfigurationToformlyModel","configuration","wfFormFields","wfFormFieldsOnlyNeededProperties","easyFormGeneratorVERSION","tab","editTab","active","previewTab","ihm","preview","formlyModelViewExpanded","formlyFieldsViewExpanded","customizeFormButtonsExpanded","saveThisFormExpanded","easyFormDragDropProperties","dragDropModel","numberOfColumns","MaxNumberOfColumns","MinNumberOfColumns","initConfigurationEditFromScratch","initProxyModel","collapseAllGroupControl","allExceptThisGroupIndex","resetToZeroModel","splice","countConfigurationModelLines","setActiveLineNumber","lineNumber","upThisLine","indexLine","currentLineObj","downThisLine","removeThisLine","index","increaseNumberOfColumns","newNumberOfColumns","decreaseNumberOfColumns","indexColumn","saveThisForm","formName","wfForm","formlyField","JSON","stringify","clear","nyaSelect","initNyaSelect","animationsEnabled","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","templateUrl","resolve","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","info","Date","dragoverCallbackContainer","parentparentIndex","parentIndex","dropCallback","event","item","external","allowedType","isArray","timerRefreshDDToConfig","refreshAllConfigurationFromDragAndDropModel","refreshControlsKeys","$on","cancel","dndItemMoved","parentParentIndex","itemIndex","dragoverCallbackItems","ParentParentIndex","disableItemDropIf","dropCallbackItems","realIndex","parentParentParentIndex","setUnRightClicked","editPanelModel","toggle","saveFromEditPanel","bindSpecialCtrlTemporyModelsToProxyModel","bindConfigurationModelFromProxyModel","getEditPanelModelLineIndex","getEditPanelModelColumnIndex","setEditPanelModelToggle","getEditPanelModelToggle","resetAllDragDropItemSelectedState","closeEditPanel","debugProxyModel","ProxyModel","setRightClicked","previousState","rightCliked","toggleEditPanel","lineIndex","colIndex","getEditPanelModelControl","equals","timerCloseOpenedEditPanel","setEditPanelModelLineIndex","setEditPanelModelColumnIndex","setEditPanelModelControl","setProxyModelFromConfigurationSelection","insertNewLine","$modalInstance","selectOptionManage","bindRadioFromNYA","newOption","option","order","radioRowCollection","rows","bindRadioToNya","resetNyASelectOptions","bindBasicSelectFromNYA","basicSelectRowCollection","bindBasicSelectToNya","bindGroupedSelectFromNYA","groupedSelectRowCollection","filteredgroup","_","uniq","pluck","GroupedSelectGroups","list","bindGroupedSelectToNya","initDatePicker","demodt","formats","resetTemporyConfig","initOptionModel","newOptionRadio","saisie","addNewOptionRadio","resultFlag","details","removeRadioRow","removeOption","upThisRadioRow","upthisOption","downThisRadioRow","downthisOption","newOptionBasicSelect","addNewOptionBasicSelect","removeRow","upThisRow","downThisRow","newOptionGroupedSelect","newGroupGroupedSelect","groupSelectGroupClick","showList","showGroupListToChoose","addNewGroupToGroupedSelect","addNewOptionGroupedSelect","removeGroupedSelectRow","upThisGroupedSelectRow","downThisGroupedSelectRow","today","dt","dateOptions","formatYear","startingDay","showWeeks","initDate","modelNyaSelect","selectThisControl","controlName","ok","applyConfigToSelectedControl","close","dismiss","self","proxyModel","resetAllTemporyModels","modelproxyModel","bindBasicSelectFromProxyModel","bindGroupedSelectFromProxyModel","bindRadioFromProxyModel","updateSpecialControl","resetControl","directive","dragDropItemCounterService","valueWhenPlaceholder","valueWhendragging","fullModel","currentIndex","forceRefresh","restrict","link","element","timer","$watch","children","newValue","oldValue","newRealCount","listClassForThisRow","isHtmlElementToCount","classList","isReal","contentRealCount","updateLineItemCss","console","warn","htmlTemplate","styleParam","isStillCollapsed","collpaseAll","transclude","isEnabled","collapseFct","exceptThisOne","icons","closedClass","currentIconClass","attrs","ctrl","verboseModeActive","verbose","lowercase","dir","whoAmI","verbodeMode","$parent","$index","ParentIndex","columnindex","newVal","oldVal","currentTitle","contentClone","childDiv","append","addNewLineFct","headerConfig","HeaderButtonVisible","affixAttr","affixEnabled","currentFontAwesome","lineItemsCount","listClass","css","removeClass","addClass","removeLine","deleteLine","readyToDelete","dblClickCount","removeMe","cancelDelete","on","$parse","fn","edaRightClick","columnIndex","edaRightClickColIndex","fctSetRightclicked","edaSetRightClicked","$apply","ratio","factory","_modelItemRealCounter","_itemsNotToCount","getModelItemsRealCounter","htmlvalue","isToCount","classes","listCssToApply","columIndex","realCount","j","dragDropModelItem","_listItemClass","getListClass","getCssClassWhenNumberItemsInRowIs","thisNumber","applyCssClassWholeLine","numberItems","restrictToThisIndexColumn","updateCssClassWholeColumn","cpt","EasyFormGenFormlyBindingModels","getFormlyDetailedControlModelFromDragDropObject","dragDrapCtrlModel","controlModel","listControl","controlsListGetter","ctrlListValue","validKeyUniqueness","thisKey","configurationObj","isUnique","createUniqueKey","baseKeyValue","newKey","now","applyThisLine","linevalue","configModel","aLineValue","aLineKey","bindConfigCtrlModelFromFormlyDetailedCtrlModel","formlyDetailCtrlModel","configurationCtrlModel","assign","ddModel","lineValue","keyValue","colValue","controlToBind","formlyDetailedControlModel","configModelControl","newClassName","aConfigLine","aConfigLineIndex","aConfigControl","aConfigControlIndex","when","configModel is ","dragDropModel is ","resetNyaSelect","nyaSelectObj","newNyaSelectObj","resetProxyModel","newProxyModel","returnControlFromAddCtrlModalModel","CtrlModalModel","modelToReturn","getSelectedProxyModel","configurationSelectedCtrl","selectedProxyModelControl","listProxyModelCTRL","subtype","extractedProps","edited","thisProxyModelToInit","getProxyModel","getEditPanelModelAllModel","newEditPanelModel","successfullDone","newColumnIndex","newLineIndex","newControl","newToggleValue","bindBasicSelectToProxyModel","bindGroupedSelectToProxyModel","bindRadioToProxyModel","resetproxyModelOptions","resetFormlyModel","formlyModel","resetformly","AddNColumnControl","configurationModel","indexFormlyModel","fieldGroup","column","controlTemplate","headerTextContent","resetDataModel","obj","emptyDataModel","getErrorObject","errorTitle","errorMessage","messageObj","noError","Message","getMessageObject","messageTitle","messageBody","configurationModelInit","bindConfigurationLines","Object","prototype","toString","call","configurationModelResult","formlyDataModel","$resource","validOption","selectObj","newOptionText","fullResponse","resetModel","zeroModel","testMe","initModel","isOptionUnique","textValue","isOptionValidFormat","checkResult","newOptionGroup","AtIndex","indexOption","currentOption","filter","$sce","trustAs"],"mappings":"CAOE,WACA,YA8CA,SAASA,GAAOC,GAoBd,QAASC,KACR,OACI,6BAGA,4CACO,4CACA,6CACA,aAGP,8CACO,0EACA,6CACA,aAEP,UACCC,KAAK,IAQX,QAASC,KACR,OACI,oCACA,+BAEA,yBACA,mCACA,4FACA,kBACA,eAGA,yBACA,mCACA,0EACA,kBACA,cACA,YACAC,EACA,UACCF,KAAK,IAQX,QAASG,KACR,OACQ,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAEA,wBACA,uCACA,iCAEA,iIACA,+BACA,2LACA,uBAEA,gBACA,qBACA,aAEA,WACAD,EACA,WACEF,KAAK,IAQjB,QAASI,KACR,OACM,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAEA,wBACA,uCAEA,iCAEA,mIACA,+BACA,+LACA,uBAEA,gBAEA,qBACA,aAEA,WACAF,EACA,WACCF,KAAK,IAQb,QAASK,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,iIACA,+BACA,sMACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,oIACA,uCACA,kEACA,gIACA,uBAET,gBAEA,qBACA,aAGA,8CAGA,wBACA,uCAEA,iCAES,iIACA,+BACA,gMACA,uBAET,gBAEA,qBACA,aAGA,WACAH,EACA,WACCF,KAAK,IAQZ,QAASM,KACR,OACM,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAEU,2HACA,+BACA,uLACA,uBAEV,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAEU,wHACA,+BACA,sMACA,uBAEV,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAEU,2HACA,uCACA,kEACA,uHACA,uBAEV,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAEU,wHACA,+BACA,uLACA,uBAEV,gBAEA,qBACA,aAGA,WACAJ,EACA,WACCF,KAAK,IAQb,QAASO,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGS,uFACA,uBACA,4JACA,6GACA,oCACA,kBACA,gBACA,eAGT,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,2HACA,uCACA,kEACA,uHACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAL,EACA,WACCF,KAAK,IAQZ,QAASQ,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,2HACA,uCACA,kEACA,uHACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAN,EACA,WACCF,KAAK,IAQZ,QAASS,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAP,EACA,WACCF,KAAK,IAQZ,QAASU,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAIA,8CAGS,sBACA,0CACA,sHACA,cACA,WACA,sBACA,cACA,qCACA,kEACA,wJACA,uBACA,kEACA,sGACA,uBACA,mBACA,eACA,WACA,sBACA,0CACA,0HACA,cACA,WACA,sBACA,oCAEA,sEACA,4CACA,mFACA,+GACA,iCACA,6GACA,oCACA,iCACA,6DACA,8DACA,wDACA,kCACA,iCACA,wDACA,mDACA,gJACA,sCACA,wDACA,kCACA,qCACA,sCACA,4HACA,sEACA,+EACA,uDACA,iEACA,4JACA,oKACA,2JACA,gDACA,0CACA,sCACA,qCACA,iCACA,2BACA,uBAEA,kBACA,WAGT,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,2HACA,uCACA,kEACA,uHACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAR,EACA,WACCF,KAAK,IAQZ,QAASW,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGA,wBACA,uCAEA,iCAES,2HACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,wBAES,2HACA,uCACA,kEACA,uHACA,uBAET,gBAEA,qBACA,aAEA,8CAGA,wBACA,uCAEA,iCAES,wHACA,+BACA,uLACA,uBAET,gBAEA,qBACA,aAGA,WACAT,EACA,WACCF,KAAK,IAQZ,QAASY,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAIS,sBACA,0CACA,8HACA,cACA,WACA,sBACA,cACA,qCACA,kEACA,+JACA,uBACA,kEACA,4GACA,uBACA,mBACA,eACA,WAGA,qBACA,0CACA,oGACA,cACA,WACA,sBACA,oCACA,kEACA,wCACA,mFACA,uGACA,2BACA,+GACA,gCACA,6BACA,yDACA,0DACA,oDACA,8BACA,6BACA,oDACA,+CACA,wJACA,kCACA,oDACA,8BACA,iCACA,gCACA,4IACA,8DACA,6EACA,+CACA,yDACA,6IACA,iJACA,4IACA,wCACA,kCACA,8BACA,iCACA,6BACA,uBACA,mBACA,kBACA,WAGA,4CAGT,wBACA,uCACA,iCACS,wHACA,+BACA,uLACA,uBACT,gBACA,qBACA,aAEA,WACAV,EACA,WACCF,KAAK,IAQZ,QAASa,KACR,OACK,oCACA,+BAEA,wBACA,kCACA,sGACA,iBACA,cAGA,8CAGS,sBACA,0CACA,+HACA,cACA,WACA,sBACA,cACA,qCACA,kEACA,mKACA,uBACA,kEACA,8GACA,uBACA,kBACA,eACA,YAGA,sBACA,0CACA,+HACA,cACA,WACA,sBACA,cACA,qCACA,kEACA,kNACA,uBACA,kEACA,+GACA,uBACA,mBACA,eACA,WAGA,sBACA,0CACA,0GACA,cACA,WACA,sBACA,oCACA,kEACA,wCACA,qFACA,uGACA,2BACA,iHACA,gCACA,6BACA,yDACA,yDACA,0DACA,oDACA,8BACA,6BACA,oDACA,oDACA,+CACA,oJACA,kCACA,oDACA,8BACA,iCACA,gCACA,oJACA,8DACA,+CACA,4FACA,0FACA,4FACA,uCACA,wFACA,uMACA,4FACA,iKACA,sEACA,4CACA,0CACA,uCACA,uCACA,6FACA,2DACA,uCACA,kCACA,+EACA,+CACA,yDACA,4JACA,gKACA,6JACA,2JACA,wCACA,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C1BwP,EAAavP,QAAU,GAChBuP,EAMX,MAFAA,GAAaxP,YAAa,EAC1BwP,EAAavP,QAAU,yBAChBuP,GAIbjP,eAAiB,SAAS+O,EAAWa,GACjC,GAAIX,IACgBxP,YAAa,EACbC,QAAU,GAG9B,IAAIkQ,EAAc,GAAI,CAGpB,GAAIA,EAAcb,EAAU7Q,KAAK5Q,OAAS,EAAE,CAG1C,GAAIyhB,EAAU7Q,KAAK0R,EAAc,GAAI,CAGnC,GAAIC,GAAgBd,EAAU7Q,KAAK0R,EAOnC,OALAb,GAAU7Q,KAAKhG,OAAO0X,EAAc,GACpCb,EAAU7Q,KAAKhG,OAAQ0X,EAAc,EAAI,EAAGC,GAE5CZ,EAAaxP,YAAa,EAC1BwP,EAAavP,QAAU,GAChBuP,EAKP,MAFAA,GAAaxP,YAAa,EAC1BwP,EAAavP,QAAU,0CAChBuP,EAOT,MAFEA,GAAaxP,YAAa,EAC1BwP,EAAavP,QAAU,GAClBuP,EAOT,MAFAA,GAAaxP,YAAa,EAC1BwP,EAAavP,QAAU,yBAChBuP,OA2EvBvmB,QAAQC,OAAO,mBAEP,kCACA,qCACA,mCACA,kDACA,gDACA,8CACA,uDACA,8CAgBRD,QACEC,OAAO,kBAAmB,6BAkB5BD,QACEC,OAAO,+BACPmnB,OAAO,aAAc,OAEtB,SAASC,GAER,MAAO,UAASnnB,EAAO0I,GAChB,MAAOye,GAAKC,QAAQ1e,GAAQ,OAAQ1I,QAI1CkG","file":"eda.dragdropway.min.js","sourcesContent":["!function(){\"use strict\";function e(e){function o(){return['
','\t\",'\t\",\"
\"].join(\"\")}function t(){return['
','
','\t
','\t
','\t
  Edit :
',\"\t
\",\"\t
\",'\t
','\t
','\t
Column will be blank
',\"\t
\",\"\t
\",\"
\",f,\"
\"].join(\"\")}function l(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function n(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function i(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function r(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function a(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
',' ','
','
    ','
  1. ',\" {{dateformat}}\",\"
  2. \",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function s(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function d(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function c(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no radio : add new radio values -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',\" \",\" \",' ',' \",' ',\" \",\" \",\" \",' ',' ',' ',' \",\" \",\" \",\"
orderoption
',' ',\"
{{$index}}{{radioRow.option}}','
',' ',' ',' ',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function p(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function u(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no option : add new options -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',\" \",\" \",' ',' \",' ',\" \",\" \",\" \",' ',' ',' ',' \",\" \",\" \",\"
orderoption
',' ',\"
{{$index}}{{basicSelectRow.option}}','
',' ',' ',' \t',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function m(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no option : add new options -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',' ',\" \",\" \",' ',' ',' \",' ',\" \",\" \",\" \",' ',' ',' \",' ',' \",\" \",\" \",\"
ordergroupoption
',' ',\"
{{$index}}','
','
','

- add new groups -

',\"
\",'
0\">','
    ','
  1. ',\" {{GroupedSelectGroup}}\",\"
  2. \",\"
\",\"
\",\"
\",'
',\" {{groupedSelectRow.group}}\",\"
\",\"
{{groupedSelectRow.option}}','
',' ',' ',' ',' ',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}var f=o();e.put(\"editPanelBlankCtrl-tpls.html\",t()),e.put(\"editPanelHeaderCtrl-tpls.html\",l()),e.put(\"editPanelSubTitleCtrl-tpls.html\",n()),e.put(\"editPanelTextInputCtrl-tpls.html\",i()),e.put(\"editPanelPasswordCtrl-tpls.html\",r()),e.put(\"editPanelDateCtrl-tpls.html\",a()),e.put(\"editPanelTextareaCtrl-tpls.html\",s()),e.put(\"editPanelRichTextEditorCtrl-tpls.html\",d()),e.put(\"editPanelRadioCtrl-tpls.html\",c()),e.put(\"editPanelCheckboxCtrl-tpls.html\",p()),e.put(\"editPanelBasicSelectCtrl-tpls.html\",u()),e.put(\"editPanelGroupedSelectCtrl-tpls.html\",m())}angular.module(\"edaApp\",[\"edaApp.providers\",\"edaApp.controllers\",\"edaApp.services\",\"edaApp.filters\",\"edaApp.directives\",\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"dndLists\",\"mgcrea.ngStrap.affix\",\"pageslide-directive\"]).value(\"easyFormGenVersion\",\"v1.0.18\").run(e),\ne.$inject=[\"$templateCache\"],angular.module(\"edaApp\").config([\"dragDropConfigProvider\",function(e){e.setItemsNotTocount({itemBeingDragged:\"dndDraggingSource\"})}]),angular.module(\"edaApp\").config([\"formlyConfigProvider\",\"EasyFormGenFormlyBindingModelsProvider\",\"dragDropConfigProvider\",function(e,o,t){function l(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"blank\",template:\"
\"}),o.addEasyFormControlToList({id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
',\"
\",\"
\",\"
\"].join(\"\"),control:\"empty\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"blank\"}),o.addEasyFormControlToList({id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

Header

',\"
\",\"
\",\"
\",\"
\"].join(\"\"),control:\"Header\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"headers\"});var n=['
','
','

{{options.templateOptions.placeholder}}

',\"
\",\"

\",\"
\"].join(\" \");e.setType({name:\"subTitle\",template:n}),o.addEasyFormControlToList({id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

SubTitle

',\"
\",\"
\",\"
\",\"
\"].join(\"\"),control:\"Subtitle\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"headers\"}),o.addEasyFormControlToList({id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' ','

Description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"TextInput\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"}),o.addEasyFormControlToList({id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' ','

Description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Password\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"});var i=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],r=[\"datepicker-mode\",\"min-date\",\"max-date\"],a={};angular.forEach(i,function(e){a[l(e)]={attribute:e}}),angular.forEach(r,function(e){a[l(e)]={bound:e}});var s=[\"\"].join(\" \");e.setType({name:\"datepicker\",template:s,wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:a,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,t){t.to.isOpen=!t.to.isOpen},datepickerOptions:{}}}}),o.addEasyFormControlToList({id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\"}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' \t\t\t\t\t
',' \t\t\t\t\t',' \t\t\t\t\t',\" \t\t\t\t\t
\",\"\t\t\t\t\t
\",'

description

',\"
\",\"
\"].join(\"\"),control:\"Date\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"}),o.addEasyFormControlToList({id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Texarea\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"textareas\"});var d=['',\"\"].join(\" \");e.setType({name:\"richEditor\",template:d}),o.addEasyFormControlToList({id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"RichTextEditor\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"textareas\"}),o.addEasyFormControlToList({id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
','
','
',' \",'
',' \",\"
\",'

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Radio\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"radios\"}),o.addEasyFormControlToList({id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",\"
\",'

description

',\"
\"].join(\"\"),control:\"Checkbox\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"checkboxes\"});var c=['
    ','
  1. ',\" {{option.name}} \",\"
  2. \",\"
\"].join(\"\");e.setType({name:\"basicSelect\",template:c}),o.addEasyFormControlToList({id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' \",\"
\",\"
\"].join(\"\"),control:\"BasicSelect\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"selects\"});var p=['
    ','
  1. ',' {{$group}}',\" \",\" {{option.name}}\",' ',\" \",\"
  2. \",\"
\"].join(\" \");e.setType({name:\"groupedSelect\",template:p}),o.addEasyFormControlToList({id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' \",\"
\",\"
\"].join(\"\"),control:\"GroupedSelect\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"selects\"})}]),angular.module(\"edaApp\").run([\"$templateCache\",function(e){e.put(\"editModalTemplate.html\",\"

no use right now

\")}]),angular.module(\"edaApp.providers.dragDropConfigProvider\",[]).provider(\"dragDropConfig\",[function(){function e(e,o){if(l[0].length>0){if(l[0].lengthi;i++)l[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){l[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}var o=[{cssClass:\"col-md-12\",numberItemPerRow:0},{cssClass:\"col-md-12\",numberItemPerRow:1},{cssClass:\"col-md-6\",numberItemPerRow:2},{cssClass:\"col-md-4\",numberItemPerRow:3}],t={dropZoneConfig:{decoration:[{WhenIndex:0,ApplycssClass:\"col-md-4\",fontAwesomeIcon:\"fa fa-level-up\",title:\"Drag control from here : \"},{WhenIndex:1,ApplycssClass:\"col-md-8\",fontAwesomeIcon:\"fa fa-level-down\",title:\"Drop control into here : \"}],verboseMode:!1},containerConfig:{decoration:[{WhenIndex:0,ApplycssClass:\"col-md-12\",title:\"Blank : \",groupId:\"blank\",isCollapsed:!0},{WhenIndex:1,ApplycssClass:\"col-md-12\",title:\"Headers : \",groupId:\"headers\",isCollapsed:!0},{WhenIndex:2,ApplycssClass:\"col-md-12\",title:\"Text inputs : \",groupId:\"inputs\",isCollapsed:!0},{WhenIndex:3,ApplycssClass:\"col-md-12\",title:\"Textareas : \",groupId:\"textareas\",isCollapsed:!0},{WhenIndex:4,ApplycssClass:\"col-md-12\",title:\"Radios : \",groupId:\"radios\",isCollapsed:!0},{WhenIndex:5,ApplycssClass:\"col-md-12\",title:\"Checkboxes : \",groupId:\"checkboxes\",isCollapsed:!0},{WhenIndex:6,ApplycssClass:\"col-md-12\",title:\"Selects : \",groupId:\"selects\",isCollapsed:!0}],verboseMode:!1,collapseEnabled:!0,collapseCtrl:[{atIndex:0,collapse:!0},{atIndex:1,collapse:!0}]},itemConfig:{verboseMode:!1}},l=[[],[[]]],n={itemBeingDragged:\"\"};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return n},this.setItemsNotTocount=function(e){n=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return l},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return n},e.getItemCssDependingNumberItemsInRow=function(e){if(\"undefined\"!=typeof e){for(var t=\"\",l=o.length-1;l>=0;l--)o[l].numberItemPerRow===e&&(t=o[l].cssClass);return t}return\"\"},e.getDistinctItemCssClass=function(){var e=[];return angular.forEach(o,function(o){var t=o.cssClass;if(0===e.length)e.push(t);else{var l=!0;angular.forEach(e,function(e){var o=e;t===o&&(l=!1)}),l&&e.push(t)}}),e},e.getDragDropConfigModel=function(){return t},e.setDragDropConfigContainerDecorationCollapse=function(e,o,t){return\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&o===parseInt(o,10)&&(e.containerConfig.decoration[o].isCollapsed=t),!0},e.getDragDropPresentationModel=function(){return l},e}]}]),angular.module(\"edaApp.providers.EasyFormGenFormlyBindingModels\",[]).provider(\"EasyFormGenFormlyBindingModels\",[function(){var e={controls:[],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[]}},o={line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]},t={control:{type:\"none\",key:\"none\"}},l={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[].concat(o)},n={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0},i={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]},r={cssClass:[\"col-xs-12\",\"col-xs-6\",\"col-xs-4\"],textContent:\"\",html_part1:['
','

'].join(\"\"),html_part3:this.textContent,html_part4:[\"

\",\"
\",\"

\"].join(\"\"),simpleHtml1:['

'].join(\"\"),simpleHtml2:[\"

\",\"
\"].join(\"\")},a={className:[\"col-xs-12\",\"col-xs-6\",\"col-xs-4\"],type:\"\",key:\"\",templateOptions:{type:\"\",label:\"\",required:\"\",placeholder:\"\",description:\"\",options:\"\"}},s=[{controlType:\"datepicker\",properties:[{isRoot:!1,isTemplateOptions:!0,value:\"datepickerPopup\"}]}];this.getAllParticularControlProperties=function(){return s},this.addParticularControlProperties=function(e){if(\"controlType\"in e&&\"properties\"in e){var o=!1;s.length>0&&s.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||s.push(e)}return s},this.getEasyFormListControls=function(){return e},this.addEasyFormControlToList=function(o){\"undefined\"!=typeof o&&e.controls.push(o)},this.getHeaderTemplates=function(){return r},this.addHeaderTemplateCssClass=function(e){\"undefined\"!=typeof e&&r.cssClass.push(e)},this.getFormlyControlTemplate=function(){return a},this.addformlyControlTemplatesCssClass=function(e){\"undefined\"!=typeof e&&a.className.push(e)},this.setFormlyControlTemplate=function(e){return\"className\"in e&&\"type\"in e&&\"key\"in e&&\"templateOptions\"in e&&(a=angular.copy(e)),!0},this.$get=[function(){var d={};return d.getEasyFormListControls=function(){return e},d.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(l);return\"undefined\"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return\"undefined\"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormEmptyConfigurationLineModel=function(){return o},d.getEasyFormConfigurationEmptyControlModel=function(){return t},d.getRawHeaderTemplates=function(){return r},d.getHeaderTemplateForNcolumnLine=function(e,o){if(\"undefined\"!=typeof e&&\"undefined\"!=typeof o&&e===parseInt(e,10)&&e<=r.cssClass.length){var t={};return t.className=r.cssClass[e-1],r.textContent=o,r.selectedClass=t.className,t.template=[r.simpleHtml1,o,r.simpleHtml2].join(\"\"),t}},d.getRawFormlyControlTemplates=function(){return a},d.getFormlyControlTemplateForNcolumnLine=function(e,o){if(\"undefined\"!=typeof e&&e===parseInt(e,10)&&e<=a.className.length){var t=angular.copy(a);return t.className=a.className[e-1],\"undefined\"!=typeof o&&s.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=\"\"),e.isTemplateOptions&&(t.templateOptions[e.value]=\"\")})}),t}},d}]}]),angular.module(\"edaApp.providers\",[\"edaApp.providers.dragDropConfigProvider\",\"edaApp.providers.EasyFormGenFormlyBindingModels\",function(){}]),angular.module(\"edaApp.controllers\",[\"edaApp.controllers.edaMainController\",\"edaApp.controllers.edaEditController\",\"edaApp.controllers.edaEditMODALController\",\"edaApp.controllers.edaEditPanelController\"]),angular.module(\"edaApp.controllers.edaEditController\",[]).controller(\"edaEditController\",[\"$scope\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"formsByIdService\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\",function(e,o,t,l,n,i,r,a,s,d,c,p,u,m,f){function g(){n.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function y(){s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}e.easyFormGeneratorVERSION=o,e.tab={editTab:{active:!0},previewTab:{active:!1}},e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.ihm={preview:{formlyModelViewExpanded:!0,formlyFieldsViewExpanded:!0,customizeFormButtonsExpanded:!0,saveThisFormExpanded:!0}},e.easyFormDragDropProperties=u.getDragDropConfigModel(),e.dragDropModel=[].concat(u.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},s.initConfigurationEditFromScratch(e.configuration,!1),c.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&u.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=g,e.resetToZeroModel=function(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()},e.countConfigurationModelLines=function(){return e.configuration.lines.length},e.setActiveLineNumber=function(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)},e.upThisLine=function(o){if(o>-1&&e.configuration.lines[o-1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.downThisLine=function(o){if(o>-1&&e.configuration.lines[o+1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.removeThisLine=function(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):i(function(){n.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))},e.increaseNumberOfColumns=function(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){if(\"undefined\"==typeof e.configuration.formName)return n.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1;if(\"\"===e.configuration.formName)return n.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1;n.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0});var o=new d;return o.formName=e.configuration.formName,o.submitButtonText=e.configuration.submitButtonText,o.cancelButtonText=e.configuration.cancelButtonText,o.formlyField=JSON.stringify(e.configuration.lines),n.clear(),n.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),!0},e.nyaSelect={},c.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,l){var n=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return c.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,l)}}});n.result.then(function(o){c.bindConfigurationModelFromModalReturn(t,l,o,e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},function(){a.info(\"Modal dismissed at: \"+new Date)})},e.dragoverCallbackContainer=function(e,o,t){return 0===t?!1:!0},e.dropCallback=function(o,t,l,n,r,a){if(n){if(\"itemType\"===a&&!l.label)return!1;if(\"containerType\"===a&&!angular.isArray(l))return!1}var d=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(d)}),l},e.dndItemMoved=function(o,t,l){o>0&&e.dragDropModel[o][t].splice(l,1)},e.dragoverCallbackItems=function(e,o,t,l){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,l,n,r,a,d,c,p,u){if(c){if(\"itemType\"===u&&!d.label)return!1;if(\"containerType\"===u&&!angular.isArray(d))return!1}var g=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return f.setUnRightClicked(d),e.$on(\"$destroy\",function(){i.cancel(g)}),d},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){c.bindSpecialCtrlTemporyModelsToProxyModel(),c.bindConfigurationModelFromProxyModel(c.getEditPanelModelLineIndex(),c.getEditPanelModelColumnIndex(),e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),f.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){f.resetAllDragDropItemSelectedState(e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.debugProxyModel=c.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,l,n){if(f.resetAllDragDropItemSelectedState(e.dragDropModel),c.getEditPanelModelToggle()){if(c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),\"undefined\"!=typeof c.getEditPanelModelLineIndex()&&\"undefined\"!=typeof c.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof c.getEditPanelModelControl())if(c.getEditPanelModelLineIndex()===t&&c.getEditPanelModelColumnIndex()===l&&angular.equals(c.getEditPanelModelControl(),n));else{n.rightCliked=!0;var r=i(function(){c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else n.rightCliked=!0,c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){y(),e.dragDropModel[1].push([])}}]),angular.module(\"edaApp.controllers.edaEditMODALController\",[]).controller(\"edaEditMODALController\",[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,l,n,i,r){function a(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.radioRowCollection.rows.push(t)}}function s(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.radioRowCollection.rows.length>0)for(var t=0;t<=e.radioRowCollection.rows.length-1;t++){var l={name:e.radioRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function d(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.basicSelectRowCollection.rows.push(t)}}function c(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.basicSelectRowCollection.rows.length>0)for(var t=0;t<=e.basicSelectRowCollection.rows.length-1;t++){var l={name:e.basicSelectRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function p(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0){for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:e.nyaSelect.temporyConfig.formlyOptions[o].group};e.groupedSelectRowCollection.rows.push(t)}var l=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(l,e.GroupedSelectGroups.list)}}function u(){e.nyaSelect.temporyConfig.formlyOptions=[];for(var o=0;o<=e.groupedSelectRowCollection.rows.length-1;o++){var t={name:e.groupedSelectRowCollection.rows[o].option,value:o,group:e.groupedSelectRowCollection.rows[o].group};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function m(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function f(){e.nyaSelect.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var g={rows:[]};if(e.radioRowCollection=g,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=function(){var o=i.addNewOptionRadio(e.radioRowCollection,e.newOptionRadio.saisie);o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionRadio={saisie:\"\"}},e.removeRadioRow=function(o){var t=i.removeOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisRadioRow=function(o){var t=i.upthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisRadioRow=function(o){var t=i.downthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.basicSelectRowCollection=g,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=function(){var o=i.addNewOptionBasicSelect(e.basicSelectRowCollection,e.newOptionBasicSelect.saisie);o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionBasicSelect={saisie:\"\"}},e.removeRow=function(o){var t=i.removeOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisRow=function(o){var t=i.upthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisRow=function(o){var t=i.downthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({\ntype:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.groupedSelectRowCollection=g,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=function(){e.groupSelectGroupClick.showList=!e.groupSelectGroupClick.showList},e.addNewGroupToGroupedSelect=function(){if(\"\"!==e.newGroupGroupedSelect.saisie){for(var o=e.GroupedSelectGroups.list.length-1;o>=0;o--)e.GroupedSelectGroups.list[o]===e.newGroupGroupedSelect.saisie&&l.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else l.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});e.newGroupGroupedSelect.saisie=\"\"},e.addNewOptionGroupedSelect=function(){var o=i.addNewOptionGroupedSelect(e.groupedSelectRowCollection,e.newOptionGroupedSelect.saisie,\"\");o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionGroupedSelect={saisie:\"\"}},e.removeGroupedSelectRow=function(o){var t=i.removeOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisGroupedSelectRow=function(o){var t=i.upthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisGroupedSelectRow=function(o){var t=i.downthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.demodt={},e.today=function(){e.demodt.dt=new Date},e.today(),e.clear=function(){e.demodt.dt=null},e.open=function(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0},e.dateOptions={formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null},e.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"],e.nyaSelect=t,e.nyaSelect.selectedControl=e.nyaSelect.temporyConfig.selectedControl,\"none\"!==t.selectedControl){for(var y=e.nyaSelect.controls.length-1;y>=0;y--)e.nyaSelect.controls[y].id===t.selectedControl&&(e.modelNyaSelect=t.controls[y]);\"BasicSelect\"===e.nyaSelect.selectedControl&&d(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&p(),\"Radio\"===e.nyaSelect.selectedControl&&a()}e.selectThisControl=function(o){e.nyaSelect.selectedControl=\"none\",f();for(var t=e.nyaSelect.controls.length-1;t>=0;t--)e.nyaSelect.controls[t].id===o&&(e.nyaSelect.selectedControl=e.nyaSelect.controls[t].id);\"Date\"===e.nyaSelect.selectedControl&&m()},e.ok=function(){\"BasicSelect\"===e.nyaSelect.selectedControl&&c(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&u(),\"Radio\"===e.nyaSelect.selectedControl&&s(),r.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)},e.cancel=function(){o.dismiss(\"cancel\")}}]),angular.module(\"edaApp.controllers.edaEditPanelController\",[]).controller(\"edaEditPanelController\",[\"$scope\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,l,n){function i(){a.proxyModel.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function r(){a.proxyModel.temporyConfig.datepickerPopup=a.demodt.formats[0]}var a=this;if(a.proxyModel=n.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=n.basicSelectRowCollection,a.newOptionBasicSelect=n.newOptionBasicSelect,a.groupedSelectRowCollection=n.groupedSelectRowCollection,a.newOptionGroupedSelect=n.newOptionGroupedSelect,a.GroupedSelectGroups=n.GroupedSelectGroups,a.newGroupGroupedSelect=n.newGroupGroupedSelect,a.groupSelectGroupClick=n.groupSelectGroupClick,a.radioRowCollection=n.radioRowCollection,a.newOptionRadio=n.newOptionRadio,n.resetAllTemporyModels(),\"none\"!==a.proxyModel.temporyConfig.selectedControl){for(var s=a.proxyModel.controls.length-1;s>=0;s--)a.proxyModel.controls[s].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[s]);\"BasicSelect\"===a.proxyModel.temporyConfig.selectedControl&&n.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),\"GroupedSelect\"===a.proxyModel.temporyConfig.selectedControl&&n.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),\"Radio\"===a.proxyModel.temporyConfig.selectedControl&&n.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return n.basicSelectRowCollection=a.basicSelectRowCollection,n.newOptionBasicSelect=a.newOptionBasicSelect,n.groupedSelectRowCollection=a.groupedSelectRowCollection,n.newOptionGroupedSelect=a.newOptionGroupedSelect,n.GroupedSelectGroups=a.GroupedSelectGroups,n.newGroupGroupedSelect=a.newGroupGroupedSelect,n.groupSelectGroupClick=a.groupSelectGroupClick,n.radioRowCollection=a.radioRowCollection,n.newOptionRadio=a.newOptionRadio,n.bindSpecialCtrlTemporyModelsToProxyModel(),!0},a.resetControl=function(){a.proxyModel.temporyConfig.formlyLabel=\"\",a.proxyModel.temporyConfig.formlyRequired=!1,a.proxyModel.temporyConfig.formlyPlaceholder=\"\",a.proxyModel.temporyConfig.formlyDesciption=\"\",a.proxyModel.temporyConfig.formlyOptions=[],a.proxyModel.temporyConfig.datepickerPopup=r()},a.selectThisControl=function(e){a.proxyModel.selectedControl=\"none\",i();for(var o=a.proxyModel.controls.length-1;o>=0;o--)a.proxyModel.controls[o].id===e&&(a.proxyModel.selectedControl=a.proxyModel.controls[o].id);\"Date\"===a.proxyModel.selectedControl&&r()},a.addNewOptionRadio=function(){var e=l.addNewOptionRadio(a.radioRowCollection,a.newOptionRadio.saisie);e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionRadio={saisie:\"\"}},a.removeRadioRow=function(e){var t=l.removeOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisRadioRow=function(e){var t=l.upthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisRadioRow=function(e){var t=l.downthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.addNewOptionBasicSelect=function(){var e=l.addNewOptionBasicSelect(a.basicSelectRowCollection,a.newOptionBasicSelect.saisie);e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionBasicSelect={saisie:\"\"}},a.removeRow=function(e){var t=l.removeOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisRow=function(e){var t=l.upthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisRow=function(e){var t=l.downthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.showGroupListToChoose=function(){a.groupSelectGroupClick.showList=!a.groupSelectGroupClick.showList},a.addNewGroupToGroupedSelect=function(){if(\"\"!==a.newGroupGroupedSelect.saisie){for(var e=a.GroupedSelectGroups.list.length-1;e>=0;e--)a.GroupedSelectGroups.list[e]===a.newGroupGroupedSelect.saisie&&o.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});a.GroupedSelectGroups.list.push(a.newGroupGroupedSelect.saisie)}else o.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});a.newGroupGroupedSelect.saisie=\"\"},a.addNewOptionGroupedSelect=function(){var e=l.addNewOptionGroupedSelect(a.groupedSelectRowCollection,a.newOptionGroupedSelect.saisie,\"\");e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionGroupedSelect={saisie:\"\"}},a.removeGroupedSelectRow=function(e){var t=l.removeOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisGroupedSelectRow=function(e){var t=l.upthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisGroupedSelectRow=function(e){var t=l.downthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.demodt={},a.today=function(){a.demodt.dt=new Date},a.today(),a.clear=function(){a.demodt.dt=null},a.open=function(e){e.preventDefault(),e.stopPropagation(),a.demodt.opened=!0},a.dateOptions={formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null},a.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"]}]),angular.module(\"edaApp.controllers.edaMainController\",[]).controller(\"edaMainController\",[function(){}]),angular.module(\"edaApp.directives.edaDdContentCounterDirective\",[]).directive(\"ddContentCounter\",[\"dragDropItemCounterService\",\"$timeout\",function(e,o){return{scope:{valueWhenPlaceholder:\"@ddValueWhenPlaceholder\",valueWhendragging:\"@ddValueWhenDragging\",fullModel:\"=ddFullModel\",currentIndex:\"@ddContentCounterCurrentIndex\",parentIndex:\"@ddContentCounterParentIndex\",forceRefresh:\"=ddContentCounterForceCssRefresh\"},restrict:\"A\",link:function(t,l){var n;t.$watch(function(){return l[0].children.length},function(i,r){if(i!==r){for(var a=0,s=[],d=l[0].children.length-1;d>=0;d--)e.isHtmlElementToCount(l[0].children[d].classList)?(a++,s.push({item:d,isReal:!0})):s.push({item:d,isReal:!1});t.contentRealCount=a,n=o(function(){e.updateLineItemCss(t.fullModel,s,t.parentIndex,t.currentIndex,a)},20)}}),t.$on(\"$destroy\",function(){console.warn(\"ddContentCounter timer destruction!\"),o.cancel(n)})}}}]),angular.module(\"edaApp.directives.edaDdDecorContainerDirective\",[]).directive(\"ddDecorContainer\",[function(){var e=['
','
 {{currentTitle}}
',\"
\",'
','
',\"
\"].join(\" \");return{scope:{styleParam:\"=ddContainerProperties\",isStillCollapsed:\"=ddContainerIsCollpased\",verboseMode:\"@ddContainerVerboseMode\",currentIndex:\"@ddContainerCurrentIndex\",collpaseAll:\"&ddCollapseAll\"},restrict:\"A\",template:e,transclude:!0,controller:function(e){e.config={isEnabled:!1},e.collapseFct=function(){e.collpaseAll({exceptThisOne:e.styleParam.WhenIndex}),e.isCollapsed=!e.isCollapsed,e.isStillCollapsed=e.isCollapsed},e.icons={closedClass:\"glyphicon glyphicon-eye-open\",opened:\"glyphicon glyphicon-eye-close\"},e.currentIconClass=function(){return e.isCollapsed?e.icons.closedClass:e.icons.opened}},link:function(e,o,t,l,n){var i=e.verboseMode,r=e.currentIndex;if(e.isCollapsed=!1,\"\"!==i){var a=angular.lowercase(i);(\"true\"===a||\"1\"===a)&&console.dir({whoAmI:\"I am verbose from ddDecorContainer link\",verbodeMode:a,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:r,styleParam:e.styleParam,columnindex:e.$parent.$parent.$parent.$parent.$index})}e.$watch(function(){return e.isStillCollapsed},function(o,t){o!==t&&0===e.$parent.$parent.$index&&(e.isCollapsed=o)}),e.config.isEnabled=!1,\"undefined\"!=typeof r&&\"\"!==r&&\"0\"===r&&\"undefined\"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title,e.config.isEnabled=!0,e.isCollapsed=!0),n(e.$parent,function(e){var t=angular.element(o.children()[1]);t.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdDecorDropZoneDirective\",[]).directive(\"ddDecorDropZone\",[function(){var e=['
','
','
','
','

','  ',\" {{currentTitle}}\",'
',' \",\"
\",\"

\",\"
\",'
','
','
',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\"].join(\" \");return{scope:{styleParam:\"=ddDropZoneProperties\",verboseMode:\"@ddDropZoneVerboseMode\",currentIndex:\"@ddDropZoneCurrentIndex\",addNewLineFct:\"&ddDropZoneAddNewLine\"},restrict:\"A\",template:e,transclude:!0,link:function(e){var o=e.verboseMode,t=e.currentIndex;if(e.headerConfig={HeaderButtonVisible:!1,affixAttr:\"bs-affix\",affixEnabled:!1},\"\"!==o){var l=angular.lowercase(o);(\"true\"===l||\"1\"===l)&&console.dir({whoAmI:\"I am verbose from ddDecorDropZone link\",verbodeMode:l,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:t,styleParam:e.styleParam})}\"undefined\"!=typeof t&&\"\"!==t&&(\"undefined\"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title),\"undefined\"!=typeof e.styleParam.fontAwesomeIcon&&(e.currentFontAwesome=e.styleParam.fontAwesomeIcon),\"1\"===t&&(e.headerConfig.HeaderButtonVisible=!0))}}}]),angular.module(\"edaApp.directives.edaDdDecorItemDirective\",[]).directive(\"ddDecorItem\",[\"dragDropConfig\",function(e){var o=[\"
\",'
',\"
\"].join(\" \");return{scope:{verboseMode:\"@ddItemVerboseMode\",currentIndex:\"@ddItemCurrentIndex\",parentIndex:\"@ddItemParentIndex\",parentParentIndex:\"@ddItemParentParentIndex\",lineItemsCount:\"@ddItemsCount\",cssClass:\"@ddItemCssClass\"},restrict:\"A\",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex,d=e.getDistinctItemCssClass();if(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch(\"cssClass\",function(e,o){e!==o&&(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(e))}),\"\"!==r){var c=angular.lowercase(r);(\"true\"===c||\"1\"===c)&&console.dir({whoAmI:\"I am verbose from ddDecorItem directive link\",verbodeMode:c,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}\"0\"===o.parentParentIndex&&t.addClass(d[0]),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdDecorLineDirective\",[]).directive(\"ddDecorLine\",[\"$timeout\",function(e){var o=['
',' ',\"
\",'
'].join(\" \");return{scope:{verboseMode:\"@ddLineVerboseMode\",currentIndex:\"@ddLineCurrentIndex\",parentIndex:\"@ddLineParentIndex\",removeLine:\"&ddRemoveLine\"},restrict:\"A\",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,\"\"!==r){var d=angular.lowercase(r);(\"true\"===d||\"1\"===d)&&console.dir({whoAmI:\"I am verbose from ddDecorLine directive link\",verbodeMode:d,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,currentIndex:a})}o.removeMe=function(t){t.preventDefault(),t.stopPropagation(),\"1\"===o.parentIndex&&(1===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1,o.removeLine(),e.cancel(c)),0===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=o.deleteLine.dblClickCount+1,o.deleteLine.readyToDelete=!0))};var c;o.cancelDelete=function(t){c=e(function(){o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1},500)},o.$on(\"$destroy\",function(){e.cancel(c)}),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdNoEditableControlDirective\",[]).directive(\"ddNoEditableControl\",[function(){return{restrict:\"A\",link:function(e,o){o.on(\"click\",function(e){e.preventDefault()})}}}]),angular.module(\"edaApp.directives\",[\"edaApp.directives.edaStRationDirective\",\"edaApp.directives.edaDdDecorDropZoneDirective\",\"edaApp.directives.edaDdDecorContainerDirective\",\"edaApp.directives.edaDdDecorLineDirective\",\"edaApp.directives.edaDdDecorItemDirective\",\"edaApp.directives.edaDdNoEditableControlDirective\",\"edaApp.directives.edaDdContentCounterDirective\",\"edaApp.directives.edaRightClickDirective\"]),angular.module(\"edaApp.directives.edaRightClickDirective\",[]).directive(\"edaRightClick\",[\"$parse\",function(e){return{restrict:\"A\",link:function(o,t,l){var n=e(l.edaRightClick),i=e(l.edaRightClickColIndex),r=e(l.edaSetRightClicked);t.on(\"contextmenu\",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&n(o,{$event:e})})})}}}]),angular.module(\"edaApp.directives.edaStRationDirective\",[]).directive(\"stRatio\",[function(){return{restrict:\"A\",link:function(e,o,t){var l=+t.stRatio;o.css(\"width\",l+\"%\")}}}]),angular.module(\"edaApp.services.dragDropItemCountersService\",[]).factory(\"dragDropItemCounterService\",[\"dragDropConfig\",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),l={};return l.getItemsNotToCount=function(){return t},l.getModelItemsRealCounter=function(){return o},l.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var l=e.length-1;l>=0;l--)e[l]===t&&(o&=!1)}),o},l.updateLineItemCss=function(o,t,l,n,i){if(\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&\"undefined\"!=typeof l&&\"undefined\"!=typeof n&&\"undefined\"!=typeof i){for(var r=o[l][n].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][l][r].cssClass=e.getItemCssDependingNumberItemsInRow(n);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if(\"undefined\"!=typeof t&&\"undefined\"!=typeof o){for(var l=o[t].length-1;l>=0;l--)for(var n=o[t][l].length-1;n>=0;n--)o[t][l][n].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][l].length);return!0}return!1},t}]),angular.module(\"edaApp.services.dragDropModelConfigModelProxyService\",[]).factory(\"ddModelConfModelProxyService\",[\"EasyFormGenFormlyBindingModels\",\"controllerModalProxy\",\"$parse\",function(e,o,t){function l(o){var l={},n=e.getEasyFormListControls(),i=t(\"controls\");return angular.forEach(i(n),function(e){e.id===o.control&&(l=e)}),l}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)\"undefined\"!=typeof o.lines[l].columns[n].control&&o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(e,o){var t=e+\"-\"+Date.now();return n(t,o)===!0?t:(t=e+\"-\"+Date.now(),n(t,o)===!0?t:t=e+\"-\"+Date.now())}function r(e,o,t){angular.forEach(t.lines,function(t,l){l===o&&(t.line=e)})}function a(e,o,l){t(\"control.selectedControl\").assign(o,t(\"selectedControl\")(e)),t(\"control.type\").assign(o,t(\"formlyType\")(e)),t(\"control.key\").assign(o,i(t(\"control.type\")(o),l)),t(\"control.subtype\").assign(o,t(\"formlySubtype\")(e)),t(\"control.templateOptions.label\").assign(o,t(\"formlyLabel\")(e)),t(\"control.templateOptions.required\").assign(o,t(\"formlyRequired\")(e)),t(\"control.templateOptions.description\").assign(o,t(\"formlyDesciption\")(e)),t(\"control.templateOptions.placeholder\").assign(o,t(\"formlyPlaceholder\")(e)),t(\"control.templateOptions.options\").assign(o,t(\"formlyOptions\")(e)),\"datepicker\"===t(\"control.type\")(o)&&t(\"control.templateOptions.datepickerPopup\").assign(o,t(\"datepickerPopup\")(e))}var s={};return s.refreshAllConfigurationFromDragAndDropModel=function(o,t){angular.copy(o);return o.lines=[],angular.forEach(t[1],function(t,n){o.lines.push(angular.copy(e.getEasyFormEmptyConfigurationLineModel())),r(n+1,n,o),angular.forEach(t,function(i,r){var s={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},d=l(t[r]);if(\"undefined\"!=typeof i.key){console.warn(\"debug dragdropModel show this control key : \"+i.key),s.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);s.control.className=c.className,s.control.cssClass=c.className}else a(d,s,o);\"undefined\"==typeof o.lines[n].columns[r]&&o.lines[n].columns.push(angular.copy(e.getEasyFormConfigurationEmptyControlModel())),o.lines[n].columns[r].control=angular.copy(s.control),o.lines[n].columns[r].numColumn=r+1,o.lines[n].columns[r].exist=!0})}),o},s.refreshControlsKeys=function(e,o){angular.forEach(e.lines,function(e,t){angular.forEach(e.columns,function(e,l){\"undefined\"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][l].key=e.control.key,o[1][t][l].configModelControl=angular.copy(e.control))})}),console.info(\"refreshControlsKeys\"),console.dir({when:\"starting\",\"configModel is \":angular.copy(e),\"dragDropModel is \":angular.copy(o)})},s}]),angular.module(\"edaApp.services.edaEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(o){var t=e.getEasyFormListControls();return angular.copy(t,o),!0}function t(){var o=e.getEasyFormListControls();return r.proxyModel=angular.copy(o),!0}function l(e){for(var o={selectedControl:\"none\",formlyType:\"none\",formlySubtype:\"none\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[]},t=e.controls.length-1;t>=0;t--)e.selectedControl===e.controls[t].id&&(o.selectedControl=e.selectedControl,o.formlyType=e.controls[t].formlyType,o.formlySubtype=e.controls[t].formlySubtype,o.formlyLabel=e.controls[t].formlyLabel,o.formlyRequired=e.controls[t].formlyRequired,o.formlyDesciption=e.controls[t].formlyDesciption,o.formlyPlaceholder=e.controls[t].formlyPlaceholder,o.formlyOptions=e.controls[t].formlyOptions,\"datepicker\"===e.controls[t].formlyType&&(o.datepickerPopup=e.controls[t].datepickerPopup));return o}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(o){var t=\"none\",l=angular.copy(e.getEasyFormListControls().controls);return l.forEach(function(e){return e.formlyType===o.type&&e.formlySubtype===o.subtype?t=e.id:void 0}),t}var r={};r.ProxyModel={},t(),r.initNyaSelect=function(e){return o(e)},r.getNyASelectFromSelectedLineColumn=function(e,t,l,n){return o(e),\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof t.lines[l].columns[n].control.selectedControl?t.lines[l].columns[n].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.label?t.lines[l].columns[n].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.required?t.lines[l].columns[n].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.description?t.lines[l].columns[n].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.placeholder?t.lines[l].columns[n].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.options?t.lines[l].columns[n].control.templateOptions.options:\"\",\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.datepickerPopup?t.lines[l].columns[n].control.templateOptions.datepickerPopup:\"\")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=l(t);i.lines[e].columns[o].control.selectedControl=r.selectedControl,i.lines[e].columns[o].control.type=r.formlyType,i.lines[e].columns[o].control.subtype=r.formlySubtype,i.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},i.lines[e].columns[o].control.templateOptions.label=r.formlyLabel,i.lines[e].columns[o].control.templateOptions.required=r.formlyRequired,i.lines[e].columns[o].control.templateOptions.description=r.formlyDesciption,i.lines[e].columns[o].control.templateOptions.placeholder=r.formlyPlaceholder,i.lines[e].columns[o].control.templateOptions.options=r.formlyOptions,\"datepicker\"===i.lines[e].columns[o].control.type&&(i.lines[e].columns[o].control.templateOptions.datepickerPopup=r.datepickerPopup);var a=i.lines[e].columns[o].control.type+\"-\"+Date.now();n(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+\"-\"+Date.now(),n(a,i)===!0?i.lines[e].columns[o].control.key=a:a=i.lines[e].columns[o].control.type+\"-\"+Date.now()),i.lines[e].columns[o].control.edited=!0},r.applyConfigToSelectedControl=function(e){for(var o=e.controls.length-1;o>=0;o--)e.controls[o].id===e.selectedControl&&(e.controls[o].formlyLabel=e.temporyConfig.formlyLabel,e.controls[o].formlyRequired=e.temporyConfig.formlyRequired,e.controls[o].formlyDesciption=e.temporyConfig.formlyDesciption,e.controls[o].formlyPlaceholder=e.temporyConfig.formlyPlaceholder,e.controls[o].formlyOptions=e.temporyConfig.formlyOptions,\"Date\"===e.controls[o].id&&(e.controls[o].datepickerPopup=e.temporyConfig.datepickerPopup))},r.initProxyModel=function(e){return t(e)},r.bindConfigurationModelFromProxyModel=function(e,o,t){var l=angular.copy(r.proxyModel.temporyConfig);console.warn(\"debug edaEditCtrlControllerModalProxy\"),console.dir(l),t.lines[e].columns[o].control.selectedControl=l.selectedControl,t.lines[e].columns[o].control.type=l.formlyType,t.lines[e].columns[o].control.subtype=l.formlySubtype,t.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},t.lines[e].columns[o].control.templateOptions.label=l.formlyLabel,t.lines[e].columns[o].control.templateOptions.required=l.formlyRequired,t.lines[e].columns[o].control.templateOptions.description=l.formlyDesciption,t.lines[e].columns[o].control.templateOptions.placeholder=l.formlyPlaceholder,t.lines[e].columns[o].control.templateOptions.options=l.formlyOptions,\"datepicker\"===t.lines[e].columns[o].control.type&&(t.lines[e].columns[o].control.templateOptions.datepickerPopup=l.datepickerPopup);var i=t.lines[e].columns[o].control.type+\"-\"+Date.now();n(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),n(i,t)===!0?t.lines[e].columns[o].control.key=i:i=t.lines[e].columns[o].control.type+\"-\"+Date.now()),t.lines[e].columns[o].control.edited=!0},r.setProxyModelFromConfigurationSelection=function(e,o,t){return\"undefined\"!=typeof e.lines[o].columns[t].control&&(r.proxyModel.selectedControl=\"undefined\"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):\"none\",r.proxyModel.temporyConfig.selectedControl=\"undefined\"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):\"none\",r.proxyModel.temporyConfig.formlyType=\"undefined\"!=typeof e.lines[o].columns[t].control.type?e.lines[o].columns[t].control.type:\"none\",r.proxyModel.temporyConfig.formlySubtype=\"undefined\"!=typeof e.lines[o].columns[t].control.subtype?e.lines[o].columns[t].control.subtype:\"none\",r.proxyModel.temporyConfig.formlyLabel=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.label?e.lines[o].columns[t].control.templateOptions.label:\"\",r.proxyModel.temporyConfig.formlyRequired=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.required?e.lines[o].columns[t].control.templateOptions.required:\"\",r.proxyModel.temporyConfig.formlyDesciption=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.description?e.lines[o].columns[t].control.templateOptions.description:\"\",r.proxyModel.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.placeholder?e.lines[o].columns[t].control.templateOptions.placeholder:\"\",r.proxyModel.temporyConfig.formlyOptions=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.options?e.lines[o].columns[t].control.templateOptions.options:\"\",\"Date\"===r.proxyModel.temporyConfig.selectedControl&&(r.proxyModel.temporyConfig.datepickerPopup=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.datepickerPopup?e.lines[o].columns[t].control.templateOptions.datepickerPopup:\"\")),r.proxyModel},r.getProxyModel=function(){return r.proxyModel};var a={toggle:!1,lineIndex:-1,columnIndex:-1,control:{}};r.getEditPanelModelAllModel=function(){return a},r.setEditPanelModelControl=function(e){var o=!1;return\"undefined\"!=typeof e&&(a=angular.copy(e),o=!0),o},r.getEditPanelModelColumnIndex=function(){return a.columnIndex},r.setEditPanelModelColumnIndex=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.columnIndex=e,o=!0),o},r.getEditPanelModelLineIndex=function(){return a.lineIndex},r.setEditPanelModelLineIndex=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.lineIndex=e,o=!0),o},r.getEditPanelModelControl=function(){return a.control},r.setEditPanelModelControl=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.control=angular.copy(e),o=!0),o},r.getEditPanelModelToggle=function(){return a.toggle},r.setEditPanelModelToggle=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.toggle=e,o=!0),o};var s={rows:[]};return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:\"\"}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:\"\"}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:\"\"}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:\"\"}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:\"\"}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:\"\"}),!0},r.bindSpecialCtrlTemporyModelsToProxyModel=function(){\n\"BasicSelect\"===r.proxyModel.selectedControl&&r.bindBasicSelectToProxyModel(r.basicSelectRowCollection),\"GroupedSelect\"===r.proxyModel.selectedControl&&r.bindGroupedSelectToProxyModel(r.groupedSelectRowCollection),\"Radio\"===r.proxyModel.selectedControl&&r.bindRadioToProxyModel(r.radioRowCollection)},r.bindBasicSelectFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.rows.push(t)}},r.bindBasicSelectToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r.bindGroupedSelectFromProxyModel=function(e,o){if(r.proxyModel.temporyConfig.formlyOptions.length>0){for(var t=0;t<=r.proxyModel.temporyConfig.formlyOptions.length-1;t++){var l={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(l)}var n=_.uniq(_.pluck(e.rows,\"group\"));angular.copy(n,o.list)}},r.bindGroupedSelectToProxyModel=function(e){r.proxyModel.temporyConfig.formlyOptions=[];for(var o=0;o<=e.rows.length-1;o++){var t={name:e.rows[o].option,value:o,group:e.rows[o].group};r.proxyModel.temporyConfig.formlyOptions.push(t)}},r.bindRadioFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.rows.push(t)}},r.bindRadioToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r}]),angular.module(\"edaApp.services.formFieldManage\",[]).factory(\"formFieldManage\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,l){var n=t.lines[l].columns.length,i=o.push({className:\"row\",fieldGroup:[]})-1;t.lines[l].columns.forEach(function(t,l){var r={};if(\"undefined\"!=typeof r&&\"none\"!==t.control.type){if(\"header\"===t.control.type||\"subTitle\"===t.control.type){var a=t.control.templateOptions.description;r.template=e.getHeaderTemplateForNcolumnLine(n,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(n,t.control.type),r.className=t.control.className,r.type=t.control.type,r.key=t.control.key,r.templateOptions.type=t.control.templateOptions.type,r.templateOptions.label=t.control.templateOptions.label,r.templateOptions.required=t.control.templateOptions.required,r.templateOptions.placeholder=t.control.templateOptions.placeholder,r.templateOptions.description=t.control.templateOptions.description,r.templateOptions.options=[].concat(t.control.templateOptions.options),\"undefined\"!=typeof r.templateOptions.datepickerPopup&&(t.control.templateOptions.datepickerPopup=r.templateOptions.datepickerPopup);o[i].fieldGroup.push(r)}})}function l(e){var o={};return angular.copy(o,e),!0}function n(e,o){var t={noError:!1,title:\"\",Message:\"\"};return t.noError=!1,t.title=e,t.Message=o,t}function i(e,o){var t={noError:!1,title:\"\",Message:\"\"};return t.noError=!0,t.title=e,t.Message=o,t}var r={};return r.initConfigurationEditFromScratch=function(o,t){var l=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(l,o)},r.bindConfigurationLines=function(o,t,l){if(\"[object Array]\"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(l);return r.lines=[].concat(t),angular.copy(r,o),i(\"configuration model is bound\",\"lines are bound to configuration model.\")}return n(\"lines is not an array\",\"Checks lines type, it is not an array.\")},r.applyConfigurationToformlyModel=function(e,n,i){o(n),l(i);for(var r=e.lines.length,a=0;r>a;a++)t(n,e,a)},r}]),angular.module(\"edaApp.services.formsByIdService\",[\"ngResource\"]).factory(\"formsByIdService\",[\"$resource\",function(e){return e(\"/api/formGen/:id\",{id:\"@id\"},{})}]),angular.module(\"edaApp.services.selectOptionManage\",[]).factory(\"selectOptionManage\",[function(){function e(e,o){var t={resultFlag:!1,details:\"\"};if(\"undefined\"==typeof o)return t.resultFlag=!1,t.details=\"Entered option is empty\",t;if(\"\"!==o){for(var l=e.rows.length-1;l>=0;l--)if(e.rows[l].option===o)return t.resultFlag=!1,t.details=\"Entered option is not unique\",t;return t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Entered option is empty\",t}function o(e){var o={rows:[]};angular.copy(o,e)}return{testMe:function(){return\"selectOptionManage is here.\"},initModel:function(e){o(e)},isOptionUnique:function(e,o){for(var t=e.rows.length-1;t>=0;t--)if(e.rows[t].option===o)return!1;return!0},isOptionValidFormat:function(e){return\"\"!==e?!0:!1},addNewOptionRadio:function(o,t){var l={resultFlag:!1,details:\"\"},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details=\"\",l}return angular.copy(n,l),l},addNewOptionBasicSelect:function(o,t){var l={resultFlag:!1,details:\"\"},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details=\"\",l}return angular.copy(n,l),l},addNewOptionGroupedSelect:function(o,t,l){var n={resultFlag:!1,details:\"\"},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:l,order:o.rows.length};return o.rows.push(r),n.resultFlag=!0,n.details=\"\",n}return angular.copy(i,n),n},removeOption:function(e,o){var t={resultFlag:!1,details:\"\"};return-1!==o?(e.rows.splice(o,1),t.resultFlag=!0,t.details=\"\",t):(t.resultFlag=!1,t.details=\"Option index not valid\",t)},upthisOption:function(e,o){var t={resultFlag:!1,details:\"\"};if(o>-1){if(o>0){if(e.rows[o-1]){var l=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,l),t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Can't retreive option from option index\",t}return t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Option index not valid\",t},downthisOption:function(e,o){var t={resultFlag:!1,details:\"\"};if(o>-1){if(o','\t\",'\t\",\"
\"].join(\"\")}function t(){return['
','
','\t
','\t
','\t
  Edit :
',\"\t
\",\"\t
\",'\t
','\t
','\t
Column will be blank
',\"\t
\",\"\t
\",\"
\",f,\"
\"].join(\"\")}function l(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function n(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function i(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function r(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function a(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
',' ','
','
    ','
  1. ',\" {{dateformat}}\",\"
  2. \",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function s(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function d(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function c(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no radio : add new radio values -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',\" \",\" \",' ',' \",' ',\" \",\" \",\" \",' ',' ',' ',' \",\" \",\" \",\"
orderoption
',' ',\"
{{$index}}{{radioRow.option}}','
',' ',' ',' ',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function p(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
','
 
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function u(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no option : add new options -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',\" \",\" \",' ',' \",' ',\" \",\" \",\" \",' ',' ',' ',' \",\" \",\" \",\"
orderoption
',' ',\"
{{$index}}{{basicSelectRow.option}}','
',' ',' ',' \t',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}function m(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
',\"
\",'
','
',' ',\"
\",'
',' ',\"
\",\"
\",\"
\",\"
\",'
','
',' ',\"
\",\"
\",'
','
','
','
','
','
- no option : add new options -
',\"
\",' 0\" class=\"table table-striped\">',\" \",\" \",' ',' ',' ',' ',\" \",\" \",' ',' ',' \",' ',\" \",\" \",\" \",' ',' ',' \",' ',' \",\" \",\" \",\"
ordergroupoption
',' ',\"
{{$index}}','
','
','

- add new groups -

',\"
\",'
0\">','
    ','
  1. ',\" {{GroupedSelectGroup}}\",\"
  2. \",\"
\",\"
\",\"
\",'
',\" {{groupedSelectRow.group}}\",\"
\",\"
{{groupedSelectRow.option}}','
',' ',' ',' ',' ',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\t\t
\",\"
\",\"
\",\"
\",f,\"
\"].join(\"\")}var f=o();e.put(\"editPanelBlankCtrl-tpls.html\",t()),e.put(\"editPanelHeaderCtrl-tpls.html\",l()),e.put(\"editPanelSubTitleCtrl-tpls.html\",n()),e.put(\"editPanelTextInputCtrl-tpls.html\",i()),e.put(\"editPanelPasswordCtrl-tpls.html\",r()),e.put(\"editPanelDateCtrl-tpls.html\",a()),e.put(\"editPanelTextareaCtrl-tpls.html\",s()),e.put(\"editPanelRichTextEditorCtrl-tpls.html\",d()),e.put(\"editPanelRadioCtrl-tpls.html\",c()),e.put(\"editPanelCheckboxCtrl-tpls.html\",p()),e.put(\"editPanelBasicSelectCtrl-tpls.html\",u()),e.put(\"editPanelGroupedSelectCtrl-tpls.html\",m())}angular.module(\"edaApp\",[\"edaApp.providers\",\"edaApp.controllers\",\"edaApp.services\",\"edaApp.filters\",\"edaApp.directives\",\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"dndLists\",\"mgcrea.ngStrap.affix\",\"pageslide-directive\"]).value(\"easyFormGenVersion\",\"v1.0.19\").run(e),\ne.$inject=[\"$templateCache\"],angular.module(\"edaApp\").config([\"dragDropConfigProvider\",function(e){e.setItemsNotTocount({itemBeingDragged:\"dndDraggingSource\"})}]),angular.module(\"edaApp\").config([\"formlyConfigProvider\",\"EasyFormGenFormlyBindingModelsProvider\",\"dragDropConfigProvider\",function(e,o,t){function l(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"blank\",template:\"
\"}),o.addEasyFormControlToList({id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
',\"
\",\"
\",\"
\"].join(\"\"),control:\"empty\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"blank\"}),o.addEasyFormControlToList({id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

Header

',\"
\",\"
\",\"
\",\"
\"].join(\"\"),control:\"Header\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"headers\"});var n=['
','
','

{{options.templateOptions.placeholder}}

',\"
\",\"

\",\"
\"].join(\" \");e.setType({name:\"subTitle\",template:n}),o.addEasyFormControlToList({id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','

SubTitle

',\"
\",\"
\",\"
\",\"
\"].join(\"\"),control:\"Subtitle\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"headers\"}),o.addEasyFormControlToList({id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' ','

Description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"TextInput\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"}),o.addEasyFormControlToList({id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' ','

Description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Password\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"});var i=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],r=[\"datepicker-mode\",\"min-date\",\"max-date\"],a={};angular.forEach(i,function(e){a[l(e)]={attribute:e}}),angular.forEach(r,function(e){a[l(e)]={bound:e}});var s=[\"\"].join(\" \");e.setType({name:\"datepicker\",template:s,wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:a,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,t){t.to.isOpen=!t.to.isOpen},datepickerOptions:{}}}}),o.addEasyFormControlToList({id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\"}),t.addControlToDragDropPresentationModel({label:['
','
',' \",'
',' \t\t\t\t\t
',' \t\t\t\t\t',' \t\t\t\t\t',\" \t\t\t\t\t
\",\"\t\t\t\t\t
\",'

description

',\"
\",\"
\"].join(\"\"),control:\"Date\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"inputs\"}),o.addEasyFormControlToList({id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Texarea\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"textareas\"});var d=['',\"\"].join(\" \");e.setType({name:\"richEditor\",template:d}),o.addEasyFormControlToList({id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
',' ','

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"RichTextEditor\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"textareas\"}),o.addEasyFormControlToList({id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' ','
','
','
',' \",'
',' \",\"
\",'

description

',\"
\",\"
\",\"
\"].join(\"\"),control:\"Radio\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"radios\"}),o.addEasyFormControlToList({id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
',' \",\"
\",'

description

',\"
\"].join(\"\"),control:\"Checkbox\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"checkboxes\"});var c=['
    ','
  1. ',\" {{option.name}} \",\"
  2. \",\"
\"].join(\"\");e.setType({name:\"basicSelect\",template:c}),o.addEasyFormControlToList({id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' \",\"
\",\"
\"].join(\"\"),control:\"BasicSelect\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"selects\"});var p=['
    ','
  1. ',' {{$group}}',\" \",\" {{option.name}}\",' ',\" \",\"
  2. \",\"
\"].join(\" \");e.setType({name:\"groupedSelect\",template:p}),o.addEasyFormControlToList({id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[]}),t.addControlToDragDropPresentationModel({label:['
','
','
','
    ',' \",\"
\",\"
\"].join(\"\"),control:\"GroupedSelect\",cssClass:\"col-xs-12\"},{addToGroupCtrl:\"selects\"})}]),angular.module(\"edaApp\").run([\"$templateCache\",function(e){e.put(\"editModalTemplate.html\",\"

no use right now

\")}]),angular.module(\"edaApp.providers.dragDropConfigProvider\",[]).provider(\"dragDropConfig\",[function(){function e(e,o){if(l[0].length>0){if(l[0].lengthi;i++)l[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){l[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&l[0][t.WhenIndex].push(e)})}var o=[{cssClass:\"col-md-12\",numberItemPerRow:0},{cssClass:\"col-md-12\",numberItemPerRow:1},{cssClass:\"col-md-6\",numberItemPerRow:2},{cssClass:\"col-md-4\",numberItemPerRow:3}],t={dropZoneConfig:{decoration:[{WhenIndex:0,ApplycssClass:\"col-md-4\",fontAwesomeIcon:\"fa fa-level-up\",title:\"Drag control from here : \"},{WhenIndex:1,ApplycssClass:\"col-md-8\",fontAwesomeIcon:\"fa fa-level-down\",title:\"Drop control into here : \"}],verboseMode:!1},containerConfig:{decoration:[{WhenIndex:0,ApplycssClass:\"col-md-12\",title:\"Blank : \",groupId:\"blank\",isCollapsed:!0},{WhenIndex:1,ApplycssClass:\"col-md-12\",title:\"Headers : \",groupId:\"headers\",isCollapsed:!0},{WhenIndex:2,ApplycssClass:\"col-md-12\",title:\"Text inputs : \",groupId:\"inputs\",isCollapsed:!0},{WhenIndex:3,ApplycssClass:\"col-md-12\",title:\"Textareas : \",groupId:\"textareas\",isCollapsed:!0},{WhenIndex:4,ApplycssClass:\"col-md-12\",title:\"Radios : \",groupId:\"radios\",isCollapsed:!0},{WhenIndex:5,ApplycssClass:\"col-md-12\",title:\"Checkboxes : \",groupId:\"checkboxes\",isCollapsed:!0},{WhenIndex:6,ApplycssClass:\"col-md-12\",title:\"Selects : \",groupId:\"selects\",isCollapsed:!0}],verboseMode:!1,collapseEnabled:!0,collapseCtrl:[{atIndex:0,collapse:!0},{atIndex:1,collapse:!0}]},itemConfig:{verboseMode:!1}},l=[[],[[]]],n={itemBeingDragged:\"\"};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return n},this.setItemsNotTocount=function(e){n=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return l},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return n},e.getItemCssDependingNumberItemsInRow=function(e){if(\"undefined\"!=typeof e){for(var t=\"\",l=o.length-1;l>=0;l--)o[l].numberItemPerRow===e&&(t=o[l].cssClass);return t}return\"\"},e.getDistinctItemCssClass=function(){var e=[];return angular.forEach(o,function(o){var t=o.cssClass;if(0===e.length)e.push(t);else{var l=!0;angular.forEach(e,function(e){var o=e;t===o&&(l=!1)}),l&&e.push(t)}}),e},e.getDragDropConfigModel=function(){return t},e.setDragDropConfigContainerDecorationCollapse=function(e,o,t){return\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&o===parseInt(o,10)&&(e.containerConfig.decoration[o].isCollapsed=t),!0},e.getDragDropPresentationModel=function(){return l},e}]}]),angular.module(\"edaApp.providers.EasyFormGenFormlyBindingModels\",[]).provider(\"EasyFormGenFormlyBindingModels\",[function(){var e={controls:[],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[]}},o={line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]},t={control:{type:\"none\",key:\"none\"}},l={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[].concat(o)},n={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0},i={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]},r={cssClass:[\"col-xs-12\",\"col-xs-6\",\"col-xs-4\"],textContent:\"\",html_part1:['
','

'].join(\"\"),html_part3:this.textContent,html_part4:[\"

\",\"
\",\"

\"].join(\"\"),simpleHtml1:['

'].join(\"\"),simpleHtml2:[\"

\",\"
\"].join(\"\")},a={className:[\"col-xs-12\",\"col-xs-6\",\"col-xs-4\"],type:\"\",key:\"\",templateOptions:{type:\"\",label:\"\",required:\"\",placeholder:\"\",description:\"\",options:\"\"}},s=[{controlType:\"datepicker\",properties:[{isRoot:!1,isTemplateOptions:!0,value:\"datepickerPopup\"}]}];this.getAllParticularControlProperties=function(){return s},this.addParticularControlProperties=function(e){if(\"controlType\"in e&&\"properties\"in e){var o=!1;s.length>0&&s.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||s.push(e)}return s},this.getEasyFormListControls=function(){return e},this.addEasyFormControlToList=function(o){\"undefined\"!=typeof o&&e.controls.push(o)},this.getHeaderTemplates=function(){return r},this.addHeaderTemplateCssClass=function(e){\"undefined\"!=typeof e&&r.cssClass.push(e)},this.getFormlyControlTemplate=function(){return a},this.addformlyControlTemplatesCssClass=function(e){\"undefined\"!=typeof e&&a.className.push(e)},this.setFormlyControlTemplate=function(e){return\"className\"in e&&\"type\"in e&&\"key\"in e&&\"templateOptions\"in e&&(a=angular.copy(e)),!0},this.$get=[function(){var d={};return d.getEasyFormListControls=function(){return e},d.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(l);return\"undefined\"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return\"undefined\"!=typeof e&&e&&angular.extend(o,n),o},d.getEasyFormEmptyConfigurationLineModel=function(){return o},d.getEasyFormConfigurationEmptyControlModel=function(){return t},d.getRawHeaderTemplates=function(){return r},d.getHeaderTemplateForNcolumnLine=function(e,o){if(\"undefined\"!=typeof e&&\"undefined\"!=typeof o&&e===parseInt(e,10)&&e<=r.cssClass.length){var t={};return t.className=r.cssClass[e-1],r.textContent=o,r.selectedClass=t.className,t.template=[r.simpleHtml1,o,r.simpleHtml2].join(\"\"),t}},d.getRawFormlyControlTemplates=function(){return a},d.getFormlyControlTemplateForNcolumnLine=function(e,o){if(\"undefined\"!=typeof e&&e===parseInt(e,10)&&e<=a.className.length){var t=angular.copy(a);return t.className=a.className[e-1],\"undefined\"!=typeof o&&s.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=\"\"),e.isTemplateOptions&&(t.templateOptions[e.value]=\"\")})}),t}},d}]}]),angular.module(\"edaApp.providers\",[\"edaApp.providers.dragDropConfigProvider\",\"edaApp.providers.EasyFormGenFormlyBindingModels\",function(){}]),angular.module(\"edaApp.controllers\",[\"edaApp.controllers.edaMainController\",\"edaApp.controllers.edaEditController\",\"edaApp.controllers.edaEditMODALController\",\"edaApp.controllers.edaEditPanelController\"]),angular.module(\"edaApp.controllers.edaEditController\",[]).controller(\"edaEditController\",[\"$scope\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"formsByIdService\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\",function(e,o,t,l,n,i,r,a,s,d,c,p,u,m,f){function g(){n.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function y(){s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}e.easyFormGeneratorVERSION=o,e.tab={editTab:{active:!0},previewTab:{active:!1}},e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.ihm={preview:{formlyModelViewExpanded:!0,formlyFieldsViewExpanded:!0,customizeFormButtonsExpanded:!0,saveThisFormExpanded:!0}},e.easyFormDragDropProperties=u.getDragDropConfigModel(),e.dragDropModel=[].concat(u.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},s.initConfigurationEditFromScratch(e.configuration,!1),c.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&u.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=g,e.resetToZeroModel=function(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()},e.countConfigurationModelLines=function(){return e.configuration.lines.length},e.setActiveLineNumber=function(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)},e.upThisLine=function(o){if(o>-1&&e.configuration.lines[o-1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.downThisLine=function(o){if(o>-1&&e.configuration.lines[o+1]){var t=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,t),e.configuration.activeLine=1}s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.removeThisLine=function(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):i(function(){n.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))},e.increaseNumberOfColumns=function(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){if(\"undefined\"==typeof e.configuration.formName)return n.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1;if(\"\"===e.configuration.formName)return n.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1;n.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0});var o=new d;return o.formName=e.configuration.formName,o.submitButtonText=e.configuration.submitButtonText,o.cancelButtonText=e.configuration.cancelButtonText,o.formlyField=JSON.stringify(e.configuration.lines),n.clear(),n.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),!0},e.nyaSelect={},c.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,l){var n=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return c.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,l)}}});n.result.then(function(o){c.bindConfigurationModelFromModalReturn(t,l,o,e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},function(){a.info(\"Modal dismissed at: \"+new Date)})},e.dragoverCallbackContainer=function(e,o,t){return 0===t?!1:!0},e.dropCallback=function(o,t,l,n,r,a){if(n){if(\"itemType\"===a&&!l.label)return!1;if(\"containerType\"===a&&!angular.isArray(l))return!1}var d=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(d)}),l},e.dndItemMoved=function(o,t,l){o>0&&e.dragDropModel[o][t].splice(l,1)},e.dragoverCallbackItems=function(e,o,t,l){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,l,n,r,a,d,c,p,u){if(c){if(\"itemType\"===u&&!d.label)return!1;if(\"containerType\"===u&&!angular.isArray(d))return!1}var g=i(function(){e.configuration=angular.copy(m.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return f.setUnRightClicked(d),e.$on(\"$destroy\",function(){i.cancel(g)}),d},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){c.bindSpecialCtrlTemporyModelsToProxyModel(),c.bindConfigurationModelFromProxyModel(c.getEditPanelModelLineIndex(),c.getEditPanelModelColumnIndex(),e.configuration),s.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),m.refreshControlsKeys(e.configuration,e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),f.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){f.resetAllDragDropItemSelectedState(e.dragDropModel),c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.debugProxyModel=c.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,l,n){if(f.resetAllDragDropItemSelectedState(e.dragDropModel),c.getEditPanelModelToggle()){if(c.setEditPanelModelToggle(!1),e.editPanelModel.toggle=c.getEditPanelModelToggle(),\"undefined\"!=typeof c.getEditPanelModelLineIndex()&&\"undefined\"!=typeof c.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof c.getEditPanelModelControl())if(c.getEditPanelModelLineIndex()===t&&c.getEditPanelModelColumnIndex()===l&&angular.equals(c.getEditPanelModelControl(),n));else{n.rightCliked=!0;var r=i(function(){c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else n.rightCliked=!0,c.setEditPanelModelLineIndex(t),c.setEditPanelModelColumnIndex(l),c.setEditPanelModelControl(n),c.setProxyModelFromConfigurationSelection(e.configuration,t,l),c.setEditPanelModelToggle(!0),e.editPanelModel.toggle=c.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){y(),e.dragDropModel[1].push([])}}]),angular.module(\"edaApp.controllers.edaEditMODALController\",[]).controller(\"edaEditMODALController\",[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,l,n,i,r){function a(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.radioRowCollection.rows.push(t)}}function s(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.radioRowCollection.rows.length>0)for(var t=0;t<=e.radioRowCollection.rows.length-1;t++){var l={name:e.radioRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function d(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.basicSelectRowCollection.rows.push(t)}}function c(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.basicSelectRowCollection.rows.length>0)for(var t=0;t<=e.basicSelectRowCollection.rows.length-1;t++){var l={name:e.basicSelectRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function p(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0){for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var t={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:e.nyaSelect.temporyConfig.formlyOptions[o].group};e.groupedSelectRowCollection.rows.push(t)}var l=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(l,e.GroupedSelectGroups.list)}}function u(){e.nyaSelect.temporyConfig.formlyOptions=[];for(var o=0;o<=e.groupedSelectRowCollection.rows.length-1;o++){var t={name:e.groupedSelectRowCollection.rows[o].option,value:o,group:e.groupedSelectRowCollection.rows[o].group};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function m(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function f(){e.nyaSelect.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var g={rows:[]};if(e.radioRowCollection=g,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=function(){var o=i.addNewOptionRadio(e.radioRowCollection,e.newOptionRadio.saisie);o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionRadio={saisie:\"\"}},e.removeRadioRow=function(o){var t=i.removeOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisRadioRow=function(o){var t=i.upthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisRadioRow=function(o){var t=i.downthisOption(e.radioRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.basicSelectRowCollection=g,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=function(){var o=i.addNewOptionBasicSelect(e.basicSelectRowCollection,e.newOptionBasicSelect.saisie);o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionBasicSelect={saisie:\"\"}},e.removeRow=function(o){var t=i.removeOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisRow=function(o){var t=i.upthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisRow=function(o){var t=i.downthisOption(e.basicSelectRowCollection,o);t.resultFlag===!1&&l.pop({\ntype:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.groupedSelectRowCollection=g,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=function(){e.groupSelectGroupClick.showList=!e.groupSelectGroupClick.showList},e.addNewGroupToGroupedSelect=function(){if(\"\"!==e.newGroupGroupedSelect.saisie){for(var o=e.GroupedSelectGroups.list.length-1;o>=0;o--)e.GroupedSelectGroups.list[o]===e.newGroupGroupedSelect.saisie&&l.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else l.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});e.newGroupGroupedSelect.saisie=\"\"},e.addNewOptionGroupedSelect=function(){var o=i.addNewOptionGroupedSelect(e.groupedSelectRowCollection,e.newOptionGroupedSelect.saisie,\"\");o.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionGroupedSelect={saisie:\"\"}},e.removeGroupedSelectRow=function(o){var t=i.removeOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},e.upThisGroupedSelectRow=function(o){var t=i.upthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.downThisGroupedSelectRow=function(o){var t=i.downthisOption(e.groupedSelectRowCollection,o);t.resultFlag===!1&&l.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},e.demodt={},e.today=function(){e.demodt.dt=new Date},e.today(),e.clear=function(){e.demodt.dt=null},e.open=function(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0},e.dateOptions={formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null},e.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"],e.nyaSelect=t,e.nyaSelect.selectedControl=e.nyaSelect.temporyConfig.selectedControl,\"none\"!==t.selectedControl){for(var y=e.nyaSelect.controls.length-1;y>=0;y--)e.nyaSelect.controls[y].id===t.selectedControl&&(e.modelNyaSelect=t.controls[y]);\"BasicSelect\"===e.nyaSelect.selectedControl&&d(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&p(),\"Radio\"===e.nyaSelect.selectedControl&&a()}e.selectThisControl=function(o){e.nyaSelect.selectedControl=\"none\",f();for(var t=e.nyaSelect.controls.length-1;t>=0;t--)e.nyaSelect.controls[t].id===o&&(e.nyaSelect.selectedControl=e.nyaSelect.controls[t].id);\"Date\"===e.nyaSelect.selectedControl&&m()},e.ok=function(){\"BasicSelect\"===e.nyaSelect.selectedControl&&c(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&u(),\"Radio\"===e.nyaSelect.selectedControl&&s(),r.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)},e.cancel=function(){o.dismiss(\"cancel\")}}]),angular.module(\"edaApp.controllers.edaEditPanelController\",[]).controller(\"edaEditPanelController\",[\"$scope\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,l,n){function i(){a.proxyModel.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function r(){a.proxyModel.temporyConfig.datepickerPopup=a.demodt.formats[0]}var a=this;if(a.proxyModel=n.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=n.basicSelectRowCollection,a.newOptionBasicSelect=n.newOptionBasicSelect,a.groupedSelectRowCollection=n.groupedSelectRowCollection,a.newOptionGroupedSelect=n.newOptionGroupedSelect,a.GroupedSelectGroups=n.GroupedSelectGroups,a.newGroupGroupedSelect=n.newGroupGroupedSelect,a.groupSelectGroupClick=n.groupSelectGroupClick,a.radioRowCollection=n.radioRowCollection,a.newOptionRadio=n.newOptionRadio,n.resetAllTemporyModels(),\"none\"!==a.proxyModel.temporyConfig.selectedControl){for(var s=a.proxyModel.controls.length-1;s>=0;s--)a.proxyModel.controls[s].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[s]);\"BasicSelect\"===a.proxyModel.temporyConfig.selectedControl&&n.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),\"GroupedSelect\"===a.proxyModel.temporyConfig.selectedControl&&n.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),\"Radio\"===a.proxyModel.temporyConfig.selectedControl&&n.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return n.basicSelectRowCollection=a.basicSelectRowCollection,n.newOptionBasicSelect=a.newOptionBasicSelect,n.groupedSelectRowCollection=a.groupedSelectRowCollection,n.newOptionGroupedSelect=a.newOptionGroupedSelect,n.GroupedSelectGroups=a.GroupedSelectGroups,n.newGroupGroupedSelect=a.newGroupGroupedSelect,n.groupSelectGroupClick=a.groupSelectGroupClick,n.radioRowCollection=a.radioRowCollection,n.newOptionRadio=a.newOptionRadio,n.bindSpecialCtrlTemporyModelsToProxyModel(),!0},a.resetControl=function(){a.proxyModel.temporyConfig.formlyLabel=\"\",a.proxyModel.temporyConfig.formlyRequired=!1,a.proxyModel.temporyConfig.formlyPlaceholder=\"\",a.proxyModel.temporyConfig.formlyDesciption=\"\",a.proxyModel.temporyConfig.formlyOptions=[],a.proxyModel.temporyConfig.datepickerPopup=r()},a.selectThisControl=function(e){a.proxyModel.selectedControl=\"none\",i();for(var o=a.proxyModel.controls.length-1;o>=0;o--)a.proxyModel.controls[o].id===e&&(a.proxyModel.selectedControl=a.proxyModel.controls[o].id);\"Date\"===a.proxyModel.selectedControl&&r()},a.addNewOptionRadio=function(){var e=l.addNewOptionRadio(a.radioRowCollection,a.newOptionRadio.saisie);e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionRadio={saisie:\"\"}},a.removeRadioRow=function(e){var t=l.removeOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisRadioRow=function(e){var t=l.upthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisRadioRow=function(e){var t=l.downthisOption(a.radioRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.addNewOptionBasicSelect=function(){var e=l.addNewOptionBasicSelect(a.basicSelectRowCollection,a.newOptionBasicSelect.saisie);e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionBasicSelect={saisie:\"\"}},a.removeRow=function(e){var t=l.removeOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisRow=function(e){var t=l.upthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisRow=function(e){var t=l.downthisOption(a.basicSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.showGroupListToChoose=function(){a.groupSelectGroupClick.showList=!a.groupSelectGroupClick.showList},a.addNewGroupToGroupedSelect=function(){if(\"\"!==a.newGroupGroupedSelect.saisie){for(var e=a.GroupedSelectGroups.list.length-1;e>=0;e--)a.GroupedSelectGroups.list[e]===a.newGroupGroupedSelect.saisie&&o.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});a.GroupedSelectGroups.list.push(a.newGroupGroupedSelect.saisie)}else o.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});a.newGroupGroupedSelect.saisie=\"\"},a.addNewOptionGroupedSelect=function(){var e=l.addNewOptionGroupedSelect(a.groupedSelectRowCollection,a.newOptionGroupedSelect.saisie,\"\");e.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:e.details,body:\"'\"+a.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),a.newOptionGroupedSelect={saisie:\"\"}},a.removeGroupedSelectRow=function(e){var t=l.removeOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Delete was cancelled.\",showCloseButton:!0})},a.upThisGroupedSelectRow=function(e){var t=l.upthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.downThisGroupedSelectRow=function(e){var t=l.downthisOption(a.groupedSelectRowCollection,e);t.resultFlag===!1&&o.pop({type:\"warning\",timeout:2e3,title:t.details,body:\"Operation cancelled.\",showCloseButton:!0})},a.demodt={},a.today=function(){a.demodt.dt=new Date},a.today(),a.clear=function(){a.demodt.dt=null},a.open=function(e){e.preventDefault(),e.stopPropagation(),a.demodt.opened=!0},a.dateOptions={formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null},a.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"]}]),angular.module(\"edaApp.controllers.edaMainController\",[]).controller(\"edaMainController\",[function(){}]),angular.module(\"edaApp.directives.edaDdContentCounterDirective\",[]).directive(\"ddContentCounter\",[\"dragDropItemCounterService\",\"$timeout\",function(e,o){return{scope:{valueWhenPlaceholder:\"@ddValueWhenPlaceholder\",valueWhendragging:\"@ddValueWhenDragging\",fullModel:\"=ddFullModel\",currentIndex:\"@ddContentCounterCurrentIndex\",parentIndex:\"@ddContentCounterParentIndex\",forceRefresh:\"=ddContentCounterForceCssRefresh\"},restrict:\"A\",link:function(t,l){var n;t.$watch(function(){return l[0].children.length},function(i,r){if(i!==r){for(var a=0,s=[],d=l[0].children.length-1;d>=0;d--)e.isHtmlElementToCount(l[0].children[d].classList)?(a++,s.push({item:d,isReal:!0})):s.push({item:d,isReal:!1});t.contentRealCount=a,n=o(function(){e.updateLineItemCss(t.fullModel,s,t.parentIndex,t.currentIndex,a)},20)}}),t.$on(\"$destroy\",function(){console.warn(\"ddContentCounter timer destruction!\"),o.cancel(n)})}}}]),angular.module(\"edaApp.directives.edaDdDecorContainerDirective\",[]).directive(\"ddDecorContainer\",[function(){var e=['
','
 {{currentTitle}}
',\"
\",'
','
',\"
\"].join(\" \");return{scope:{styleParam:\"=ddContainerProperties\",isStillCollapsed:\"=ddContainerIsCollpased\",verboseMode:\"@ddContainerVerboseMode\",currentIndex:\"@ddContainerCurrentIndex\",collpaseAll:\"&ddCollapseAll\"},restrict:\"A\",template:e,transclude:!0,controller:function(e){e.config={isEnabled:!1},e.collapseFct=function(){e.collpaseAll({exceptThisOne:e.styleParam.WhenIndex}),e.isCollapsed=!e.isCollapsed,e.isStillCollapsed=e.isCollapsed},e.icons={closedClass:\"glyphicon glyphicon-eye-open\",opened:\"glyphicon glyphicon-eye-close\"},e.currentIconClass=function(){return e.isCollapsed?e.icons.closedClass:e.icons.opened}},link:function(e,o,t,l,n){var i=e.verboseMode,r=e.currentIndex;if(e.isCollapsed=!1,\"\"!==i){var a=angular.lowercase(i);(\"true\"===a||\"1\"===a)&&console.dir({whoAmI:\"I am verbose from ddDecorContainer link\",verbodeMode:a,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:r,styleParam:e.styleParam,columnindex:e.$parent.$parent.$parent.$parent.$index})}e.$watch(function(){return e.isStillCollapsed},function(o,t){o!==t&&0===e.$parent.$parent.$index&&(e.isCollapsed=o)}),e.config.isEnabled=!1,\"undefined\"!=typeof r&&\"\"!==r&&\"0\"===r&&\"undefined\"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title,e.config.isEnabled=!0,e.isCollapsed=!0),n(e.$parent,function(e){var t=angular.element(o.children()[1]);t.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdDecorDropZoneDirective\",[]).directive(\"ddDecorDropZone\",[function(){var e=['
','
','
','
','

','  ',\" {{currentTitle}}\",'
',' \",\"
\",\"

\",\"
\",'
','
','
',\"
\",\"
\",\"
\",\"
\",\"
\",\"
\"].join(\" \");return{scope:{styleParam:\"=ddDropZoneProperties\",verboseMode:\"@ddDropZoneVerboseMode\",currentIndex:\"@ddDropZoneCurrentIndex\",addNewLineFct:\"&ddDropZoneAddNewLine\"},restrict:\"A\",template:e,transclude:!0,link:function(e){var o=e.verboseMode,t=e.currentIndex;if(e.headerConfig={HeaderButtonVisible:!1,affixAttr:\"bs-affix\",affixEnabled:!1},\"\"!==o){var l=angular.lowercase(o);(\"true\"===l||\"1\"===l)&&console.dir({whoAmI:\"I am verbose from ddDecorDropZone link\",verbodeMode:l,ParentParentIndex:e.$parent.$parent.$index,ParentIndex:e.$parent.$index,currentIndex:t,styleParam:e.styleParam})}\"undefined\"!=typeof t&&\"\"!==t&&(\"undefined\"!=typeof e.styleParam.title&&(e.currentTitle=e.styleParam.title),\"undefined\"!=typeof e.styleParam.fontAwesomeIcon&&(e.currentFontAwesome=e.styleParam.fontAwesomeIcon),\"1\"===t&&(e.headerConfig.HeaderButtonVisible=!0))}}}]),angular.module(\"edaApp.directives.edaDdDecorItemDirective\",[]).directive(\"ddDecorItem\",[\"dragDropConfig\",function(e){var o=[\"
\",'
',\"
\"].join(\" \");return{scope:{verboseMode:\"@ddItemVerboseMode\",currentIndex:\"@ddItemCurrentIndex\",parentIndex:\"@ddItemParentIndex\",parentParentIndex:\"@ddItemParentParentIndex\",lineItemsCount:\"@ddItemsCount\",cssClass:\"@ddItemCssClass\"},restrict:\"A\",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex,d=e.getDistinctItemCssClass();if(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch(\"cssClass\",function(e,o){e!==o&&(angular.forEach(d,function(e){t.removeClass(e)}),t.addClass(e))}),\"\"!==r){var c=angular.lowercase(r);(\"true\"===c||\"1\"===c)&&console.dir({whoAmI:\"I am verbose from ddDecorItem directive link\",verbodeMode:c,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}\"0\"===o.parentParentIndex&&t.addClass(d[0]),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdDecorLineDirective\",[]).directive(\"ddDecorLine\",[\"$timeout\",function(e){var o=['
',' ',\"
\",'
'].join(\" \");return{scope:{verboseMode:\"@ddLineVerboseMode\",currentIndex:\"@ddLineCurrentIndex\",parentIndex:\"@ddLineParentIndex\",removeLine:\"&ddRemoveLine\"},restrict:\"A\",template:o,transclude:!0,link:function(o,t,l,n,i){var r=o.verboseMode,a=o.currentIndex,s=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,\"\"!==r){var d=angular.lowercase(r);(\"true\"===d||\"1\"===d)&&console.dir({whoAmI:\"I am verbose from ddDecorLine directive link\",verbodeMode:d,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:s,currentIndex:a})}o.removeMe=function(t){t.preventDefault(),t.stopPropagation(),\"1\"===o.parentIndex&&(1===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1,o.removeLine(),e.cancel(c)),0===o.deleteLine.dblClickCount&&(o.deleteLine.dblClickCount=o.deleteLine.dblClickCount+1,o.deleteLine.readyToDelete=!0))};var c;o.cancelDelete=function(t){c=e(function(){o.deleteLine.dblClickCount=0,o.deleteLine.readyToDelete=!1},500)},o.$on(\"$destroy\",function(){e.cancel(c)}),i(o.$parent,function(e){var o=angular.element(t.children()[0]);o.append(e)})}}}]),angular.module(\"edaApp.directives.edaDdNoEditableControlDirective\",[]).directive(\"ddNoEditableControl\",[function(){return{restrict:\"A\",link:function(e,o){o.on(\"click\",function(e){e.preventDefault()})}}}]),angular.module(\"edaApp.directives\",[\"edaApp.directives.edaStRationDirective\",\"edaApp.directives.edaDdDecorDropZoneDirective\",\"edaApp.directives.edaDdDecorContainerDirective\",\"edaApp.directives.edaDdDecorLineDirective\",\"edaApp.directives.edaDdDecorItemDirective\",\"edaApp.directives.edaDdNoEditableControlDirective\",\"edaApp.directives.edaDdContentCounterDirective\",\"edaApp.directives.edaRightClickDirective\"]),angular.module(\"edaApp.directives.edaRightClickDirective\",[]).directive(\"edaRightClick\",[\"$parse\",function(e){return{restrict:\"A\",link:function(o,t,l){var n=e(l.edaRightClick),i=e(l.edaRightClickColIndex),r=e(l.edaSetRightClicked);t.on(\"contextmenu\",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&n(o,{$event:e})})})}}}]),angular.module(\"edaApp.directives.edaStRationDirective\",[]).directive(\"stRatio\",[function(){return{restrict:\"A\",link:function(e,o,t){var l=+t.stRatio;o.css(\"width\",l+\"%\")}}}]),angular.module(\"edaApp.services.dragDropItemCountersService\",[]).factory(\"dragDropItemCounterService\",[\"dragDropConfig\",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),l={};return l.getItemsNotToCount=function(){return t},l.getModelItemsRealCounter=function(){return o},l.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var l=e.length-1;l>=0;l--)e[l]===t&&(o&=!1)}),o},l.updateLineItemCss=function(o,t,l,n,i){if(\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&\"undefined\"!=typeof l&&\"undefined\"!=typeof n&&\"undefined\"!=typeof i){for(var r=o[l][n].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][l][r].cssClass=e.getItemCssDependingNumberItemsInRow(n);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if(\"undefined\"!=typeof t&&\"undefined\"!=typeof o){for(var l=o[t].length-1;l>=0;l--)for(var n=o[t][l].length-1;n>=0;n--)o[t][l][n].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][l].length);return!0}return!1},t}]),angular.module(\"edaApp.services.dragDropModelConfigModelProxyService\",[]).factory(\"ddModelConfModelProxyService\",[\"EasyFormGenFormlyBindingModels\",\"controllerModalProxy\",\"$parse\",function(e,o,t){function l(o){var l={},n=e.getEasyFormListControls(),i=t(\"controls\");return angular.forEach(i(n),function(e){e.id===o.control&&(l=e)}),l}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)\"undefined\"!=typeof o.lines[l].columns[n].control&&o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(e,o){var t=e+\"-\"+Date.now();return n(t,o)===!0?t:(t=e+\"-\"+Date.now(),n(t,o)===!0?t:t=e+\"-\"+Date.now())}function r(e,o,t){angular.forEach(t.lines,function(t,l){l===o&&(t.line=e)})}function a(e,o,l){t(\"control.selectedControl\").assign(o,t(\"selectedControl\")(e)),t(\"control.type\").assign(o,t(\"formlyType\")(e)),t(\"control.key\").assign(o,i(t(\"control.type\")(o),l)),t(\"control.subtype\").assign(o,t(\"formlySubtype\")(e)),t(\"control.templateOptions.label\").assign(o,t(\"formlyLabel\")(e)),t(\"control.templateOptions.required\").assign(o,t(\"formlyRequired\")(e)),t(\"control.templateOptions.description\").assign(o,t(\"formlyDesciption\")(e)),t(\"control.templateOptions.placeholder\").assign(o,t(\"formlyPlaceholder\")(e)),t(\"control.templateOptions.options\").assign(o,t(\"formlyOptions\")(e)),\"datepicker\"===t(\"control.type\")(o)&&t(\"control.templateOptions.datepickerPopup\").assign(o,t(\"datepickerPopup\")(e))}var s={};return s.refreshAllConfigurationFromDragAndDropModel=function(o,t){angular.copy(o);return o.lines=[],angular.forEach(t[1],function(t,n){o.lines.push(angular.copy(e.getEasyFormEmptyConfigurationLineModel())),r(n+1,n,o),angular.forEach(t,function(i,r){var s={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},d=l(t[r]);if(\"undefined\"!=typeof i.key){console.warn(\"debug dragdropModel show this control key : \"+i.key),s.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);s.control.className=c.className,s.control.cssClass=c.className}else a(d,s,o);\"undefined\"==typeof o.lines[n].columns[r]&&o.lines[n].columns.push(angular.copy(e.getEasyFormConfigurationEmptyControlModel())),o.lines[n].columns[r].control=angular.copy(s.control),o.lines[n].columns[r].numColumn=r+1,o.lines[n].columns[r].exist=!0})}),o},s.refreshControlsKeys=function(e,o){angular.forEach(e.lines,function(e,t){angular.forEach(e.columns,function(e,l){\"undefined\"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][l].key=e.control.key,o[1][t][l].configModelControl=angular.copy(e.control))})}),console.info(\"refreshControlsKeys\"),console.dir({when:\"starting\",\"configModel is \":angular.copy(e),\"dragDropModel is \":angular.copy(o)})},s}]),angular.module(\"edaApp.services.edaEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(o){var t=e.getEasyFormListControls();return angular.copy(t,o),!0}function t(){var o=e.getEasyFormListControls();return r.proxyModel=angular.copy(o),!0}function l(e){for(var o={selectedControl:\"none\",formlyType:\"none\",formlySubtype:\"none\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[]},t=e.controls.length-1;t>=0;t--)e.selectedControl===e.controls[t].id&&(o.selectedControl=e.selectedControl,o.formlyType=e.controls[t].formlyType,o.formlySubtype=e.controls[t].formlySubtype,o.formlyLabel=e.controls[t].formlyLabel,o.formlyRequired=e.controls[t].formlyRequired,o.formlyDesciption=e.controls[t].formlyDesciption,o.formlyPlaceholder=e.controls[t].formlyPlaceholder,o.formlyOptions=e.controls[t].formlyOptions,\"datepicker\"===e.controls[t].formlyType&&(o.datepickerPopup=e.controls[t].datepickerPopup));return o}function n(e,o){for(var t=!0,l=o.lines.length-1;l>=0;l--)for(var n=o.lines[l].columns.length-1;n>=0;n--)o.lines[l].columns[n].control.key===e&&(t=!1);return t}function i(o){var t=\"none\",l=angular.copy(e.getEasyFormListControls().controls);return l.forEach(function(e){return e.formlyType===o.type&&e.formlySubtype===o.subtype?t=e.id:void 0}),t}var r={};r.ProxyModel={},t(),r.initNyaSelect=function(e){return o(e)},r.getNyASelectFromSelectedLineColumn=function(e,t,l,n){return o(e),\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof t.lines[l].columns[n].control.selectedControl?t.lines[l].columns[n].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.label?t.lines[l].columns[n].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.required?t.lines[l].columns[n].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.description?t.lines[l].columns[n].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.placeholder?t.lines[l].columns[n].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.options?t.lines[l].columns[n].control.templateOptions.options:\"\",\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof t.lines[l].columns[n].control.templateOptions.datepickerPopup?t.lines[l].columns[n].control.templateOptions.datepickerPopup:\"\")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=l(t);i.lines[e].columns[o].control.selectedControl=r.selectedControl,i.lines[e].columns[o].control.type=r.formlyType,i.lines[e].columns[o].control.subtype=r.formlySubtype,i.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},i.lines[e].columns[o].control.templateOptions.label=r.formlyLabel,i.lines[e].columns[o].control.templateOptions.required=r.formlyRequired,i.lines[e].columns[o].control.templateOptions.description=r.formlyDesciption,i.lines[e].columns[o].control.templateOptions.placeholder=r.formlyPlaceholder,i.lines[e].columns[o].control.templateOptions.options=r.formlyOptions,\"datepicker\"===i.lines[e].columns[o].control.type&&(i.lines[e].columns[o].control.templateOptions.datepickerPopup=r.datepickerPopup);var a=i.lines[e].columns[o].control.type+\"-\"+Date.now();n(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+\"-\"+Date.now(),n(a,i)===!0?i.lines[e].columns[o].control.key=a:a=i.lines[e].columns[o].control.type+\"-\"+Date.now()),i.lines[e].columns[o].control.edited=!0},r.applyConfigToSelectedControl=function(e){for(var o=e.controls.length-1;o>=0;o--)e.controls[o].id===e.selectedControl&&(e.controls[o].formlyLabel=e.temporyConfig.formlyLabel,e.controls[o].formlyRequired=e.temporyConfig.formlyRequired,e.controls[o].formlyDesciption=e.temporyConfig.formlyDesciption,e.controls[o].formlyPlaceholder=e.temporyConfig.formlyPlaceholder,e.controls[o].formlyOptions=e.temporyConfig.formlyOptions,\"Date\"===e.controls[o].id&&(e.controls[o].datepickerPopup=e.temporyConfig.datepickerPopup))},r.initProxyModel=function(e){return t(e)},r.bindConfigurationModelFromProxyModel=function(e,o,t){var l=angular.copy(r.proxyModel.temporyConfig);console.warn(\"debug edaEditCtrlControllerModalProxy\"),console.dir(l),t.lines[e].columns[o].control.selectedControl=l.selectedControl,t.lines[e].columns[o].control.type=l.formlyType,t.lines[e].columns[o].control.subtype=l.formlySubtype,t.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},t.lines[e].columns[o].control.templateOptions.label=l.formlyLabel,t.lines[e].columns[o].control.templateOptions.required=l.formlyRequired,t.lines[e].columns[o].control.templateOptions.description=l.formlyDesciption,t.lines[e].columns[o].control.templateOptions.placeholder=l.formlyPlaceholder,t.lines[e].columns[o].control.templateOptions.options=l.formlyOptions,\"datepicker\"===t.lines[e].columns[o].control.type&&(t.lines[e].columns[o].control.templateOptions.datepickerPopup=l.datepickerPopup);var i=t.lines[e].columns[o].control.type+\"-\"+Date.now();n(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),n(i,t)===!0?t.lines[e].columns[o].control.key=i:i=t.lines[e].columns[o].control.type+\"-\"+Date.now()),t.lines[e].columns[o].control.edited=!0},r.setProxyModelFromConfigurationSelection=function(e,o,t){return\"undefined\"!=typeof e.lines[o].columns[t].control&&(r.proxyModel.selectedControl=\"undefined\"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):\"none\",r.proxyModel.temporyConfig.selectedControl=\"undefined\"!=typeof e.lines[o].columns[t].control.type?i(e.lines[o].columns[t].control):\"none\",r.proxyModel.temporyConfig.formlyType=\"undefined\"!=typeof e.lines[o].columns[t].control.type?e.lines[o].columns[t].control.type:\"none\",r.proxyModel.temporyConfig.formlySubtype=\"undefined\"!=typeof e.lines[o].columns[t].control.subtype?e.lines[o].columns[t].control.subtype:\"none\",r.proxyModel.temporyConfig.formlyLabel=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.label?e.lines[o].columns[t].control.templateOptions.label:\"\",r.proxyModel.temporyConfig.formlyRequired=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.required?e.lines[o].columns[t].control.templateOptions.required:\"\",r.proxyModel.temporyConfig.formlyDesciption=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.description?e.lines[o].columns[t].control.templateOptions.description:\"\",r.proxyModel.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.placeholder?e.lines[o].columns[t].control.templateOptions.placeholder:\"\",r.proxyModel.temporyConfig.formlyOptions=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.options?e.lines[o].columns[t].control.templateOptions.options:\"\",\"Date\"===r.proxyModel.temporyConfig.selectedControl&&(r.proxyModel.temporyConfig.datepickerPopup=\"undefined\"!=typeof e.lines[o].columns[t].control.templateOptions.datepickerPopup?e.lines[o].columns[t].control.templateOptions.datepickerPopup:\"\")),r.proxyModel},r.getProxyModel=function(){return r.proxyModel};var a={toggle:!1,lineIndex:-1,columnIndex:-1,control:{}};r.getEditPanelModelAllModel=function(){return a},r.setEditPanelModelControl=function(e){var o=!1;return\"undefined\"!=typeof e&&(a=angular.copy(e),o=!0),o},r.getEditPanelModelColumnIndex=function(){return a.columnIndex},r.setEditPanelModelColumnIndex=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.columnIndex=e,o=!0),o},r.getEditPanelModelLineIndex=function(){return a.lineIndex},r.setEditPanelModelLineIndex=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.lineIndex=e,o=!0),o},r.getEditPanelModelControl=function(){return a.control},r.setEditPanelModelControl=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.control=angular.copy(e),o=!0),o},r.getEditPanelModelToggle=function(){return a.toggle},r.setEditPanelModelToggle=function(e){var o=!1;return\"undefined\"!=typeof e&&(a.toggle=e,o=!0),o};var s={rows:[]};return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:\"\"}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:\"\"}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:\"\"}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(s),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(s),r.newOptionGroupedSelect=angular.copy({saisie:\"\"}),r.GroupedSelectGroups=angular.copy({list:[]}),r.newGroupGroupedSelect=angular.copy({saisie:\"\"}),r.groupSelectGroupClick=angular.copy({showList:!1}),r.radioRowCollection=angular.copy(s),r.newOptionRadio=angular.copy({saisie:\"\"}),!0},r.bindSpecialCtrlTemporyModelsToProxyModel=function(){\n\"BasicSelect\"===r.proxyModel.selectedControl&&r.bindBasicSelectToProxyModel(r.basicSelectRowCollection),\"GroupedSelect\"===r.proxyModel.selectedControl&&r.bindGroupedSelectToProxyModel(r.groupedSelectRowCollection),\"Radio\"===r.proxyModel.selectedControl&&r.bindRadioToProxyModel(r.radioRowCollection)},r.bindBasicSelectFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.rows.push(t)}},r.bindBasicSelectToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r.bindGroupedSelectFromProxyModel=function(e,o){if(r.proxyModel.temporyConfig.formlyOptions.length>0){for(var t=0;t<=r.proxyModel.temporyConfig.formlyOptions.length-1;t++){var l={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(l)}var n=_.uniq(_.pluck(e.rows,\"group\"));angular.copy(n,o.list)}},r.bindGroupedSelectToProxyModel=function(e){r.proxyModel.temporyConfig.formlyOptions=[];for(var o=0;o<=e.rows.length-1;o++){var t={name:e.rows[o].option,value:o,group:e.rows[o].group};r.proxyModel.temporyConfig.formlyOptions.push(t)}},r.bindRadioFromProxyModel=function(e){if(r.proxyModel.temporyConfig.formlyOptions.length>0)for(var o=0;o<=r.proxyModel.temporyConfig.formlyOptions.length-1;o++){var t={option:r.proxyModel.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.rows.push(t)}},r.bindRadioToProxyModel=function(e){var o=[];if(r.proxyModel.temporyConfig.formlyOptions=o,e.rows.length>0)for(var t=0;t<=e.rows.length-1;t++){var l={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(l)}},r}]),angular.module(\"edaApp.services.formFieldManage\",[]).factory(\"formFieldManage\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,l){var n=t.lines[l].columns.length,i=o.push({className:\"row\",fieldGroup:[]})-1;t.lines[l].columns.forEach(function(t,l){var r={};if(\"undefined\"!=typeof r&&\"none\"!==t.control.type){if(\"header\"===t.control.type||\"subTitle\"===t.control.type){var a=t.control.templateOptions.description;r.template=e.getHeaderTemplateForNcolumnLine(n,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(n,t.control.type),r.className=t.control.className,r.type=t.control.type,r.key=t.control.key,r.templateOptions.type=t.control.templateOptions.type,r.templateOptions.label=t.control.templateOptions.label,r.templateOptions.required=t.control.templateOptions.required,r.templateOptions.placeholder=t.control.templateOptions.placeholder,r.templateOptions.description=t.control.templateOptions.description,r.templateOptions.options=[].concat(t.control.templateOptions.options),\"undefined\"!=typeof r.templateOptions.datepickerPopup&&(t.control.templateOptions.datepickerPopup=r.templateOptions.datepickerPopup);o[i].fieldGroup.push(r)}})}function l(e){var o={};return angular.copy(o,e),!0}function n(e,o){var t={noError:!1,title:\"\",Message:\"\"};return t.noError=!1,t.title=e,t.Message=o,t}function i(e,o){var t={noError:!1,title:\"\",Message:\"\"};return t.noError=!0,t.title=e,t.Message=o,t}var r={};return r.initConfigurationEditFromScratch=function(o,t){var l=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(l,o)},r.bindConfigurationLines=function(o,t,l){if(\"[object Array]\"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(l);return r.lines=[].concat(t),angular.copy(r,o),i(\"configuration model is bound\",\"lines are bound to configuration model.\")}return n(\"lines is not an array\",\"Checks lines type, it is not an array.\")},r.applyConfigurationToformlyModel=function(e,n,i){o(n),l(i);for(var r=e.lines.length,a=0;r>a;a++)t(n,e,a)},r}]),angular.module(\"edaApp.services.formsByIdService\",[\"ngResource\"]).factory(\"formsByIdService\",[\"$resource\",function(e){return e(\"/api/formGen/:id\",{id:\"@id\"},{})}]),angular.module(\"edaApp.services.selectOptionManage\",[]).factory(\"selectOptionManage\",[function(){function e(e,o){var t={resultFlag:!1,details:\"\"};if(\"undefined\"==typeof o)return t.resultFlag=!1,t.details=\"Entered option is empty\",t;if(\"\"!==o){for(var l=e.rows.length-1;l>=0;l--)if(e.rows[l].option===o)return t.resultFlag=!1,t.details=\"Entered option is not unique\",t;return t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Entered option is empty\",t}function o(e){var o={rows:[]};angular.copy(o,e)}return{testMe:function(){return\"selectOptionManage is here.\"},initModel:function(e){o(e)},isOptionUnique:function(e,o){for(var t=e.rows.length-1;t>=0;t--)if(e.rows[t].option===o)return!1;return!0},isOptionValidFormat:function(e){return\"\"!==e?!0:!1},addNewOptionRadio:function(o,t){var l={resultFlag:!1,details:\"\"},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details=\"\",l}return angular.copy(n,l),l},addNewOptionBasicSelect:function(o,t){var l={resultFlag:!1,details:\"\"},n=e(o,t);if(n.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),l.resultFlag=!0,l.details=\"\",l}return angular.copy(n,l),l},addNewOptionGroupedSelect:function(o,t,l){var n={resultFlag:!1,details:\"\"},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:l,order:o.rows.length};return o.rows.push(r),n.resultFlag=!0,n.details=\"\",n}return angular.copy(i,n),n},removeOption:function(e,o){var t={resultFlag:!1,details:\"\"};return-1!==o?(e.rows.splice(o,1),t.resultFlag=!0,t.details=\"\",t):(t.resultFlag=!1,t.details=\"Option index not valid\",t)},upthisOption:function(e,o){var t={resultFlag:!1,details:\"\"};if(o>-1){if(o>0){if(e.rows[o-1]){var l=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,l),t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Can't retreive option from option index\",t}return t.resultFlag=!0,t.details=\"\",t}return t.resultFlag=!1,t.details=\"Option index not valid\",t},downthisOption:function(e,o){var t={resultFlag:!1,details:\"\"};if(o>-1){if(o'}),e.setType({name:"blank",template:"
"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:"subTitle",template:n});var t='
  1. {{option.name}}
';e.setType({name:"basicSelect",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:"groupedSelect",template:l});var r=["date-disabled","custom-class","show-weeks","starting-day","init-date","min-mode","max-mode","format-day","format-month","format-year","format-day-header","format-day-title","format-month-title","year-range","shortcut-propagation","datepicker-popup","show-button-bar","current-text","clear-text","close-text","close-on-date-selection","datepicker-append-to-body"],i=["datepicker-mode","min-date","max-date"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:"datepicker",template:'',wrapper:["bootstrapLabel","bootstrapHasError"],controller:["$scope",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{"class":"glyphicon glyphicon-calendar",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
"," ",'
','
','
'," {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}","
","
","
"].join(" ")}])}angular.module("eda.easyFormViewer").config(e)}(),angular.module("eda.easyFormViewer").run(["$templateCache",function(e){e.put("eda.easyFormViewer.Template.html",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||"Submit")}function m(e,n){e!==n&&(o.vm.cancelText=e||"Submit")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||"Submit",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||"Cancel",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}var t={restrict:"E",scope:{edaEasyFormViewerDataModel:"=?",edaEasyFormViewerEasyFormGeneratorFieldsModel:"=?",edaEasyFormViewerSubmitButtonText:"=?",edaEasyFormViewerCancelButtonText:"=?",edaEasyFormViewerSubmitFormEvent:"&?",edaEasyFormViewerCancelFormEvent:"&?"},replace:!1,controller:n,controllerAs:"vm",templateUrl:"eda.easyFormViewer.Template.html",link:o};return t}angular.module("eda.easyFormViewer.Directive",[]).directive("edaEasyFormViewer",e),e.$inject=["modelsTranslator"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:"empty",name:"no control",subtitle:"no control",group:"Blank",formlyType:"blank",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Header",name:"Header",subtitle:"no control",group:"Decoration",formlyType:"header",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Subtitle",name:"Subtitle",subtitle:"no control",group:"Decoration",formlyType:"subTitle",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"TextInput",name:"Text input",subtitle:"Text input",group:"input",formlyType:"input",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Text input field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Password",name:"Password",subtitle:"Password",group:"input",formlyType:"input",formlySubtype:"password",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Email",name:"Email",subtitle:"Email",group:"input",formlyType:"input",formlySubtype:"email",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\.[a-z.]{2,5}$/.test(n)},message:"$viewValue + ' is not a valid email'"}},formlyValidation:{messages:{required:function(e,o,n){var t="this Email field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return n.to.required?l:void 0}}}},{id:"Date",name:"Date",subtitle:"Date",group:"input",formlyType:"datepicker",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],datepickerPopup:"dd-MMMM-yyyy",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Date field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Texarea",name:"Textarea",subtitle:"Textarea",group:"Textarea",formlyType:"textarea",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Textarea field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"RichTextEditor",name:"RichTextEditor",subtitle:"RichTextEditor",group:"Textarea",formlyType:"richEditor",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this RichTextEditor field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Radio",name:"Radio",subtitle:"Radio",options:[],group:"Radio",formlyType:"radio",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Checkbox",name:"Checkbox",subtitle:"Checkbox",group:"Checkbox",formlyType:"checkbox",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Checkbox field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"BasicSelect",name:"Basic select",subtitle:"Basic select",options:[],group:"Select",formlyType:"basicSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Basic select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"GroupedSelect",name:"Grouped Select",subtitle:"Grouped Select",options:[],group:"Select",formlyType:"groupedSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Grouped Select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}}],selectedControl:"none",temporyConfig:{selectedControl:"none",formlyLabel:"label",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}]};angular.copy(o,e)}function a(e,o){if("[object Array]"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q("configuration model is bound","lines are bound to configuration model.")}return S("lines is not an array","Checks lines type, it is not an array.")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&("header"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+"


";e.push({template:"undefined"!=typeof o.lines[n].columns[0].control.type&&"header"===o.lines[n].columns[0].control.type?t:"
"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:"col-xs-12",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:"col-xs-6",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-6",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push("header"===o.lines[n].columns[0].control.type?t:r),s.push("header"===o.lines[n].columns[1].control.type?l:i),e.push({className:"row",fieldGroup:s})}function y(e,o,n){var t={className:"col-xs-4",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-4",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-4",template:'

'+w(o.lines[n].columns[2].control)+"


"},i={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[2].control.type?"none"===o.lines[n].columns[2].control.type?"blank":o.lines[n].columns[2].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:h(o.lines[n].columns[2].control),validators:g(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};"datepicker"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push("header"===o.lines[n].columns[0].control.type?t:i),c.push("header"===o.lines[n].columns[1].control.type?l:s),c.push("header"===o.lines[n].columns[2].control.type?r:a),e.push({className:"row",fieldGroup:c})}function b(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.label?e.templateOptions.label:""}function v(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:""}function h(e){return"undefined"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function g(e){return"undefined"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return"undefined"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.required?e.templateOptions.required:""}function E(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.options?e.templateOptions.options:""}function V(e){return"undefined"!=typeof e.subtype?e.subtype:""}function T(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:""}function w(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.description?e.templateOptions.description:""}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!0,n.title=e,n.Message=o,n}angular.module("eda.modelsTranslator.Service",[]).factory("modelsTranslator",e),e.$inject=[]}()}(this); +!function(){"use strict";!function(){angular.module("eda.easyFormViewer",["textAngular","formly","ngAnimate","formlyBootstrap","ui.bootstrap","nya.bootstrap.select","eda.easyFormViewer.Directive","eda.modelsTranslator.Service"])}(),function(){function e(e){function o(e){return e=e.replace(/[\-_\s]+(.)?/g,function(e,o){return o?o.toUpperCase():""}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():""})}e.setType({name:"richEditor",template:''}),e.setType({name:"blank",template:"
"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:"subTitle",template:n});var t='
  1. {{option.name}}
';e.setType({name:"basicSelect",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:"groupedSelect",template:l});var r=["date-disabled","custom-class","show-weeks","starting-day","init-date","min-mode","max-mode","format-day","format-month","format-year","format-day-header","format-day-title","format-month-title","year-range","shortcut-propagation","datepicker-popup","show-button-bar","current-text","clear-text","close-text","close-on-date-selection","datepicker-append-to-body"],i=["datepicker-mode","min-date","max-date"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:"datepicker",template:'',wrapper:["bootstrapLabel","bootstrapHasError"],controller:["$scope",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{"class":"glyphicon glyphicon-calendar",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
"," ",'
','
','
'," {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}","
","
","
"].join(" ")}])}angular.module("eda.easyFormViewer").config(e),e.$inject=["formlyConfigProvider"]}(),angular.module("eda.easyFormViewer").run(["$templateCache",function(e){e.put("eda.easyFormViewer.Template.html",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||"Submit")}function m(e,n){e!==n&&(o.vm.cancelText=e||"Submit")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||"Submit",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||"Cancel",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}n.$inject=[];var t={restrict:"E",scope:{edaEasyFormViewerDataModel:"=?",edaEasyFormViewerEasyFormGeneratorFieldsModel:"=?",edaEasyFormViewerSubmitButtonText:"=?",edaEasyFormViewerCancelButtonText:"=?",edaEasyFormViewerSubmitFormEvent:"&?",edaEasyFormViewerCancelFormEvent:"&?"},replace:!1,controller:n,controllerAs:"vm",templateUrl:"eda.easyFormViewer.Template.html",link:o};return t}angular.module("eda.easyFormViewer.Directive",[]).directive("edaEasyFormViewer",e),e.$inject=["modelsTranslator"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:"empty",name:"no control",subtitle:"no control",group:"Blank",formlyType:"blank",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Header",name:"Header",subtitle:"no control",group:"Decoration",formlyType:"header",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Subtitle",name:"Subtitle",subtitle:"no control",group:"Decoration",formlyType:"subTitle",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"TextInput",name:"Text input",subtitle:"Text input",group:"input",formlyType:"input",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Text input field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Password",name:"Password",subtitle:"Password",group:"input",formlyType:"input",formlySubtype:"password",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Email",name:"Email",subtitle:"Email",group:"input",formlyType:"input",formlySubtype:"email",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\.[a-z.]{2,5}$/.test(n)},message:"$viewValue + ' is not a valid email'"}},formlyValidation:{messages:{required:function(e,o,n){var t="this Email field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return n.to.required?l:void 0}}}},{id:"Date",name:"Date",subtitle:"Date",group:"input",formlyType:"datepicker",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],datepickerPopup:"dd-MMMM-yyyy",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Date field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Texarea",name:"Textarea",subtitle:"Textarea",group:"Textarea",formlyType:"textarea",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Textarea field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"RichTextEditor",name:"RichTextEditor",subtitle:"RichTextEditor",group:"Textarea",formlyType:"richEditor",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this RichTextEditor field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Radio",name:"Radio",subtitle:"Radio",options:[],group:"Radio",formlyType:"radio",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Password field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"Checkbox",name:"Checkbox",subtitle:"Checkbox",group:"Checkbox",formlyType:"checkbox",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Checkbox field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"BasicSelect",name:"Basic select",subtitle:"Basic select",options:[],group:"Select",formlyType:"basicSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Basic select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}},{id:"GroupedSelect",name:"Grouped Select",subtitle:"Grouped Select",options:[],group:"Select",formlyType:"groupedSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t="this Grouped Select field is required",l="undefined"!=typeof n.to.label&&""!==n.to.label?n.to.label+" is required":t;return l}}}}],selectedControl:"none",temporyConfig:{selectedControl:"none",formlyLabel:"label",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}]};angular.copy(o,e)}function a(e,o){if("[object Array]"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q("configuration model is bound","lines are bound to configuration model.")}return S("lines is not an array","Checks lines type, it is not an array.")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&("header"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+"


";e.push({template:"undefined"!=typeof o.lines[n].columns[0].control.type&&"header"===o.lines[n].columns[0].control.type?t:"
"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:"col-xs-12",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:g(o.lines[n].columns[0].control),validators:h(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:"col-xs-6",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-6",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:g(o.lines[n].columns[0].control),validators:h(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:"col-xs-6",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:g(o.lines[n].columns[1].control),validators:h(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push("header"===o.lines[n].columns[0].control.type?t:r),s.push("header"===o.lines[n].columns[1].control.type?l:i),e.push({className:"row",fieldGroup:s})}function y(e,o,n){var t={className:"col-xs-4",template:'

'+w(o.lines[n].columns[0].control)+"


"},l={className:"col-xs-4",template:'

'+w(o.lines[n].columns[1].control)+"


"},r={className:"col-xs-4",template:'

'+w(o.lines[n].columns[2].control)+"


"},i={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[0].control.type?"none"===o.lines[n].columns[0].control.type?"blank":o.lines[n].columns[0].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:g(o.lines[n].columns[0].control),validators:h(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};"datepicker"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[1].control.type?"none"===o.lines[n].columns[1].control.type?"blank":o.lines[n].columns[1].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:g(o.lines[n].columns[1].control),validators:h(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};"datepicker"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:"col-xs-4",type:"undefined"!=typeof o.lines[n].columns[2].control.type?"none"===o.lines[n].columns[2].control.type?"blank":o.lines[n].columns[2].control.type:"blank",key:"undefined"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:"blank"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:g(o.lines[n].columns[2].control),validators:h(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};"datepicker"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push("header"===o.lines[n].columns[0].control.type?t:i),c.push("header"===o.lines[n].columns[1].control.type?l:s),c.push("header"===o.lines[n].columns[2].control.type?r:a),e.push({className:"row",fieldGroup:c})}function b(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.label?e.templateOptions.label:""}function v(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:""}function g(e){return"undefined"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function h(e){return"undefined"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return"undefined"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.required?e.templateOptions.required:""}function E(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.options?e.templateOptions.options:""}function V(e){return"undefined"!=typeof e.subtype?e.subtype:""}function T(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:""}function w(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.description?e.templateOptions.description:""}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:"",Message:""};return n.noError=!0,n.title=e,n.Message=o,n}angular.module("eda.modelsTranslator.Service",[]).factory("modelsTranslator",e),e.$inject=[]}()}(this); //# sourceMappingURL=eda.easyFormViewer.min.js.map \ No newline at end of file diff --git a/public/js/eda.easyFormViewer.min.js.map b/public/js/eda.easyFormViewer.min.js.map index 7330d8f5..88233b0a 100644 --- a/public/js/eda.easyFormViewer.min.js.map +++ b/public/js/eda.easyFormViewer.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["eda.easyFormViewer.min.js"],"names":["angular","module","configFct","formlyConfigProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","subTitleTemplate","basicSelectTemplate","groupedSelectTemplate","attributes","bindings","ngModelAttrs","forEach","attr","attribute","binding","bound","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","scope","isOpen","onFocus","$viewValue","$modelValue","to","datepickerOptions","setWrapper","join","config","run","$templateCache","put","edaEasyFormViewer","modelsTranslator","linkFct","element","attrs","fieldsModelToWatch","edaEasyFormViewerEasyFormGeneratorFieldsModel","submitBtnTextToWatch","edaEasyFormViewerSubmitButtonText","cancelBtnTextToWatch","edaEasyFormViewerCancelButtonText","submitEventToWatch","vm","hasJustSumitted","cancelEventToWatch","hasJustCancelled","fieldsModelWatcher","newFieldsModel","oldFieldsModel","fields","loadExistingConfigurationModel","submitBtnTextWatcher","newSubmitBtntext","oldSubmitBtntext","submitText","cancelBtnTextWatcher","newCancelBtntext","oldCancelBtntext","cancelText","submitEventWatcher","newSubmitEvent","oldSubmitEvent","isFunction","edaEasyFormViewerSubmitFormEvent","_dataModelSubmitted","model","dataModelSubmitted","cancelEventWatcher","newCancelEvent","oldCancelEvent","edaEasyFormViewerCancelFormEvent","loadFieldsModel","initialFieldsModel","isArray","loadedFieldModel","configlines","returnAttributeConfigurationLinesIfNotEmpty","formlyFieldsModel","configurationLoaded","bindConfigurationLines","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","configuration","copy","applyConfigurationToformlyModel","edaEasyFormGeneratorModelToReturn","length","emptyEdaFieldsModel","emptyModel","line","activeColumn","columns","numColumn","exist","control","type","key","$watch","edaEasyFormViewerCtrl","edaSubmitThisDataModel","edaCancelEvent","this","directive","restrict","edaEasyFormViewerDataModel","controllerAs","templateUrl","link","$inject","controllerModalProxy","service","initNyaSelect","getControlsDefinition","initConfigurationEditFromScratch","nyaSelectObj","resetNyaSelect","controls","configurationModel","isObject","lines","indexLine","column","controlIndex","_controlsDefinition","aControl","aControlIndex","formlyType","subtype","formlySubtype","formlyExpressionProperties","formlyValidators","formlyValidation","newNyaSelectObj","id","subtitle","group","formlyLabel","formlyRequired","formlyDesciption","formlyOptions","messages","required","viewValue","modelValue","defaultReturnMsg","returnMsg","label","emailShape","expression","value","test","message","datepickerPopup","selectedControl","temporyConfig","formlyPlaceholder","configurationModelInit","activeLine","listConfigStep","stepIndicators","configStepCounter","submitButtonText","cancelButtonText","Object","prototype","toString","call","configurationModelResult","concat","getMessageObject","getErrorObject","formlyModel","formlyDataModel","resetFormlyModel","resetDataModel","lineNumber","i","addOneColumnHeader","addOneColumnControl","addTwoColumnControl","addThreeColumnControl","resetformly","lineIndex","headerTemplateCol0","extractTemplateOptionDescription","push","addDatepickerPopupProperty","fieldToPush","extractTemplateOptionDatepickerPopup","className","Date","now","extractTemplateOptionType","extractTemplateOptionLabel","extractTemplateOptionRequired","placeholder","extractTemplateOptionPlaceholder","description","extractTemplateOptionOptions","expressionProperties","extractFormlyExpressionProperties","validators","extractFormlyValidators","validation","extractFormlyValidation","headerTemplateCol1","controlCol0","controlCol1","FieldGroup","fieldGroup","headerTemplateCol2","controlCol2","obj","emptyDataModel","errorTitle","errorMessage","messageObj","noError","title","Message","messageTitle","messageBody","factory"],"mappings":"CAOE,WACA,cAeD,WAGAA,QACEC,OAAO,sBACP,cACA,SACA,YACA,kBACA,eACA,uBACA,+BACA,oCAgBF,WAOC,QAASC,GAAUC,GAyKf,QAASC,GAASC,GAKhB,MAJAA,GAASA,EAAOC,QAAQ,gBAAiB,SAASC,EAAOC,GACvD,MAAOA,GAAMA,EAAIC,cAAgB,KAG5BJ,EAAOC,QAAQ,WAAY,SAASC,EAAOC,GAChD,MAAOA,GAAMA,EAAIE,cAAgB,KA3KrCP,EAAqBQ,SAEjBC,KAAM,aAENC,SAAU,+GAIdV,EAAqBQ,SAEjBC,KAAM,QACNC,SAAU,eAKd,IAAIC,GAAmB,qHACvBX,GAAqBQ,SAEjBC,KAAM,WACNC,SAAUC,GAId,IAAIC,GAAwB,qUAS7BZ,GAAqBQ,SAEhBC,KAAM,cACNC,SAAUE,GAKf,IAAIC,GAA0B,mgBAc9Bb,GAAqBQ,SAEhBC,KAAM,gBACNC,SAAUG,GASd,IAAIC,IACF,gBACA,eACA,aACA,eACA,YACA,WACA,WACA,aACA,eACA,cACA,oBACA,mBACA,qBACA,aACA,uBACA,mBACA,kBACA,eACA,aACA,aACA,0BACA,6BAGEC,GACF,kBACA,WACA,YAGEC,IAEJnB,SAAQoB,QAAQH,EAAY,SAASI,GACnCF,EAAaf,EAASiB,KAAUC,U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AUJ,EACdC,EAGR,QAAS/C,GAAiBmD,EAAcC,GACvC,GAAIL,IACHC,SAAU,EACVC,MAAO,GACPC,QAAS,GAMV,OAHAH,GAAWC,SAAU,EACrBD,EAAWE,MAAQE,EACnBJ,EAAWG,QAAUE,EACdL,EAz3BT/O,QACEC,OAAO,mCACPoP,QAAQ,mBAAoBjH,GAE7BA,EAAqBD,eA63BpBP","file":"eda.easyFormViewer.min.js","sourcesContent":["!function(){\"use strict\";!function(){angular.module(\"eda.easyFormViewer\",[\"textAngular\",\"formly\",\"ngAnimate\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"eda.easyFormViewer.Directive\",\"eda.modelsTranslator.Service\"])}(),function(){function e(e){function o(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"richEditor\",template:''}),e.setType({name:\"blank\",template:\"
\"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:\"subTitle\",template:n});var t='
  1. {{option.name}}
';e.setType({name:\"basicSelect\",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:\"groupedSelect\",template:l});var r=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],i=[\"datepicker-mode\",\"min-date\",\"max-date\"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:\"datepicker\",template:'',wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
\",\" \",'
','
','
',\" {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\",\"
\",\"
\",\"
\"].join(\" \")}])}angular.module(\"eda.easyFormViewer\").config(e)}(),angular.module(\"eda.easyFormViewer\").run([\"$templateCache\",function(e){e.put(\"eda.easyFormViewer.Template.html\",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||\"Submit\")}function m(e,n){e!==n&&(o.vm.cancelText=e||\"Submit\")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||\"Submit\",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||\"Cancel\",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}var t={restrict:\"E\",scope:{edaEasyFormViewerDataModel:\"=?\",edaEasyFormViewerEasyFormGeneratorFieldsModel:\"=?\",edaEasyFormViewerSubmitButtonText:\"=?\",edaEasyFormViewerCancelButtonText:\"=?\",edaEasyFormViewerSubmitFormEvent:\"&?\",edaEasyFormViewerCancelFormEvent:\"&?\"},replace:!1,controller:n,controllerAs:\"vm\",templateUrl:\"eda.easyFormViewer.Template.html\",link:o};return t}angular.module(\"eda.easyFormViewer.Directive\",[]).directive(\"edaEasyFormViewer\",e),e.$inject=[\"modelsTranslator\"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Text input field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Password field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Email\",name:\"Email\",subtitle:\"Email\",group:\"input\",formlyType:\"input\",formlySubtype:\"email\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\\.[a-z.]{2,5}$/.test(n)},message:\"$viewValue + ' is not a valid email'\"}},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Email field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return n.to.required?l:void 0}}}},{id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Date field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Textarea field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this RichTextEditor field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Password field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Checkbox field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Basic select field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Grouped Select field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}}],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}]};angular.copy(o,e)}function a(e,o){if(\"[object Array]\"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q(\"configuration model is bound\",\"lines are bound to configuration model.\")}return S(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&(\"header\"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+\"


\";e.push({template:\"undefined\"!=typeof o.lines[n].columns[0].control.type&&\"header\"===o.lines[n].columns[0].control.type?t:\"
\"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:\"col-xs-12\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:\"col-xs-6\",template:'

'+w(o.lines[n].columns[0].control)+\"


\"},l={className:\"col-xs-6\",template:'

'+w(o.lines[n].columns[1].control)+\"


\"},r={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[n].columns[1].control.type?\"none\"===o.lines[n].columns[1].control.type?\"blank\":o.lines[n].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};\"datepicker\"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push(\"header\"===o.lines[n].columns[0].control.type?t:r),s.push(\"header\"===o.lines[n].columns[1].control.type?l:i),e.push({className:\"row\",fieldGroup:s})}function y(e,o,n){var t={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[0].control)+\"


\"},l={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[1].control)+\"


\"},r={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[2].control)+\"


\"},i={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[1].control.type?\"none\"===o.lines[n].columns[1].control.type?\"blank\":o.lines[n].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};\"datepicker\"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[2].control.type?\"none\"===o.lines[n].columns[2].control.type?\"blank\":o.lines[n].columns[2].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:h(o.lines[n].columns[2].control),validators:g(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};\"datepicker\"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push(\"header\"===o.lines[n].columns[0].control.type?t:i),c.push(\"header\"===o.lines[n].columns[1].control.type?l:s),c.push(\"header\"===o.lines[n].columns[2].control.type?r:a),e.push({className:\"row\",fieldGroup:c})}function b(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.label?e.templateOptions.label:\"\"}function v(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:\"\"}function h(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function g(e){return\"undefined\"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return\"undefined\"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.required?e.templateOptions.required:\"\"}function E(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.options?e.templateOptions.options:\"\"}function V(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function T(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:\"\"}function w(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.description?e.templateOptions.description:\"\"}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:\"\",Message:\"\"};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:\"\",Message:\"\"};return n.noError=!0,n.title=e,n.Message=o,n}angular.module(\"eda.modelsTranslator.Service\",[]).factory(\"modelsTranslator\",e),e.$inject=[]}()}(this);\n//# sourceMappingURL=eda.easyFormViewer.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["eda.easyFormViewer.min.js"],"names":["angular","module","configFct","formlyConfigProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","subTitleTemplate","basicSelectTemplate","groupedSelectTemplate","attributes","bindings","ngModelAttrs","forEach","attr","attribute","binding","bound","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","scope","isOpen","onFocus","$viewValue","$modelValue","to","datepickerOptions","setWrapper","join","config","$inject","run","$templateCache","put","edaEasyFormViewer","modelsTranslator","linkFct","element","attrs","fieldsModelToWatch","edaEasyFormViewerEasyFormGeneratorFieldsModel","submitBtnTextToWatch","edaEasyFormViewerSubmitButtonText","cancelBtnTextToWatch","edaEasyFormViewerCancelButtonText","submitEventToWatch","vm","hasJustSumitted","cancelEventToWatch","hasJustCancelled","fieldsModelWatcher","newFieldsModel","oldFieldsModel","fields","loadExistingConfigurationModel","submitBtnTextWatcher","newSubmitBtntext","oldSubmitBtntext","submitText","cancelBtnTextWatcher","newCancelBtntext","oldCancelBtntext","cancelText","submitEventWatcher","newSubmitEvent","oldSubmitEvent","isFunction","edaEasyFormViewerSubmitFormEvent","_dataModelSubmitted","model","dataModelSubmitted","cancelEventWatcher","newCancelEvent","oldCancelEvent","edaEasyFormViewerCancelFormEvent","loadFieldsModel","initialFieldsModel","isArray","loadedFieldModel","configlines","returnAttributeConfigurationLinesIfNotEmpty","formlyFieldsModel","configurationLoaded","bindConfigurationLines","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","configuration","copy","applyConfigurationToformlyModel","edaEasyFormGeneratorModelToReturn","length","emptyEdaFieldsModel","emptyModel","line","activeColumn","columns","numColumn","exist","control","type","key","$watch","edaEasyFormViewerCtrl","edaSubmitThisDataModel","edaCancelEvent","this","directive","restrict","edaEasyFormViewerDataModel","controllerAs","templateUrl","link","controllerModalProxy","service","initNyaSelect","getControlsDefinition","initConfigurationEditFromScratch","nyaSelectObj","resetNyaSelect","controls","configurationModel","isObject","lines","indexLine","column","controlIndex","_controlsDefinition","aControl","aControlIndex","formlyType","subtype","formlySubtype","formlyExpressionProperties","formlyValidators","formlyValidation","newNyaSelectObj","id","subtitle","group","formlyLabel","formlyRequired","formlyDesciption","formlyOptions","messages","required","viewValue","modelValue","defaultReturnMsg","returnMsg","label","emailShape","expression","value","test","message","datepickerPopup","selectedControl","temporyConfig","formlyPlaceholder","configurationModelInit","activeLine","listConfigStep","stepIndicators","configStepCounter","submitButtonText","cancelButtonText","Object","prototype","toString","call","configurationModelResult","concat","getMessageObject","getErrorObject","formlyModel","formlyDataModel","resetFormlyModel","resetDataModel","lineNumber","i","addOneColumnHeader","addOneColumnControl","addTwoColumnControl","addThreeColumnControl","resetformly","lineIndex","headerTemplateCol0","extractTemplateOptionDescription","push","addDatepickerPopupProperty","fieldToPush","extractTemplateOptionDatepickerPopup","className","Date","now","extractTemplateOptionType","extractTemplateOptionLabel","extractTemplateOptionRequired","placeholder","extractTemplateOptionPlaceholder","description","extractTemplateOptionOptions","expressionProperties","extractFormlyExpressionProperties","validators","extractFormlyValidators","validation","extractFormlyValidation","headerTemplateCol1","controlCol0","controlCol1","FieldGroup","fieldGroup","headerTemplateCol2","controlCol2","obj","emptyDataModel","errorTitle","errorMessage","messageObj","noError","title","Message","messageTitle","messageBody","factory"],"mappings":"CAOE,WACA,cAeD,WAGAA,QACEC,OAAO,sBACP,cACA,SACA,YACA,kBACA,eACA,uBACA,+BACA,oCAgBF,WAQC,QAASC,GAAUC,GAyKf,QAASC,GAASC,GAKhB,MAJAA,GAASA,EAAOC,QAAQ,gBAAiB,SAASC,EAAOC,GACvD,MAAOA,GAAMA,EAAIC,cAAgB,KAG5BJ,EAAOC,QAAQ,WAAY,SAASC,EAAOC,GAChD,MAAOA,GAAMA,EAAIE,cAAgB,KA3KrCP,EA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A0BoB,GAClC,MAA+B,mBAAhBA,GAAIrF,QAAyBqF,EAAIrF,QAAS,GAG1D,QAASqE,GAAiCgB,GACzC,MAAuC,mBAAxBA,GAAIzM,iBAA8E,mBAApCyM,GAAIzM,gBAAgBwL,YAA6BiB,EAAIzM,gBAAgBwL,YAAmB,GAGtJ,QAASX,GAAiC4B,GACzC,MAAuC,mBAAxBA,GAAIzM,iBAA8E,mBAApCyM,GAAIzM,gBAAgB0L,YAA6Be,EAAIzM,gBAAgB0L,YAAmB,GAGtJ,QAASvB,GAAesC,GACvB,GAAIC,KAEJ,OADA5O,SAAQ2G,KAAKiI,EAAgBD,IACtB,EAGR,QAAS1C,GAAe4C,EAAYC,GAEnC,GAAIC,IACHC,SAAU,EACVC,MAAO,GACPC,QAAS,GAMV,OAHAH,GAAWC,SAAU,EACrBD,EAAWE,MAAQJ,EACnBE,EAAWG,QAAUJ,EACdC,EAGR,QAAS/C,GAAiBmD,EAAcC,GACvC,GAAIL,IACHC,SAAU,EACVC,MAAO,GACPC,QAAS,GAMV,OAHAH,GAAWC,SAAU,EACrBD,EAAWE,MAAQE,EACnBJ,EAAWG,QAAUE,EACdL,EAz3BT/O,QACEC,OAAO,mCACPoP,QAAQ,mBAAoBjH,GAE7BA,EAAqBnF,eA63BpB4E","file":"eda.easyFormViewer.min.js","sourcesContent":["!function(){\"use strict\";!function(){angular.module(\"eda.easyFormViewer\",[\"textAngular\",\"formly\",\"ngAnimate\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"eda.easyFormViewer.Directive\",\"eda.modelsTranslator.Service\"])}(),function(){function e(e){function o(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"richEditor\",template:''}),e.setType({name:\"blank\",template:\"
\"});var n='

{{options.templateOptions.placeholder}}


';e.setType({name:\"subTitle\",template:n});var t='
  1. {{option.name}}
';e.setType({name:\"basicSelect\",template:t});var l='
  1. {{$group}} {{option.name}}
';e.setType({name:\"groupedSelect\",template:l});var r=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],i=[\"datepicker-mode\",\"min-date\",\"max-date\"],s={};angular.forEach(r,function(e){s[o(e)]={attribute:e}}),angular.forEach(i,function(e){s[o(e)]={bound:e}}),e.setType({name:\"datepicker\",template:'',wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:s,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,n){n.to.isOpen=!n.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
\",\" \",'
','
','
',\" {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\",\"
\",\"
\",\"
\"].join(\" \")}])}angular.module(\"eda.easyFormViewer\").config(e)}(),angular.module(\"eda.easyFormViewer\").run([\"$templateCache\",function(e){e.put(\"eda.easyFormViewer.Template.html\",'
')}]),function(){function e(e){function o(o,n,t){function l(){return o.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return o.edaEasyFormViewerSubmitButtonText}function i(){return o.edaEasyFormViewerCancelButtonText}function s(){return o.vm.hasJustSumitted}function a(){return o.vm.hasJustCancelled}function c(e,n){o.vm.fields=y(e)}function u(e,n){e!==n&&(o.vm.submitText=e||\"Submit\")}function m(e,n){e!==n&&(o.vm.cancelText=e||\"Submit\")}function p(e,n){if(e===!0&&angular.isFunction(o.edaEasyFormViewerSubmitFormEvent)){var t=o.vm.model;o.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:t})}o.vm.hasJustSumitted=!1}function d(e,n){e===!0&&angular.isFunction(o.edaEasyFormViewerCancelFormEvent)&&o.edaEasyFormViewerCancelFormEvent(),o.vm.hasJustCancelled=!1}function f(){var e=angular.isArray(o.edaEasyFormViewerEasyFormGeneratorFieldsModel)?y(o.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function y(n){if(angular.isArray(n)){var t=b(n),l=[];return o.configurationLoaded={},e.bindConfigurationLines(o.configurationLoaded,t),e.refreshControlFormlyExpressionProperties(o.configurationLoaded),e.refreshControlFormlyValidators(o.configurationLoaded),e.refreshControlFormlyValidation(o.configurationLoaded),o.configuration=angular.copy(o.configurationLoaded),e.applyConfigurationToformlyModel(o.configurationLoaded,l,o.vm.model),l}}function b(e){var o=angular.isArray(e)&&e.length>0?e:v();return o}function v(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}o.vm.model={},o.vm.fields=f(),o.vm.submitText=o.edaEasyFormViewerSubmitButtonText||\"Submit\",o.vm.cancelText=o.edaEasyFormViewerCancelButtonText||\"Cancel\",o.$watch(l,c,!0),o.$watch(r,u),o.$watch(i,m),o.$watch(s,p),o.$watch(a,d)}function n(){function e(){n.hasJustSumitted=!0}function o(){n.hasJustCancelled=!0}var n=this;n.model={},n.fields={},n.hasJustSumitted=!1,n.hasJustCancelled=!1,n.edaSubmitThisDataModel=e,n.edaCancelEvent=o}n.$inject=[];var t={restrict:\"E\",scope:{edaEasyFormViewerDataModel:\"=?\",edaEasyFormViewerEasyFormGeneratorFieldsModel:\"=?\",edaEasyFormViewerSubmitButtonText:\"=?\",edaEasyFormViewerCancelButtonText:\"=?\",edaEasyFormViewerSubmitFormEvent:\"&?\",edaEasyFormViewerCancelFormEvent:\"&?\"},replace:!1,controller:n,controllerAs:\"vm\",templateUrl:\"eda.easyFormViewer.Template.html\",link:o};return t}angular.module(\"eda.easyFormViewer.Directive\",[]).directive(\"edaEasyFormViewer\",e),e.$inject=[\"modelsTranslator\"]}(),function(){function e(){var e={initNyaSelect:o,getControlsDefinition:n,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:l,refreshControlFormlyValidation:r,initConfigurationEditFromScratch:s,bindConfigurationLines:a,applyConfigurationToformlyModel:c};return e}function o(e){return i(e)}function n(){var e={};return i(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function r(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=n();angular.forEach(t.controls,function(o,n){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e){var o={controls:[{id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Text input field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Password field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Email\",name:\"Email\",subtitle:\"Email\",group:\"input\",formlyType:\"input\",formlySubtype:\"email\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var n=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\\.[a-z.]{2,5}$/.test(n)},message:\"$viewValue + ' is not a valid email'\"}},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Email field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return n.to.required?l:void 0}}}},{id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Date field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Textarea field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this RichTextEditor field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Password field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Checkbox field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Basic select field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}},{id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,n){var t=\"this Grouped Select field is required\",l=\"undefined\"!=typeof n.to.label&&\"\"!==n.to.label?n.to.label+\" is required\":t;return l}}}}],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function s(e){var o={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}]};angular.copy(o,e)}function a(e,o){if(\"[object Array]\"===Object.prototype.toString.call(o)){var n={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]};return n.lines=[].concat(o),angular.copy(n,e),q(\"configuration model is bound\",\"lines are bound to configuration model.\")}return S(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function c(e,o,n){u(o),O(n);for(var t=e.lines.length,l=0;t>l;l++)1===e.lines[l].columns.length&&(\"header\"===e.lines[l].columns[0].control.type?m(o,e,l):d(o,e,l)),2===e.lines[l].columns.length&&f(o,e,l),3===e.lines[l].columns.length&&y(o,e,l)}function u(e){var o=[];angular.copy(o,e)}function m(e,o,n){var t='

'+w(o.lines[n].columns[0].control)+\"


\";e.push({template:\"undefined\"!=typeof o.lines[n].columns[0].control.type&&\"header\"===o.lines[n].columns[0].control.type?t:\"
\"})}function p(e,o,n){e.templateOptions.datepickerPopup=v(o.lines[n].columns[0].control)}function d(e,o,n){var t={className:\"col-xs-12\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(t,o,n),e.push(t)}function f(e,o,n){var t={className:\"col-xs-6\",template:'

'+w(o.lines[n].columns[0].control)+\"


\"},l={className:\"col-xs-6\",template:'

'+w(o.lines[n].columns[1].control)+\"


\"},r={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(r,o,n);var i={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[n].columns[1].control.type?\"none\"===o.lines[n].columns[1].control.type?\"blank\":o.lines[n].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};\"datepicker\"===o.lines[n].columns[1].control.type&&p(i,o,n);var s=[];s.push(\"header\"===o.lines[n].columns[0].control.type?t:r),s.push(\"header\"===o.lines[n].columns[1].control.type?l:i),e.push({className:\"row\",fieldGroup:s})}function y(e,o,n){var t={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[0].control)+\"


\"},l={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[1].control)+\"


\"},r={className:\"col-xs-4\",template:'

'+w(o.lines[n].columns[2].control)+\"


\"},i={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[0].control.type?\"none\"===o.lines[n].columns[0].control.type?\"blank\":o.lines[n].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[0].control.key?o.lines[n].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[0].control),label:b(o.lines[n].columns[0].control),required:k(o.lines[n].columns[0].control),placeholder:T(o.lines[n].columns[0].control),description:w(o.lines[n].columns[0].control),options:E(o.lines[n].columns[0].control)},expressionProperties:h(o.lines[n].columns[0].control),validators:g(o.lines[n].columns[0].control),validation:x(o.lines[n].columns[0].control)};\"datepicker\"===o.lines[n].columns[0].control.type&&p(i,o,n);var s={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[1].control.type?\"none\"===o.lines[n].columns[1].control.type?\"blank\":o.lines[n].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[1].control.key?o.lines[n].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[1].control),label:b(o.lines[n].columns[1].control),required:k(o.lines[n].columns[1].control),placeholder:T(o.lines[n].columns[1].control),description:w(o.lines[n].columns[1].control),options:E(o.lines[n].columns[1].control)},expressionProperties:h(o.lines[n].columns[1].control),validators:g(o.lines[n].columns[1].control),validation:x(o.lines[n].columns[1].control)};\"datepicker\"===o.lines[n].columns[1].control.type&&p(s,o,n);var a={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[n].columns[2].control.type?\"none\"===o.lines[n].columns[2].control.type?\"blank\":o.lines[n].columns[2].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[n].columns[2].control.key?o.lines[n].columns[2].control.key:\"blank\"+Date.now(),templateOptions:{type:V(o.lines[n].columns[2].control),label:b(o.lines[n].columns[2].control),required:k(o.lines[n].columns[2].control),placeholder:T(o.lines[n].columns[2].control),description:w(o.lines[n].columns[2].control),options:E(o.lines[n].columns[2].control)},expressionProperties:h(o.lines[n].columns[2].control),validators:g(o.lines[n].columns[2].control),validation:x(o.lines[n].columns[2].control)};\"datepicker\"===o.lines[n].columns[2].control.type&&p(a,o,n);var c=[];c.push(\"header\"===o.lines[n].columns[0].control.type?t:i),c.push(\"header\"===o.lines[n].columns[1].control.type?l:s),c.push(\"header\"===o.lines[n].columns[2].control.type?r:a),e.push({className:\"row\",fieldGroup:c})}function b(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.label?e.templateOptions.label:\"\"}function v(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:\"\"}function h(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function g(e){return\"undefined\"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function x(e){return\"undefined\"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function k(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.required?e.templateOptions.required:\"\"}function E(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.options?e.templateOptions.options:\"\"}function V(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function T(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:\"\"}function w(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.description?e.templateOptions.description:\"\"}function O(e){var o={};return angular.copy(o,e),!0}function S(e,o){var n={noError:!1,title:\"\",Message:\"\"};return n.noError=!1,n.title=e,n.Message=o,n}function q(e,o){var n={noError:!1,title:\"\",Message:\"\"};return n.noError=!0,n.title=e,n.Message=o,n}angular.module(\"eda.modelsTranslator.Service\",[]).factory(\"modelsTranslator\",e),e.$inject=[]}()}(this);\n//# sourceMappingURL=eda.easyFormViewer.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file diff --git a/public/js/eda.stepway.min.js.map b/public/js/eda.stepway.min.js.map index ae20eaf1..20b76b60 100644 --- a/public/js/eda.stepway.min.js.map +++ b/public/js/eda.stepway.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["eda.stepway.min.js"],"names":["configfct","formlyConfigProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","subTitleTemplate","basicSelectTemplate","groupedSelectTemplate","attributes","bindings","ngModelAttrs","angular","forEach","attr","attribute","binding","bound","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","scope","isOpen","onFocus","$viewValue","$modelValue","to","datepickerOptions","setWrapper","join","module","value","config","$inject","run","$templateCache","put","ngwfMainController","$timeout","FormNameAsTest","ngwfWfEditController","easyFormGenVersion","$filter","$anchorScroll","toaster","$modal","$log","formFieldManage","controllerModalProxy","initDebugModel","showDebug","configurationModelNumberofLines","initTabModel","editTab","active","previewTab","previewExistingform","formlyform","configlines","JSON","parse","formlyField","configurationLoaded","bindConfigurationLines","applyConfigurationToformlyModel","previewLoadedForm","fieldsModel","vm","model","wfFormFieldsOnlyNeededProperties","copy","wfFormFields","cancelButtonText","submitButtonText","onSubmit","pop","type","timeout","title","body","showCloseButton","initColumnTemplate","numColumn","exist","control","key","subtype","initLineTemplate","line","activeColumn","columns","resetToZeroModel","configuration","activeLine","lines","length","splice","countConfigurationModelLines","debug","setActiveLineNumber","lineNumber","upThisLine","indexLine","currentLineObj","downThisLine","addNewline","push","removeThisLine","index","increaseNumberOfColumns","MaxNumberOfColumns","newNumberOfColumns","decreaseNumberOfColumns","resetStepCounter","configStepCounter","nextConfigStep","configStepCounterMAX","listConfigStep","setTrueThisStepIndicator","previousConfigStep","stepReachable","indexStep","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","animationsEnabled","templateUrl","resolve","nyaSelect","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","toggleAnimation","loadExistingFormsAsList","saveThisForm","formName","clear","resetAllIndicators","i","stepIndicators","indexIndicator","this","easyFormGeneratorVERSION","tab","numberOfColumns","MinNumberOfColumns","columnTemplate","lineTemplate","loadExistingFormsList","formlyList","initConfigurationEditFromScratch","initNyaSelect","ngwfWfEditMODALController","$modalInstance","selectOptionManage","addNewOptionRadio","radioRowCollection","newOptionRadio","saisie","resultFlag","details","removeRadioRow","removeOption","upThisRadioRow","upthisOption","downThisRadioRow","downthisOption","addNewOptionBasicSelect","basicSelectRowCollection","newOptionBasicSelect","removeRow","upThisRow","downThisRow","showGroupListToChoose","groupSelectGroupClick","showList","addNewGroupToGroupedSelect","newGroupGroupedSelect","GroupedSelectGroups","list","addNewOptionGroupedSelect","groupedSelectRowCollection","newOptionGroupedSelect","removeGroupedSelectRow","upThisGroupedSelectRow","downThisGroupedSelectRow","today","demodt","dt","Date","openfct","dateOptionsInit","formatYear","startingDay","showWeeks","initDate","selectThisControl","controlName","selectedControl","resetTemporyConfig","controls","id","initDatePicker","okfct","bindBasicSelectToNya","bindGroupedSelectToNya","bindRadioToNya","applyConfigToSelectedControl","close","cancelfct","dismiss","bindRadioFromNYA","temporyConfig","formlyOptions","newOption","option","order","group","rows","resetNyASelectOptions","bindBasicSelectFromNYA","bindGroupedSelectFromNYA","filteredgroup","_","uniq","pluck","datepickerPopup","formats","initNyaSelectConformingSelectedControl","modelNyaSelect","formlyLabel","formlyRequired","formlyPlaceholder","formlyDesciption","initOptionModel","dateOptions","ok","cancel","edaStepWayEasyFormGen","linkFct","element","attrs","returnAttributeConfigurationLinesIfNotEmpty","edaEasyFormGeneratorModelToReturn","isArray","edaEasyFormGeneratorModel","edaFieldsModel","emptyEdaFieldsModel","emptyModel","returnAttributeDataModelIfNotEmpty","dataModelToReturn","dataModel","watchEdaEasyFormModelExpression","watchEdaEasyFormModelHasChanged","newValue","oldValue","loadExistingConfigurationModel","watchReturnSaveEventExpression","returnSaveEvent","watchReturnSaveEventhasChanged","_easyFormGeneratorModel","btnSubmitText","btnCancelText","edaFieldsModelStringified","toJson","formlyFieldsModel","edaSaveFormEvent","isDefined","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","isString","$watch","edaStepWayEasyFormGenCtrl","directive","restrict","controllerAs","link","stRatio","linkfct","ratio","css","nyaSelectObj","resetNyaSelect","getControlsDefinition","configurationModel","isObject","column","controlIndex","_controlsDefinition","aControl","aControlIndex","formlyType","formlySubtype","formlyExpressionProperties","formlyValidators","formlyValidation","configurationObj","label","required","description","placeholder","extractedProps","returnControlFromAddCtrlModalModel","newKey","now","validKeyUniqueness","edited","newNyaSelectObj","subtitle","messages","viewValue","modelValue","defaultReturnMsg","returnMsg","emailShape","expression","test","message","CtrlModalModel","modelToReturn","thisKey","isUnique","j","service","factory","configurationModelInit","Object","prototype","toString","call","configurationModelResult","concat","getMessageObject","getErrorObject","formlyModel","formlyDataModel","resetFormlyModel","resetDataModel","addOneColumnHeader","addOneColumnControl","addTwoColumnControl","addThreeColumnControl","resetformly","lineIndex","headerTemplateCol0","extractTemplateOptionDescription","addDatepickerPopupProperty","fieldToPush","extractTemplateOptionDatepickerPopup","className","extractTemplateOptionType","extractTemplateOptionLabel","extractTemplateOptionRequired","extractTemplateOptionPlaceholder","extractTemplateOptionOptions","expressionProperties","extractFormlyExpressionProperties","validators","extractFormlyValidators","validation","extractFormlyValidation","headerTemplateCol1","controlCol0","controlCol1","FieldGroup","fieldGroup","headerTemplateCol2","controlCol2","obj","emptyDataModel","errorTitle","errorMessage","messageObj","noError","Message","messageTitle","messageBody","testMe","initModel","selectObj","resetModel","isOptionUnique","textValue","isOptionValidFormat","newOptionText","fullResponse","checkResult","validOption","newOptionGroup","AtIndex","indexOption","currentOption","zeroModel"],"mappings":"CAOE,WACA,cAeD,WAwBG,QAASA,GAAUC,GAyKjB,QAASC,GAASC,GAKhB,MAJAA,GAASA,EAAOC,QAAQ,gBAAiB,SAASC,EAAOC,GACvD,MAAOA,GAAMA,EAAIC,cAAgB,KAG5BJ,EAAOC,QAAQ,WAAY,SAASC,EAAOC,GAChD,MAAOA,GAAMA,EAAIE,cAAgB,KA3KrCP,EAAqBQ,SAEjBC,KAAM,aAENC,SAAU,+GAIdV,EAAqBQ,SAEjBC,KAAM,QACNC,SAAU,eAKd,IAAIC,GAAmB,qHACvBX,GAAqBQ,SAEjBC,KAAM,WACNC,SAAUC,GAId,IAAIC,GAAwB,qUAS7BZ,GAAqBQ,SAEhBC,KAAM,cACNC,SAAUE,GAKf,IAAIC,GAA0B,mgBAc9Bb,GAAqBQ,SAEhBC,KAAM,gBACNC,SAAUG,GASd,IAAIC,IACF,gBACA,eACA,aACA,eACA,YACA,WACA,WACA,aACA,eACA,cACA,oBACA,mBACA,qBACA,aACA,uBACA,mBACA,kBACA,eACA,aACA,aACA,0BACA,6BAGEC,GACF,kBACA,WACA,YAGEC,IAEJC,SAAQC,QAAQJ,EAAY,SAASK,GACnCH,EAAaf,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N,SAAQqE,KAAKuU,EAAWb,GAvO1B,GAAIxD,IACFsD,OAA4BA,EAC5BC,UAA4BA,EAC5BG,eAA4BA,EAC5BE,oBAA4BA,EAC5BrO,kBAA4BA,EAC5BY,wBAA4BA,EAC5Ba,0BAA4BA,EAC5BlB,aAA4BA,EAC5BE,aAA4BA,EAC5BE,eAA4BA,EAE9B,OAAO8J,GAlBXvU,QACG6B,OAAO,0CACP2S,QAAQ,qBAAsB3K,GAE/BA,EAAmB7H,cAyiBtB,WAGAhC,QAAQ6B,OACA,oBACW,mCACA,sCACA,yDAmBnB,WAGA7B,QACE6B,OAAO,0BAMPmH","file":"eda.stepway.min.js","sourcesContent":["!function(){\"use strict\";!function(){function e(e){function o(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"richEditor\",template:''}),e.setType({name:\"blank\",template:\"
\"});var l='

{{options.templateOptions.placeholder}}


';e.setType({name:\"subTitle\",template:l});var t='
  1. {{option.name}}
';e.setType({name:\"basicSelect\",template:t});var n='
  1. {{$group}} {{option.name}}
';e.setType({name:\"groupedSelect\",template:n});var i=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],s=[\"datepicker-mode\",\"min-date\",\"max-date\"],a={};angular.forEach(i,function(e){a[o(e)]={attribute:e}}),angular.forEach(s,function(e){a[o(e)]={bound:e}}),e.setType({name:\"datepicker\",template:'',wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:a,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,l){l.to.isOpen=!l.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
\",\" \",'
','
','
',\" {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\",\"
\",\"
\",\"
\"].join(\" \")}])}angular.module(\"eda.easyformGen.stepway\",[\"ngwfApp\"]),angular.module(\"ngwfApp\",[\"ngwfApp.core\",\"ngwfApp.controllers\",\"ngwfApp.services\",\"ngwfApp.filters\",\"ngwfApp.directives\"]).value(\"easyFormGenVersion\",\"v1.0.18\").config(e),e.$inject=[\"formlyConfigProvider\"]}(),angular.module(\"ngwfApp\").run([\"$templateCache\",function(e){e.put(\"edaStepWayEasyFormGeneratorTemplate.html\",'

lines

layout

controls

save

Command

Add a new line : 

Visual

  • 1\">
    1\">
    1\">

Command

– Selected line –

number of columns :

{{configuration.lines[configuration.activeLine -1].columns.length}}

Visual

  • 1\">
    1\">
    1\">

Command

– Apply controls to columns –


  Click / Tap on column to open control selection.

  Select desired control and valid to apply it to column.

Visual

  • 1\">
    1\">
    1\">

 Command



 Final Step : form preview

DATA MODEL

\\n\t\t\t\t\t\t\t\t\t\t{{vm.model | json}}\\n\t\t\t\t\t\t\t\t\t

FIELDS MODEL (ready to save to database one)

\\n\t\t\t\t\t\t\t\t\t\t{{vm.wfFormFieldsOnlyNeededProperties | json}}\\n\t\t\t\t\t\t\t\t\t

Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put(\"editModalTemplate.html\",'');\n\n}]),function(){angular.module(\"ngwfApp.core\",[\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\"])}(),function(){angular.module(\"ngwfApp.controllers\",[\"ngwfApp.controllers.ngwfMainController\",\"ngwfApp.controllers.ngwfWfEditController\",\"ngwfApp.controllers.ngwfWfEditMODALController\"])}(),function(){function e(e,o){e.FormNameAsTest=\"initial_name\",o(function(){e.FormNameAsTest=\"name changed after 3s\"},3e3)}angular.module(\"ngwfApp.controllers.ngwfMainController\",[]).controller(\"ngwfMainController\",e),e.$inject=[\"$scope\",\"$timeout\"]}(),function(){function e(e,o,l,t,n,i,s,a,r,c,d){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function u(){return{editTab:{active:!0},previewTab:{active:!1}}}function m(o){var l=JSON.parse(o.formlyField);e.configurationLoaded={},c.bindConfigurationLines(e.configurationLoaded,l),c.applyConfigurationToformlyModel(e.configurationLoaded,e.previewLoadedForm.fieldsModel,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.previewLoadedForm.cancelButtonText=o.cancelButtonText,e.previewLoadedForm.submitButtonText=o.submitButtonText}function f(){i.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function v(){return{numColumn:-1,exist:!0,control:{type:\"none\",key:\"none\",subtype:\"none\"}}}function g(){return{line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}}function y(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function b(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function h(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function w(o){if(o>-1&&e.configuration.lines[o-1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function x(o){if(o>-1&&e.configuration.lines[o+1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function C(){e.configuration.lines.push({line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function S(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):s(function(){i.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))}function T(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function L(){e.configuration.configStepCounter=0}function k(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,N(e.configuration.configStepCounter)}function O(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,N(e.configuration.configStepCounter)}function R(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function N(o){D(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=f,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=u(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=v(),e.lineTemplate=g(),e.resetToZeroModel=y,e.countConfigurationModelLines=b,e.setActiveLineNumber=h,e.upThisLine=w,e.downThisLine=x,e.addNewline=C,e.removeThisLine=S,e.increaseNumberOfColumns=T,e.decreaseNumberOfColumns=F,e.resetStepCounter=L,e.nextConfigStep=k,e.previousConfigStep=O,e.stepReachable=R,e.toggleAnimation=E,e.nyaSelect={},e.animationsEnabled=!1,e.showModalAddCtrlToColumn=P,e.loadExistingFormsList=q(),e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=m,e.saveThisForm=M,q(),c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}angular.module(\"ngwfApp.controllers.ngwfWfEditController\",[]).controller(\"ngwfWfEditController\",e),e.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\"]}(),function(){function e(e,o,l,t,n,i,s){function a(){var o=i.addNewOptionRadio(e.radioRowCollection,e.newOptionRadio.saisie);o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionRadio={saisie:\"\"}}function r(o){var l=i.removeOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function c(o){var l=i.upthisOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function d(o){var l=i.downthisOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function p(){var o=i.addNewOptionBasicSelect(e.basicSelectRowCollection,e.newOptionBasicSelect.saisie);o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionBasicSelect={saisie:\"\"}}function u(o){var l=i.removeOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function m(o){var l=i.upthisOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function f(o){var l=i.downthisOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function v(){e.groupSelectGroupClick.showList=!e.groupSelectGroupClick.showList}function g(){if(\"\"!==e.newGroupGroupedSelect.saisie){for(var o=e.GroupedSelectGroups.list.length-1;o>=0;o--)e.GroupedSelectGroups.list[o]===e.newGroupGroupedSelect.saisie&&t.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else t.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});e.newGroupGroupedSelect.saisie=\"\"}function y(){var o=i.addNewOptionGroupedSelect(e.groupedSelectRowCollection,e.newOptionGroupedSelect.saisie,\"\");o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionGroupedSelect={saisie:\"\"}}function b(o){var l=i.removeOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function h(o){var l=i.upthisOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function w(o){var l=i.downthisOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function x(){e.demodt.dt=new Date}function C(){e.demodt.dt=null}function S(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0}function T(){return{formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null}}function F(o){e.nyaSelect.selectedControl=\"none\",$();for(var l=e.nyaSelect.controls.length-1;l>=0;l--)e.nyaSelect.controls[l].id===o&&(e.nyaSelect.selectedControl=e.nyaSelect.controls[l].id);\"Date\"===e.nyaSelect.selectedControl&&D()}function L(){\"BasicSelect\"===e.nyaSelect.selectedControl&&E(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&M(),\"Radio\"===e.nyaSelect.selectedControl&&R(),s.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)}function k(){o.dismiss(\"cancel\")}function O(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.radioRowCollection.rows.push(l)}}function R(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.radioRowCollection.rows.length>0)for(var l=0;l<=e.radioRowCollection.rows.length-1;l++){var t={name:e.radioRowCollection.rows[l].option,value:l,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function P(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.basicSelectRowCollection.rows.push(l)}}function E(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.basicSelectRowCollection.rows.length>0)for(var l=0;l<=e.basicSelectRowCollection.rows.length-1;l++){var t={name:e.basicSelectRowCollection.rows[l].option,value:l,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function q(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0){for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:e.nyaSelect.temporyConfig.formlyOptions[o].group};e.groupedSelectRowCollection.rows.push(l)}var t=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(t,e.GroupedSelectGroups.list)}}function M(){e.nyaSelect.temporyConfig.formlyOptions=[];for(var o=0;o<=e.groupedSelectRowCollection.rows.length-1;o++){var l={name:e.groupedSelectRowCollection.rows[o].option,value:o,group:e.groupedSelectRowCollection.rows[o].group};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function D(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function N(){if(\"none\"!==l.selectedControl){for(var o=e.nyaSelect.controls.length-1;o>=0;o--)e.nyaSelect.controls[o].id===l.selectedControl&&(e.modelNyaSelect=l.controls[o]);\"BasicSelect\"===e.nyaSelect.selectedControl&&P(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&q(),\"Radio\"===e.nyaSelect.selectedControl&&O()}}function $(){e.nyaSelect.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var A={rows:[]};e.radioRowCollection=A,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=a,e.removeRadioRow=r,e.upThisRadioRow=c,e.downThisRadioRow=d,e.basicSelectRowCollection=A,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=p,e.removeRow=u,e.upThisRow=m,e.downThisRow=f,e.groupedSelectRowCollection=A,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=v,e.addNewGroupToGroupedSelect=g,e.addNewOptionGroupedSelect=y,e.removeGroupedSelectRow=b,e.upThisGroupedSelectRow=h,e.downThisGroupedSelectRow=w,e.demodt={},e.today=x,e.clear=C,e.open=S,e.dateOptions=T(),e.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"],e.nyaSelect=l,e.nyaSelect.selectedControl=e.nyaSelect.temporyConfig.selectedControl,e.selectThisControl=F,e.ok=L,e.cancel=k,x(),N()}angular.module(\"ngwfApp.controllers.ngwfWfEditMODALController\",[]).controller(\"ngwfWfEditMODALController\",e),e.$inject=[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\"]}(),function(){function e(e,o,l,t){function n(e,o,n){function i(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:s();return o}function s(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function a(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function r(){return e.edaEasyFormGeneratorModel}function c(e,o){u()}function d(){return e.returnSaveEvent}function p(o,l){if(o===!0){var t={formName:e.configuration.formName,btnSubmitText:e.configuration.submitButtonText,btnCancelText:e.configuration.cancelButtonText,edaFieldsModel:e.configuration.lines,edaFieldsModelStringified:angular.toJson(e.configuration.lines),formlyFieldsModel:e.vm.wfFormFieldsOnlyNeededProperties,dataModel:e.vm.model};e.edaSaveFormEvent({edaEasyFormGeneratorModel:t}),e.returnSaveEvent=!1}}function u(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var o=i();e.configurationLoaded={},l.bindConfigurationLines(e.configurationLoaded,o),t.refreshControlFormlyExpressionProperties(e.configurationLoaded),t.refreshControlFormlyValidators(e.configurationLoaded),t.refreshControlFormlyValidation(e.configurationLoaded),e.configuration=angular.copy(e.configurationLoaded),l.applyConfigurationToformlyModel(e.configurationLoaded,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=a,e.configuration.formName=angular.isString(e.edaEasyFormGeneratorModel.formName)?e.edaEasyFormGeneratorModel.formName:\"\",e.configuration.submitButtonText=angular.isString(e.edaEasyFormGeneratorModel.btnSubmitText)?e.edaEasyFormGeneratorModel.btnSubmitText:\"Submit\",e.configuration.cancelButtonText=angular.isString(e.edaEasyFormGeneratorModel.btnCancelText)?e.edaEasyFormGeneratorModel.btnCancelText:\"Cancel\"}}e.$watch(r,c,!0),e.$watch(d,p)}function i(e,o,l,t,n,i,s,a,r,c,d){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function u(){return{editTab:{active:!0},previewTab:{active:!1}}}function m(o){var l=JSON.parse(o.formlyField);e.configurationLoaded={},c.bindConfigurationLines(e.configurationLoaded,l),c.applyConfigurationToformlyModel(e.configurationLoaded,e.previewLoadedForm.fieldsModel,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.previewLoadedForm.cancelButtonText=o.cancelButtonText,e.previewLoadedForm.submitButtonText=o.submitButtonText}function f(){i.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function v(){return{numColumn:-1,exist:!0,control:{type:\"none\",key:\"none\",subtype:\"none\"}}}function g(){return{line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}}function y(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function b(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function h(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function w(o){if(o>-1&&e.configuration.lines[o-1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function x(o){if(o>-1&&e.configuration.lines[o+1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function C(){e.configuration.lines.push({line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function S(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):s(function(){i.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))}function T(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function L(){e.configuration.configStepCounter=0}function k(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,D(e.configuration.configStepCounter)}function O(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,D(e.configuration.configStepCounter)}function R(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function D(o){M(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=f,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=u(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=v(),e.lineTemplate=g(),e.resetToZeroModel=y,e.countConfigurationModelLines=b,e.setActiveLineNumber=h,e.upThisLine=w,e.downThisLine=x,e.addNewline=C,e.removeThisLine=S,e.increaseNumberOfColumns=T,e.decreaseNumberOfColumns=F,e.resetStepCounter=L,e.nextConfigStep=k,e.previousConfigStep=O,e.stepReachable=R,e.toggleAnimation=E,e.nyaSelect={},e.animationsEnabled=!1,e.showModalAddCtrlToColumn=P,e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=m,e.saveThisForm=q,e.returnSaveEvent=!1,c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}i.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\"];var s={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaStepWayEasyFormGeneratorTemplate.html\",link:n};return s}angular.module(\"ngwfApp.directives.edaStepWayEasyFormGenDirective\",[]).directive(\"edaStepWayEasyFormGen\",e),e.$inject=[\"$templateCache\",\"$timeout\",\"formFieldManage\",\"controllerModalProxy\"]}(),function(){angular.module(\"ngwfApp.directives\",[\"ngwfApp.directives.ngwfStRatioDirective\",\"ngwfApp.directives.edaStepWayEasyFormGenDirective\"])}(),function(){function e(){function e(e,o,l){var t=+l.stRatio;o.css(\"width\",t+\"%\")}var o={link:e};return o}angular.module(\"ngwfApp.directives.ngwfStRatioDirective\",[]).directive(\"stRatio\",e),e.$inject=[]}(),function(){function e(){function e(e){return c(e)}function o(){var e={};return c(e),e}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function n(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e,o,l,t){return c(e),\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof o.lines[l].columns[t].control.selectedControl?o.lines[l].columns[t].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.label?o.lines[l].columns[t].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.required?o.lines[l].columns[t].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.description?o.lines[l].columns[t].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.placeholder?o.lines[l].columns[t].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.options?o.lines[l].columns[t].control.templateOptions.options:\"\",e.temporyConfig.formlyExpressionProperties=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyExpressionProperties?angular.copy(o.lines[l].columns[t].control.formlyExpressionProperties):{},e.temporyConfig.formlyValidators=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyValidators?angular.copy(o.lines[l].columns[t].control.formlyValidators):{},e.temporyConfig.formlyValidation=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyValidation?angular.copy(o.lines[l].columns[t].control.formlyValidation):{},\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.datepickerPopup?o.lines[l].columns[t].control.templateOptions.datepickerPopup:\"\")),e}function s(e,o,l,t){var n=d(l);t.lines[e].columns[o].control.selectedControl=n.selectedControl,t.lines[e].columns[o].control.type=n.formlyType,t.lines[e].columns[o].control.subtype=n.formlySubtype,t.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},t.lines[e].columns[o].control.templateOptions.label=n.formlyLabel,t.lines[e].columns[o].control.templateOptions.required=n.formlyRequired,t.lines[e].columns[o].control.templateOptions.description=n.formlyDesciption,t.lines[e].columns[o].control.templateOptions.placeholder=n.formlyPlaceholder,t.lines[e].columns[o].control.templateOptions.options=n.formlyOptions,t.lines[e].columns[o].control.formlyExpressionProperties=angular.copy(n.formlyExpressionProperties),t.lines[e].columns[o].control.formlyValidators=angular.copy(n.formlyValidators),t.lines[e].columns[o].control.formlyValidation=angular.copy(n.formlyValidation),\"datepicker\"===t.lines[e].columns[o].control.type&&(t.lines[e].columns[o].control.templateOptions.datepickerPopup=n.datepickerPopup);var i=t.lines[e].columns[o].control.type+\"-\"+Date.now();p(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),p(i,t)===!0?t.lines[e].columns[o].control.key=i:i=t.lines[e].columns[o].control.type+\"-\"+Date.now()),t.lines[e].columns[o].control.edited=!0}function a(e){for(var o=e.controls.length-1;o>=0;o--)e.controls[o].id===e.selectedControl&&(e.controls[o].formlyLabel=e.temporyConfig.formlyLabel,e.controls[o].formlyRequired=e.temporyConfig.formlyRequired,e.controls[o].formlyDesciption=e.temporyConfig.formlyDesciption,e.controls[o].formlyPlaceholder=e.temporyConfig.formlyPlaceholder,e.controls[o].formlyOptions=e.temporyConfig.formlyOptions,\"Date\"===e.controls[o].id&&(e.controls[o].datepickerPopup=e.temporyConfig.datepickerPopup))}function r(){return{formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function c(e){var o={controls:[{id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Text input field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Password field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Email\",name:\"Email\",subtitle:\"Email\",group:\"input\",formlyType:\"input\",formlySubtype:\"email\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var l=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\\.[a-z.]{2,5}$/.test(l)},message:\"$viewValue + ' is not a valid email'\"}},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Email field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return l.to.required?n:void 0}}}},{id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Date field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Textarea field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this RichTextEditor field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Password field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{\nmessages:{required:function(e,o,l){var t=\"this Checkbox field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Basic select field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Grouped Select field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}}],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function d(e){for(var o={selectedControl:\"none\",formlyType:\"none\",formlySubtype:\"none\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},l=e.controls.length-1;l>=0;l--)e.selectedControl===e.controls[l].id&&(o.selectedControl=e.selectedControl,o.formlyType=e.controls[l].formlyType,o.formlySubtype=e.controls[l].formlySubtype,o.formlyLabel=e.controls[l].formlyLabel,o.formlyRequired=e.controls[l].formlyRequired,o.formlyDesciption=e.controls[l].formlyDesciption,o.formlyPlaceholder=e.controls[l].formlyPlaceholder,o.formlyOptions=e.controls[l].formlyOptions,o.formlyExpressionProperties=angular.copy(e.controls[l].formlyExpressionProperties),o.formlyValidators=angular.copy(e.controls[l].formlyValidators),o.formlyValidation=angular.copy(e.controls[l].formlyValidation),\"datepicker\"===e.controls[l].formlyType&&(o.datepickerPopup=e.controls[l].datepickerPopup));return o}function p(e,o){for(var l=!0,t=o.lines.length-1;t>=0;t--)for(var n=o.lines[t].columns.length-1;n>=0;n--)o.lines[t].columns[n].control.key===e&&(l=!1);return l}var u={initNyaSelect:e,getNyASelectFromSelectedLineColumn:i,bindConfigurationModelFromModalReturn:s,applyConfigToSelectedControl:a,resetTemporyConfig:r,getControlsDefinition:o,refreshControlFormlyExpressionProperties:l,refreshControlFormlyValidators:t,refreshControlFormlyValidation:n};return u}angular.module(\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",e),e.$inject=[]}(),function(){function e(){function e(e){var o={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}]};angular.copy(o,e)}function o(e,o){if(\"[object Array]\"===Object.prototype.toString.call(o)){var l={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]};return l.lines=[].concat(o),angular.copy(l,e),x(\"configuration model is bound\",\"lines are bound to configuration model.\")}return w(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function l(e,o,l){t(o),h(l);for(var i=e.lines.length,c=0;i>c;c++)1===e.lines[c].columns.length&&(\"header\"===e.lines[c].columns[0].control.type?n(o,e,c):s(o,e,c)),2===e.lines[c].columns.length&&a(o,e,c),3===e.lines[c].columns.length&&r(o,e,c)}function t(e){var o=[];angular.copy(o,e)}function n(e,o,l){var t='

'+b(o.lines[l].columns[0].control)+\"


\";e.push({template:\"undefined\"!=typeof o.lines[l].columns[0].control.type&&\"header\"===o.lines[l].columns[0].control.type?t:\"
\"})}function i(e,o,l){e.templateOptions.datepickerPopup=d(o.lines[l].columns[0].control)}function s(e,o,l){var t={className:\"col-xs-12\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(t,o,l),e.push(t)}function a(e,o,l){var t={className:\"col-xs-6\",template:'

'+b(o.lines[l].columns[0].control)+\"


\"},n={className:\"col-xs-6\",template:'

'+b(o.lines[l].columns[1].control)+\"


\"},s={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(s,o,l);var a={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[l].columns[1].control.type?\"none\"===o.lines[l].columns[1].control.type?\"blank\":o.lines[l].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[1].control.key?o.lines[l].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:y(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:p(o.lines[l].columns[1].control),validators:u(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(a,o,l);var r=[];r.push(\"header\"===o.lines[l].columns[0].control.type?t:s),r.push(\"header\"===o.lines[l].columns[1].control.type?n:a),e.push({className:\"row\",fieldGroup:r})}function r(e,o,l){var t={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[0].control)+\"


\"},n={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[1].control)+\"


\"},s={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[2].control)+\"


\"},a={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(a,o,l);var r={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[1].control.type?\"none\"===o.lines[l].columns[1].control.type?\"blank\":o.lines[l].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[1].control.key?o.lines[l].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:y(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:p(o.lines[l].columns[1].control),validators:u(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(r,o,l);var d={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[2].control.type?\"none\"===o.lines[l].columns[2].control.type?\"blank\":o.lines[l].columns[2].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[2].control.key?o.lines[l].columns[2].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[2].control),label:c(o.lines[l].columns[2].control),required:f(o.lines[l].columns[2].control),placeholder:y(o.lines[l].columns[2].control),description:b(o.lines[l].columns[2].control),options:v(o.lines[l].columns[2].control)},expressionProperties:p(o.lines[l].columns[2].control),validators:u(o.lines[l].columns[2].control),validation:m(o.lines[l].columns[2].control)};\"datepicker\"===o.lines[l].columns[2].control.type&&i(d,o,l);var h=[];h.push(\"header\"===o.lines[l].columns[0].control.type?t:a),h.push(\"header\"===o.lines[l].columns[1].control.type?n:r),h.push(\"header\"===o.lines[l].columns[2].control.type?s:d),e.push({className:\"row\",fieldGroup:h})}function c(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.label?e.templateOptions.label:\"\"}function d(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:\"\"}function p(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function u(e){return\"undefined\"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function m(e){return\"undefined\"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function f(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.required?e.templateOptions.required:\"\"}function v(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.options?e.templateOptions.options:\"\"}function g(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function y(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:\"\"}function b(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.description?e.templateOptions.description:\"\"}function h(e){var o={};return angular.copy(o,e),!0}function w(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!1,l.title=e,l.Message=o,l}function x(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!0,l.title=e,l.Message=o,l}var C={initConfigurationEditFromScratch:e,bindConfigurationLines:o,applyConfigurationToformlyModel:l};return C}angular.module(\"ngwfApp.services.formFieldManage\",[]).factory(\"formFieldManage\",e),e.$inject=[]}(),function(){function e(){function e(){return\"selectOptionManage is here.\"}function o(e){p(e)}function l(e,o){for(var l=e.rows.length-1;l>=0;l--)if(e.rows[l].option===o)return!1;return!0}function t(e){return\"\"!==e?!0:!1}function n(e,o){var l={resultFlag:!1,details:\"\"},t=d(e,o);if(t.resultFlag===!0){var n={option:o,order:e.rows.length};return e.rows.push(n),l.resultFlag=!0,l.details=\"\",l}return angular.copy(t,l),l}function i(e,o){var l={resultFlag:!1,details:\"\"},t=d(e,o);if(t.resultFlag===!0){var n={option:o,order:e.rows.length};return e.rows.push(n),l.resultFlag=!0,l.details=\"\",l}return angular.copy(t,l),l}function s(e,o,l){var t={resultFlag:!1,details:\"\"},n=d(e,o);if(n.resultFlag===!0){var i={option:o,group:l,order:e.rows.length};return e.rows.push(i),t.resultFlag=!0,t.details=\"\",t}return angular.copy(n,t),t}function a(e,o){var l={resultFlag:!1,details:\"\"};return-1!==o?(e.rows.splice(o,1),l.resultFlag=!0,l.details=\"\",l):(l.resultFlag=!1,l.details=\"Option index not valid\",l)}function r(e,o){var l={resultFlag:!1,details:\"\"};if(o>-1){if(o>0){if(e.rows[o-1]){var t=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,t),l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Can't retreive option from option index\",l}return l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Option index not valid\",l}function c(e,o){var l={resultFlag:!1,details:\"\"};if(o>-1){if(o=0;t--)if(e.rows[t].option===o)return l.resultFlag=!1,l.details=\"Entered option is not unique\",l;return l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Entered option is empty\",l}function p(e){var o={rows:[]};angular.copy(o,e)}var u={testMe:e,initModel:o,isOptionUnique:l,isOptionValidFormat:t,addNewOptionRadio:n,addNewOptionBasicSelect:i,addNewOptionGroupedSelect:s,removeOption:a,upthisOption:r,downthisOption:c};return u}angular.module(\"ngwfApp.services.selectOptionManage\",[]).factory(\"selectOptionManage\",e),e.$inject=[]}(),function(){angular.module(\"ngwfApp.services\",[\"ngwfApp.services.formFieldManage\",\"ngwfApp.services.selectOptionManage\",\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\"])}(),function(){angular.module(\"ngwfApp.filters\",[])}()}(this);\n//# sourceMappingURL=eda.stepway.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["eda.stepway.min.js"],"names":["configfct","formlyConfigProvider","camelize","string","replace","match","chr","toUpperCase","toLowerCase","setType","name","template","subTitleTemplate","basicSelectTemplate","groupedSelectTemplate","attributes","bindings","ngModelAttrs","angular","forEach","attr","attribute","binding","bound","wrapper","controller","$scope","open","$event","preventDefault","stopPropagation","opened","defaultOptions","templateOptions","addonLeft","class","onClick","options","scope","isOpen","onFocus","$viewValue","$modelValue","to","datepickerOptions","setWrapper","join","module","value","config","$inject","run","$templateCache","put","ngwfMainController","$timeout","FormNameAsTest","ngwfWfEditController","easyFormGenVersion","$filter","$anchorScroll","toaster","$modal","$log","formFieldManage","controllerModalProxy","initDebugModel","showDebug","configurationModelNumberofLines","initTabModel","editTab","active","previewTab","previewExistingform","formlyform","configlines","JSON","parse","formlyField","configurationLoaded","bindConfigurationLines","applyConfigurationToformlyModel","previewLoadedForm","fieldsModel","vm","model","wfFormFieldsOnlyNeededProperties","copy","wfFormFields","cancelButtonText","submitButtonText","onSubmit","pop","type","timeout","title","body","showCloseButton","initColumnTemplate","numColumn","exist","control","key","subtype","initLineTemplate","line","activeColumn","columns","resetToZeroModel","configuration","activeLine","lines","length","splice","countConfigurationModelLines","debug","setActiveLineNumber","lineNumber","upThisLine","indexLine","currentLineObj","downThisLine","addNewline","push","removeThisLine","index","increaseNumberOfColumns","MaxNumberOfColumns","newNumberOfColumns","decreaseNumberOfColumns","resetStepCounter","configStepCounter","nextConfigStep","configStepCounterMAX","listConfigStep","setTrueThisStepIndicator","previousConfigStep","stepReachable","indexStep","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","animationsEnabled","templateUrl","resolve","nyaSelect","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","toggleAnimation","loadExistingFormsAsList","saveThisForm","formName","clear","resetAllIndicators","i","stepIndicators","indexIndicator","this","easyFormGeneratorVERSION","tab","numberOfColumns","MinNumberOfColumns","columnTemplate","lineTemplate","loadExistingFormsList","formlyList","initConfigurationEditFromScratch","initNyaSelect","ngwfWfEditMODALController","$modalInstance","selectOptionManage","addNewOptionRadio","radioRowCollection","newOptionRadio","saisie","resultFlag","details","removeRadioRow","removeOption","upThisRadioRow","upthisOption","downThisRadioRow","downthisOption","addNewOptionBasicSelect","basicSelectRowCollection","newOptionBasicSelect","removeRow","upThisRow","downThisRow","showGroupListToChoose","groupSelectGroupClick","showList","addNewGroupToGroupedSelect","newGroupGroupedSelect","GroupedSelectGroups","list","addNewOptionGroupedSelect","groupedSelectRowCollection","newOptionGroupedSelect","removeGroupedSelectRow","upThisGroupedSelectRow","downThisGroupedSelectRow","today","demodt","dt","Date","openfct","dateOptionsInit","formatYear","startingDay","showWeeks","initDate","selectThisControl","controlName","selectedControl","resetTemporyConfig","controls","id","initDatePicker","okfct","bindBasicSelectToNya","bindGroupedSelectToNya","bindRadioToNya","applyConfigToSelectedControl","close","cancelfct","dismiss","bindRadioFromNYA","temporyConfig","formlyOptions","newOption","option","order","group","rows","resetNyASelectOptions","bindBasicSelectFromNYA","bindGroupedSelectFromNYA","filteredgroup","_","uniq","pluck","datepickerPopup","formats","initNyaSelectConformingSelectedControl","modelNyaSelect","formlyLabel","formlyRequired","formlyPlaceholder","formlyDesciption","initOptionModel","dateOptions","ok","cancel","edaStepWayEasyFormGen","linkFct","element","attrs","returnAttributeConfigurationLinesIfNotEmpty","edaEasyFormGeneratorModelToReturn","isArray","edaEasyFormGeneratorModel","edaFieldsModel","emptyEdaFieldsModel","emptyModel","returnAttributeDataModelIfNotEmpty","dataModelToReturn","dataModel","watchEdaEasyFormModelExpression","watchEdaEasyFormModelHasChanged","newValue","oldValue","loadExistingConfigurationModel","watchReturnSaveEventExpression","returnSaveEvent","watchReturnSaveEventhasChanged","_easyFormGeneratorModel","btnSubmitText","btnCancelText","edaFieldsModelStringified","toJson","formlyFieldsModel","edaSaveFormEvent","isDefined","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","isString","$watch","edaStepWayEasyFormGenCtrl","directive","restrict","controllerAs","link","stRatio","linkfct","ratio","css","nyaSelectObj","resetNyaSelect","getControlsDefinition","configurationModel","isObject","column","controlIndex","_controlsDefinition","aControl","aControlIndex","formlyType","formlySubtype","formlyExpressionProperties","formlyValidators","formlyValidation","configurationObj","label","required","description","placeholder","extractedProps","returnControlFromAddCtrlModalModel","newKey","now","validKeyUniqueness","edited","newNyaSelectObj","subtitle","messages","viewValue","modelValue","defaultReturnMsg","returnMsg","emailShape","expression","test","message","CtrlModalModel","modelToReturn","thisKey","isUnique","j","service","factory","configurationModelInit","Object","prototype","toString","call","configurationModelResult","concat","getMessageObject","getErrorObject","formlyModel","formlyDataModel","resetFormlyModel","resetDataModel","addOneColumnHeader","addOneColumnControl","addTwoColumnControl","addThreeColumnControl","resetformly","lineIndex","headerTemplateCol0","extractTemplateOptionDescription","addDatepickerPopupProperty","fieldToPush","extractTemplateOptionDatepickerPopup","className","extractTemplateOptionType","extractTemplateOptionLabel","extractTemplateOptionRequired","extractTemplateOptionPlaceholder","extractTemplateOptionOptions","expressionProperties","extractFormlyExpressionProperties","validators","extractFormlyValidators","validation","extractFormlyValidation","headerTemplateCol1","controlCol0","controlCol1","FieldGroup","fieldGroup","headerTemplateCol2","controlCol2","obj","emptyDataModel","errorTitle","errorMessage","messageObj","noError","Message","messageTitle","messageBody","testMe","initModel","selectObj","resetModel","isOptionUnique","textValue","isOptionValidFormat","newOptionText","fullResponse","checkResult","validOption","newOptionGroup","AtIndex","indexOption","currentOption","zeroModel"],"mappings":"CAOE,WACA,cAeD,WAwBG,QA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O,EAIP,MAFAA,GAAanO,YAAa,EAC1BmO,EAAalO,QAAU,0CAChBkO,EAKT,MAFEA,GAAanO,YAAa,EAC1BmO,EAAalO,QAAU,GAClBkO,EAKT,MAFAA,GAAanO,YAAa,EAC1BmO,EAAalO,QAAU,yBAChBkO,EASb,QAASE,GAAYR,EAAWK,GAC5B,GAAIC,IACkBnO,YAAc,EACdC,QAAc,GAGpC,IAA6B,mBAAlBiO,GAGP,MAFAC,GAAanO,YAAa,EAC1BmO,EAAalO,QAAa,0BACnBkO,CAGX,IAAsB,KAAlBD,EAAsB,CACpB,IAAK,GAAIvP,GAAIkP,EAAUlK,KAAK/H,OAAS,EAAG+C,GAAK,EAAGA,IAC9C,GAAIkP,EAAUlK,KAAKhF,GAAG6E,SAAW0K,EAG/B,MAFAC,GAAanO,YAAa,EAC1BmO,EAAalO,QAAa,+BACnBkO,CAKX,OAFAA,GAAanO,YAAa,EAC1BmO,EAAalO,QAAa,GACnBkO,EAIb,MAFAA,GAAanO,YAAa,EAC1BmO,EAAalO,QAAa,0BACnBkO,EAGX,QAASL,GAAWD,GAClB,GAAIa,IAAc/K,QAClB7N,SAAQqE,KAAKuU,EAAWb,GAvO1B,GAAIxD,IACFsD,OAA4BA,EAC5BC,UAA4BA,EAC5BG,eAA4BA,EAC5BE,oBAA4BA,EAC5BrO,kBAA4BA,EAC5BY,wBAA4BA,EAC5Ba,0BAA4BA,EAC5BlB,aAA4BA,EAC5BE,aAA4BA,EAC5BE,eAA4BA,EAE9B,OAAO8J,GAlBXvU,QACG6B,OAAO,0CACP2S,QAAQ,qBAAsB3K,GAE/BA,EAAmB7H,cAyiBtB,WAGAhC,QAAQ6B,OACA,oBACW,mCACA,sCACA,yDAmBnB,WAGA7B,QACE6B,OAAO,0BAMPmH","file":"eda.stepway.min.js","sourcesContent":["!function(){\"use strict\";!function(){function e(e){function o(e){return e=e.replace(/[\\-_\\s]+(.)?/g,function(e,o){return o?o.toUpperCase():\"\"}),e.replace(/^([A-Z])/,function(e,o){return o?o.toLowerCase():\"\"})}e.setType({name:\"richEditor\",template:''}),e.setType({name:\"blank\",template:\"
\"});var l='

{{options.templateOptions.placeholder}}


';e.setType({name:\"subTitle\",template:l});var t='
  1. {{option.name}}
';e.setType({name:\"basicSelect\",template:t});var n='
  1. {{$group}} {{option.name}}
';e.setType({name:\"groupedSelect\",template:n});var i=[\"date-disabled\",\"custom-class\",\"show-weeks\",\"starting-day\",\"init-date\",\"min-mode\",\"max-mode\",\"format-day\",\"format-month\",\"format-year\",\"format-day-header\",\"format-day-title\",\"format-month-title\",\"year-range\",\"shortcut-propagation\",\"datepicker-popup\",\"show-button-bar\",\"current-text\",\"clear-text\",\"close-text\",\"close-on-date-selection\",\"datepicker-append-to-body\"],s=[\"datepicker-mode\",\"min-date\",\"max-date\"],a={};angular.forEach(i,function(e){a[o(e)]={attribute:e}}),angular.forEach(s,function(e){a[o(e)]={bound:e}}),e.setType({name:\"datepicker\",template:'',wrapper:[\"bootstrapLabel\",\"bootstrapHasError\"],controller:[\"$scope\",function(e){e.open=function(o){o.preventDefault(),o.stopPropagation(),e.opened=!0}}],defaultOptions:{ngModelAttrs:a,templateOptions:{addonLeft:{\"class\":\"glyphicon glyphicon-calendar\",onClick:function(e,o){e.templateOptions.isOpen=!e.templateOptions.isOpen}},onFocus:function(e,o,l){l.to.isOpen=!l.to.isOpen},datepickerOptions:{}}}}),e.setWrapper([{template:['
\",\" \",'
','
','
',\" {{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\",\"
\",\"
\",\"
\"].join(\" \")}])}angular.module(\"eda.easyformGen.stepway\",[\"ngwfApp\"]),angular.module(\"ngwfApp\",[\"ngwfApp.core\",\"ngwfApp.controllers\",\"ngwfApp.services\",\"ngwfApp.filters\",\"ngwfApp.directives\"]).value(\"easyFormGenVersion\",\"v1.0.19\").config(e),e.$inject=[\"formlyConfigProvider\"]}(),angular.module(\"ngwfApp\").run([\"$templateCache\",function(e){e.put(\"edaStepWayEasyFormGeneratorTemplate.html\",'

lines

layout

controls

save

Command

Add a new line : 

Visual

  • 1\">
    1\">
    1\">

Command

– Selected line –

number of columns :

{{configuration.lines[configuration.activeLine -1].columns.length}}

Visual

  • 1\">
    1\">
    1\">

Command

– Apply controls to columns –


  Click / Tap on column to open control selection.

  Select desired control and valid to apply it to column.

Visual

  • 1\">
    1\">
    1\">

 Command



 Final Step : form preview

DATA MODEL

\\n\t\t\t\t\t\t\t\t\t\t{{vm.model | json}}\\n\t\t\t\t\t\t\t\t\t

FIELDS MODEL (ready to save to database one)

\\n\t\t\t\t\t\t\t\t\t\t{{vm.wfFormFieldsOnlyNeededProperties | json}}\\n\t\t\t\t\t\t\t\t\t

Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put(\"editModalTemplate.html\",'');\n\n}]),function(){angular.module(\"ngwfApp.core\",[\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\"])}(),function(){angular.module(\"ngwfApp.controllers\",[\"ngwfApp.controllers.ngwfMainController\",\"ngwfApp.controllers.ngwfWfEditController\",\"ngwfApp.controllers.ngwfWfEditMODALController\"])}(),function(){function e(e,o){e.FormNameAsTest=\"initial_name\",o(function(){e.FormNameAsTest=\"name changed after 3s\"},3e3)}angular.module(\"ngwfApp.controllers.ngwfMainController\",[]).controller(\"ngwfMainController\",e),e.$inject=[\"$scope\",\"$timeout\"]}(),function(){function e(e,o,l,t,n,i,s,a,r,c,d){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function u(){return{editTab:{active:!0},previewTab:{active:!1}}}function m(o){var l=JSON.parse(o.formlyField);e.configurationLoaded={},c.bindConfigurationLines(e.configurationLoaded,l),c.applyConfigurationToformlyModel(e.configurationLoaded,e.previewLoadedForm.fieldsModel,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.previewLoadedForm.cancelButtonText=o.cancelButtonText,e.previewLoadedForm.submitButtonText=o.submitButtonText}function f(){i.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function v(){return{numColumn:-1,exist:!0,control:{type:\"none\",key:\"none\",subtype:\"none\"}}}function g(){return{line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}}function y(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function b(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function h(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function w(o){if(o>-1&&e.configuration.lines[o-1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function x(o){if(o>-1&&e.configuration.lines[o+1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function C(){e.configuration.lines.push({line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function S(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):s(function(){i.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))}function T(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function L(){e.configuration.configStepCounter=0}function k(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,N(e.configuration.configStepCounter)}function O(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,N(e.configuration.configStepCounter)}function R(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function N(o){D(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=f,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=u(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=v(),e.lineTemplate=g(),e.resetToZeroModel=y,e.countConfigurationModelLines=b,e.setActiveLineNumber=h,e.upThisLine=w,e.downThisLine=x,e.addNewline=C,e.removeThisLine=S,e.increaseNumberOfColumns=T,e.decreaseNumberOfColumns=F,e.resetStepCounter=L,e.nextConfigStep=k,e.previousConfigStep=O,e.stepReachable=R,e.toggleAnimation=E,e.nyaSelect={},e.animationsEnabled=!1,e.showModalAddCtrlToColumn=P,e.loadExistingFormsList=q(),e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=m,e.saveThisForm=M,q(),c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}angular.module(\"ngwfApp.controllers.ngwfWfEditController\",[]).controller(\"ngwfWfEditController\",e),e.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\"]}(),function(){function e(e,o,l,t,n,i,s){function a(){var o=i.addNewOptionRadio(e.radioRowCollection,e.newOptionRadio.saisie);o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionRadio.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionRadio={saisie:\"\"}}function r(o){var l=i.removeOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function c(o){var l=i.upthisOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function d(o){var l=i.downthisOption(e.radioRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function p(){var o=i.addNewOptionBasicSelect(e.basicSelectRowCollection,e.newOptionBasicSelect.saisie);o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionBasicSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionBasicSelect={saisie:\"\"}}function u(o){var l=i.removeOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function m(o){var l=i.upthisOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function f(o){var l=i.downthisOption(e.basicSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function v(){e.groupSelectGroupClick.showList=!e.groupSelectGroupClick.showList}function g(){if(\"\"!==e.newGroupGroupedSelect.saisie){for(var o=e.GroupedSelectGroups.list.length-1;o>=0;o--)e.GroupedSelectGroups.list[o]===e.newGroupGroupedSelect.saisie&&t.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else t.pop({type:\"warning\",timeout:2e3,title:\"Not a valid group to add\",body:\"No group added.\",showCloseButton:!0});e.newGroupGroupedSelect.saisie=\"\"}function y(){var o=i.addNewOptionGroupedSelect(e.groupedSelectRowCollection,e.newOptionGroupedSelect.saisie,\"\");o.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:o.details,body:\"'\"+e.newOptionGroupedSelect.saisie+\"' cannot be added.\",showCloseButton:!0}),e.newOptionGroupedSelect={saisie:\"\"}}function b(o){var l=i.removeOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Delete was cancelled.\",showCloseButton:!0})}function h(o){var l=i.upthisOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function w(o){var l=i.downthisOption(e.groupedSelectRowCollection,o);l.resultFlag===!1&&t.pop({type:\"warning\",timeout:2e3,title:l.details,body:\"Operation cancelled.\",showCloseButton:!0})}function x(){e.demodt.dt=new Date}function C(){e.demodt.dt=null}function S(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0}function T(){return{formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null}}function F(o){e.nyaSelect.selectedControl=\"none\",$();for(var l=e.nyaSelect.controls.length-1;l>=0;l--)e.nyaSelect.controls[l].id===o&&(e.nyaSelect.selectedControl=e.nyaSelect.controls[l].id);\"Date\"===e.nyaSelect.selectedControl&&D()}function L(){\"BasicSelect\"===e.nyaSelect.selectedControl&&E(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&M(),\"Radio\"===e.nyaSelect.selectedControl&&R(),s.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)}function k(){o.dismiss(\"cancel\")}function O(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.radioRowCollection.rows.push(l)}}function R(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.radioRowCollection.rows.length>0)for(var l=0;l<=e.radioRowCollection.rows.length-1;l++){var t={name:e.radioRowCollection.rows[l].option,value:l,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function P(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0)for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:\"\"};e.basicSelectRowCollection.rows.push(l)}}function E(){var o=[];if(e.nyaSelect.temporyConfig.formlyOptions=o,e.basicSelectRowCollection.rows.length>0)for(var l=0;l<=e.basicSelectRowCollection.rows.length-1;l++){var t={name:e.basicSelectRowCollection.rows[l].option,value:l,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(t)}}function q(){if(e.nyaSelect.temporyConfig.formlyOptions.length>0){for(var o=0;o<=e.nyaSelect.temporyConfig.formlyOptions.length-1;o++){var l={option:e.nyaSelect.temporyConfig.formlyOptions[o].name,order:o,group:e.nyaSelect.temporyConfig.formlyOptions[o].group};e.groupedSelectRowCollection.rows.push(l)}var t=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(t,e.GroupedSelectGroups.list)}}function M(){e.nyaSelect.temporyConfig.formlyOptions=[];for(var o=0;o<=e.groupedSelectRowCollection.rows.length-1;o++){var l={name:e.groupedSelectRowCollection.rows[o].option,value:o,group:e.groupedSelectRowCollection.rows[o].group};e.nyaSelect.temporyConfig.formlyOptions.push(l)}}function D(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function N(){if(\"none\"!==l.selectedControl){for(var o=e.nyaSelect.controls.length-1;o>=0;o--)e.nyaSelect.controls[o].id===l.selectedControl&&(e.modelNyaSelect=l.controls[o]);\"BasicSelect\"===e.nyaSelect.selectedControl&&P(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&q(),\"Radio\"===e.nyaSelect.selectedControl&&O()}}function $(){e.nyaSelect.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var A={rows:[]};e.radioRowCollection=A,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=a,e.removeRadioRow=r,e.upThisRadioRow=c,e.downThisRadioRow=d,e.basicSelectRowCollection=A,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=p,e.removeRow=u,e.upThisRow=m,e.downThisRow=f,e.groupedSelectRowCollection=A,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=v,e.addNewGroupToGroupedSelect=g,e.addNewOptionGroupedSelect=y,e.removeGroupedSelectRow=b,e.upThisGroupedSelectRow=h,e.downThisGroupedSelectRow=w,e.demodt={},e.today=x,e.clear=C,e.open=S,e.dateOptions=T(),e.demodt.formats=[\"dd-MMMM-yyyy\",\"yyyy/MM/dd\",\"dd.MM.yyyy\",\"shortDate\"],e.nyaSelect=l,e.nyaSelect.selectedControl=e.nyaSelect.temporyConfig.selectedControl,e.selectThisControl=F,e.ok=L,e.cancel=k,x(),N()}angular.module(\"ngwfApp.controllers.ngwfWfEditMODALController\",[]).controller(\"ngwfWfEditMODALController\",e),e.$inject=[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\"]}(),function(){function e(e,o,l,t){function n(e,o,n){function i(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:s();return o}function s(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function a(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function r(){return e.edaEasyFormGeneratorModel}function c(e,o){u()}function d(){return e.returnSaveEvent}function p(o,l){if(o===!0){var t={formName:e.configuration.formName,btnSubmitText:e.configuration.submitButtonText,btnCancelText:e.configuration.cancelButtonText,edaFieldsModel:e.configuration.lines,edaFieldsModelStringified:angular.toJson(e.configuration.lines),formlyFieldsModel:e.vm.wfFormFieldsOnlyNeededProperties,dataModel:e.vm.model};e.edaSaveFormEvent({edaEasyFormGeneratorModel:t}),e.returnSaveEvent=!1}}function u(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var o=i();e.configurationLoaded={},l.bindConfigurationLines(e.configurationLoaded,o),t.refreshControlFormlyExpressionProperties(e.configurationLoaded),t.refreshControlFormlyValidators(e.configurationLoaded),t.refreshControlFormlyValidation(e.configurationLoaded),e.configuration=angular.copy(e.configurationLoaded),l.applyConfigurationToformlyModel(e.configurationLoaded,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=a,e.configuration.formName=angular.isString(e.edaEasyFormGeneratorModel.formName)?e.edaEasyFormGeneratorModel.formName:\"\",e.configuration.submitButtonText=angular.isString(e.edaEasyFormGeneratorModel.btnSubmitText)?e.edaEasyFormGeneratorModel.btnSubmitText:\"Submit\",e.configuration.cancelButtonText=angular.isString(e.edaEasyFormGeneratorModel.btnCancelText)?e.edaEasyFormGeneratorModel.btnCancelText:\"Cancel\"}}e.$watch(r,c,!0),e.$watch(d,p)}function i(e,o,l,t,n,i,s,a,r,c,d){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function u(){return{editTab:{active:!0},previewTab:{active:!1}}}function m(o){var l=JSON.parse(o.formlyField);e.configurationLoaded={},c.bindConfigurationLines(e.configurationLoaded,l),c.applyConfigurationToformlyModel(e.configurationLoaded,e.previewLoadedForm.fieldsModel,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.previewLoadedForm.cancelButtonText=o.cancelButtonText,e.previewLoadedForm.submitButtonText=o.submitButtonText}function f(){i.pop({type:\"info\",timeout:2e3,title:\"should save data model if it were not a static example\",body:\"data :\"+t(\"json\")(e.vm.model,4),showCloseButton:!0})}function v(){return{numColumn:-1,exist:!0,control:{type:\"none\",key:\"none\",subtype:\"none\"}}}function g(){return{line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}}function y(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function b(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function h(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function w(o){if(o>-1&&e.configuration.lines[o-1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o-1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function x(o){if(o>-1&&e.configuration.lines[o+1]){var l=e.configuration.lines[o];e.configuration.lines.splice(o,1),e.configuration.lines.splice(o+1,0,l),e.configuration.activeLine=1}c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function C(){e.configuration.lines.push({line:-1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function S(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):s(function(){i.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields))}function T(){if(e.configuration.lines[e.configuration.activeLine-1].columns.length1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),c.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)}function L(){e.configuration.configStepCounter=0}function k(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,D(e.configuration.configStepCounter)}function O(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,D(e.configuration.configStepCounter)}function R(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function D(o){M(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=f,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=u(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=v(),e.lineTemplate=g(),e.resetToZeroModel=y,e.countConfigurationModelLines=b,e.setActiveLineNumber=h,e.upThisLine=w,e.downThisLine=x,e.addNewline=C,e.removeThisLine=S,e.increaseNumberOfColumns=T,e.decreaseNumberOfColumns=F,e.resetStepCounter=L,e.nextConfigStep=k,e.previousConfigStep=O,e.stepReachable=R,e.toggleAnimation=E,e.nyaSelect={},e.animationsEnabled=!1,e.showModalAddCtrlToColumn=P,e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=m,e.saveThisForm=q,e.returnSaveEvent=!1,c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}i.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\"];var s={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaStepWayEasyFormGeneratorTemplate.html\",link:n};return s}angular.module(\"ngwfApp.directives.edaStepWayEasyFormGenDirective\",[]).directive(\"edaStepWayEasyFormGen\",e),e.$inject=[\"$templateCache\",\"$timeout\",\"formFieldManage\",\"controllerModalProxy\"]}(),function(){angular.module(\"ngwfApp.directives\",[\"ngwfApp.directives.ngwfStRatioDirective\",\"ngwfApp.directives.edaStepWayEasyFormGenDirective\"])}(),function(){function e(){function e(e,o,l){var t=+l.stRatio;o.css(\"width\",t+\"%\")}var o={link:e};return o}angular.module(\"ngwfApp.directives.ngwfStRatioDirective\",[]).directive(\"stRatio\",e),e.$inject=[]}(),function(){function e(){function e(e){return c(e)}function o(){var e={};return c(e),e}function l(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function n(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,l){angular.forEach(e.columns,function(e,l){var t=o();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function i(e,o,l,t){return c(e),\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof o.lines[l].columns[t].control.selectedControl?o.lines[l].columns[t].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.label?o.lines[l].columns[t].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.required?o.lines[l].columns[t].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.description?o.lines[l].columns[t].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.placeholder?o.lines[l].columns[t].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.options?o.lines[l].columns[t].control.templateOptions.options:\"\",e.temporyConfig.formlyExpressionProperties=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyExpressionProperties?angular.copy(o.lines[l].columns[t].control.formlyExpressionProperties):{},e.temporyConfig.formlyValidators=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyValidators?angular.copy(o.lines[l].columns[t].control.formlyValidators):{},e.temporyConfig.formlyValidation=\"undefined\"!=typeof o.lines[l].columns[t].control.formlyValidation?angular.copy(o.lines[l].columns[t].control.formlyValidation):{},\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof o.lines[l].columns[t].control.templateOptions.datepickerPopup?o.lines[l].columns[t].control.templateOptions.datepickerPopup:\"\")),e}function s(e,o,l,t){var n=d(l);t.lines[e].columns[o].control.selectedControl=n.selectedControl,t.lines[e].columns[o].control.type=n.formlyType,t.lines[e].columns[o].control.subtype=n.formlySubtype,t.lines[e].columns[o].control.templateOptions={label:\"\",required:!1,description:\"\",placeholder:\"\",options:[]},t.lines[e].columns[o].control.templateOptions.label=n.formlyLabel,t.lines[e].columns[o].control.templateOptions.required=n.formlyRequired,t.lines[e].columns[o].control.templateOptions.description=n.formlyDesciption,t.lines[e].columns[o].control.templateOptions.placeholder=n.formlyPlaceholder,t.lines[e].columns[o].control.templateOptions.options=n.formlyOptions,t.lines[e].columns[o].control.formlyExpressionProperties=angular.copy(n.formlyExpressionProperties),t.lines[e].columns[o].control.formlyValidators=angular.copy(n.formlyValidators),t.lines[e].columns[o].control.formlyValidation=angular.copy(n.formlyValidation),\"datepicker\"===t.lines[e].columns[o].control.type&&(t.lines[e].columns[o].control.templateOptions.datepickerPopup=n.datepickerPopup);var i=t.lines[e].columns[o].control.type+\"-\"+Date.now();p(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),p(i,t)===!0?t.lines[e].columns[o].control.key=i:i=t.lines[e].columns[o].control.type+\"-\"+Date.now()),t.lines[e].columns[o].control.edited=!0}function a(e){for(var o=e.controls.length-1;o>=0;o--)e.controls[o].id===e.selectedControl&&(e.controls[o].formlyLabel=e.temporyConfig.formlyLabel,e.controls[o].formlyRequired=e.temporyConfig.formlyRequired,e.controls[o].formlyDesciption=e.temporyConfig.formlyDesciption,e.controls[o].formlyPlaceholder=e.temporyConfig.formlyPlaceholder,e.controls[o].formlyOptions=e.temporyConfig.formlyOptions,\"Date\"===e.controls[o].id&&(e.controls[o].datepickerPopup=e.temporyConfig.datepickerPopup))}function r(){return{formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function c(e){var o={controls:[{id:\"empty\",name:\"no control\",subtitle:\"no control\",group:\"Blank\",formlyType:\"blank\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Header\",name:\"Header\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"header\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"Subtitle\",name:\"Subtitle\",subtitle:\"no control\",group:\"Decoration\",formlyType:\"subTitle\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:\"TextInput\",name:\"Text input\",subtitle:\"Text input\",group:\"input\",formlyType:\"input\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Text input field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Password\",name:\"Password\",subtitle:\"Password\",group:\"input\",formlyType:\"input\",formlySubtype:\"password\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Password field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Email\",name:\"Email\",subtitle:\"Email\",group:\"input\",formlyType:\"input\",formlySubtype:\"email\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,o){var l=o||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\\.[a-z.]{2,5}$/.test(l)},message:\"$viewValue + ' is not a valid email'\"}},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Email field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return l.to.required?n:void 0}}}},{id:\"Date\",name:\"Date\",subtitle:\"Date\",group:\"input\",formlyType:\"datepicker\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],datepickerPopup:\"dd-MMMM-yyyy\",formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Date field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Texarea\",name:\"Textarea\",subtitle:\"Textarea\",group:\"Textarea\",formlyType:\"textarea\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Textarea field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"RichTextEditor\",name:\"RichTextEditor\",subtitle:\"RichTextEditor\",group:\"Textarea\",formlyType:\"richEditor\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this RichTextEditor field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Radio\",name:\"Radio\",subtitle:\"Radio\",options:[],group:\"Radio\",formlyType:\"radio\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Password field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"Checkbox\",name:\"Checkbox\",subtitle:\"Checkbox\",group:\"Checkbox\",formlyType:\"checkbox\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{\nmessages:{required:function(e,o,l){var t=\"this Checkbox field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"BasicSelect\",name:\"Basic select\",subtitle:\"Basic select\",options:[],group:\"Select\",formlyType:\"basicSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Basic select field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}},{id:\"GroupedSelect\",name:\"Grouped Select\",subtitle:\"Grouped Select\",options:[],group:\"Select\",formlyType:\"groupedSelect\",formlySubtype:\"\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,o,l){var t=\"this Grouped Select field is required\",n=\"undefined\"!=typeof l.to.label&&\"\"!==l.to.label?l.to.label+\" is required\":t;return n}}}}],selectedControl:\"none\",temporyConfig:{selectedControl:\"none\",formlyLabel:\"label\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(o,e),!0}function d(e){for(var o={selectedControl:\"none\",formlyType:\"none\",formlySubtype:\"none\",formlyLabel:\"\",formlyRequired:!1,formlyDesciption:\"\",formlyPlaceholder:\"\",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},l=e.controls.length-1;l>=0;l--)e.selectedControl===e.controls[l].id&&(o.selectedControl=e.selectedControl,o.formlyType=e.controls[l].formlyType,o.formlySubtype=e.controls[l].formlySubtype,o.formlyLabel=e.controls[l].formlyLabel,o.formlyRequired=e.controls[l].formlyRequired,o.formlyDesciption=e.controls[l].formlyDesciption,o.formlyPlaceholder=e.controls[l].formlyPlaceholder,o.formlyOptions=e.controls[l].formlyOptions,o.formlyExpressionProperties=angular.copy(e.controls[l].formlyExpressionProperties),o.formlyValidators=angular.copy(e.controls[l].formlyValidators),o.formlyValidation=angular.copy(e.controls[l].formlyValidation),\"datepicker\"===e.controls[l].formlyType&&(o.datepickerPopup=e.controls[l].datepickerPopup));return o}function p(e,o){for(var l=!0,t=o.lines.length-1;t>=0;t--)for(var n=o.lines[t].columns.length-1;n>=0;n--)o.lines[t].columns[n].control.key===e&&(l=!1);return l}var u={initNyaSelect:e,getNyASelectFromSelectedLineColumn:i,bindConfigurationModelFromModalReturn:s,applyConfigToSelectedControl:a,resetTemporyConfig:r,getControlsDefinition:o,refreshControlFormlyExpressionProperties:l,refreshControlFormlyValidators:t,refreshControlFormlyValidation:n};return u}angular.module(\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",e),e.$inject=[]}(),function(){function e(){function e(e){var o={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}]};angular.copy(o,e)}function o(e,o){if(\"[object Array]\"===Object.prototype.toString.call(o)){var l={activeLine:1,listConfigStep:[\"init\",\"first\",\"second\",\"third\"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[]};return l.lines=[].concat(o),angular.copy(l,e),x(\"configuration model is bound\",\"lines are bound to configuration model.\")}return w(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function l(e,o,l){t(o),h(l);for(var i=e.lines.length,c=0;i>c;c++)1===e.lines[c].columns.length&&(\"header\"===e.lines[c].columns[0].control.type?n(o,e,c):s(o,e,c)),2===e.lines[c].columns.length&&a(o,e,c),3===e.lines[c].columns.length&&r(o,e,c)}function t(e){var o=[];angular.copy(o,e)}function n(e,o,l){var t='

'+b(o.lines[l].columns[0].control)+\"


\";e.push({template:\"undefined\"!=typeof o.lines[l].columns[0].control.type&&\"header\"===o.lines[l].columns[0].control.type?t:\"
\"})}function i(e,o,l){e.templateOptions.datepickerPopup=d(o.lines[l].columns[0].control)}function s(e,o,l){var t={className:\"col-xs-12\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(t,o,l),e.push(t)}function a(e,o,l){var t={className:\"col-xs-6\",template:'

'+b(o.lines[l].columns[0].control)+\"


\"},n={className:\"col-xs-6\",template:'

'+b(o.lines[l].columns[1].control)+\"


\"},s={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(s,o,l);var a={className:\"col-xs-6\",type:\"undefined\"!=typeof o.lines[l].columns[1].control.type?\"none\"===o.lines[l].columns[1].control.type?\"blank\":o.lines[l].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[1].control.key?o.lines[l].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:y(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:p(o.lines[l].columns[1].control),validators:u(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(a,o,l);var r=[];r.push(\"header\"===o.lines[l].columns[0].control.type?t:s),r.push(\"header\"===o.lines[l].columns[1].control.type?n:a),e.push({className:\"row\",fieldGroup:r})}function r(e,o,l){var t={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[0].control)+\"


\"},n={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[1].control)+\"


\"},s={className:\"col-xs-4\",template:'

'+b(o.lines[l].columns[2].control)+\"


\"},a={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[0].control.type?\"none\"===o.lines[l].columns[0].control.type?\"blank\":o.lines[l].columns[0].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[0].control.key?o.lines[l].columns[0].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:y(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:p(o.lines[l].columns[0].control),validators:u(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(a,o,l);var r={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[1].control.type?\"none\"===o.lines[l].columns[1].control.type?\"blank\":o.lines[l].columns[1].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[1].control.key?o.lines[l].columns[1].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:y(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:p(o.lines[l].columns[1].control),validators:u(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(r,o,l);var d={className:\"col-xs-4\",type:\"undefined\"!=typeof o.lines[l].columns[2].control.type?\"none\"===o.lines[l].columns[2].control.type?\"blank\":o.lines[l].columns[2].control.type:\"blank\",key:\"undefined\"!=typeof o.lines[l].columns[2].control.key?o.lines[l].columns[2].control.key:\"blank\"+Date.now(),templateOptions:{type:g(o.lines[l].columns[2].control),label:c(o.lines[l].columns[2].control),required:f(o.lines[l].columns[2].control),placeholder:y(o.lines[l].columns[2].control),description:b(o.lines[l].columns[2].control),options:v(o.lines[l].columns[2].control)},expressionProperties:p(o.lines[l].columns[2].control),validators:u(o.lines[l].columns[2].control),validation:m(o.lines[l].columns[2].control)};\"datepicker\"===o.lines[l].columns[2].control.type&&i(d,o,l);var h=[];h.push(\"header\"===o.lines[l].columns[0].control.type?t:a),h.push(\"header\"===o.lines[l].columns[1].control.type?n:r),h.push(\"header\"===o.lines[l].columns[2].control.type?s:d),e.push({className:\"row\",fieldGroup:h})}function c(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.label?e.templateOptions.label:\"\"}function d(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.datepickerPopup?e.templateOptions.datepickerPopup:\"\"}function p(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function u(e){return\"undefined\"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}}function m(e){return\"undefined\"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}}function f(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.required?e.templateOptions.required:\"\"}function v(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.options?e.templateOptions.options:\"\"}function g(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function y(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:\"\"}function b(e){return\"undefined\"!=typeof e.templateOptions&&\"undefined\"!=typeof e.templateOptions.description?e.templateOptions.description:\"\"}function h(e){var o={};return angular.copy(o,e),!0}function w(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!1,l.title=e,l.Message=o,l}function x(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!0,l.title=e,l.Message=o,l}var C={initConfigurationEditFromScratch:e,bindConfigurationLines:o,applyConfigurationToformlyModel:l};return C}angular.module(\"ngwfApp.services.formFieldManage\",[]).factory(\"formFieldManage\",e),e.$inject=[]}(),function(){function e(){function e(){return\"selectOptionManage is here.\"}function o(e){p(e)}function l(e,o){for(var l=e.rows.length-1;l>=0;l--)if(e.rows[l].option===o)return!1;return!0}function t(e){return\"\"!==e?!0:!1}function n(e,o){var l={resultFlag:!1,details:\"\"},t=d(e,o);if(t.resultFlag===!0){var n={option:o,order:e.rows.length};return e.rows.push(n),l.resultFlag=!0,l.details=\"\",l}return angular.copy(t,l),l}function i(e,o){var l={resultFlag:!1,details:\"\"},t=d(e,o);if(t.resultFlag===!0){var n={option:o,order:e.rows.length};return e.rows.push(n),l.resultFlag=!0,l.details=\"\",l}return angular.copy(t,l),l}function s(e,o,l){var t={resultFlag:!1,details:\"\"},n=d(e,o);if(n.resultFlag===!0){var i={option:o,group:l,order:e.rows.length};return e.rows.push(i),t.resultFlag=!0,t.details=\"\",t}return angular.copy(n,t),t}function a(e,o){var l={resultFlag:!1,details:\"\"};return-1!==o?(e.rows.splice(o,1),l.resultFlag=!0,l.details=\"\",l):(l.resultFlag=!1,l.details=\"Option index not valid\",l)}function r(e,o){var l={resultFlag:!1,details:\"\"};if(o>-1){if(o>0){if(e.rows[o-1]){var t=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,t),l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Can't retreive option from option index\",l}return l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Option index not valid\",l}function c(e,o){var l={resultFlag:!1,details:\"\"};if(o>-1){if(o=0;t--)if(e.rows[t].option===o)return l.resultFlag=!1,l.details=\"Entered option is not unique\",l;return l.resultFlag=!0,l.details=\"\",l}return l.resultFlag=!1,l.details=\"Entered option is empty\",l}function p(e){var o={rows:[]};angular.copy(o,e)}var u={testMe:e,initModel:o,isOptionUnique:l,isOptionValidFormat:t,addNewOptionRadio:n,addNewOptionBasicSelect:i,addNewOptionGroupedSelect:s,removeOption:a,upthisOption:r,downthisOption:c};return u}angular.module(\"ngwfApp.services.selectOptionManage\",[]).factory(\"selectOptionManage\",e),e.$inject=[]}(),function(){angular.module(\"ngwfApp.services\",[\"ngwfApp.services.formFieldManage\",\"ngwfApp.services.selectOptionManage\",\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\"])}(),function(){angular.module(\"ngwfApp.filters\",[])}()}(this);\n//# sourceMappingURL=eda.stepway.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file diff --git a/src/app/formViewer/directives/eda.easyFormViewer.Directive.js b/src/app/formViewer/directives/eda.easyFormViewer.Directive.js index 9264837f..d96d5214 100644 --- a/src/app/formViewer/directives/eda.easyFormViewer.Directive.js +++ b/src/app/formViewer/directives/eda.easyFormViewer.Directive.js @@ -22,6 +22,9 @@ edaEasyFormViewer.$inject = ['modelsTranslator']; function edaEasyFormViewer(modelsTranslator){ + //directive's controller injection is here (before return directive) = to avoid minification errors + edaEasyFormViewerCtrl.$inject = []; + var directive = { restrict : 'E', scope : { diff --git a/src/app/formViewer/eda.easyFormViewer.config.js b/src/app/formViewer/eda.easyFormViewer.config.js index 09d3736e..40758df8 100644 --- a/src/app/formViewer/eda.easyFormViewer.config.js +++ b/src/app/formViewer/eda.easyFormViewer.config.js @@ -16,7 +16,8 @@ angular .module('eda.easyFormViewer') .config(configFct); - + + configFct.$inject = ['formlyConfigProvider']; function configFct(formlyConfigProvider){ ////////////////////////////// // CONFIG HERE (formly...)