diff --git a/EasyFormGenerator-DragAndDropWay-DEMO.html b/EasyFormGenerator-DragAndDropWay-DEMO.html index c54f44a8..d5032fcc 100644 --- a/EasyFormGenerator-DragAndDropWay-DEMO.html +++ b/EasyFormGenerator-DragAndDropWay-DEMO.html @@ -22,7 +22,43 @@ - + + +
+

Easy Form Generator : Drag and drop way

+

This is currently in development (BETA).

+

It may change so I can't tell you this will look like the same when released.

+

 go github

+ +
+

+ How to : +

+ +
+
+ +
+ +
+
+
+ + + @@ -93,7 +129,7 @@ - + diff --git a/bower.json b/bower.json index 6149f16a..4a7786a0 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "./dist/js/eda.stepway.min.js", "./dist/css/eda.stepway.min.css" ], - "version": "1.0.31", + "version": "1.0.32", "description": "create amazing forms without coding : form editor based on angular formly", "keywords": [ "easy", diff --git a/dist/js/eda.dragdropway.js b/dist/js/eda.dragdropway.js index de5fa948..82c23f51 100644 --- a/dist/js/eda.dragdropway.js +++ b/dist/js/eda.dragdropway.js @@ -9188,243 +9188,247 @@ angular.module('dndLists', []) })(); -angular.module('pageslide-directive', []) - -.directive('pageslide', [ - function () { - var defaults = {}; - - /* Return directive definition object */ - - return { - restrict: 'EAC', - transclude: false, - scope: { - psOpen: '=?', - psAutoClose: '=?', - psSide: '@', - psSpeed: '@', - psClass: '@', - psSize: '@', - psSqueeze: '@', - psCloak: '@', - psPush: '@', - psContainer: '@' - }, - //template: '
', - link: function ($scope, el, attrs) { - /* Inspect */ - //console.log($scope); - //console.log(el); - //console.log(attrs); - - /* Parameters */ - var param = {}; - - param.side = $scope.psSide || 'right'; - param.speed = $scope.psSpeed || '0.5'; - param.size = $scope.psSize || '300px'; - param.zindex = 1000; // Override with custom CSS - param.className = $scope.psClass || 'ng-pageslide'; - param.cloak = $scope.psCloak && $scope.psCloak.toLowerCase() == 'false' ? false : true; - param.squeeze = Boolean($scope.psSqueeze) || false; - param.push = Boolean($scope.psPush) || false; - param.container = $scope.psContainer || false; - - // Apply Class - el.addClass(param.className); - - /* DOM manipulation */ - var content = null; - var slider = null; - var body = param.container ? document.getElementById(param.container) : document.body; - - slider = el[0]; - - // Check for div tag - if (slider.tagName.toLowerCase() !== 'div' && - slider.tagName.toLowerCase() !== 'pageslide') - throw new Error('Pageslide can only be applied to
or elements'); - - // Check for content - if (slider.children.length === 0) - throw new Error('You have to content inside the '); - - content = angular.element(slider.children); - - /* Append */ - body.appendChild(slider); - - /* Style setup */ - slider.style.zIndex = param.zindex; - slider.style.position = param.container !== false ? 'absolute' : 'fixed'; - slider.style.width = 0; - slider.style.height = 0; - slider.style.overflow = 'hidden'; - slider.style.transitionDuration = param.speed + 's'; - slider.style.webkitTransitionDuration = param.speed + 's'; - slider.style.transitionProperty = 'width, height'; - if (param.squeeze) { - body.style.position = 'absolute'; - body.style.transitionDuration = param.speed + 's'; - body.style.webkitTransitionDuration = param.speed + 's'; - body.style.transitionProperty = 'top, bottom, left, right'; - } - - switch (param.side) { - case 'right': - slider.style.height = attrs.psCustomHeight || '100%'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - case 'left': - slider.style.height = attrs.psCustomHeight || '100%'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.left = attrs.psCustomLeft || '0px'; - break; - case 'top': - slider.style.width = attrs.psCustomWidth || '100%'; - slider.style.left = attrs.psCustomLeft || '0px'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - case 'bottom': - slider.style.width = attrs.psCustomWidth || '100%'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.left = attrs.psCustomLeft || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - } - - - /* Closed */ - function psClose(slider, param) { - if (slider && slider.style.width !== 0 && slider.style.width !== 0) { - if (param.cloak) content.css('display', 'none'); - switch (param.side) { - case 'right': - slider.style.width = '0px'; - if (param.squeeze) body.style.right = '0px'; - if (param.push) { - body.style.right = '0px'; - body.style.left = '0px'; - } - break; - case 'left': - slider.style.width = '0px'; - if (param.squeeze) body.style.left = '0px'; - if (param.push) { - body.style.left = '0px'; - body.style.right = '0px'; - } - break; - case 'top': - slider.style.height = '0px'; - if (param.squeeze) body.style.top = '0px'; - if (param.push) { - body.style.top = '0px'; - body.style.bottom = '0px'; - } - break; - case 'bottom': - slider.style.height = '0px'; - if (param.squeeze) body.style.bottom = '0px'; - if (param.push) { - body.style.bottom = '0px'; - body.style.top = '0px'; - } - break; - } - } - $scope.psOpen = false; - } - - /* Open */ - function psOpen(slider, param) { - if (slider.style.width !== 0 && slider.style.width !== 0) { - switch (param.side) { - case 'right': - slider.style.width = param.size; - if (param.squeeze) body.style.right = param.size; - if (param.push) { - body.style.right = param.size; - body.style.left = '-' + param.size; - } - break; - case 'left': - slider.style.width = param.size; - if (param.squeeze) body.style.left = param.size; - if (param.push) { - body.style.left = param.size; - body.style.right = '-' + param.size; - } - break; - case 'top': - slider.style.height = param.size; - if (param.squeeze) body.style.top = param.size; - if (param.push) { - body.style.top = param.size; - body.style.bottom = '-' + param.size; - } - break; - case 'bottom': - slider.style.height = param.size; - if (param.squeeze) body.style.bottom = param.size; - if (param.push) { - body.style.bottom = param.size; - body.style.top = '-' + param.size; - } - break; - } - setTimeout(function() { - if (param.cloak) content.css('display', 'block'); - }, (param.speed * 1000)); - - } - } - - function isFunction(functionToCheck) { - var getType = {}; - return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; - } - - /* - * Watchers - * */ - - $scope.$watch('psOpen', function(value) { - if (!!value) { - // Open - psOpen(slider, param); - } else { - // Close - psClose(slider, param); - } - }); - - - /* - * Events - * */ - - $scope.$on('$destroy', function () { - body.removeChild(slider); - }); - - if ($scope.psAutoClose) { - $scope.$on('$locationChangeStart', function() { - psClose(slider, param); - }); - $scope.$on('$stateChangeStart', function() { - psClose(slider, param); - }); - - } - } - }; - } -]); +;(function(){ + 'use strict'; + + angular + .module('pageslide-directive', []) + .directive('pageslide', [ + function () { + var defaults = {}; + + /* Return directive definition object */ + + return { + restrict: 'EAC', + transclude: false, + scope: { + psOpen: '=?', + psAutoClose: '=?', + psSide: '@', + psSpeed: '@', + psClass: '@', + psSize: '@', + psSqueeze: '@', + psCloak: '@', + psPush: '@', + psContainer: '@' + }, + //template: '
', + link: function ($scope, el, attrs) { + /* Inspect */ + //console.log($scope); + //console.log(el); + //console.log(attrs); + + /* Parameters */ + var param = {}; + + param.side = $scope.psSide || 'right'; + param.speed = $scope.psSpeed || '0.5'; + param.size = $scope.psSize || '300px'; + param.zindex = 1000; // Override with custom CSS + param.className = $scope.psClass || 'ng-pageslide'; + param.cloak = $scope.psCloak && $scope.psCloak.toLowerCase() == 'false' ? false : true; + param.squeeze = Boolean($scope.psSqueeze) || false; + param.push = Boolean($scope.psPush) || false; + param.container = $scope.psContainer || false; + + // Apply Class + el.addClass(param.className); + + /* DOM manipulation */ + var content = null; + var slider = null; + var body = param.container ? document.getElementById(param.container) : document.body; + + slider = el[0]; + + // Check for div tag + if (slider.tagName.toLowerCase() !== 'div' && + slider.tagName.toLowerCase() !== 'pageslide') + throw new Error('Pageslide can only be applied to
or elements'); + + // Check for content + if (slider.children.length === 0) + throw new Error('You have to content inside the '); + + content = angular.element(slider.children); + + /* Append */ + body.appendChild(slider); + + /* Style setup */ + slider.style.zIndex = param.zindex; + slider.style.position = param.container !== false ? 'absolute' : 'fixed'; + slider.style.width = 0; + slider.style.height = 0; + slider.style.overflow = 'hidden'; + slider.style.transitionDuration = param.speed + 's'; + slider.style.webkitTransitionDuration = param.speed + 's'; + slider.style.transitionProperty = 'width, height'; + if (param.squeeze) { + body.style.position = 'absolute'; + body.style.transitionDuration = param.speed + 's'; + body.style.webkitTransitionDuration = param.speed + 's'; + body.style.transitionProperty = 'top, bottom, left, right'; + } + + switch (param.side) { + case 'right': + slider.style.height = attrs.psCustomHeight || '100%'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + case 'left': + slider.style.height = attrs.psCustomHeight || '100%'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.left = attrs.psCustomLeft || '0px'; + break; + case 'top': + slider.style.width = attrs.psCustomWidth || '100%'; + slider.style.left = attrs.psCustomLeft || '0px'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + case 'bottom': + slider.style.width = attrs.psCustomWidth || '100%'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.left = attrs.psCustomLeft || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + } + + + /* Closed */ + function psClose(slider, param) { + if (slider && slider.style.width !== 0 && slider.style.width !== 0) { + if (param.cloak) content.css('display', 'none'); + switch (param.side) { + case 'right': + slider.style.width = '0px'; + if (param.squeeze) body.style.right = '0px'; + if (param.push) { + body.style.right = '0px'; + body.style.left = '0px'; + } + break; + case 'left': + slider.style.width = '0px'; + if (param.squeeze) body.style.left = '0px'; + if (param.push) { + body.style.left = '0px'; + body.style.right = '0px'; + } + break; + case 'top': + slider.style.height = '0px'; + if (param.squeeze) body.style.top = '0px'; + if (param.push) { + body.style.top = '0px'; + body.style.bottom = '0px'; + } + break; + case 'bottom': + slider.style.height = '0px'; + if (param.squeeze) body.style.bottom = '0px'; + if (param.push) { + body.style.bottom = '0px'; + body.style.top = '0px'; + } + break; + } + } + $scope.psOpen = false; + } + + /* Open */ + function psOpen(slider, param) { + if (slider.style.width !== 0 && slider.style.width !== 0) { + switch (param.side) { + case 'right': + slider.style.width = param.size; + if (param.squeeze) body.style.right = param.size; + if (param.push) { + body.style.right = param.size; + body.style.left = '-' + param.size; + } + break; + case 'left': + slider.style.width = param.size; + if (param.squeeze) body.style.left = param.size; + if (param.push) { + body.style.left = param.size; + body.style.right = '-' + param.size; + } + break; + case 'top': + slider.style.height = param.size; + if (param.squeeze) body.style.top = param.size; + if (param.push) { + body.style.top = param.size; + body.style.bottom = '-' + param.size; + } + break; + case 'bottom': + slider.style.height = param.size; + if (param.squeeze) body.style.bottom = param.size; + if (param.push) { + body.style.bottom = param.size; + body.style.top = '-' + param.size; + } + break; + } + setTimeout(function() { + if (param.cloak) content.css('display', 'block'); + }, (param.speed * 1000)); + + } + } + + function isFunction(functionToCheck) { + var getType = {}; + return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; + } + + /* + * Watchers + * */ + + $scope.$watch('psOpen', function(value) { + if (!!value) { + // Open + psOpen(slider, param); + } else { + // Close + psClose(slider, param); + } + }); + + + /* + * Events + * */ + + $scope.$on('$destroy', function () { + body.removeChild(slider); + }); + + if ($scope.psAutoClose) { + $scope.$on('$locationChangeStart', function() { + psClose(slider, param); + }); + $scope.$on('$stateChangeStart', function() { + psClose(slider, param); + }); + + } + } + }; + } + ]); +})(); })(this); \ No newline at end of file diff --git a/dist/js/eda.dragdropway.min.js b/dist/js/eda.dragdropway.min.js index e37e5e07..c3336f4d 100644 --- a/dist/js/eda.dragdropway.min.js +++ b/dist/js/eda.dragdropway.min.js @@ -1,5 +1,6 @@ -!function(){"use strict";function e(e){function o(){return['"].join("")}function t(){return['
','
','
','
','
  Edit :
',"
","
",'
','
','
Column will be blank
',"
","
","
",f,"
"].join("")}function n(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function l(){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 d(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function s(){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",n()),e.put("editPanelSubTitleCtrl-tpls.html",l()),e.put("editPanelTextInputCtrl-tpls.html",i()),e.put("editPanelPasswordCtrl-tpls.html",r()),e.put("editPanelDateCtrl-tpls.html",a()),e.put("editPanelTextareaCtrl-tpls.html",d()),e.put("editPanelRichTextEditorCtrl-tpls.html",s()),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("eda.easyformGen.dragdropway",["edaApp"]),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.30").run(e), +!function(){"use strict";function e(e){function o(){return['"].join("")}function t(){return['
','
','
','
','
  Edit :
',"
","
",'
','
','
Column will be blank
',"
","
","
",f,"
"].join("")}function n(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function l(){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 d(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function s(){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",n()),e.put("editPanelSubTitleCtrl-tpls.html",l()),e.put("editPanelTextInputCtrl-tpls.html",i()),e.put("editPanelPasswordCtrl-tpls.html",r()),e.put("editPanelDateCtrl-tpls.html",a()),e.put("editPanelTextareaCtrl-tpls.html",d()),e.put("editPanelRichTextEditorCtrl-tpls.html",s()),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("eda.easyformGen.dragdropway",["edaApp"]),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.31").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 n(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():""})}console.info("app in config"),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 l=['
','
','

{{options.templateOptions.placeholder}}

',"
","

","
"].join(" ");e.setType({name:"subTitle",template:l}),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[n(e)]={attribute:e}}),angular.forEach(r,function(e){a[n(e)]={bound:e}});var d=[""].join(" ");e.setType({name:"datepicker",template:d,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 s=['',""].join(" ");e.setType({name:"richEditor",template:s}),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("edaDragDropWayEasyFormGeneratorTemplate.html",'
  Select a control

   Customize form buttons

   DATA MODEL

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

   FIELDS MODEL (ready to save to database one)

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

   Save this form


Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put("editModalTemplate.html","

no use right now

")}]),angular.module("edaApp.providers.dragDropConfigProvider",[]).provider("dragDropConfig",[function(){function e(e,o){if(n[0].length>0){if(n[0].lengthi;i++)n[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){n[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[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}},n=[[],[[]]],l={itemBeingDragged:""};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return l},this.setItemsNotTocount=function(e){l=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){"undefined"!=typeof o&&"undefined"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return n},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return l},e.getItemCssDependingNumberItemsInRow=function(e){if("undefined"!=typeof e){for(var t="",n=o.length-1;n>=0;n--)o[n].numberItemPerRow===e&&(t=o[n].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 n=!0;angular.forEach(e,function(e){var o=e;t===o&&(n=!1)}),n&&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 n},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"}},n={submitButtonText:"submit",cancelButtonText:"cancel",lines:[].concat(o)},l={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:""}},d=[{controlType:"datepicker",properties:[{isRoot:!1,isTemplateOptions:!0,value:"datepickerPopup"}]}];this.getAllParticularControlProperties=function(){return d},this.addParticularControlProperties=function(e){if("controlType"in e&&"properties"in e){var o=!1;d.length>0&&d.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||d.push(e)}return d},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 s={};return s.getEasyFormListControls=function(){return e},s.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(n);return"undefined"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return"undefined"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormEmptyConfigurationLineModel=function(){return o},s.getEasyFormConfigurationEmptyControlModel=function(){return t},s.getRawHeaderTemplates=function(){return r},s.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}},s.getRawFormlyControlTemplates=function(){return a},s.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&&d.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=""),e.isTemplateOptions&&(t.templateOptions[e.value]="")})}),t}},s}]}]),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","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager",function(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:"warning",title:"Last line",body:"Can't delete the last line",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return"undefined"==typeof e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(l.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),l.clear(),l.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if("itemType"===a&&!n.label)return!1;if("containerType"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if("itemType"===f&&!s.label)return!1;if("containerType"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on("$destroy",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),"undefined"!=typeof s.getEditPanelModelLineIndex()&&"undefined"!=typeof s.getEditPanelModelColumnIndex()&&"undefined"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}]),angular.module("edaApp.controllers.edaEditMODALController",[]).controller("edaEditMODALController",["$scope","$modalInstance","nyaSelect","toaster","$timeout","selectOptionManage","controllerModalProxy",function(e,o,t,n,l,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 d(){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 n={name:e.radioRowCollection.rows[t].option,value:t,group:""};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}function s(){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 n={name:e.basicSelectRowCollection.rows[t].option,value:t,group:""};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}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 n=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,"group"));angular.copy(n,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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.pop({type:"warning",timeout:2e3,title:"Group already exists",body:"No group added.",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else n.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&&n.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&&n.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&&n.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&&n.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 v=e.nyaSelect.controls.length-1;v>=0;v--)e.nyaSelect.controls[v].id===t.selectedControl&&(e.modelNyaSelect=t.controls[v]);"BasicSelect"===e.nyaSelect.selectedControl&&s(),"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&&d(),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,n,l){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=l.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=l.basicSelectRowCollection,a.newOptionBasicSelect=l.newOptionBasicSelect,a.groupedSelectRowCollection=l.groupedSelectRowCollection,a.newOptionGroupedSelect=l.newOptionGroupedSelect,a.GroupedSelectGroups=l.GroupedSelectGroups,a.newGroupGroupedSelect=l.newGroupGroupedSelect,a.groupSelectGroupClick=l.groupSelectGroupClick,a.radioRowCollection=l.radioRowCollection,a.newOptionRadio=l.newOptionRadio,l.resetAllTemporyModels(),"none"!==a.proxyModel.temporyConfig.selectedControl){for(var d=a.proxyModel.controls.length-1;d>=0;d--)a.proxyModel.controls[d].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[d]);"BasicSelect"===a.proxyModel.temporyConfig.selectedControl&&l.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),"GroupedSelect"===a.proxyModel.temporyConfig.selectedControl&&l.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),"Radio"===a.proxyModel.temporyConfig.selectedControl&&l.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return l.basicSelectRowCollection=a.basicSelectRowCollection,l.newOptionBasicSelect=a.newOptionBasicSelect,l.groupedSelectRowCollection=a.groupedSelectRowCollection,l.newOptionGroupedSelect=a.newOptionGroupedSelect,l.GroupedSelectGroups=a.GroupedSelectGroups,l.newGroupGroupedSelect=a.newGroupGroupedSelect,l.groupSelectGroupClick=a.groupSelectGroupClick,l.radioRowCollection=a.radioRowCollection,l.newOptionRadio=a.newOptionRadio,l.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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,n){var l;t.$watch(function(){return n[0].children.length},function(i,r){if(i!==r){for(var a=0,d=[],s=n[0].children.length-1;s>=0;s--)e.isHtmlElementToCount(n[0].children[s].classList)?(a++,d.push({item:s,isReal:!0})):d.push({item:s,isReal:!1});t.contentRealCount=a,l=o(function(){e.updateLineItemCss(t.fullModel,d,t.parentIndex,t.currentIndex,a)},20)}}),t.$on("$destroy",function(){console.warn("ddContentCounter timer destruction!"),o.cancel(l)})}}}]),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,n,l){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),l(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 n=angular.lowercase(o);("true"===n||"1"===n)&&console.dir({whoAmI:"I am verbose from ddDecorDropZone link",verbodeMode:n,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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex,s=e.getDistinctItemCssClass();if(angular.forEach(s,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch("cssClass",function(e,o){e!==o&&(angular.forEach(s,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:d,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}"0"===o.parentParentIndex&&t.addClass(s[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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,""!==r){var s=angular.lowercase(r);("true"===s||"1"===s)&&console.dir({whoAmI:"I am verbose from ddDecorLine directive link",verbodeMode:s,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:d,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","edaApp.directives.edaDragdropWayEasyFormGenDirective"]),function(){function e(e,o,t,n){function l(e,l,i){function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}];return e}function d(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){m()}function p(){return e.returnSaveEvent}function u(o,t){if(o===!0){var n={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:n}),e.returnSaveEvent=!1}}function m(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var n=r();e.configurationLoaded={},o.bindConfigurationLines(e.configurationLoaded,n,!1),e.configuration=angular.copy(e.configurationLoaded),t.loadDragDropModelFromConfigurationModel(e.configuration,e.dragDropModel),f(e.configuration),t.refreshControlsKeys(e.configuration,e.dragDropModel),console.info("compare both configuration model"),console.dir({"loaded one":angular.copy(e.configurationLoaded),"bound one":angular.copy(e.configuration)}),o.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=d,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"}}function f(e){angular.forEach(e.lines,function(e){var o=n.getItemCssDependingNumberItemsInRow(e.columns.length);angular.forEach(e.columns,function(e){e.control.className=o})})}e.$watch(s,c,!0),e.$watch(p,u)}function i(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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.returnSaveEvent=!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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:"warning",title:"Last line",body:"Can't delete the last line",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return"undefined"==typeof e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(l.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),l.clear(),l.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if("itemType"===a&&!n.label)return!1;if("containerType"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if("itemType"===f&&!s.label)return!1;if("containerType"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on("$destroy",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),"undefined"!=typeof s.getEditPanelModelLineIndex()&&"undefined"!=typeof s.getEditPanelModelColumnIndex()&&"undefined"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=["$scope","easyFormGenVersion","$filter","$anchorScroll","toaster","$timeout","$modal","$log","formFieldManage","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager"];var r={restrict:"E",scope:{edaEasyFormGeneratorModel:"=",edaSaveFormEvent:"&edaSaveFormEvent"},controller:i,controllerAs:"vm",replace:!1,templateUrl:"edaDragDropWayEasyFormGeneratorTemplate.html",link:l};return r}angular.module("edaApp.directives.edaDragdropWayEasyFormGenDirective",[]).directive("edaDragdropWayEasyFormGen",e),e.$inject=["$timeout","formFieldManage","ddModelConfModelProxyService","dragDropConfig"]}(),angular.module("edaApp.directives.edaRightClickDirective",[]).directive("edaRightClick",["$parse",function(e){return{restrict:"A",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on("contextmenu",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module("edaApp.directives.edaStRationDirective",[]).directive("stRatio",[function(){return{restrict:"A",link:function(e,o,t){var n=+t.stRatio;o.css("width",n+"%")}}}]),angular.module("edaApp.services.dragDropItemCountersService",[]).factory("dragDropItemCounterService",["dragDropConfig",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if("undefined"!=typeof o&&"undefined"!=typeof t&&"undefined"!=typeof n&&"undefined"!=typeof l&&"undefined"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if("undefined"!=typeof t&&"undefined"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module("edaApp.services.dragDropModelConfigModelProxyService",[]).factory("ddModelConfModelProxyService",["EasyFormGenFormlyBindingModels","controllerModalProxy","dragDropConfig","$parse",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n("controls");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)"undefined"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+"-"+Date.now();return i(t,o)===!0?t:(t=e+"-"+Date.now(),i(t,o)===!0?t:t=e+"-"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n("control.selectedControl").assign(o,n("selectedControl")(e)),n("control.type").assign(o,n("formlyType")(e)),n("control.key").assign(o,r(n("control.type")(o),t)),n("control.subtype").assign(o,n("formlySubtype")(e)),n("control.templateOptions.label").assign(o,n("formlyLabel")(e)),n("control.templateOptions.required").assign(o,n("formlyRequired")(e)),n("control.templateOptions.description").assign(o,n("formlyDesciption")(e)),n("control.templateOptions.placeholder").assign(o,n("formlyPlaceholder")(e)),n("control.templateOptions.options").assign(o,n("formlyOptions")(e)),"datepicker"===n("control.type")(o)&&n("control.templateOptions.datepickerPopup").assign(o,n("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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if("undefined"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){"undefined"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:"empty",cssClass:"col-xs-12",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t="none",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),"undefined"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl="undefined"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:"none",e.temporyConfig.formlyLabel="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:"",e.temporyConfig.formlyRequired="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:"",e.temporyConfig.formlyDesciption="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:"",e.temporyConfig.formlyPlaceholder="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:"",e.temporyConfig.formlyOptions="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:"","Date"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:"")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+"-"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn("debug edaEditCtrlControllerModalProxy"),console.dir(n),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,"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+"-"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:""}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,"group"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module("edaApp.services.formFieldManage",[]).factory("formFieldManage",["EasyFormGenFormlyBindingModels",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:"row",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if("[object Array]"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i("configuration model is bound","lines are bound to configuration model.")}return l("lines is not an array","Checks lines type, it is not an array.")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:""},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details="",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass("dndDragover"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on("dragover",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass("dndDragover"),e.preventDefault(),e.stopPropagation(),!1)}),i.on("drop",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData("Text")||e.dataTransfer.getData("text/plain");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect="none"===e.dataTransfer.dropEffect?"copy"===e.dataTransfer.effectAllowed||"move"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?"copy":"move":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on("dragleave",function(e){e=e.originalEvent||e,i.removeClass("dndDragover"),o(function(){i.hasClass("dndDragover")||m.remove()},100)})}}]).factory("dndDragTypeWorkaround",function(){return{}}).factory("dndDropEffectWorkaround",function(){return{}})}()}(this); +numColumn:-1,exist:!0,control:{type:"none",key:"none"}});e.configuration.lines[e.configuration.activeLine-1].columns[o-1].numColumn=o}d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.decreaseNumberOfColumns=function(o,t){e.configuration.lines[e.configuration.activeLine-1].columns.length>1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return"undefined"==typeof e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(l.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),l.clear(),l.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if("itemType"===a&&!n.label)return!1;if("containerType"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if("itemType"===f&&!s.label)return!1;if("containerType"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on("$destroy",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),"undefined"!=typeof s.getEditPanelModelLineIndex()&&"undefined"!=typeof s.getEditPanelModelColumnIndex()&&"undefined"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=["$scope","easyFormGenVersion","$filter","$anchorScroll","toaster","$timeout","$modal","$log","formFieldManage","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager"];var r={restrict:"E",scope:{edaEasyFormGeneratorModel:"=",edaSaveFormEvent:"&edaSaveFormEvent"},controller:i,controllerAs:"vm",replace:!1,templateUrl:"edaDragDropWayEasyFormGeneratorTemplate.html",link:l};return r}angular.module("edaApp.directives.edaDragdropWayEasyFormGenDirective",[]).directive("edaDragdropWayEasyFormGen",e),e.$inject=["$timeout","formFieldManage","ddModelConfModelProxyService","dragDropConfig"]}(),angular.module("edaApp.directives.edaRightClickDirective",[]).directive("edaRightClick",["$parse",function(e){return{restrict:"A",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on("contextmenu",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module("edaApp.directives.edaStRationDirective",[]).directive("stRatio",[function(){return{restrict:"A",link:function(e,o,t){var n=+t.stRatio;o.css("width",n+"%")}}}]),angular.module("edaApp.services.dragDropItemCountersService",[]).factory("dragDropItemCounterService",["dragDropConfig",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if("undefined"!=typeof o&&"undefined"!=typeof t&&"undefined"!=typeof n&&"undefined"!=typeof l&&"undefined"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if("undefined"!=typeof t&&"undefined"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module("edaApp.services.dragDropModelConfigModelProxyService",[]).factory("ddModelConfModelProxyService",["EasyFormGenFormlyBindingModels","controllerModalProxy","dragDropConfig","$parse",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n("controls");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)"undefined"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+"-"+Date.now();return i(t,o)===!0?t:(t=e+"-"+Date.now(),i(t,o)===!0?t:t=e+"-"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n("control.selectedControl").assign(o,n("selectedControl")(e)),n("control.type").assign(o,n("formlyType")(e)),n("control.key").assign(o,r(n("control.type")(o),t)),n("control.subtype").assign(o,n("formlySubtype")(e)),n("control.templateOptions.label").assign(o,n("formlyLabel")(e)),n("control.templateOptions.required").assign(o,n("formlyRequired")(e)),n("control.templateOptions.description").assign(o,n("formlyDesciption")(e)),n("control.templateOptions.placeholder").assign(o,n("formlyPlaceholder")(e)),n("control.templateOptions.options").assign(o,n("formlyOptions")(e)),"datepicker"===n("control.type")(o)&&n("control.templateOptions.datepickerPopup").assign(o,n("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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if("undefined"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){"undefined"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:"empty",cssClass:"col-xs-12",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t="none",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),"undefined"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl="undefined"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:"none",e.temporyConfig.formlyLabel="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:"",e.temporyConfig.formlyRequired="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:"",e.temporyConfig.formlyDesciption="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:"",e.temporyConfig.formlyPlaceholder="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:"",e.temporyConfig.formlyOptions="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:"","Date"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:"")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+"-"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn("debug edaEditCtrlControllerModalProxy"),console.dir(n),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,"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+"-"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:""}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,"group"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module("edaApp.services.formFieldManage",[]).factory("formFieldManage",["EasyFormGenFormlyBindingModels",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:"row",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if("[object Array]"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i("configuration model is bound","lines are bound to configuration model.")}return l("lines is not an array","Checks lines type, it is not an array.")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:""},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details="",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass("dndDragover"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on("dragover",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass("dndDragover"),e.preventDefault(),e.stopPropagation(),!1)}),i.on("drop",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData("Text")||e.dataTransfer.getData("text/plain");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect="none"===e.dataTransfer.dropEffect?"copy"===e.dataTransfer.effectAllowed||"move"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?"copy":"move":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on("dragleave",function(e){e=e.originalEvent||e,i.removeClass("dndDragover"),o(function(){i.hasClass("dndDragover")||m.remove()},100)})}}]).factory("dndDragTypeWorkaround",function(){return{}}).factory("dndDropEffectWorkaround",function(){return{}})}(),angular.module("pageslide-directive",[]).directive("pageslide",[function(){return{restrict:"EAC",transclude:!1,scope:{psOpen:"=?",psAutoClose:"=?",psSide:"@",psSpeed:"@",psClass:"@",psSize:"@",psSqueeze:"@",psCloak:"@",psPush:"@",psContainer:"@"},link:function(e,o,t){function n(o,t){ +if(o&&0!==o.style.width&&0!==o.style.width)switch(t.cloak&&r.css("display","none"),t.side){case"right":o.style.width="0px",t.squeeze&&(d.style.right="0px"),t.push&&(d.style.right="0px",d.style.left="0px");break;case"left":o.style.width="0px",t.squeeze&&(d.style.left="0px"),t.push&&(d.style.left="0px",d.style.right="0px");break;case"top":o.style.height="0px",t.squeeze&&(d.style.top="0px"),t.push&&(d.style.top="0px",d.style.bottom="0px");break;case"bottom":o.style.height="0px",t.squeeze&&(d.style.bottom="0px"),t.push&&(d.style.bottom="0px",d.style.top="0px")}e.psOpen=!1}function l(e,o){if(0!==e.style.width&&0!==e.style.width){switch(o.side){case"right":e.style.width=o.size,o.squeeze&&(d.style.right=o.size),o.push&&(d.style.right=o.size,d.style.left="-"+o.size);break;case"left":e.style.width=o.size,o.squeeze&&(d.style.left=o.size),o.push&&(d.style.left=o.size,d.style.right="-"+o.size);break;case"top":e.style.height=o.size,o.squeeze&&(d.style.top=o.size),o.push&&(d.style.top=o.size,d.style.bottom="-"+o.size);break;case"bottom":e.style.height=o.size,o.squeeze&&(d.style.bottom=o.size),o.push&&(d.style.bottom=o.size,d.style.top="-"+o.size)}setTimeout(function(){o.cloak&&r.css("display","block")},1e3*o.speed)}}var i={};i.side=e.psSide||"right",i.speed=e.psSpeed||"0.5",i.size=e.psSize||"300px",i.zindex=1e3,i.className=e.psClass||"ng-pageslide",i.cloak=e.psCloak&&"false"==e.psCloak.toLowerCase()?!1:!0,i.squeeze=Boolean(e.psSqueeze)||!1,i.push=Boolean(e.psPush)||!1,i.container=e.psContainer||!1,o.addClass(i.className);var r=null,a=null,d=i.container?document.getElementById(i.container):document.body;if(a=o[0],"div"!==a.tagName.toLowerCase()&&"pageslide"!==a.tagName.toLowerCase())throw new Error("Pageslide can only be applied to
or elements");if(0===a.children.length)throw new Error("You have to content inside the ");switch(r=angular.element(a.children),d.appendChild(a),a.style.zIndex=i.zindex,a.style.position=i.container!==!1?"absolute":"fixed",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a.style.transitionDuration=i.speed+"s",a.style.webkitTransitionDuration=i.speed+"s",a.style.transitionProperty="width, height",i.squeeze&&(d.style.position="absolute",d.style.transitionDuration=i.speed+"s",d.style.webkitTransitionDuration=i.speed+"s",d.style.transitionProperty="top, bottom, left, right"),i.side){case"right":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.right=t.psCustomRight||"0px";break;case"left":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px";break;case"top":a.style.width=t.psCustomWidth||"100%",a.style.left=t.psCustomLeft||"0px",a.style.top=t.psCustomTop||"0px",a.style.right=t.psCustomRight||"0px";break;case"bottom":a.style.width=t.psCustomWidth||"100%",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px",a.style.right=t.psCustomRight||"0px"}e.$watch("psOpen",function(e){e?l(a,i):n(a,i)}),e.$on("$destroy",function(){d.removeChild(a)}),e.psAutoClose&&(e.$on("$locationChangeStart",function(){n(a,i)}),e.$on("$stateChangeStart",function(){n(a,i)}))}}}])}(this); //# sourceMappingURL=eda.dragdropway.min.js.map \ No newline at end of file diff --git a/dist/public/js/eda.dragdropway.js b/dist/public/js/eda.dragdropway.js index de5fa948..82c23f51 100644 --- a/dist/public/js/eda.dragdropway.js +++ b/dist/public/js/eda.dragdropway.js @@ -9188,243 +9188,247 @@ angular.module('dndLists', []) })(); -angular.module('pageslide-directive', []) - -.directive('pageslide', [ - function () { - var defaults = {}; - - /* Return directive definition object */ - - return { - restrict: 'EAC', - transclude: false, - scope: { - psOpen: '=?', - psAutoClose: '=?', - psSide: '@', - psSpeed: '@', - psClass: '@', - psSize: '@', - psSqueeze: '@', - psCloak: '@', - psPush: '@', - psContainer: '@' - }, - //template: '
', - link: function ($scope, el, attrs) { - /* Inspect */ - //console.log($scope); - //console.log(el); - //console.log(attrs); - - /* Parameters */ - var param = {}; - - param.side = $scope.psSide || 'right'; - param.speed = $scope.psSpeed || '0.5'; - param.size = $scope.psSize || '300px'; - param.zindex = 1000; // Override with custom CSS - param.className = $scope.psClass || 'ng-pageslide'; - param.cloak = $scope.psCloak && $scope.psCloak.toLowerCase() == 'false' ? false : true; - param.squeeze = Boolean($scope.psSqueeze) || false; - param.push = Boolean($scope.psPush) || false; - param.container = $scope.psContainer || false; - - // Apply Class - el.addClass(param.className); - - /* DOM manipulation */ - var content = null; - var slider = null; - var body = param.container ? document.getElementById(param.container) : document.body; - - slider = el[0]; - - // Check for div tag - if (slider.tagName.toLowerCase() !== 'div' && - slider.tagName.toLowerCase() !== 'pageslide') - throw new Error('Pageslide can only be applied to
or elements'); - - // Check for content - if (slider.children.length === 0) - throw new Error('You have to content inside the '); - - content = angular.element(slider.children); - - /* Append */ - body.appendChild(slider); - - /* Style setup */ - slider.style.zIndex = param.zindex; - slider.style.position = param.container !== false ? 'absolute' : 'fixed'; - slider.style.width = 0; - slider.style.height = 0; - slider.style.overflow = 'hidden'; - slider.style.transitionDuration = param.speed + 's'; - slider.style.webkitTransitionDuration = param.speed + 's'; - slider.style.transitionProperty = 'width, height'; - if (param.squeeze) { - body.style.position = 'absolute'; - body.style.transitionDuration = param.speed + 's'; - body.style.webkitTransitionDuration = param.speed + 's'; - body.style.transitionProperty = 'top, bottom, left, right'; - } - - switch (param.side) { - case 'right': - slider.style.height = attrs.psCustomHeight || '100%'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - case 'left': - slider.style.height = attrs.psCustomHeight || '100%'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.left = attrs.psCustomLeft || '0px'; - break; - case 'top': - slider.style.width = attrs.psCustomWidth || '100%'; - slider.style.left = attrs.psCustomLeft || '0px'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - case 'bottom': - slider.style.width = attrs.psCustomWidth || '100%'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.left = attrs.psCustomLeft || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - } - - - /* Closed */ - function psClose(slider, param) { - if (slider && slider.style.width !== 0 && slider.style.width !== 0) { - if (param.cloak) content.css('display', 'none'); - switch (param.side) { - case 'right': - slider.style.width = '0px'; - if (param.squeeze) body.style.right = '0px'; - if (param.push) { - body.style.right = '0px'; - body.style.left = '0px'; - } - break; - case 'left': - slider.style.width = '0px'; - if (param.squeeze) body.style.left = '0px'; - if (param.push) { - body.style.left = '0px'; - body.style.right = '0px'; - } - break; - case 'top': - slider.style.height = '0px'; - if (param.squeeze) body.style.top = '0px'; - if (param.push) { - body.style.top = '0px'; - body.style.bottom = '0px'; - } - break; - case 'bottom': - slider.style.height = '0px'; - if (param.squeeze) body.style.bottom = '0px'; - if (param.push) { - body.style.bottom = '0px'; - body.style.top = '0px'; - } - break; - } - } - $scope.psOpen = false; - } - - /* Open */ - function psOpen(slider, param) { - if (slider.style.width !== 0 && slider.style.width !== 0) { - switch (param.side) { - case 'right': - slider.style.width = param.size; - if (param.squeeze) body.style.right = param.size; - if (param.push) { - body.style.right = param.size; - body.style.left = '-' + param.size; - } - break; - case 'left': - slider.style.width = param.size; - if (param.squeeze) body.style.left = param.size; - if (param.push) { - body.style.left = param.size; - body.style.right = '-' + param.size; - } - break; - case 'top': - slider.style.height = param.size; - if (param.squeeze) body.style.top = param.size; - if (param.push) { - body.style.top = param.size; - body.style.bottom = '-' + param.size; - } - break; - case 'bottom': - slider.style.height = param.size; - if (param.squeeze) body.style.bottom = param.size; - if (param.push) { - body.style.bottom = param.size; - body.style.top = '-' + param.size; - } - break; - } - setTimeout(function() { - if (param.cloak) content.css('display', 'block'); - }, (param.speed * 1000)); - - } - } - - function isFunction(functionToCheck) { - var getType = {}; - return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; - } - - /* - * Watchers - * */ - - $scope.$watch('psOpen', function(value) { - if (!!value) { - // Open - psOpen(slider, param); - } else { - // Close - psClose(slider, param); - } - }); - - - /* - * Events - * */ - - $scope.$on('$destroy', function () { - body.removeChild(slider); - }); - - if ($scope.psAutoClose) { - $scope.$on('$locationChangeStart', function() { - psClose(slider, param); - }); - $scope.$on('$stateChangeStart', function() { - psClose(slider, param); - }); - - } - } - }; - } -]); +;(function(){ + 'use strict'; + + angular + .module('pageslide-directive', []) + .directive('pageslide', [ + function () { + var defaults = {}; + + /* Return directive definition object */ + + return { + restrict: 'EAC', + transclude: false, + scope: { + psOpen: '=?', + psAutoClose: '=?', + psSide: '@', + psSpeed: '@', + psClass: '@', + psSize: '@', + psSqueeze: '@', + psCloak: '@', + psPush: '@', + psContainer: '@' + }, + //template: '
', + link: function ($scope, el, attrs) { + /* Inspect */ + //console.log($scope); + //console.log(el); + //console.log(attrs); + + /* Parameters */ + var param = {}; + + param.side = $scope.psSide || 'right'; + param.speed = $scope.psSpeed || '0.5'; + param.size = $scope.psSize || '300px'; + param.zindex = 1000; // Override with custom CSS + param.className = $scope.psClass || 'ng-pageslide'; + param.cloak = $scope.psCloak && $scope.psCloak.toLowerCase() == 'false' ? false : true; + param.squeeze = Boolean($scope.psSqueeze) || false; + param.push = Boolean($scope.psPush) || false; + param.container = $scope.psContainer || false; + + // Apply Class + el.addClass(param.className); + + /* DOM manipulation */ + var content = null; + var slider = null; + var body = param.container ? document.getElementById(param.container) : document.body; + + slider = el[0]; + + // Check for div tag + if (slider.tagName.toLowerCase() !== 'div' && + slider.tagName.toLowerCase() !== 'pageslide') + throw new Error('Pageslide can only be applied to
or elements'); + + // Check for content + if (slider.children.length === 0) + throw new Error('You have to content inside the '); + + content = angular.element(slider.children); + + /* Append */ + body.appendChild(slider); + + /* Style setup */ + slider.style.zIndex = param.zindex; + slider.style.position = param.container !== false ? 'absolute' : 'fixed'; + slider.style.width = 0; + slider.style.height = 0; + slider.style.overflow = 'hidden'; + slider.style.transitionDuration = param.speed + 's'; + slider.style.webkitTransitionDuration = param.speed + 's'; + slider.style.transitionProperty = 'width, height'; + if (param.squeeze) { + body.style.position = 'absolute'; + body.style.transitionDuration = param.speed + 's'; + body.style.webkitTransitionDuration = param.speed + 's'; + body.style.transitionProperty = 'top, bottom, left, right'; + } + + switch (param.side) { + case 'right': + slider.style.height = attrs.psCustomHeight || '100%'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + case 'left': + slider.style.height = attrs.psCustomHeight || '100%'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.left = attrs.psCustomLeft || '0px'; + break; + case 'top': + slider.style.width = attrs.psCustomWidth || '100%'; + slider.style.left = attrs.psCustomLeft || '0px'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + case 'bottom': + slider.style.width = attrs.psCustomWidth || '100%'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.left = attrs.psCustomLeft || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + } + + + /* Closed */ + function psClose(slider, param) { + if (slider && slider.style.width !== 0 && slider.style.width !== 0) { + if (param.cloak) content.css('display', 'none'); + switch (param.side) { + case 'right': + slider.style.width = '0px'; + if (param.squeeze) body.style.right = '0px'; + if (param.push) { + body.style.right = '0px'; + body.style.left = '0px'; + } + break; + case 'left': + slider.style.width = '0px'; + if (param.squeeze) body.style.left = '0px'; + if (param.push) { + body.style.left = '0px'; + body.style.right = '0px'; + } + break; + case 'top': + slider.style.height = '0px'; + if (param.squeeze) body.style.top = '0px'; + if (param.push) { + body.style.top = '0px'; + body.style.bottom = '0px'; + } + break; + case 'bottom': + slider.style.height = '0px'; + if (param.squeeze) body.style.bottom = '0px'; + if (param.push) { + body.style.bottom = '0px'; + body.style.top = '0px'; + } + break; + } + } + $scope.psOpen = false; + } + + /* Open */ + function psOpen(slider, param) { + if (slider.style.width !== 0 && slider.style.width !== 0) { + switch (param.side) { + case 'right': + slider.style.width = param.size; + if (param.squeeze) body.style.right = param.size; + if (param.push) { + body.style.right = param.size; + body.style.left = '-' + param.size; + } + break; + case 'left': + slider.style.width = param.size; + if (param.squeeze) body.style.left = param.size; + if (param.push) { + body.style.left = param.size; + body.style.right = '-' + param.size; + } + break; + case 'top': + slider.style.height = param.size; + if (param.squeeze) body.style.top = param.size; + if (param.push) { + body.style.top = param.size; + body.style.bottom = '-' + param.size; + } + break; + case 'bottom': + slider.style.height = param.size; + if (param.squeeze) body.style.bottom = param.size; + if (param.push) { + body.style.bottom = param.size; + body.style.top = '-' + param.size; + } + break; + } + setTimeout(function() { + if (param.cloak) content.css('display', 'block'); + }, (param.speed * 1000)); + + } + } + + function isFunction(functionToCheck) { + var getType = {}; + return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; + } + + /* + * Watchers + * */ + + $scope.$watch('psOpen', function(value) { + if (!!value) { + // Open + psOpen(slider, param); + } else { + // Close + psClose(slider, param); + } + }); + + + /* + * Events + * */ + + $scope.$on('$destroy', function () { + body.removeChild(slider); + }); + + if ($scope.psAutoClose) { + $scope.$on('$locationChangeStart', function() { + psClose(slider, param); + }); + $scope.$on('$stateChangeStart', function() { + psClose(slider, param); + }); + + } + } + }; + } + ]); +})(); })(this); \ No newline at end of file diff --git a/dist/public/js/eda.dragdropway.min.js b/dist/public/js/eda.dragdropway.min.js index c3336f4d..dba7bb14 100644 --- a/dist/public/js/eda.dragdropway.min.js +++ b/dist/public/js/eda.dragdropway.min.js @@ -1,6 +1,6 @@ !function(){"use strict";function e(e){function o(){return['"].join("")}function t(){return['
','
','
','
','
  Edit :
',"
","
",'
','
','
Column will be blank
',"
","
","
",f,"
"].join("")}function n(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function l(){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 d(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function s(){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",n()),e.put("editPanelSubTitleCtrl-tpls.html",l()),e.put("editPanelTextInputCtrl-tpls.html",i()),e.put("editPanelPasswordCtrl-tpls.html",r()),e.put("editPanelDateCtrl-tpls.html",a()),e.put("editPanelTextareaCtrl-tpls.html",d()),e.put("editPanelRichTextEditorCtrl-tpls.html",s()),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("eda.easyformGen.dragdropway",["edaApp"]),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.31").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 n(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():""})}console.info("app in config"),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 l=['
','
','

{{options.templateOptions.placeholder}}

',"
","

","
"].join(" ");e.setType({name:"subTitle",template:l}),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[n(e)]={attribute:e}}),angular.forEach(r,function(e){a[n(e)]={bound:e}});var d=[""].join(" ");e.setType({name:"datepicker",template:d,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 s=['',""].join(" ");e.setType({name:"richEditor",template:s}),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("edaDragDropWayEasyFormGeneratorTemplate.html",'
  Select a control

   Customize form buttons

   DATA MODEL

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

   FIELDS MODEL (ready to save to database one)

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

   Save this form


Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put("editModalTemplate.html","

no use right now

")}]),angular.module("edaApp.providers.dragDropConfigProvider",[]).provider("dragDropConfig",[function(){function e(e,o){if(n[0].length>0){if(n[0].lengthi;i++)n[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){n[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[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}},n=[[],[[]]],l={itemBeingDragged:""};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return l},this.setItemsNotTocount=function(e){l=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){"undefined"!=typeof o&&"undefined"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return n},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return l},e.getItemCssDependingNumberItemsInRow=function(e){if("undefined"!=typeof e){for(var t="",n=o.length-1;n>=0;n--)o[n].numberItemPerRow===e&&(t=o[n].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 n=!0;angular.forEach(e,function(e){var o=e;t===o&&(n=!1)}),n&&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 n},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"}},n={submitButtonText:"submit",cancelButtonText:"cancel",lines:[].concat(o)},l={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:""}},d=[{controlType:"datepicker",properties:[{isRoot:!1,isTemplateOptions:!0,value:"datepickerPopup"}]}];this.getAllParticularControlProperties=function(){return d},this.addParticularControlProperties=function(e){if("controlType"in e&&"properties"in e){var o=!1;d.length>0&&d.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||d.push(e)}return d},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 s={};return s.getEasyFormListControls=function(){return e},s.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(n);return"undefined"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return"undefined"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormEmptyConfigurationLineModel=function(){return o},s.getEasyFormConfigurationEmptyControlModel=function(){return t},s.getRawHeaderTemplates=function(){return r},s.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}},s.getRawFormlyControlTemplates=function(){return a},s.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&&d.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=""),e.isTemplateOptions&&(t.templateOptions[e.value]="")})}),t}},s}]}]),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","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager",function(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:"warning",title:"Last line",body:"Can't delete the last line",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return"undefined"==typeof e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(l.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),l.clear(),l.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if("itemType"===a&&!n.label)return!1;if("containerType"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if("itemType"===f&&!s.label)return!1;if("containerType"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on("$destroy",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),"undefined"!=typeof s.getEditPanelModelLineIndex()&&"undefined"!=typeof s.getEditPanelModelColumnIndex()&&"undefined"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}]),angular.module("edaApp.controllers.edaEditMODALController",[]).controller("edaEditMODALController",["$scope","$modalInstance","nyaSelect","toaster","$timeout","selectOptionManage","controllerModalProxy",function(e,o,t,n,l,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 d(){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 n={name:e.radioRowCollection.rows[t].option,value:t,group:""};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}function s(){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 n={name:e.basicSelectRowCollection.rows[t].option,value:t,group:""};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}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 n=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,"group"));angular.copy(n,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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.pop({type:"warning",timeout:2e3,title:"Group already exists",body:"No group added.",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else n.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&&n.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&&n.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&&n.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&&n.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 v=e.nyaSelect.controls.length-1;v>=0;v--)e.nyaSelect.controls[v].id===t.selectedControl&&(e.modelNyaSelect=t.controls[v]);"BasicSelect"===e.nyaSelect.selectedControl&&s(),"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&&d(),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,n,l){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=l.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=l.basicSelectRowCollection,a.newOptionBasicSelect=l.newOptionBasicSelect,a.groupedSelectRowCollection=l.groupedSelectRowCollection,a.newOptionGroupedSelect=l.newOptionGroupedSelect,a.GroupedSelectGroups=l.GroupedSelectGroups,a.newGroupGroupedSelect=l.newGroupGroupedSelect,a.groupSelectGroupClick=l.groupSelectGroupClick,a.radioRowCollection=l.radioRowCollection,a.newOptionRadio=l.newOptionRadio,l.resetAllTemporyModels(),"none"!==a.proxyModel.temporyConfig.selectedControl){for(var d=a.proxyModel.controls.length-1;d>=0;d--)a.proxyModel.controls[d].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[d]);"BasicSelect"===a.proxyModel.temporyConfig.selectedControl&&l.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),"GroupedSelect"===a.proxyModel.temporyConfig.selectedControl&&l.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),"Radio"===a.proxyModel.temporyConfig.selectedControl&&l.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return l.basicSelectRowCollection=a.basicSelectRowCollection,l.newOptionBasicSelect=a.newOptionBasicSelect,l.groupedSelectRowCollection=a.groupedSelectRowCollection,l.newOptionGroupedSelect=a.newOptionGroupedSelect,l.GroupedSelectGroups=a.GroupedSelectGroups,l.newGroupGroupedSelect=a.newGroupGroupedSelect,l.groupSelectGroupClick=a.groupSelectGroupClick,l.radioRowCollection=a.radioRowCollection,l.newOptionRadio=a.newOptionRadio,l.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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,n){var l;t.$watch(function(){return n[0].children.length},function(i,r){if(i!==r){for(var a=0,d=[],s=n[0].children.length-1;s>=0;s--)e.isHtmlElementToCount(n[0].children[s].classList)?(a++,d.push({item:s,isReal:!0})):d.push({item:s,isReal:!1});t.contentRealCount=a,l=o(function(){e.updateLineItemCss(t.fullModel,d,t.parentIndex,t.currentIndex,a)},20)}}),t.$on("$destroy",function(){console.warn("ddContentCounter timer destruction!"),o.cancel(l)})}}}]),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,n,l){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),l(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 n=angular.lowercase(o);("true"===n||"1"===n)&&console.dir({whoAmI:"I am verbose from ddDecorDropZone link",verbodeMode:n,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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex,s=e.getDistinctItemCssClass();if(angular.forEach(s,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch("cssClass",function(e,o){e!==o&&(angular.forEach(s,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:d,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}"0"===o.parentParentIndex&&t.addClass(s[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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,""!==r){var s=angular.lowercase(r);("true"===s||"1"===s)&&console.dir({whoAmI:"I am verbose from ddDecorLine directive link",verbodeMode:s,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:d,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","edaApp.directives.edaDragdropWayEasyFormGenDirective"]),function(){function e(e,o,t,n){function l(e,l,i){function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}];return e}function d(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){m()}function p(){return e.returnSaveEvent}function u(o,t){if(o===!0){var n={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:n}),e.returnSaveEvent=!1}}function m(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var n=r();e.configurationLoaded={},o.bindConfigurationLines(e.configurationLoaded,n,!1),e.configuration=angular.copy(e.configurationLoaded),t.loadDragDropModelFromConfigurationModel(e.configuration,e.dragDropModel),f(e.configuration),t.refreshControlsKeys(e.configuration,e.dragDropModel),console.info("compare both configuration model"),console.dir({"loaded one":angular.copy(e.configurationLoaded),"bound one":angular.copy(e.configuration)}),o.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=d,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"}}function f(e){angular.forEach(e.lines,function(e){var o=n.getItemCssDependingNumberItemsInRow(e.columns.length);angular.forEach(e.columns,function(e){e.control.className=o})})}e.$watch(s,c,!0),e.$watch(p,u)}function i(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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.returnSaveEvent=!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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:"warning",title:"Last line",body:"Can't delete the last line",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return"undefined"==typeof e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(l.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),l.clear(),l.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if("itemType"===a&&!n.label)return!1;if("containerType"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if("itemType"===f&&!s.label)return!1;if("containerType"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on("$destroy",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),"undefined"!=typeof s.getEditPanelModelLineIndex()&&"undefined"!=typeof s.getEditPanelModelColumnIndex()&&"undefined"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=["$scope","easyFormGenVersion","$filter","$anchorScroll","toaster","$timeout","$modal","$log","formFieldManage","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager"];var r={restrict:"E",scope:{edaEasyFormGeneratorModel:"=",edaSaveFormEvent:"&edaSaveFormEvent"},controller:i,controllerAs:"vm",replace:!1,templateUrl:"edaDragDropWayEasyFormGeneratorTemplate.html",link:l};return r}angular.module("edaApp.directives.edaDragdropWayEasyFormGenDirective",[]).directive("edaDragdropWayEasyFormGen",e),e.$inject=["$timeout","formFieldManage","ddModelConfModelProxyService","dragDropConfig"]}(),angular.module("edaApp.directives.edaRightClickDirective",[]).directive("edaRightClick",["$parse",function(e){return{restrict:"A",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on("contextmenu",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module("edaApp.directives.edaStRationDirective",[]).directive("stRatio",[function(){return{restrict:"A",link:function(e,o,t){var n=+t.stRatio;o.css("width",n+"%")}}}]),angular.module("edaApp.services.dragDropItemCountersService",[]).factory("dragDropItemCounterService",["dragDropConfig",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if("undefined"!=typeof o&&"undefined"!=typeof t&&"undefined"!=typeof n&&"undefined"!=typeof l&&"undefined"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if("undefined"!=typeof t&&"undefined"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module("edaApp.services.dragDropModelConfigModelProxyService",[]).factory("ddModelConfModelProxyService",["EasyFormGenFormlyBindingModels","controllerModalProxy","dragDropConfig","$parse",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n("controls");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)"undefined"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+"-"+Date.now();return i(t,o)===!0?t:(t=e+"-"+Date.now(),i(t,o)===!0?t:t=e+"-"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n("control.selectedControl").assign(o,n("selectedControl")(e)),n("control.type").assign(o,n("formlyType")(e)),n("control.key").assign(o,r(n("control.type")(o),t)),n("control.subtype").assign(o,n("formlySubtype")(e)),n("control.templateOptions.label").assign(o,n("formlyLabel")(e)),n("control.templateOptions.required").assign(o,n("formlyRequired")(e)),n("control.templateOptions.description").assign(o,n("formlyDesciption")(e)),n("control.templateOptions.placeholder").assign(o,n("formlyPlaceholder")(e)),n("control.templateOptions.options").assign(o,n("formlyOptions")(e)),"datepicker"===n("control.type")(o)&&n("control.templateOptions.datepickerPopup").assign(o,n("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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if("undefined"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){"undefined"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:"empty",cssClass:"col-xs-12",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t="none",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),"undefined"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl="undefined"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:"none",e.temporyConfig.formlyLabel="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:"",e.temporyConfig.formlyRequired="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:"",e.temporyConfig.formlyDesciption="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:"",e.temporyConfig.formlyPlaceholder="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:"",e.temporyConfig.formlyOptions="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:"","Date"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:"")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+"-"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn("debug edaEditCtrlControllerModalProxy"),console.dir(n),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,"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+"-"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:""}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,"group"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module("edaApp.services.formFieldManage",[]).factory("formFieldManage",["EasyFormGenFormlyBindingModels",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:"row",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if("[object Array]"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i("configuration model is bound","lines are bound to configuration model.")}return l("lines is not an array","Checks lines type, it is not an array.")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:""},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details="",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass("dndDragover"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on("dragover",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass("dndDragover"),e.preventDefault(),e.stopPropagation(),!1)}),i.on("drop",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData("Text")||e.dataTransfer.getData("text/plain");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect="none"===e.dataTransfer.dropEffect?"copy"===e.dataTransfer.effectAllowed||"move"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?"copy":"move":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on("dragleave",function(e){e=e.originalEvent||e,i.removeClass("dndDragover"),o(function(){i.hasClass("dndDragover")||m.remove()},100)})}}]).factory("dndDragTypeWorkaround",function(){return{}}).factory("dndDropEffectWorkaround",function(){return{}})}(),angular.module("pageslide-directive",[]).directive("pageslide",[function(){return{restrict:"EAC",transclude:!1,scope:{psOpen:"=?",psAutoClose:"=?",psSide:"@",psSpeed:"@",psClass:"@",psSize:"@",psSqueeze:"@",psCloak:"@",psPush:"@",psContainer:"@"},link:function(e,o,t){function n(o,t){ -if(o&&0!==o.style.width&&0!==o.style.width)switch(t.cloak&&r.css("display","none"),t.side){case"right":o.style.width="0px",t.squeeze&&(d.style.right="0px"),t.push&&(d.style.right="0px",d.style.left="0px");break;case"left":o.style.width="0px",t.squeeze&&(d.style.left="0px"),t.push&&(d.style.left="0px",d.style.right="0px");break;case"top":o.style.height="0px",t.squeeze&&(d.style.top="0px"),t.push&&(d.style.top="0px",d.style.bottom="0px");break;case"bottom":o.style.height="0px",t.squeeze&&(d.style.bottom="0px"),t.push&&(d.style.bottom="0px",d.style.top="0px")}e.psOpen=!1}function l(e,o){if(0!==e.style.width&&0!==e.style.width){switch(o.side){case"right":e.style.width=o.size,o.squeeze&&(d.style.right=o.size),o.push&&(d.style.right=o.size,d.style.left="-"+o.size);break;case"left":e.style.width=o.size,o.squeeze&&(d.style.left=o.size),o.push&&(d.style.left=o.size,d.style.right="-"+o.size);break;case"top":e.style.height=o.size,o.squeeze&&(d.style.top=o.size),o.push&&(d.style.top=o.size,d.style.bottom="-"+o.size);break;case"bottom":e.style.height=o.size,o.squeeze&&(d.style.bottom=o.size),o.push&&(d.style.bottom=o.size,d.style.top="-"+o.size)}setTimeout(function(){o.cloak&&r.css("display","block")},1e3*o.speed)}}var i={};i.side=e.psSide||"right",i.speed=e.psSpeed||"0.5",i.size=e.psSize||"300px",i.zindex=1e3,i.className=e.psClass||"ng-pageslide",i.cloak=e.psCloak&&"false"==e.psCloak.toLowerCase()?!1:!0,i.squeeze=Boolean(e.psSqueeze)||!1,i.push=Boolean(e.psPush)||!1,i.container=e.psContainer||!1,o.addClass(i.className);var r=null,a=null,d=i.container?document.getElementById(i.container):document.body;if(a=o[0],"div"!==a.tagName.toLowerCase()&&"pageslide"!==a.tagName.toLowerCase())throw new Error("Pageslide can only be applied to
or elements");if(0===a.children.length)throw new Error("You have to content inside the ");switch(r=angular.element(a.children),d.appendChild(a),a.style.zIndex=i.zindex,a.style.position=i.container!==!1?"absolute":"fixed",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a.style.transitionDuration=i.speed+"s",a.style.webkitTransitionDuration=i.speed+"s",a.style.transitionProperty="width, height",i.squeeze&&(d.style.position="absolute",d.style.transitionDuration=i.speed+"s",d.style.webkitTransitionDuration=i.speed+"s",d.style.transitionProperty="top, bottom, left, right"),i.side){case"right":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.right=t.psCustomRight||"0px";break;case"left":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px";break;case"top":a.style.width=t.psCustomWidth||"100%",a.style.left=t.psCustomLeft||"0px",a.style.top=t.psCustomTop||"0px",a.style.right=t.psCustomRight||"0px";break;case"bottom":a.style.width=t.psCustomWidth||"100%",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px",a.style.right=t.psCustomRight||"0px"}e.$watch("psOpen",function(e){e?l(a,i):n(a,i)}),e.$on("$destroy",function(){d.removeChild(a)}),e.psAutoClose&&(e.$on("$locationChangeStart",function(){n(a,i)}),e.$on("$stateChangeStart",function(){n(a,i)}))}}}])}(this); +numColumn:-1,exist:!0,control:{type:"none",key:"none"}});e.configuration.lines[e.configuration.activeLine-1].columns[o-1].numColumn=o}d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.decreaseNumberOfColumns=function(o,t){e.configuration.lines[e.configuration.activeLine-1].columns.length>1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return"undefined"==typeof e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(l.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),l.clear(),l.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if("itemType"===a&&!n.label)return!1;if("containerType"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if("itemType"===f&&!s.label)return!1;if("containerType"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on("$destroy",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),"undefined"!=typeof s.getEditPanelModelLineIndex()&&"undefined"!=typeof s.getEditPanelModelColumnIndex()&&"undefined"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=["$scope","easyFormGenVersion","$filter","$anchorScroll","toaster","$timeout","$modal","$log","formFieldManage","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager"];var r={restrict:"E",scope:{edaEasyFormGeneratorModel:"=",edaSaveFormEvent:"&edaSaveFormEvent"},controller:i,controllerAs:"vm",replace:!1,templateUrl:"edaDragDropWayEasyFormGeneratorTemplate.html",link:l};return r}angular.module("edaApp.directives.edaDragdropWayEasyFormGenDirective",[]).directive("edaDragdropWayEasyFormGen",e),e.$inject=["$timeout","formFieldManage","ddModelConfModelProxyService","dragDropConfig"]}(),angular.module("edaApp.directives.edaRightClickDirective",[]).directive("edaRightClick",["$parse",function(e){return{restrict:"A",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on("contextmenu",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module("edaApp.directives.edaStRationDirective",[]).directive("stRatio",[function(){return{restrict:"A",link:function(e,o,t){var n=+t.stRatio;o.css("width",n+"%")}}}]),angular.module("edaApp.services.dragDropItemCountersService",[]).factory("dragDropItemCounterService",["dragDropConfig",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if("undefined"!=typeof o&&"undefined"!=typeof t&&"undefined"!=typeof n&&"undefined"!=typeof l&&"undefined"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if("undefined"!=typeof t&&"undefined"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module("edaApp.services.dragDropModelConfigModelProxyService",[]).factory("ddModelConfModelProxyService",["EasyFormGenFormlyBindingModels","controllerModalProxy","dragDropConfig","$parse",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n("controls");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)"undefined"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+"-"+Date.now();return i(t,o)===!0?t:(t=e+"-"+Date.now(),i(t,o)===!0?t:t=e+"-"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n("control.selectedControl").assign(o,n("selectedControl")(e)),n("control.type").assign(o,n("formlyType")(e)),n("control.key").assign(o,r(n("control.type")(o),t)),n("control.subtype").assign(o,n("formlySubtype")(e)),n("control.templateOptions.label").assign(o,n("formlyLabel")(e)),n("control.templateOptions.required").assign(o,n("formlyRequired")(e)),n("control.templateOptions.description").assign(o,n("formlyDesciption")(e)),n("control.templateOptions.placeholder").assign(o,n("formlyPlaceholder")(e)),n("control.templateOptions.options").assign(o,n("formlyOptions")(e)),"datepicker"===n("control.type")(o)&&n("control.templateOptions.datepickerPopup").assign(o,n("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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if("undefined"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){"undefined"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:"empty",cssClass:"col-xs-12",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t="none",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),"undefined"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl="undefined"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:"none",e.temporyConfig.formlyLabel="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:"",e.temporyConfig.formlyRequired="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:"",e.temporyConfig.formlyDesciption="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:"",e.temporyConfig.formlyPlaceholder="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:"",e.temporyConfig.formlyOptions="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:"","Date"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:"")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+"-"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn("debug edaEditCtrlControllerModalProxy"),console.dir(n),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,"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+"-"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:""}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,"group"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module("edaApp.services.formFieldManage",[]).factory("formFieldManage",["EasyFormGenFormlyBindingModels",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:"row",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if("[object Array]"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i("configuration model is bound","lines are bound to configuration model.")}return l("lines is not an array","Checks lines type, it is not an array.")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:""},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details="",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass("dndDragover"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on("dragover",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass("dndDragover"),e.preventDefault(),e.stopPropagation(),!1)}),i.on("drop",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData("Text")||e.dataTransfer.getData("text/plain");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect="none"===e.dataTransfer.dropEffect?"copy"===e.dataTransfer.effectAllowed||"move"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?"copy":"move":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on("dragleave",function(e){e=e.originalEvent||e,i.removeClass("dndDragover"),o(function(){i.hasClass("dndDragover")||m.remove()},100)})}}]).factory("dndDragTypeWorkaround",function(){return{}}).factory("dndDropEffectWorkaround",function(){return{}})}(),function(){angular.module("pageslide-directive",[]).directive("pageslide",[function(){return{restrict:"EAC",transclude:!1,scope:{psOpen:"=?",psAutoClose:"=?",psSide:"@",psSpeed:"@",psClass:"@",psSize:"@",psSqueeze:"@",psCloak:"@",psPush:"@",psContainer:"@"},link:function(e,o,t){ +function n(o,t){if(o&&0!==o.style.width&&0!==o.style.width)switch(t.cloak&&r.css("display","none"),t.side){case"right":o.style.width="0px",t.squeeze&&(d.style.right="0px"),t.push&&(d.style.right="0px",d.style.left="0px");break;case"left":o.style.width="0px",t.squeeze&&(d.style.left="0px"),t.push&&(d.style.left="0px",d.style.right="0px");break;case"top":o.style.height="0px",t.squeeze&&(d.style.top="0px"),t.push&&(d.style.top="0px",d.style.bottom="0px");break;case"bottom":o.style.height="0px",t.squeeze&&(d.style.bottom="0px"),t.push&&(d.style.bottom="0px",d.style.top="0px")}e.psOpen=!1}function l(e,o){if(0!==e.style.width&&0!==e.style.width){switch(o.side){case"right":e.style.width=o.size,o.squeeze&&(d.style.right=o.size),o.push&&(d.style.right=o.size,d.style.left="-"+o.size);break;case"left":e.style.width=o.size,o.squeeze&&(d.style.left=o.size),o.push&&(d.style.left=o.size,d.style.right="-"+o.size);break;case"top":e.style.height=o.size,o.squeeze&&(d.style.top=o.size),o.push&&(d.style.top=o.size,d.style.bottom="-"+o.size);break;case"bottom":e.style.height=o.size,o.squeeze&&(d.style.bottom=o.size),o.push&&(d.style.bottom=o.size,d.style.top="-"+o.size)}setTimeout(function(){o.cloak&&r.css("display","block")},1e3*o.speed)}}var i={};i.side=e.psSide||"right",i.speed=e.psSpeed||"0.5",i.size=e.psSize||"300px",i.zindex=1e3,i.className=e.psClass||"ng-pageslide",i.cloak=e.psCloak&&"false"==e.psCloak.toLowerCase()?!1:!0,i.squeeze=Boolean(e.psSqueeze)||!1,i.push=Boolean(e.psPush)||!1,i.container=e.psContainer||!1,o.addClass(i.className);var r=null,a=null,d=i.container?document.getElementById(i.container):document.body;if(a=o[0],"div"!==a.tagName.toLowerCase()&&"pageslide"!==a.tagName.toLowerCase())throw new Error("Pageslide can only be applied to
or elements");if(0===a.children.length)throw new Error("You have to content inside the ");switch(r=angular.element(a.children),d.appendChild(a),a.style.zIndex=i.zindex,a.style.position=i.container!==!1?"absolute":"fixed",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a.style.transitionDuration=i.speed+"s",a.style.webkitTransitionDuration=i.speed+"s",a.style.transitionProperty="width, height",i.squeeze&&(d.style.position="absolute",d.style.transitionDuration=i.speed+"s",d.style.webkitTransitionDuration=i.speed+"s",d.style.transitionProperty="top, bottom, left, right"),i.side){case"right":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.right=t.psCustomRight||"0px";break;case"left":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px";break;case"top":a.style.width=t.psCustomWidth||"100%",a.style.left=t.psCustomLeft||"0px",a.style.top=t.psCustomTop||"0px",a.style.right=t.psCustomRight||"0px";break;case"bottom":a.style.width=t.psCustomWidth||"100%",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px",a.style.right=t.psCustomRight||"0px"}e.$watch("psOpen",function(e){e?l(a,i):n(a,i)}),e.$on("$destroy",function(){d.removeChild(a)}),e.psAutoClose&&(e.$on("$locationChangeStart",function(){n(a,i)}),e.$on("$stateChangeStart",function(){n(a,i)}))}}}])}()}(this); //# sourceMappingURL=eda.dragdropway.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 eecb6a36..21a9e958 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","console","info","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","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","clear","nyaSelect","initNyaSelect","animationsEnabled","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","templateUrl","resolve","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","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","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","edaDragDropWayEasyFormGen","linkFct","returnAttributeConfigurationLinesIfNotEmpty","edaEasyFormGeneratorModelToReturn","edaEasyFormGeneratorModel","edaFieldsModel","emptyEdaFieldsModel","emptyModel","returnAttributeDataModelIfNotEmpty","dataModelToReturn","dataModel","watchEdaEasyFormModelExpression","watchEdaEasyFormModelHasChanged","loadExistingConfigurationModel","watchReturnSaveEventExpression","returnSaveEvent","watchReturnSaveEventhasChanged","_easyFormGeneratorModel","btnSubmitText","btnCancelText","edaFieldsModelStringified","toJson","formlyFieldsModel","edaSaveFormEvent","isDefined","configlines","configurationLoaded","bindConfigurationLines","loadDragDropModelFromConfigurationModel","updateConfigurationClassName","loaded one","bound one","isString","configModel","aline","cssClassToApply","aControl","edaDragDropWayEasyFormGenCtrl","controllerAs","$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","aLineValue","aLineKey","bindConfigCtrlModelFromFormlyDetailedCtrlModel","formlyDetailCtrlModel","configurationCtrlModel","assign","ddModel","lineValue","keyValue","colValue","controlToBind","formlyDetailedControlModel","configModelControl","newClassName","aConfigLine","aConfigLineIndex","aConfigControl","aConfigControlIndex","dragdropControlRef","groupOfCtrlRef","groupOfCtrlRefIndex","aCtrlref","aCtrlRefIndex","ddControlToUpdate","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","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","dndDropEffectWorkaround","dndDragTypeWorkaround","dndDisableIf","disabled","originalEvent","dataTransfer","setData","$eval","dndDraggable","effectAllowed","dndEffectAllowed","dropEffect","isDragging","dragType","dndType","undefined","dndDragstart","dndMoved","dndCopied","dndSelected","dragDrop","isMouseInFirstHalf","targetNode","relativeToParent","mousePointer","horizontal","offsetX","layerX","offsetY","layerY","targetSize","offsetWidth","offsetHeight","targetPosition","offsetLeft","offsetTop","getPlaceholderIndex","Array","indexOf","listNode","placeholderNode","isDropAllowed","externalSources","hasTextMimetype","types","dndAllowedTypes","allowed","stopDragover","remove","invokeCallback","expression","dndHorizontalList","dndExternalSources","parentNode","target","listItemNode","insertBefore","nextSibling","previousElementSibling","nextElementSibling","dndDragover","transferredObject","data","getData","JSON","parse","e","dndDrop","targetArray","dndList","ctrlKey","hasClass","psOpen","psAutoClose","psSide","psSpeed","psClass","psSize","psSqueeze","psCloak","psPush","psContainer","el","psClose","slider","param","style","width","cloak","content","side","squeeze","right","left","height","top","bottom","setTimeout","speed","zindex","Boolean","container","document","getElementById","tagName","Error","appendChild","zIndex","position","overflow","transitionDuration","webkitTransitionDuration","transitionProperty","psCustomHeight","psCustomTop","psCustomBottom","psCustomRight","psCustomLeft","psCustomWidth","removeChild"],"mappings":"CAOE,WACA,YAkDA,SAASA,GAAOC,GAsBd,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,kCAAoCR,KACvDR,EAAegB,IAAI,8BAA+BP,KAClDT,EAAegB,IAAI,kCAAmCN,KACtDV,EAAegB,IAAI,wCAAyCL,KAC5DX,EAAegB,IAAI,+BAAgCJ,KACnDZ,EAAegB,IAAI,kCAAmCH,KACtDb,EAAegB,IAAI,qCAAsCF,KACzDd,EAAegB,IAAI,uCAAwCD,KA9ChEE,QACGC,OAAO,+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,WAAiB,aACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEpBC,OACM,0BACA,+BACW,oDACA,gHACX,uBACA,gJACA,gDACA,eACA,aACA,UACCjD,KAAK,IACVkD,QAAU,iBACVC,SAAU,cAGZC,eAAiB,cAYpB3B,EAAuCa,0BAEpCC,GAAa,QACbH,KAAc,QACdI,SAAgB,QAChBoC,WACAnC,MAAc,QACdC,WAAiB,QACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEfC,OACc,0BACA,6BACA,8IACA,qCACA,8BACA,4BACA,oCACA,uIACA,oBACA,mBACA,kCACA,oCACA,wIACA,oBACA,mBACA,eACA,wDACA,aACA,WACA,UACAjD,KAAK,IACnBkD,QAAY,QACZC,SAAY,cAGjBC,eAAiB,WAYpB3B,EAAuCa,0BAEpCC,GAAa,WACbH,KAAc,WACdI,SAAgB,WAChBC,MAAc,WACdC,WAAiB,WACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAGpBC,OACM,0BACA,yBACA,8BACA,uEACA,kEACA,qDACA,aACA,SACA,mDACA,UACCjD,KAAK,IACXkD,QAAU,WACVC,SAAU,cAGXC,eAAiB,cASpB,IAAIkC,IACU,qEACA,6CACA,kBACA,8DACA,2FACA,+BACA,YACA,WACCtF,KAAK,GAEpBwB,GAAqBW,SAEnBC,KAAU,cACVC,SAAYiD,IAId7D,EAAuCa,0BAEpCC,GAAa,cACbH,KAAc,eACdI,SAAgB,eAChBoC,WACAnC,MAAc,SACdC,WAAiB,cACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEpBC,OACM,0BACA,+BAEA,sEACA,0HACA,sCACA,6BACA,6EACA,4CACA,mDAC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AAS/T,EAAMkV,gBAAkB,MAC9C/B,EAAOE,MAAMO,KAAO5T,EAAMoV,cAAgB,MAC1CjC,EAAOE,MAAMM,MAAQ3T,EAAMmV,eAAiB,MAoGpD5tB,EAAOkX,OAAO,SAAU,SAASla,GACvBA,EAEFguB,EAAOY,EAAQC,GAGfF,EAAQC,EAAQC,KASxB7rB,EAAOoP,IAAI,WAAY,WACnB3E,EAAKsjB,YAAYnC,KAGjB5rB,EAAOirB,cACPjrB,EAAOoP,IAAI,uBAAwB,WAC/Buc,EAAQC,EAAQC,KAEpB7rB,EAAOoP,IAAI,oBAAqB,WAC5Buc,EAAQC,EAAQC,YASrCzoB","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 n(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\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 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 d(){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 s(){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\",n()),e.put(\"editPanelSubTitleCtrl-tpls.html\",l()),e.put(\"editPanelTextInputCtrl-tpls.html\",i()),e.put(\"editPanelPasswordCtrl-tpls.html\",r()),e.put(\"editPanelDateCtrl-tpls.html\",a()),e.put(\"editPanelTextareaCtrl-tpls.html\",d()),e.put(\"editPanelRichTextEditorCtrl-tpls.html\",s()),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(\"eda.easyformGen.dragdropway\",[\"edaApp\"]),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.30\").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 n(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():\"\"})}console.info(\"app in config\"),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 l=['
','
','

{{options.templateOptions.placeholder}}

',\"
\",\"

\",\"
\"].join(\" \");e.setType({name:\"subTitle\",template:l}),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[n(e)]={attribute:e}}),angular.forEach(r,function(e){a[n(e)]={bound:e}});var d=[\"\"].join(\" \");e.setType({name:\"datepicker\",template:d,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 s=['',\"\"].join(\" \");e.setType({name:\"richEditor\",template:s}),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(\"edaDragDropWayEasyFormGeneratorTemplate.html\",'
  Select a control
    • 2\" dnd-dragover=\"dragoverCallbackItems($parent.$parent.$index, $parent.$index, $index, external);\" dnd-drop=\"dropCallbackItems(event, index, $index,$parent.$index, $parent.$parent.$index, $parent.$parent.$parent.$index, item, external, type, \\'itemType\\');\" class=itemlist dd-content-counter=\"\" dd-value-when-placeholder=dndPlaceholder dd-value-when-dragging=dndDraggingSource dd-full-model=dragDropModel dd-content-counter-current-index={{$index}} dd-content-counter-parent-index={{$parent.$index}} dd-content-counter-force-css-refresh=command.forceRefresh>

   Customize form buttons

   DATA MODEL

\\n\t\t\t\t\t\t\t\t\t\t\t{{vm.model | json}}\\n\t\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\t{{vm.wfFormFieldsOnlyNeededProperties | json}}\\n\t\t\t\t\t\t\t\t\t\t

   Save this form


Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put(\"editModalTemplate.html\",\"

no use right now

\")}]),angular.module(\"edaApp.providers.dragDropConfigProvider\",[]).provider(\"dragDropConfig\",[function(){function e(e,o){if(n[0].length>0){if(n[0].lengthi;i++)n[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){n[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[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}},n=[[],[[]]],l={itemBeingDragged:\"\"};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return l},this.setItemsNotTocount=function(e){l=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return n},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return l},e.getItemCssDependingNumberItemsInRow=function(e){if(\"undefined\"!=typeof e){for(var t=\"\",n=o.length-1;n>=0;n--)o[n].numberItemPerRow===e&&(t=o[n].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 n=!0;angular.forEach(e,function(e){var o=e;t===o&&(n=!1)}),n&&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 n},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\"}},n={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[].concat(o)},l={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:\"\"}},d=[{controlType:\"datepicker\",properties:[{isRoot:!1,isTemplateOptions:!0,value:\"datepickerPopup\"}]}];this.getAllParticularControlProperties=function(){return d},this.addParticularControlProperties=function(e){if(\"controlType\"in e&&\"properties\"in e){var o=!1;d.length>0&&d.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||d.push(e)}return d},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 s={};return s.getEasyFormListControls=function(){return e},s.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(n);return\"undefined\"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return\"undefined\"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormEmptyConfigurationLineModel=function(){return o},s.getEasyFormConfigurationEmptyControlModel=function(){return t},s.getRawHeaderTemplates=function(){return r},s.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}},s.getRawFormlyControlTemplates=function(){return a},s.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&&d.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=\"\"),e.isTemplateOptions&&(t.templateOptions[e.value]=\"\")})}),t}},s}]}]),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\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\",function(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return\"undefined\"==typeof e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):\"\"===e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):(l.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0}),l.clear(),l.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if(\"itemType\"===a&&!n.label)return!1;if(\"containerType\"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if(\"itemType\"===f&&!s.label)return!1;if(\"containerType\"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on(\"$destroy\",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),\"undefined\"!=typeof s.getEditPanelModelLineIndex()&&\"undefined\"!=typeof s.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}]),angular.module(\"edaApp.controllers.edaEditMODALController\",[]).controller(\"edaEditMODALController\",[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,n,l,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 d(){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 n={name:e.radioRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}function s(){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 n={name:e.basicSelectRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}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 n=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(n,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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else n.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&&n.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&&n.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&&n.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&&n.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 v=e.nyaSelect.controls.length-1;v>=0;v--)e.nyaSelect.controls[v].id===t.selectedControl&&(e.modelNyaSelect=t.controls[v]);\"BasicSelect\"===e.nyaSelect.selectedControl&&s(),\"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&&d(),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,n,l){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=l.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=l.basicSelectRowCollection,a.newOptionBasicSelect=l.newOptionBasicSelect,a.groupedSelectRowCollection=l.groupedSelectRowCollection,a.newOptionGroupedSelect=l.newOptionGroupedSelect,a.GroupedSelectGroups=l.GroupedSelectGroups,a.newGroupGroupedSelect=l.newGroupGroupedSelect,a.groupSelectGroupClick=l.groupSelectGroupClick,a.radioRowCollection=l.radioRowCollection,a.newOptionRadio=l.newOptionRadio,l.resetAllTemporyModels(),\"none\"!==a.proxyModel.temporyConfig.selectedControl){for(var d=a.proxyModel.controls.length-1;d>=0;d--)a.proxyModel.controls[d].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[d]);\"BasicSelect\"===a.proxyModel.temporyConfig.selectedControl&&l.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),\"GroupedSelect\"===a.proxyModel.temporyConfig.selectedControl&&l.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),\"Radio\"===a.proxyModel.temporyConfig.selectedControl&&l.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return l.basicSelectRowCollection=a.basicSelectRowCollection,l.newOptionBasicSelect=a.newOptionBasicSelect,l.groupedSelectRowCollection=a.groupedSelectRowCollection,l.newOptionGroupedSelect=a.newOptionGroupedSelect,l.GroupedSelectGroups=a.GroupedSelectGroups,l.newGroupGroupedSelect=a.newGroupGroupedSelect,l.groupSelectGroupClick=a.groupSelectGroupClick,l.radioRowCollection=a.radioRowCollection,l.newOptionRadio=a.newOptionRadio,l.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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,n){var l;t.$watch(function(){return n[0].children.length},function(i,r){if(i!==r){for(var a=0,d=[],s=n[0].children.length-1;s>=0;s--)e.isHtmlElementToCount(n[0].children[s].classList)?(a++,d.push({item:s,isReal:!0})):d.push({item:s,isReal:!1});t.contentRealCount=a,l=o(function(){e.updateLineItemCss(t.fullModel,d,t.parentIndex,t.currentIndex,a)},20)}}),t.$on(\"$destroy\",function(){console.warn(\"ddContentCounter timer destruction!\"),o.cancel(l)})}}}]),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,n,l){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),l(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 n=angular.lowercase(o);(\"true\"===n||\"1\"===n)&&console.dir({whoAmI:\"I am verbose from ddDecorDropZone link\",verbodeMode:n,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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex,s=e.getDistinctItemCssClass();if(angular.forEach(s,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch(\"cssClass\",function(e,o){e!==o&&(angular.forEach(s,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:d,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}\"0\"===o.parentParentIndex&&t.addClass(s[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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,\"\"!==r){var s=angular.lowercase(r);(\"true\"===s||\"1\"===s)&&console.dir({whoAmI:\"I am verbose from ddDecorLine directive link\",verbodeMode:s,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:d,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\",\"edaApp.directives.edaDragdropWayEasyFormGenDirective\"]),function(){function e(e,o,t,n){function l(e,l,i){function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function d(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){m()}function p(){return e.returnSaveEvent}function u(o,t){if(o===!0){var n={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:n}),e.returnSaveEvent=!1}}function m(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var n=r();e.configurationLoaded={},o.bindConfigurationLines(e.configurationLoaded,n,!1),e.configuration=angular.copy(e.configurationLoaded),t.loadDragDropModelFromConfigurationModel(e.configuration,e.dragDropModel),f(e.configuration),t.refreshControlsKeys(e.configuration,e.dragDropModel),console.info(\"compare both configuration model\"),console.dir({\"loaded one\":angular.copy(e.configurationLoaded),\"bound one\":angular.copy(e.configuration)}),o.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=d,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\"}}function f(e){angular.forEach(e.lines,function(e){var o=n.getItemCssDependingNumberItemsInRow(e.columns.length);angular.forEach(e.columns,function(e){e.control.className=o})})}e.$watch(s,c,!0),e.$watch(p,u)}function i(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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.returnSaveEvent=!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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return\"undefined\"==typeof e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):\"\"===e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):(l.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0}),l.clear(),l.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if(\"itemType\"===a&&!n.label)return!1;if(\"containerType\"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if(\"itemType\"===f&&!s.label)return!1;if(\"containerType\"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on(\"$destroy\",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),\"undefined\"!=typeof s.getEditPanelModelLineIndex()&&\"undefined\"!=typeof s.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=[\"$scope\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\"];var r={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaDragDropWayEasyFormGeneratorTemplate.html\",link:l};return r}angular.module(\"edaApp.directives.edaDragdropWayEasyFormGenDirective\",[]).directive(\"edaDragdropWayEasyFormGen\",e),e.$inject=[\"$timeout\",\"formFieldManage\",\"ddModelConfModelProxyService\",\"dragDropConfig\"]}(),angular.module(\"edaApp.directives.edaRightClickDirective\",[]).directive(\"edaRightClick\",[\"$parse\",function(e){return{restrict:\"A\",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on(\"contextmenu\",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module(\"edaApp.directives.edaStRationDirective\",[]).directive(\"stRatio\",[function(){return{restrict:\"A\",link:function(e,o,t){var n=+t.stRatio;o.css(\"width\",n+\"%\")}}}]),angular.module(\"edaApp.services.dragDropItemCountersService\",[]).factory(\"dragDropItemCounterService\",[\"dragDropConfig\",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if(\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&\"undefined\"!=typeof n&&\"undefined\"!=typeof l&&\"undefined\"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if(\"undefined\"!=typeof t&&\"undefined\"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module(\"edaApp.services.dragDropModelConfigModelProxyService\",[]).factory(\"ddModelConfModelProxyService\",[\"EasyFormGenFormlyBindingModels\",\"controllerModalProxy\",\"dragDropConfig\",\"$parse\",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n(\"controls\");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)\"undefined\"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+\"-\"+Date.now();return i(t,o)===!0?t:(t=e+\"-\"+Date.now(),i(t,o)===!0?t:t=e+\"-\"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n(\"control.selectedControl\").assign(o,n(\"selectedControl\")(e)),n(\"control.type\").assign(o,n(\"formlyType\")(e)),n(\"control.key\").assign(o,r(n(\"control.type\")(o),t)),n(\"control.subtype\").assign(o,n(\"formlySubtype\")(e)),n(\"control.templateOptions.label\").assign(o,n(\"formlyLabel\")(e)),n(\"control.templateOptions.required\").assign(o,n(\"formlyRequired\")(e)),n(\"control.templateOptions.description\").assign(o,n(\"formlyDesciption\")(e)),n(\"control.templateOptions.placeholder\").assign(o,n(\"formlyPlaceholder\")(e)),n(\"control.templateOptions.options\").assign(o,n(\"formlyOptions\")(e)),\"datepicker\"===n(\"control.type\")(o)&&n(\"control.templateOptions.datepickerPopup\").assign(o,n(\"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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if(\"undefined\"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){\"undefined\"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:\"empty\",cssClass:\"col-xs-12\",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t=\"none\",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:\"\",\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:\"\")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+\"-\"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn(\"debug edaEditCtrlControllerModalProxy\"),console.dir(n),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,\"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:\"\"}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,\"group\"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module(\"edaApp.services.formFieldManage\",[]).factory(\"formFieldManage\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:\"row\",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if(\"[object Array]\"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i(\"configuration model is bound\",\"lines are bound to configuration model.\")}return l(\"lines is not an array\",\"Checks lines type, it is not an array.\")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:\"\"},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details=\"\",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:\"\"},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details=\"\",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:\"\"},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details=\"\",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass(\"dndDragover\"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on(\"dragover\",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass(\"dndDragover\"),e.preventDefault(),e.stopPropagation(),!1)}),i.on(\"drop\",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData(\"Text\")||e.dataTransfer.getData(\"text/plain\");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect=\"none\"===e.dataTransfer.dropEffect?\"copy\"===e.dataTransfer.effectAllowed||\"move\"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?\"copy\":\"move\":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on(\"dragleave\",function(e){e=e.originalEvent||e,i.removeClass(\"dndDragover\"),o(function(){i.hasClass(\"dndDragover\")||m.remove()},100)})}}]).factory(\"dndDragTypeWorkaround\",function(){return{}}).factory(\"dndDropEffectWorkaround\",function(){return{}})}()}(this);\n//# sourceMappingURL=eda.dragdropway.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file +{"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","console","info","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","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","clear","nyaSelect","initNyaSelect","animationsEnabled","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","templateUrl","resolve","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","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","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","edaDragDropWayEasyFormGen","linkFct","returnAttributeConfigurationLinesIfNotEmpty","edaEasyFormGeneratorModelToReturn","edaEasyFormGeneratorModel","edaFieldsModel","emptyEdaFieldsModel","emptyModel","returnAttributeDataModelIfNotEmpty","dataModelToReturn","dataModel","watchEdaEasyFormModelExpression","watchEdaEasyFormModelHasChanged","loadExistingConfigurationModel","watchReturnSaveEventExpression","returnSaveEvent","watchReturnSaveEventhasChanged","_easyFormGeneratorModel","btnSubmitText","btnCancelText","edaFieldsModelStringified","toJson","formlyFieldsModel","edaSaveFormEvent","isDefined","configlines","configurationLoaded","bindConfigurationLines","loadDragDropModelFromConfigurationModel","updateConfigurationClassName","loaded one","bound one","isString","configModel","aline","cssClassToApply","aControl","edaDragDropWayEasyFormGenCtrl","controllerAs","$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","aLineValue","aLineKey","bindConfigCtrlModelFromFormlyDetailedCtrlModel","formlyDetailCtrlModel","configurationCtrlModel","assign","ddModel","lineValue","keyValue","colValue","controlToBind","formlyDetailedControlModel","configModelControl","newClassName","aConfigLine","aConfigLineIndex","aConfigControl","aConfigControlIndex","dragdropControlRef","groupOfCtrlRef","groupOfCtrlRefIndex","aCtrlref","aCtrlRefIndex","ddControlToUpdate","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","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","dndDropEffectWorkaround","dndDragTypeWorkaround","dndDisableIf","disabled","originalEvent","dataTransfer","setData","$eval","dndDraggable","effectAllowed","dndEffectAllowed","dropEffect","isDragging","dragType","dndType","undefined","dndDragstart","dndMoved","dndCopied","dndSelected","dragDrop","isMouseInFirstHalf","targetNode","relativeToParent","mousePointer","horizontal","offsetX","layerX","offsetY","layerY","targetSize","offsetWidth","offsetHeight","targetPosition","offsetLeft","offsetTop","getPlaceholderIndex","Array","indexOf","listNode","placeholderNode","isDropAllowed","externalSources","hasTextMimetype","types","dndAllowedTypes","allowed","stopDragover","remove","invokeCallback","expression","dndHorizontalList","dndExternalSources","parentNode","target","listItemNode","insertBefore","nextSibling","previousElementSibling","nextElementSibling","dndDragover","transferredObject","data","getData","JSON","parse","e","dndDrop","targetArray","dndList","ctrlKey","hasClass","psOpen","psAutoClose","psSide","psSpeed","psClass","psSize","psSqueeze","psCloak","psPush","psContainer","el","psClose","slider","param","style","width","cloak","content","side","squeeze","right","left","height","top","bottom","setTimeout","speed","zindex","Boolean","container","document","getElementById","tagName","Error","appendChild","zIndex","position","overflow","transitionDuration","webkitTransitionDuration","transitionProperty","psCustomHeight","psCustomTop","psCustomBottom","psCustomRight","psCustomLeft","psCustomWidth","removeChild"],"mappings":"CAOE,WACA,YAkDA,SAASA,GAAOC,GAsBd,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,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EAAOE,MAAMS,IAAM9T,EAAMiV,aAAe,MACxC9B,EAAOE,MAAMU,OAAS/T,EAAMkV,gBAAkB,MAC9C/B,EAAOE,MAAMO,KAAO5T,EAAMoV,cAAgB,KAC1C,MACJ,KAAK,MACDjC,EAAOE,MAAMC,MAAQtT,EAAMqV,eAAiB,OAC5ClC,EAAOE,MAAMO,KAAO5T,EAAMoV,cAAgB,MAC1CjC,EAAOE,MAAMS,IAAM9T,EAAMiV,aAAe,MACxC9B,EAAOE,MAAMM,MAAQ3T,EAAMmV,eAAiB,KAC5C,MACJ,KAAK,SACDhC,EAAOE,MAAMC,MAAQtT,EAAMqV,eAAiB,OAC5ClC,EAAOE,MAAMU,OAAS/T,EAAMkV,gBAAkB,MAC9C/B,EAAOE,MAAMO,KAAO5T,EAAMoV,cAAgB,MAC1CjC,EAAOE,MAAMM,MAAQ3T,EAAMmV,eAAiB,MAoGpD5tB,EAAOkX,OAAO,SAAU,SAASla,GACvBA,EAEFguB,EAAOY,EAAQC,GAGfF,EAAQC,EAAQC,KASxB7rB,EAAOoP,IAAI,WAAY,WACnB3E,EAAKsjB,YAAYnC,KAGjB5rB,EAAOirB,cACPjrB,EAAOoP,IAAI,uBAAwB,WAC/Buc,EAAQC,EAAQC,KAEpB7rB,EAAOoP,IAAI,oBAAqB,WAC5Buc,EAAQC,EAAQC,eAUvCzoB","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 n(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\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 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 d(){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 s(){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\",n()),e.put(\"editPanelSubTitleCtrl-tpls.html\",l()),e.put(\"editPanelTextInputCtrl-tpls.html\",i()),e.put(\"editPanelPasswordCtrl-tpls.html\",r()),e.put(\"editPanelDateCtrl-tpls.html\",a()),e.put(\"editPanelTextareaCtrl-tpls.html\",d()),e.put(\"editPanelRichTextEditorCtrl-tpls.html\",s()),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(\"eda.easyformGen.dragdropway\",[\"edaApp\"]),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.31\").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 n(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():\"\"})}console.info(\"app in config\"),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 l=['
','
','

{{options.templateOptions.placeholder}}

',\"
\",\"

\",\"
\"].join(\" \");e.setType({name:\"subTitle\",template:l}),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[n(e)]={attribute:e}}),angular.forEach(r,function(e){a[n(e)]={bound:e}});var d=[\"\"].join(\" \");e.setType({name:\"datepicker\",template:d,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 s=['',\"\"].join(\" \");e.setType({name:\"richEditor\",template:s}),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(\"edaDragDropWayEasyFormGeneratorTemplate.html\",'
  Select a control
    • 2\" dnd-dragover=\"dragoverCallbackItems($parent.$parent.$index, $parent.$index, $index, external);\" dnd-drop=\"dropCallbackItems(event, index, $index,$parent.$index, $parent.$parent.$index, $parent.$parent.$parent.$index, item, external, type, \\'itemType\\');\" class=itemlist dd-content-counter=\"\" dd-value-when-placeholder=dndPlaceholder dd-value-when-dragging=dndDraggingSource dd-full-model=dragDropModel dd-content-counter-current-index={{$index}} dd-content-counter-parent-index={{$parent.$index}} dd-content-counter-force-css-refresh=command.forceRefresh>

   Customize form buttons

   DATA MODEL

\\n\t\t\t\t\t\t\t\t\t\t\t{{vm.model | json}}\\n\t\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\t{{vm.wfFormFieldsOnlyNeededProperties | json}}\\n\t\t\t\t\t\t\t\t\t\t

   Save this form


Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put(\"editModalTemplate.html\",\"

no use right now

\")}]),angular.module(\"edaApp.providers.dragDropConfigProvider\",[]).provider(\"dragDropConfig\",[function(){function e(e,o){if(n[0].length>0){if(n[0].lengthi;i++)n[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){n[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[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}},n=[[],[[]]],l={itemBeingDragged:\"\"};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return l},this.setItemsNotTocount=function(e){l=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return n},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return l},e.getItemCssDependingNumberItemsInRow=function(e){if(\"undefined\"!=typeof e){for(var t=\"\",n=o.length-1;n>=0;n--)o[n].numberItemPerRow===e&&(t=o[n].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 n=!0;angular.forEach(e,function(e){var o=e;t===o&&(n=!1)}),n&&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 n},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\"}},n={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[].concat(o)},l={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:\"\"}},d=[{controlType:\"datepicker\",properties:[{isRoot:!1,isTemplateOptions:!0,value:\"datepickerPopup\"}]}];this.getAllParticularControlProperties=function(){return d},this.addParticularControlProperties=function(e){if(\"controlType\"in e&&\"properties\"in e){var o=!1;d.length>0&&d.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||d.push(e)}return d},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 s={};return s.getEasyFormListControls=function(){return e},s.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(n);return\"undefined\"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return\"undefined\"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormEmptyConfigurationLineModel=function(){return o},s.getEasyFormConfigurationEmptyControlModel=function(){return t},s.getRawHeaderTemplates=function(){return r},s.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}},s.getRawFormlyControlTemplates=function(){return a},s.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&&d.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=\"\"),e.isTemplateOptions&&(t.templateOptions[e.value]=\"\")})}),t}},s}]}]),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\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\",function(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return\"undefined\"==typeof e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):\"\"===e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):(l.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0}),l.clear(),l.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if(\"itemType\"===a&&!n.label)return!1;if(\"containerType\"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if(\"itemType\"===f&&!s.label)return!1;if(\"containerType\"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on(\"$destroy\",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),\"undefined\"!=typeof s.getEditPanelModelLineIndex()&&\"undefined\"!=typeof s.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}]),angular.module(\"edaApp.controllers.edaEditMODALController\",[]).controller(\"edaEditMODALController\",[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,n,l,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 d(){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 n={name:e.radioRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}function s(){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 n={name:e.basicSelectRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}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 n=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(n,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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else n.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&&n.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&&n.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&&n.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&&n.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 v=e.nyaSelect.controls.length-1;v>=0;v--)e.nyaSelect.controls[v].id===t.selectedControl&&(e.modelNyaSelect=t.controls[v]);\"BasicSelect\"===e.nyaSelect.selectedControl&&s(),\"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&&d(),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,n,l){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=l.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=l.basicSelectRowCollection,a.newOptionBasicSelect=l.newOptionBasicSelect,a.groupedSelectRowCollection=l.groupedSelectRowCollection,a.newOptionGroupedSelect=l.newOptionGroupedSelect,a.GroupedSelectGroups=l.GroupedSelectGroups,a.newGroupGroupedSelect=l.newGroupGroupedSelect,a.groupSelectGroupClick=l.groupSelectGroupClick,a.radioRowCollection=l.radioRowCollection,a.newOptionRadio=l.newOptionRadio,l.resetAllTemporyModels(),\"none\"!==a.proxyModel.temporyConfig.selectedControl){for(var d=a.proxyModel.controls.length-1;d>=0;d--)a.proxyModel.controls[d].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[d]);\"BasicSelect\"===a.proxyModel.temporyConfig.selectedControl&&l.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),\"GroupedSelect\"===a.proxyModel.temporyConfig.selectedControl&&l.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),\"Radio\"===a.proxyModel.temporyConfig.selectedControl&&l.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return l.basicSelectRowCollection=a.basicSelectRowCollection,l.newOptionBasicSelect=a.newOptionBasicSelect,l.groupedSelectRowCollection=a.groupedSelectRowCollection,l.newOptionGroupedSelect=a.newOptionGroupedSelect,l.GroupedSelectGroups=a.GroupedSelectGroups,l.newGroupGroupedSelect=a.newGroupGroupedSelect,l.groupSelectGroupClick=a.groupSelectGroupClick,l.radioRowCollection=a.radioRowCollection,l.newOptionRadio=a.newOptionRadio,l.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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,n){var l;t.$watch(function(){return n[0].children.length},function(i,r){if(i!==r){for(var a=0,d=[],s=n[0].children.length-1;s>=0;s--)e.isHtmlElementToCount(n[0].children[s].classList)?(a++,d.push({item:s,isReal:!0})):d.push({item:s,isReal:!1});t.contentRealCount=a,l=o(function(){e.updateLineItemCss(t.fullModel,d,t.parentIndex,t.currentIndex,a)},20)}}),t.$on(\"$destroy\",function(){console.warn(\"ddContentCounter timer destruction!\"),o.cancel(l)})}}}]),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,n,l){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),l(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 n=angular.lowercase(o);(\"true\"===n||\"1\"===n)&&console.dir({whoAmI:\"I am verbose from ddDecorDropZone link\",verbodeMode:n,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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex,s=e.getDistinctItemCssClass();if(angular.forEach(s,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch(\"cssClass\",function(e,o){e!==o&&(angular.forEach(s,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:d,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}\"0\"===o.parentParentIndex&&t.addClass(s[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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,\"\"!==r){var s=angular.lowercase(r);(\"true\"===s||\"1\"===s)&&console.dir({whoAmI:\"I am verbose from ddDecorLine directive link\",verbodeMode:s,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:d,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\",\"edaApp.directives.edaDragdropWayEasyFormGenDirective\"]),function(){function e(e,o,t,n){function l(e,l,i){function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function d(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){m()}function p(){return e.returnSaveEvent}function u(o,t){if(o===!0){var n={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:n}),e.returnSaveEvent=!1}}function m(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var n=r();e.configurationLoaded={},o.bindConfigurationLines(e.configurationLoaded,n,!1),e.configuration=angular.copy(e.configurationLoaded),t.loadDragDropModelFromConfigurationModel(e.configuration,e.dragDropModel),f(e.configuration),t.refreshControlsKeys(e.configuration,e.dragDropModel),console.info(\"compare both configuration model\"),console.dir({\"loaded one\":angular.copy(e.configurationLoaded),\"bound one\":angular.copy(e.configuration)}),o.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=d,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\"}}function f(e){angular.forEach(e.lines,function(e){var o=n.getItemCssDependingNumberItemsInRow(e.columns.length);angular.forEach(e.columns,function(e){e.control.className=o})})}e.$watch(s,c,!0),e.$watch(p,u)}function i(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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.returnSaveEvent=!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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return\"undefined\"==typeof e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):\"\"===e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):(l.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0}),l.clear(),l.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if(\"itemType\"===a&&!n.label)return!1;if(\"containerType\"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if(\"itemType\"===f&&!s.label)return!1;if(\"containerType\"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on(\"$destroy\",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),\"undefined\"!=typeof s.getEditPanelModelLineIndex()&&\"undefined\"!=typeof s.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=[\"$scope\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\"];var r={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaDragDropWayEasyFormGeneratorTemplate.html\",link:l};return r}angular.module(\"edaApp.directives.edaDragdropWayEasyFormGenDirective\",[]).directive(\"edaDragdropWayEasyFormGen\",e),e.$inject=[\"$timeout\",\"formFieldManage\",\"ddModelConfModelProxyService\",\"dragDropConfig\"]}(),angular.module(\"edaApp.directives.edaRightClickDirective\",[]).directive(\"edaRightClick\",[\"$parse\",function(e){return{restrict:\"A\",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on(\"contextmenu\",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module(\"edaApp.directives.edaStRationDirective\",[]).directive(\"stRatio\",[function(){return{restrict:\"A\",link:function(e,o,t){var n=+t.stRatio;o.css(\"width\",n+\"%\")}}}]),angular.module(\"edaApp.services.dragDropItemCountersService\",[]).factory(\"dragDropItemCounterService\",[\"dragDropConfig\",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if(\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&\"undefined\"!=typeof n&&\"undefined\"!=typeof l&&\"undefined\"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if(\"undefined\"!=typeof t&&\"undefined\"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module(\"edaApp.services.dragDropModelConfigModelProxyService\",[]).factory(\"ddModelConfModelProxyService\",[\"EasyFormGenFormlyBindingModels\",\"controllerModalProxy\",\"dragDropConfig\",\"$parse\",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n(\"controls\");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)\"undefined\"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+\"-\"+Date.now();return i(t,o)===!0?t:(t=e+\"-\"+Date.now(),i(t,o)===!0?t:t=e+\"-\"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n(\"control.selectedControl\").assign(o,n(\"selectedControl\")(e)),n(\"control.type\").assign(o,n(\"formlyType\")(e)),n(\"control.key\").assign(o,r(n(\"control.type\")(o),t)),n(\"control.subtype\").assign(o,n(\"formlySubtype\")(e)),n(\"control.templateOptions.label\").assign(o,n(\"formlyLabel\")(e)),n(\"control.templateOptions.required\").assign(o,n(\"formlyRequired\")(e)),n(\"control.templateOptions.description\").assign(o,n(\"formlyDesciption\")(e)),n(\"control.templateOptions.placeholder\").assign(o,n(\"formlyPlaceholder\")(e)),n(\"control.templateOptions.options\").assign(o,n(\"formlyOptions\")(e)),\"datepicker\"===n(\"control.type\")(o)&&n(\"control.templateOptions.datepickerPopup\").assign(o,n(\"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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if(\"undefined\"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){\"undefined\"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:\"empty\",cssClass:\"col-xs-12\",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t=\"none\",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:\"\",\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:\"\")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+\"-\"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn(\"debug edaEditCtrlControllerModalProxy\"),console.dir(n),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,\"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:\"\"}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,\"group\"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module(\"edaApp.services.formFieldManage\",[]).factory(\"formFieldManage\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:\"row\",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if(\"[object Array]\"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i(\"configuration model is bound\",\"lines are bound to configuration model.\")}return l(\"lines is not an array\",\"Checks lines type, it is not an array.\")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:\"\"},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details=\"\",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:\"\"},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details=\"\",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:\"\"},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details=\"\",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass(\"dndDragover\"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on(\"dragover\",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass(\"dndDragover\"),e.preventDefault(),e.stopPropagation(),!1)}),i.on(\"drop\",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData(\"Text\")||e.dataTransfer.getData(\"text/plain\");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect=\"none\"===e.dataTransfer.dropEffect?\"copy\"===e.dataTransfer.effectAllowed||\"move\"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?\"copy\":\"move\":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on(\"dragleave\",function(e){e=e.originalEvent||e,i.removeClass(\"dndDragover\"),o(function(){i.hasClass(\"dndDragover\")||m.remove()},100)})}}]).factory(\"dndDragTypeWorkaround\",function(){return{}}).factory(\"dndDropEffectWorkaround\",function(){return{}})}(),angular.module(\"pageslide-directive\",[]).directive(\"pageslide\",[function(){return{restrict:\"EAC\",transclude:!1,scope:{psOpen:\"=?\",psAutoClose:\"=?\",psSide:\"@\",psSpeed:\"@\",psClass:\"@\",psSize:\"@\",psSqueeze:\"@\",psCloak:\"@\",psPush:\"@\",psContainer:\"@\"},link:function(e,o,t){function n(o,t){\nif(o&&0!==o.style.width&&0!==o.style.width)switch(t.cloak&&r.css(\"display\",\"none\"),t.side){case\"right\":o.style.width=\"0px\",t.squeeze&&(d.style.right=\"0px\"),t.push&&(d.style.right=\"0px\",d.style.left=\"0px\");break;case\"left\":o.style.width=\"0px\",t.squeeze&&(d.style.left=\"0px\"),t.push&&(d.style.left=\"0px\",d.style.right=\"0px\");break;case\"top\":o.style.height=\"0px\",t.squeeze&&(d.style.top=\"0px\"),t.push&&(d.style.top=\"0px\",d.style.bottom=\"0px\");break;case\"bottom\":o.style.height=\"0px\",t.squeeze&&(d.style.bottom=\"0px\"),t.push&&(d.style.bottom=\"0px\",d.style.top=\"0px\")}e.psOpen=!1}function l(e,o){if(0!==e.style.width&&0!==e.style.width){switch(o.side){case\"right\":e.style.width=o.size,o.squeeze&&(d.style.right=o.size),o.push&&(d.style.right=o.size,d.style.left=\"-\"+o.size);break;case\"left\":e.style.width=o.size,o.squeeze&&(d.style.left=o.size),o.push&&(d.style.left=o.size,d.style.right=\"-\"+o.size);break;case\"top\":e.style.height=o.size,o.squeeze&&(d.style.top=o.size),o.push&&(d.style.top=o.size,d.style.bottom=\"-\"+o.size);break;case\"bottom\":e.style.height=o.size,o.squeeze&&(d.style.bottom=o.size),o.push&&(d.style.bottom=o.size,d.style.top=\"-\"+o.size)}setTimeout(function(){o.cloak&&r.css(\"display\",\"block\")},1e3*o.speed)}}var i={};i.side=e.psSide||\"right\",i.speed=e.psSpeed||\"0.5\",i.size=e.psSize||\"300px\",i.zindex=1e3,i.className=e.psClass||\"ng-pageslide\",i.cloak=e.psCloak&&\"false\"==e.psCloak.toLowerCase()?!1:!0,i.squeeze=Boolean(e.psSqueeze)||!1,i.push=Boolean(e.psPush)||!1,i.container=e.psContainer||!1,o.addClass(i.className);var r=null,a=null,d=i.container?document.getElementById(i.container):document.body;if(a=o[0],\"div\"!==a.tagName.toLowerCase()&&\"pageslide\"!==a.tagName.toLowerCase())throw new Error(\"Pageslide can only be applied to
or elements\");if(0===a.children.length)throw new Error(\"You have to content inside the \");switch(r=angular.element(a.children),d.appendChild(a),a.style.zIndex=i.zindex,a.style.position=i.container!==!1?\"absolute\":\"fixed\",a.style.width=0,a.style.height=0,a.style.overflow=\"hidden\",a.style.transitionDuration=i.speed+\"s\",a.style.webkitTransitionDuration=i.speed+\"s\",a.style.transitionProperty=\"width, height\",i.squeeze&&(d.style.position=\"absolute\",d.style.transitionDuration=i.speed+\"s\",d.style.webkitTransitionDuration=i.speed+\"s\",d.style.transitionProperty=\"top, bottom, left, right\"),i.side){case\"right\":a.style.height=t.psCustomHeight||\"100%\",a.style.top=t.psCustomTop||\"0px\",a.style.bottom=t.psCustomBottom||\"0px\",a.style.right=t.psCustomRight||\"0px\";break;case\"left\":a.style.height=t.psCustomHeight||\"100%\",a.style.top=t.psCustomTop||\"0px\",a.style.bottom=t.psCustomBottom||\"0px\",a.style.left=t.psCustomLeft||\"0px\";break;case\"top\":a.style.width=t.psCustomWidth||\"100%\",a.style.left=t.psCustomLeft||\"0px\",a.style.top=t.psCustomTop||\"0px\",a.style.right=t.psCustomRight||\"0px\";break;case\"bottom\":a.style.width=t.psCustomWidth||\"100%\",a.style.bottom=t.psCustomBottom||\"0px\",a.style.left=t.psCustomLeft||\"0px\",a.style.right=t.psCustomRight||\"0px\"}e.$watch(\"psOpen\",function(e){e?l(a,i):n(a,i)}),e.$on(\"$destroy\",function(){d.removeChild(a)}),e.psAutoClose&&(e.$on(\"$locationChangeStart\",function(){n(a,i)}),e.$on(\"$stateChangeStart\",function(){n(a,i)}))}}}])}(this);\n//# sourceMappingURL=eda.dragdropway.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 486bb931..b5710b8a 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":["easyFromConfigFct","easyFormSteWayConfigProvider","setModalAnimation","formlyConfigFct","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","$translateProvider","translations","SAY_HI","EDIT_TAB","PREVIEW_TAB","WIZARD_LINES","WIZARD_LAYOUT","WIZARD_CONTROLS","WIZARD_SAVE","PAGER_PREVIOUS","PAGER_NEXT","COMMAND_PANEL","VISUAL_PANEL","ADD_NEW_LINE","SELECTED_LINE","NUMBER_OF_COLUMN","APPLY_CTRL2COL","CLIC_TAP_2_OPEN","SELECT_2_APPLY_COL","CUSTOM_SUBMIT_BTN","CUSTOM_CANCEL_BTN","NAME_THIS_FORM","SAVE_THIS_FORM","FINAL_STEP","DATA_MODEL","FIELDS_MODEL","SELECT_A_CTRL","SELECT_CTRL_IN_LIST","COL_WILL_BE_BLANK","EDIT_PROPERTIES","HEADER_TEXT","ADD_EDIT_HEADER_HERE","SUBTITLE_TEXT","ADD_EDIT_SUBTIL_HERE","LABEL_TEXT","ADD_EDIT_LABEL_HERE","PLACEHOLDER","ADD_EDIT_PLACEHOLD","REQUIRED","DESCRIPTION","ADDEDIT_DESCRIPTION","DATE_FORMAT","ADD_NEW_RADIO","ADD_RADIO_PLACEHOLD","EDIT_REMOVE_RADIO","NO_RADIO_ADD_NEW","SEARCH_4_OPTION","ADD","ORDER","OPTION","GROUP","ADD_NEW_OPTIONS","ADD_A_NEW_OPTION","EDIT_REMOVE_OPTIONS","NO_OPTION_ADD_NEW","ADD_NEW_GROUPS","ADD_A_NEW_GROUP","EDIT_GROUPS_OPTIONS","NO_GROUP_ADD_NEW","OK","CANCEL","easyFormSteWayConfigFct","defaultConfig","_defaultConfiguration","modalAnimated","getDefaultshowPreviewPanel","getDefaultShowPreviewModel","controlsList","controls","enabled","flagConfig","valueToApply","_configuration","getModalAnimation","getEnabledControls","_controlsList","disableControl","controlName","isString","aControl","console","log","showPreviewPanel","wantToShow","isDefined","_showPreviewPanel","showPreviewModels","_showPreviewModels","enableControl","getDefaultLanguage","lang","initDefaultLanguage","useSanitizeValueStrategy","fallbackLanguage","_defaultLanguage","preferredLanguage","setDefaultLanguage","_currentLanguage","setLanguage","language","getCurrentLanguage","easyFormSteWayConfig","$translate","getModalAnimationValue","setModalAnimationFct","getListEnabledControl","copy","isPreviewPanelVisible","arePreviewModelsVisible","switchLanguage","use","service","this","$get","configuration","provider","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","wfFormFields","cancelButtonText","submitButtonText","onSubmit","pop","type","timeout","title","body","showCloseButton","initColumnTemplate","numColumn","exist","control","key","subtype","initLineTemplate","line","activeColumn","columns","resetToZeroModel","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","loadExistingFormsAsList","saveThisForm","formName","clear","resetAllIndicators","i","stepIndicators","indexIndicator","easyFormGeneratorVERSION","tab","numberOfColumns","MinNumberOfColumns","columnTemplate","lineTemplate","loadExistingFormsList","formlyList","initConfigurationEditFromScratch","initNyaSelect","ngwfWfEditMODALController","$modalInstance","selectOptionManage","initNyaSelectFiltered","nyaSelectFiltered","listCtrl","concat","getFilteredNyaSelectObject","extend","selectedControl","temporyConfig","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","resetTemporyConfig","id","initDatePicker","okfct","bindBasicSelectToNya","bindGroupedSelectToNya","bindRadioToNya","applyConfigToSelectedControl","close","cancelfct","dismiss","bindRadioFromNYA","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","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","$watch","edaStepWayEasyFormGenCtrl","_tabInitialized","tabVisible","modelsVisible","directive","restrict","controllerAs","link","stRatio","linkfct","ratio","css","nyaSelectObj","resetNyaSelect","getControlsDefinition","configurationModel","isObject","column","controlIndex","_controlsDefinition","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","filterDisabledControl","listAllEnabledControl","filteredNyaList","enabledControl","nyaControl","CtrlModalModel","modelToReturn","thisKey","isUnique","j","factory","configurationModelInit","Object","prototype","toString","call","configurationModelResult","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,WAuBG,QAASA,GAAkBC,GAGzBA,EAA6BC,mBAAkB,GAkBjD,QAASC,GAAgBC,GAyKvB,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,gBACEf,aAAcA,EACdgB,iBACEC,WACEC,QAAO,+BACPC,QAAS,SAASC,EAASC,GACzBD,EAAQJ,gBAAgBM,QAAUF,EAAQJ,gBA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qBAAsBnL,GAE/BA,EAAmB7O,cA4PtB,WAGAhC,QAAQ6B,OACA,oBACW,mCACA,sCACA,yDAmBnB,WAGA7B,QACE6B,OAAO,0BAMPuH","file":"eda.stepway.min.js","sourcesContent":["!function(){\"use strict\";!function(){function e(e){e.setModalAnimation(!1)}function o(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\"],a=[\"datepicker-mode\",\"min-date\",\"max-date\"],r={};angular.forEach(i,function(e){r[o(e)]={attribute:e}}),angular.forEach(a,function(e){r[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:r,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\",\"eda.easyFormGenerator.translate\",\"eda.easyFormSteWayConfigProvider\",\"ngwfApp.controllers\",\"ngwfApp.services\",\"ngwfApp.filters\",\"ngwfApp.directives\"]).value(\"easyFormGenVersion\",\"v1.0.30\").config(o).config(e),e.$inject=[\"easyFormSteWayConfigProvider\"],o.$inject=[\"formlyConfigProvider\"]}(),angular.module(\"ngwfApp\").run([\"$templateCache\",function(e){e.put(\"edaStepWayEasyFormGeneratorTemplate.html\",'

{{\\'WIZARD_LINES\\' | translate}}

{{\\'WIZARD_LAYOUT\\' | translate}}

{{\\'WIZARD_CONTROLS\\' | translate}}

{{\\'WIZARD_SAVE\\' | translate}}

 {{\\'COMMAND_PANEL\\' | translate}}

{{\\'ADD_NEW_LINE\\' | translate}} : 

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}

- {{\\'SELECTED_LINE\\' | translate}} -

{{\\'NUMBER_OF_COLUMN\\' | translate}} :

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

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}

- {{\\'APPLY_CTRL2COL\\' | translate}} -


  {{\\'CLIC_TAP_2_OPEN\\' | translate}}.

  {{\\'SELECT_2_APPLY_COL\\' | translate}}.

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}



 {{\\'FINAL_STEP\\' | translate}}

{{\\'DATA_MODEL\\' | translate}}

\\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\\' | translate}}

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

'),e.put(\"editModalTemplate.html\",'');\n\n}]),function(){angular.module(\"ngwfApp.core\",[\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"pascalprecht.translate\"])}(),angular.module(\"eda.easyFormGenerator.translate\",[]).config([\"$translateProvider\",function(e){e.translations(\"de\",{SAY_HI:\"Hallo\",EDIT_TAB:\"Bearbeiten / Schaffen\",PREVIEW_TAB:\"Vorschau\",WIZARD_LINES:\"Linien\",WIZARD_LAYOUT:\"Layout\",WIZARD_CONTROLS:\"Steuerung\",WIZARD_SAVE:\"sparen\",PAGER_PREVIOUS:\"vorher.\",PAGER_NEXT:\"nächste\",COMMAND_PANEL:\"Anweisung\",VISUAL_PANEL:\"visuell\",ADD_NEW_LINE:\"Hinzufügen neuer Leitung\",SELECTED_LINE:\"ausgewählte Linie\",NUMBER_OF_COLUMN:\"Anzahl von Spalten\",APPLY_CTRL2COL:\"gelten diese Steuer Spalte\",CLIC_TAP_2_OPEN:\"klicken Sie auf Spalte zur Steuerungsauswahl öffnen\",SELECT_2_APPLY_COL:\"Wählen Sie die gewünschte Steuerung und gültig , um es in Spalte anwenden\",CUSTOM_SUBMIT_BTN:\"Passen Submit-Button Text\",CUSTOM_CANCEL_BTN:\"Passen Cancel-Button Text\",NAME_THIS_FORM:\"Nennen dieses Formular\",SAVE_THIS_FORM:\"Speichern dieses Formular\",FINAL_STEP:\"Endschritt : Formular Vorschau\",DATA_MODEL:\"DATEN MODELL\",FIELDS_MODEL:\"FELDER MODELL (Datenbank-kompatibel)\",SELECT_A_CTRL:\"Wählen Sie ein Steuer\",SELECT_CTRL_IN_LIST:\"Wählen Sie ein Steuer aus der Liste unten\",COL_WILL_BE_BLANK:\"die Spalte werde leer sein\",EDIT_PROPERTIES:\"Anzeigen\",HEADER_TEXT:\"Kopftext\",ADD_EDIT_HEADER_HERE:\"Kopftext ändern\",SUBTITLE_TEXT:\"Untertitel\",ADD_EDIT_SUBTIL_HERE:\"Untertitel ändern\",LABEL_TEXT:\"Etikett\",ADD_EDIT_LABEL_HERE:\"Etikett ändern\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"placeholder ändern\",REQUIRED:\"erforderlich\",DESCRIPTION:\"Beschreibung\",ADDEDIT_DESCRIPTION:\"Beschreibung ändern\",DATE_FORMAT:\"Datumsformat\",ADD_NEW_RADIO:\"Radiobutton hinzufügen\",ADD_RADIO_PLACEHOLD:\"Radiobutton hinzufügen\",EDIT_REMOVE_RADIO:\"Radiobutton ändern\",NO_RADIO_ADD_NEW:\"kein Radiobutton : Radiobutton hinzufügen\",SEARCH_4_OPTION:\"option suchen\",ADD:\"hinzufügen\",ORDER:\"bestellen\",OPTION:\"Option\",GROUP:\"Gruppe\",ADD_NEW_OPTIONS:\"Optionen hinzufügen\",ADD_A_NEW_OPTION:\"Option hinzufügen\",EDIT_REMOVE_OPTIONS:\"Optionen ändern\",NO_OPTION_ADD_NEW:\"kein option : Option hinzufügen\",ADD_NEW_GROUPS:\"Gruppen hinzufügen\",ADD_A_NEW_GROUP:\"Gruppe hinzufügen\",EDIT_GROUPS_OPTIONS:\"Gruppen ändern\",NO_GROUP_ADD_NEW:\"keine Gruppe : Gruppe hinzufügen\",OK:\"bestätigen\",CANCEL:\"stornieren\"}),e.translations(\"en\",{SAY_HI:\"Hello\",EDIT_TAB:\"Edit / Create\",PREVIEW_TAB:\"Preview\",WIZARD_LINES:\"lines\",WIZARD_LAYOUT:\"layout\",WIZARD_CONTROLS:\"controls\",WIZARD_SAVE:\"save\",PAGER_PREVIOUS:\"Previous\",PAGER_NEXT:\"Next\",COMMAND_PANEL:\"Command\",VISUAL_PANEL:\"Visual\",ADD_NEW_LINE:\"Add a new line\",SELECTED_LINE:\"Selected line\",NUMBER_OF_COLUMN:\"number of columns\",APPLY_CTRL2COL:\"Apply controls to columns\",CLIC_TAP_2_OPEN:\"Click / Tap on column to open control selection\",SELECT_2_APPLY_COL:\"Select desired control and valid to apply it to column\",CUSTOM_SUBMIT_BTN:\"Customize Submit button Text\",CUSTOM_CANCEL_BTN:\"Customize Cancel button Text\",NAME_THIS_FORM:\"Name this form\",SAVE_THIS_FORM:\"save this form\",FINAL_STEP:\"Final Step : form preview\",DATA_MODEL:\"DATA MODEL\",FIELDS_MODEL:\"FIELDS MODEL (ready to save to database one)\",SELECT_A_CTRL:\"Select a control\",SELECT_CTRL_IN_LIST:\"Select a control in the list below\",COL_WILL_BE_BLANK:\"Column will be blank\",EDIT_PROPERTIES:\"Edit properties\",HEADER_TEXT:\"Header text\",ADD_EDIT_HEADER_HERE:\"Add / edit header text here\",SUBTITLE_TEXT:\"Subtitle text\",ADD_EDIT_SUBTIL_HERE:\"Add / edit subtitle text here\",LABEL_TEXT:\"Label text\",ADD_EDIT_LABEL_HERE:\"Add / edit control label here\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"Add / edit placeholder text here\",REQUIRED:\"Required\",DESCRIPTION:\"Description\",ADDEDIT_DESCRIPTION:\"Add / edit description here\",DATE_FORMAT:\"Date format\",ADD_NEW_RADIO:\"Add new radio\",ADD_RADIO_PLACEHOLD:\"add new radio\",EDIT_REMOVE_RADIO:\"Edit/Remove radio\",NO_RADIO_ADD_NEW:\"no radio : add new radio values\",SEARCH_4_OPTION:\"search for option\",ADD:\"add\",ORDER:\"order\",OPTION:\"option\",GROUP:\"group\",ADD_NEW_OPTIONS:\"Add new options\",ADD_A_NEW_OPTION:\"add new option\",EDIT_REMOVE_OPTIONS:\"Edit/Remove options\",NO_OPTION_ADD_NEW:\"no option : add new options\",ADD_NEW_GROUPS:\"Add new groups\",ADD_A_NEW_GROUP:\"Add new group\",EDIT_GROUPS_OPTIONS:\"Edit/Remove options/groups\",NO_GROUP_ADD_NEW:\"add new groups\",OK:\"OK\",CANCEL:\"Cancel\"}),e.translations(\"es\",{SAY_HI:\"Hola\",EDIT_TAB:\"Editar / Crear\",PREVIEW_TAB:\"Previsualizar\",WIZARD_LINES:\"lineas\",WIZARD_LAYOUT:\"diseño\",WIZARD_CONTROLS:\"controles\",WIZARD_SAVE:\"guardar\",PAGER_PREVIOUS:\"Anterior\",PAGER_NEXT:\"Siguiente\",COMMAND_PANEL:\"Comando\",VISUAL_PANEL:\"Visual\",ADD_NEW_LINE:\"Agregar nueva linea\",SELECTED_LINE:\"Linea seleccionada\",NUMBER_OF_COLUMN:\"numero de columnas\",APPLY_CTRL2COL:\"Aplicar controles a columnas\",CLIC_TAP_2_OPEN:\"Click / Toque en la columna para seleccionar controles\",SELECT_2_APPLY_COL:\"Selecciona el control deseado para aplicarlo a la columna\",CUSTOM_SUBMIT_BTN:\"Personalizar texto de boton Enviar\",CUSTOM_CANCEL_BTN:\"Personalizar texto de boton Cancelar\",NAME_THIS_FORM:\"Nombrar formulario\",SAVE_THIS_FORM:\"guardar formulario\",FINAL_STEP:\"Ultimo paso : previsualizar formulario\",DATA_MODEL:\"MODELO DE DATOS\",FIELDS_MODEL:\"MODELO DE CAMPOS (listo para guardar en base de datos uno)\",SELECT_A_CTRL:\"Selecciona un control\",SELECT_CTRL_IN_LIST:\"Selecciona un control de la lista\",COL_WILL_BE_BLANK:\"Columna sera vacia\",EDIT_PROPERTIES:\"Editar propiedades\",HEADER_TEXT:\"Texto de encabezado\",ADD_EDIT_HEADER_HERE:\"Agregar / editar texto de encabezado aqui\",SUBTITLE_TEXT:\"Texto de subtitulo\",ADD_EDIT_SUBTIL_HERE:\"Agregar / editar texto de subtitulo aqui\",LABEL_TEXT:\"Texto de etiqueta\",ADD_EDIT_LABEL_HERE:\"Agregar / editar texto de etiqueta aqui\",PLACEHOLDER:\"Marcador\",ADD_EDIT_PLACEHOLD:\"Agregar / editar texto de marcador aqui\",REQUIRED:\"Requerido\",DESCRIPTION:\"Descripcion\",ADDEDIT_DESCRIPTION:\"Agregar / editar descripcion aqui\",DATE_FORMAT:\"Formato de fecha\",ADD_NEW_RADIO:\"Agregar nuevo radio\",ADD_RADIO_PLACEHOLD:\"agregar nuevo radio\",EDIT_REMOVE_RADIO:\"Editar/Eliminar radio\",NO_RADIO_ADD_NEW:\"sin radio : agregar nuevos valores de radio\",SEARCH_4_OPTION:\"buscar opcion\",ADD:\"agregar\",ORDER:\"orden\",OPTION:\"opcion\",GROUP:\"grupo\",ADD_NEW_OPTIONS:\"agregar nuevas opciones\",ADD_A_NEW_OPTION:\"agregar nueva opcione\",EDIT_REMOVE_OPTIONS:\"Editar/Eliminar opciones\",NO_OPTION_ADD_NEW:\"sin opcion : agregar nuevas opciones\",ADD_NEW_GROUPS:\"Agregar nuevos grupos\",ADD_A_NEW_GROUP:\"Agregar nuevo grupo\",EDIT_GROUPS_OPTIONS:\"Editar/Eliminar opciones/grupos\",NO_GROUP_ADD_NEW:\"agregar nuevos grupos\",OK:\"OK\",CANCEL:\"Cancelar\"}),e.translations(\"fr\",{SAY_HI:\"Bonjour\",EDIT_TAB:\"Edition / Creation\",PREVIEW_TAB:\"Aperçu\",WIZARD_LINES:\"lignes\",WIZARD_LAYOUT:\"disposition\",WIZARD_CONTROLS:\"contrôles\",WIZARD_SAVE:\"sauvegarder\",PAGER_PREVIOUS:\"Précédent\",PAGER_NEXT:\"Suivant\",COMMAND_PANEL:\"Commandes\",VISUAL_PANEL:\"Visuel\",ADD_NEW_LINE:\"Ajouter une nouvelle ligne\",SELECTED_LINE:\"Ligne sélectionnée\",NUMBER_OF_COLUMN:\"nombre de colonnes\",APPLY_CTRL2COL:\"Appliquer les contrôles aux colonnes\",CLIC_TAP_2_OPEN:\"Cliquer sur une colonne pour ouvrir le menu d'édition\",SELECT_2_APPLY_COL:\"Sélectionner un contrôle puis valider pour l'appliquer à la colonne\",CUSTOM_SUBMIT_BTN:\"Personnaliser le texte du bouton envoie\",CUSTOM_CANCEL_BTN:\"Personnaliser le texte du bouton annuler\",NAME_THIS_FORM:\"Nommer le formulaire\",SAVE_THIS_FORM:\"sauvegarder le formulaire\",FINAL_STEP:\"Dernière étape : aperçu du formulaire\",DATA_MODEL:\"MODELE DE DONNEES\",FIELDS_MODEL:\"MODELE DES CHAMPS (modèle compatible base de données)\",SELECT_A_CTRL:\"Sélectionner un contrôle\",SELECT_CTRL_IN_LIST:\"Sélectionner un contrôle dans la liste ci-dessous\",COL_WILL_BE_BLANK:\"La colonne sera vide\",EDIT_PROPERTIES:\"Editer les propriétés\",HEADER_TEXT:\"Texte du titre principal\",ADD_EDIT_HEADER_HERE:\"Editer le textes du titre principal\",SUBTITLE_TEXT:\"Texte du sous-titre\",ADD_EDIT_SUBTIL_HERE:\"Editer le textes du sous-titre\",LABEL_TEXT:\"Texte de l'étiquette\",ADD_EDIT_LABEL_HERE:\"Editer le texte de l'étiquette\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"Editer le placeholder\",REQUIRED:\"Requis\",DESCRIPTION:\"Description\",ADDEDIT_DESCRIPTION:\"Ajouter / editer la description\",DATE_FORMAT:\"Format de la date\",ADD_NEW_RADIO:\"Ajouter un nouveau choix à cocher\",ADD_RADIO_PLACEHOLD:\"Ajouter un nouveau choix à cocher\",EDIT_REMOVE_RADIO:\"Editer / supprimer un choix à cocher\",NO_RADIO_ADD_NEW:\"aucun choix à cocher : en ajouter un\",SEARCH_4_OPTION:\"rechercher une option\",ADD:\"ajouter\",ORDER:\"ordre\",OPTION:\"option\",GROUP:\"groupe\",ADD_NEW_OPTIONS:\"Ajouter de nouvelles options\",ADD_A_NEW_OPTION:\"ajoutre une option\",EDIT_REMOVE_OPTIONS:\"Editer / supprimer des options\",NO_OPTION_ADD_NEW:\"aucune option : en ajouter\",ADD_NEW_GROUPS:\"Ajouter de nouveaux groupes\",ADD_A_NEW_GROUP:\"Ajouter un nouveau groupe\",EDIT_GROUPS_OPTIONS:\"Editer / supprimer les groupes et options\",NO_GROUP_ADD_NEW:\"ajouter de nouveaux groupes\",OK:\"Valider\",CANCEL:\"Annuler\"}),e.translations(\"jp\",{SAY_HI:\"こんにちわ\",EDIT_TAB:\"編集 / 作成\",PREVIEW_TAB:\"プレビュー\",WIZARD_LINES:\"ライン\",WIZARD_LAYOUT:\"レイアウト\",WIZARD_CONTROLS:\"コントロール\",WIZARD_SAVE:\"サーブ\",PAGER_PREVIOUS:\"前\",PAGER_NEXT:\"次\",COMMAND_PANEL:\"コマンド\",VISUAL_PANEL:\"ビジュアル\",ADD_NEW_LINE:\"新しいライン追加\",SELECTED_LINE:\"選択されたライン\",NUMBER_OF_COLUMN:\"カラムの数\",APPLY_CTRL2COL:\"カラムにコントロール適用\",CLIC_TAP_2_OPEN:\"コントロール選択を広げるには列をクリック\",SELECT_2_APPLY_COL:\"好きなコントロールを選び適用\",CUSTOM_SUBMIT_BTN:\"適用ボタンの文字変更する場合\",CUSTOM_CANCEL_BTN:\"キャンセルボタンの文字変更する場合\",NAME_THIS_FORM:\"形式に名前を付ける\",SAVE_THIS_FORM:\"形式をサーブ\",FINAL_STEP:\"ファイナルステップ : プレビュー形式\",DATA_MODEL:\"データーモデル\",FIELDS_MODEL:\"モデルフィールド\",SELECT_A_CTRL:\"コントロールを選び選択\",SELECT_CTRL_IN_LIST:\"以下のリストからコントロールを選び選択\",COL_WILL_BE_BLANK:\"空になる列\",EDIT_PROPERTIES:\"プロパティの変更\",HEADER_TEXT:\"ヘッダーテキスト\",ADD_EDIT_HEADER_HERE:\"ヘッダーテキスト文字変更\",SUBTITLE_TEXT:\"サブタイトル テキスト\",ADD_EDIT_SUBTIL_HERE:\"サブタイトルテキスト文字変更\",LABEL_TEXT:\"ラベルテキスト\",ADD_EDIT_LABEL_HERE:\"ラベルテキスト文字変更\",PLACEHOLDER:\"プレースホルダー\",ADD_EDIT_PLACEHOLD:\"プレースホルダー文字変更\",REQUIRED:\"必須\",DESCRIPTION:\"説明\",ADDEDIT_DESCRIPTION:\"説明の変更\",DATE_FORMAT:\"日付の形式\",ADD_NEW_RADIO:\"新ラジオボタンを追加\",ADD_RADIO_PLACEHOLD:\"新ラジオボタンを追加\",EDIT_REMOVE_RADIO:\"ラジオボタン変更\",NO_RADIO_ADD_NEW:\"ラジオ無し : 新ラジオボタン追加\",SEARCH_4_OPTION:\"オプション検索\",ADD:\"追加\",ORDER:\"順番\",OPTION:\"オプション\",GROUP:\"グループ\",ADD_NEW_OPTIONS:\"新しいオプション追加\",ADD_A_NEW_OPTION:\"新しいオプション追加\",EDIT_REMOVE_OPTIONS:\"オプションの変更\",NO_OPTION_ADD_NEW:\"オプション無し : 新しいオプション追加\",ADD_NEW_GROUPS:\"新しいグループ追加\",ADD_A_NEW_GROUP:\"新しいグループ追加\",EDIT_GROUPS_OPTIONS:\"グループを変更\",NO_GROUP_ADD_NEW:\"グループを追加\",OK:\"オッケー\",CANCEL:\"キャンセル\"}),e.translations(\"tr\",{SAY_HI:\"Merhaba\",EDIT_TAB:\"Düzenle / Oluştur\",PREVIEW_TAB:\"Önizleme\",WIZARD_LINES:\"satırlar\",WIZARD_LAYOUT:\"düzen\",WIZARD_CONTROLS:\"kontroller\",WIZARD_SAVE:\"kaydet\",PAGER_PREVIOUS:\"Geri\",PAGER_NEXT:\"İleri\",COMMAND_PANEL:\"Komut\",VISUAL_PANEL:\"Görsel\",ADD_NEW_LINE:\"Yeni satır ekle\",SELECTED_LINE:\"Seçili satır\",NUMBER_OF_COLUMN:\"sütun sayısı\",APPLY_CTRL2COL:\"Sütunlara form ögesi ekle\",CLIC_TAP_2_OPEN:\"Form ögesi eklemek için sütunlara tıkla\",SELECT_2_APPLY_COL:\"İstediğin ögeyi seçtikten sonra gerekli yerleri doldur ve kaydet\",CUSTOM_SUBMIT_BTN:\"Gönder butonu yazısını düzenle\",CUSTOM_CANCEL_BTN:\"İptal butonu yazısını düzenle\",NAME_THIS_FORM:\"Forma isim ver\",SAVE_THIS_FORM:\"formu kaydet\",FINAL_STEP:\"Son aşama : form önizlemesi\",DATA_MODEL:\"VERİ MODELİ\",FIELDS_MODEL:\"ALAN MODELİ (veritabanına kaydetmeye hazır)\",SELECT_A_CTRL:\"Form ögesi seç\",SELECT_CTRL_IN_LIST:\"Verilen listeden bir form ögesi seç\",COL_WILL_BE_BLANK:\"Sütun boş kalacak\",EDIT_PROPERTIES:\"Özellikleri düzenle\",HEADER_TEXT:\"Başlık yazısı\",ADD_EDIT_HEADER_HERE:\"Başlık yazısını ekle / düzenle\",SUBTITLE_TEXT:\"Altyazı\",ADD_EDIT_SUBTIL_HERE:\"Altyazı ekle / düzenle\",LABEL_TEXT:\"Form ögesinin adı\",ADD_EDIT_LABEL_HERE:\"Ad ekle / düzenle\",PLACEHOLDER:\"Form ögesinin içine geçici yazı ekle\",ADD_EDIT_PLACEHOLD:\"Geçici yazı ekle / düzenle\",REQUIRED:\"Gerekli\",DESCRIPTION:\"Açıklama\",ADDEDIT_DESCRIPTION:\"Açıklama ekle / düzenle\",DATE_FORMAT:\"Tarih formatı\",ADD_NEW_RADIO:\"Radio butonu ekle\",ADD_RADIO_PLACEHOLD:\"radio butonu ekle\",EDIT_REMOVE_RADIO:\"Radio butonunu ekle / düzenle\",NO_RADIO_ADD_NEW:\"radio butonu yok : yeni buton ekle\",SEARCH_4_OPTION:\"seçenek ara\",ADD:\"ekle\",ORDER:\"sıra\",OPTION:\"seçenek\",GROUP:\"grup\",ADD_NEW_OPTIONS:\"Yeni seçenek ekle\",ADD_A_NEW_OPTION:\"yeni seçenek ekle\",EDIT_REMOVE_OPTIONS:\"Seçenekleri düzenle/sil\",NO_OPTION_ADD_NEW:\"seçenek yok : yeni seçenek ekle\",ADD_NEW_GROUPS:\"Yeni grup ekle\",ADD_A_NEW_GROUP:\"Yeni grup ekle\",EDIT_GROUPS_OPTIONS:\"Seçenek/Grup Ekle/sil\",NO_GROUP_ADD_NEW:\"yeni grup ekle\",OK:\"TAMAM\",CANCEL:\"İptal\"})}]),function(){function e(e){function o(){var e={modalAnimated:!1};return e}function l(){return!0}function t(){return!0}function n(){var e=[{name:\"empty\",enabled:!0},{name:\"Header\",enabled:!0},{name:\"TextInput\",enabled:!0},{name:\"Password\",enabled:!0},{name:\"Date\",enabled:!0},{name:\"Texarea\",enabled:!0},{name:\"RichTextEditor\",enabled:!0},{name:\"Radio\",enabled:!0},{name:\"Checkbox\",enabled:!0},{name:\"BasicSelect\",enabled:!0},{name:\"GroupedSelect\",enabled:!0}];return e}function i(e){var o=e===!0?e:e===!1?e:b.modalAnimated;b.modalAnimated=o}function a(){return b.modalAnimated}function r(){return E}function s(e){angular.isString(e)&&angular.forEach(E,function(o){o.name===e&&(o.enabled=!1,console.log(\"disable aControl : \"+o.name,0/0+e))})}function c(e){angular.isDefined(e)&&(e===!0&&(D=!0),e===!1&&(D=!1))}function d(e){angular.isDefined(e)&&(e===!0&&(_=!0),e===!1&&(_=!1))}function u(e){angular.isString(e)&&angular.forEach(E,function(o){o.name===e&&(o.enabled=!0)})}function p(){var e=\"en\";return e}function m(){return e.useSanitizeValueStrategy(\"escape\"),e.fallbackLanguage(T),e.preferredLanguage(T),T}function f(){return h=T,e.preferredLanguage(h),h}function v(o){angular.isString(o)?(h=o,e.preferredLanguage(o)):f()}function y(){return h}function g(e){function o(){return b.modalAnimated}function l(e){i(e)}function t(){return angular.copy(E)}function n(){return D}function a(){return _}function r(o){angular.isString(o)?(h=o,e.use(o)):f()}var s={setModalAnimation:l,getModalAnimationValue:o,getListEnabledControl:t,setLanguage:r,getCurrentLanguage:y,isPreviewPanelVisible:n,arePreviewModelsVisible:a};return s}var b=o(),E=n(),T=p(),h=m(),D=l(),_=t();this.$get=g,this.setModalAnimation=i,this.getModalAnimation=a,this.configuration=b,this.getEnabledControls=r,this.disableControl=s,this.enableControl=u,this.setLanguage=v,this.getCurrentLanguage=y,this.showPreviewPanel=c,this.showPreviewModels=d,g.$inject=[\"$translate\"]}angular.module(\"eda.easyFormSteWayConfigProvider\",[]).provider(\"easyFormSteWayConfig\",e),e.$inject=[\"$translateProvider\"]}(),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,a,r,s,c,d,u){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function m(){return{editTab:{active:!0},previewTab:{active:!1}}}function f(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 v(){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 y(){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 b(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function E(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function T(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function h(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 D(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 _(){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 w(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):a(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 C(){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 O(){e.configuration.configStepCounter=0}function L(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,F(e.configuration.configStepCounter)}function A(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,F(e.configuration.configStepCounter)}function x(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function F(o){N(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=v,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=m(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=y(),e.lineTemplate=g(),e.resetToZeroModel=b,e.countConfigurationModelLines=E,e.setActiveLineNumber=T,e.upThisLine=h,e.downThisLine=D,e.addNewline=_,e.removeThisLine=w,e.increaseNumberOfColumns=C,e.decreaseNumberOfColumns=S,e.resetStepCounter=O,e.nextConfigStep=L,e.previousConfigStep=A,e.stepReachable=x,e.nyaSelect={},e.animationsEnabled=u.getModalAnimationValue(),e.showModalAddCtrlToColumn=R,e.loadExistingFormsList=P(),e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=f,e.saveThisForm=I,P(),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\",\"easyFormSteWayConfig\"]}(),function(){function e(e,o,l,t,n,i,a){function r(){e.nyaSelectFiltered={};var o=[].concat(a.getFilteredNyaSelectObject());angular.extend(e.nyaSelectFiltered,{controls:o,selectedControl:e.nyaSelect.selectedControl,temporyConfig:e.nyaSelect.temporyConfig})}function s(){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 c(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 d(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 u(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 m(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 f(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 v(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 y(){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 b(){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 E(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 T(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 h(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 D(){e.demodt.dt=new Date}function w(){e.demodt.dt=null}function C(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0}function S(){return{formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null}}function O(o){e.nyaSelect.selectedControl=\"none\",B();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&&k()}function L(){\"BasicSelect\"===e.nyaSelect.selectedControl&&I(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&F(),\"Radio\"===e.nyaSelect.selectedControl&&R(),a.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)}function A(){o.dismiss(\"cancel\")}function x(){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 I(){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 N(){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 F(){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 k(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function M(){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&&N(),\"Radio\"===e.nyaSelect.selectedControl&&x()}r()}function B(){e.nyaSelectFiltered.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var q={rows:[]};e.radioRowCollection=q,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=s,e.removeRadioRow=c,e.upThisRadioRow=d,e.downThisRadioRow=u,e.basicSelectRowCollection=q,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=p,e.removeRow=m,e.upThisRow=f,e.downThisRow=v,e.groupedSelectRowCollection=q,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=y,e.addNewGroupToGroupedSelect=g,e.addNewOptionGroupedSelect=b,e.removeGroupedSelectRow=E,e.upThisGroupedSelectRow=T,e.downThisGroupedSelectRow=h,e.demodt={},e.today=D,e.clear=w,e.open=C,e.dateOptions=S(),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=O,e.ok=L,e.cancel=A,e.nyaSelectFiltered={},D(),M()}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:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){p()}function d(){return e.returnSaveEvent}function u(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 p(){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=r,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(s,c,!0),e.$watch(d,u)}function i(e,o,l,t,n,i,a,r,s,c,d,u){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function m(){var e={editTab:{active:!0},previewTab:{active:!1,tabVisible:u.isPreviewPanelVisible(),modelsVisible:u.arePreviewModelsVisible()}};return e}function f(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 v(){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 y(){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 b(){\nreturn e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function E(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function T(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function h(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 D(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 _(){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 w(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):a(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 C(){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 O(){e.configuration.configStepCounter=0}function L(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,N(e.configuration.configStepCounter)}function A(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,N(e.configuration.configStepCounter)}function x(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function N(o){I(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=v,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=m(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=y(),e.lineTemplate=g(),e.resetToZeroModel=b,e.countConfigurationModelLines=E,e.setActiveLineNumber=T,e.upThisLine=h,e.downThisLine=D,e.addNewline=_,e.removeThisLine=w,e.increaseNumberOfColumns=C,e.decreaseNumberOfColumns=S,e.resetStepCounter=O,e.nextConfigStep=L,e.previousConfigStep=A,e.stepReachable=x,e.nyaSelect={},e.animationsEnabled=u.getModalAnimationValue(),e.showModalAddCtrlToColumn=R,e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=f,e.saveThisForm=P,e.returnSaveEvent=!1,c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}i.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\",\"easyFormSteWayConfig\"];var a={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaStepWayEasyFormGeneratorTemplate.html\",link:n};return a}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(e){function o(e){return u(e)}function l(){var e={};return u(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function n(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function i(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function a(e,o,l,t){return u(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 r(e,o,l,t){var n=m(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();f(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),f(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 s(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 c(){return{formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function d(){var e={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:{messages:{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(p(angular.copy(e)))}function u(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:{messages:{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 p(o){var l=e.getListEnabledControl(),t=[];return angular.forEach(l,function(e){angular.forEach(o.controls,function(o){o.id===e.name&&e.enabled===!0&&(t=t.concat(o))})}),t}function m(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 f(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 v={initNyaSelect:o,getNyASelectFromSelectedLineColumn:a,bindConfigurationModelFromModalReturn:r,applyConfigToSelectedControl:s,resetTemporyConfig:c,getControlsDefinition:l,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:n,refreshControlFormlyValidation:i,getFilteredNyaSelectObject:d};return v}angular.module(\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",e),e.$inject=[\"easyFormSteWayConfig\"]}(),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),h(\"configuration model is bound\",\"lines are bound to configuration model.\")}return T(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function l(e,o,l){t(o),E(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):a(o,e,c)),2===e.lines[c].columns.length&&r(o,e,c),3===e.lines[c].columns.length&&s(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 a(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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(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 r(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)+\"


\"},a={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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(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-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:y(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:g(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:u(o.lines[l].columns[1].control),validators:p(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 s=[];s.push(\"header\"===o.lines[l].columns[0].control.type?t:a),s.push(\"header\"===o.lines[l].columns[1].control.type?n:r),e.push({className:\"row\",fieldGroup:s})}function s(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)+\"


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

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


\"},r={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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(r,o,l);var s={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:y(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:g(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:u(o.lines[l].columns[1].control),validators:p(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(s,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:y(o.lines[l].columns[2].control),label:c(o.lines[l].columns[2].control),required:f(o.lines[l].columns[2].control),placeholder:g(o.lines[l].columns[2].control),description:b(o.lines[l].columns[2].control),options:v(o.lines[l].columns[2].control)},expressionProperties:u(o.lines[l].columns[2].control),validators:p(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 E=[];E.push(\"header\"===o.lines[l].columns[0].control.type?t:r),E.push(\"header\"===o.lines[l].columns[1].control.type?n:s),E.push(\"header\"===o.lines[l].columns[2].control.type?a:d),e.push({className:\"row\",fieldGroup:E})}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 u(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function p(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 y(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function g(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 E(e){var o={};return angular.copy(o,e),!0}function T(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!1,l.title=e,l.Message=o,l}function h(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!0,l.title=e,l.Message=o,l}var D={initConfigurationEditFromScratch:e,\nbindConfigurationLines:o,applyConfigurationToformlyModel:l};return D}angular.module(\"ngwfApp.services.formFieldManage\",[]).factory(\"formFieldManage\",e),e.$inject=[]}(),function(){function e(){function e(){return\"selectOptionManage is here.\"}function o(e){u(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 a(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 r(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 s(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 u(e){var o={rows:[]};angular.copy(o,e)}var p={testMe:e,initModel:o,isOptionUnique:l,isOptionValidFormat:t,addNewOptionRadio:n,addNewOptionBasicSelect:i,addNewOptionGroupedSelect:a,removeOption:r,upthisOption:s,downthisOption:c};return p}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":["easyFromConfigFct","easyFormSteWayConfigProvider","setModalAnimation","formlyConfigFct","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","$translateProvider","translations","SAY_HI","EDIT_TAB","PREVIEW_TAB","WIZARD_LINES","WIZARD_LAYOUT","WIZARD_CONTROLS","WIZARD_SAVE","PAGER_PREVIOUS","PAGER_NEXT","COMMAND_PANEL","VISUAL_PANEL","ADD_NEW_LINE","SELECTED_LINE","NUMBER_OF_COLUMN","APPLY_CTRL2COL","CLIC_TAP_2_OPEN","SELECT_2_APPLY_COL","CUSTOM_SUBMIT_BTN","CUSTOM_CANCEL_BTN","NAME_THIS_FORM","SAVE_THIS_FORM","FINAL_STEP","DATA_MODEL","FIELDS_MODEL","SELECT_A_CTRL","SELECT_CTRL_IN_LIST","COL_WILL_BE_BLANK","EDIT_PROPERTIES","HEADER_TEXT","ADD_EDIT_HEADER_HERE","SUBTITLE_TEXT","ADD_EDIT_SUBTIL_HERE","LABEL_TEXT","ADD_EDIT_LABEL_HERE","PLACEHOLDER","ADD_EDIT_PLACEHOLD","REQUIRED","DESCRIPTION","ADDEDIT_DESCRIPTION","DATE_FORMAT","ADD_NEW_RADIO","ADD_RADIO_PLACEHOLD","EDIT_REMOVE_RADIO","NO_RADIO_ADD_NEW","SEARCH_4_OPTION","ADD","ORDER","OPTION","GROUP","ADD_NEW_OPTIONS","ADD_A_NEW_OPTION","EDIT_REMOVE_OPTIONS","NO_OPTION_ADD_NEW","ADD_NEW_GROUPS","ADD_A_NEW_GROUP","EDIT_GROUPS_OPTIONS","NO_GROUP_ADD_NEW","OK","CANCEL","easyFormSteWayConfigFct","defaultConfig","_defaultConfiguration","modalAnimated","getDefaultshowPreviewPanel","getDefaultShowPreviewModel","controlsList","controls","enabled","flagConfig","valueToApply","_configuration","getModalAnimation","getEnabledControls","_controlsList","disableControl","controlName","isString","aControl","console","log","showPreviewPanel","wantToShow","isDefined","_showPreviewPanel","showPreviewModels","_showPreviewModels","enableControl","getDefaultLanguage","lang","initDefaultLanguage","useSanitizeValueStrategy","fallbackLanguage","_defaultLanguage","preferredLanguage","setDefaultLanguage","_currentLanguage","setLanguage","language","getCurrentLanguage","easyFormSteWayConfig","$translate","getModalAnimationValue","setModalAnimationFct","getListEnabledControl","copy","isPreviewPanelVisible","arePreviewModelsVisible","switchLanguage","use","service","this","$get","configuration","provider","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","wfFormFields","cancelButtonText","submitButtonText","onSubmit","pop","type","timeout","title","body","showCloseButton","initColumnTemplate","numColumn","exist","control","key","subtype","initLineTemplate","line","activeColumn","columns","resetToZeroModel","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","loadExistingFormsAsList","saveThisForm","formName","clear","resetAllIndicators","i","stepIndicators","indexIndicator","easyFormGeneratorVERSION","tab","numberOfColumns","MinNumberOfColumns","columnTemplate","lineTemplate","loadExistingFormsList","formlyList","initConfigurationEditFromScratch","initNyaSelect","ngwfWfEditMODALController","$modalInstance","selectOptionManage","initNyaSelectFiltered","nyaSelectFiltered","listCtrl","concat","getFilteredNyaSelectObject","extend","selectedControl","temporyConfig","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","resetTemporyConfig","id","initDatePicker","okfct","bindBasicSelectToNya","bindGroupedSelectToNya","bindRadioToNya","applyConfigToSelectedControl","close","cancelfct","dismiss","bindRadioFromNYA","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","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","$watch","edaStepWayEasyFormGenCtrl","_tabInitialized","tabVisible","modelsVisible","directive","restrict","controllerAs","link","stRatio","linkfct","ratio","css","nyaSelectObj","resetNyaSelect","getControlsDefinition","configurationModel","isObject","column","controlIndex","_controlsDefinition","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","filterDisabledControl","listAllEnabledControl","filteredNyaList","enabledControl","nyaControl","CtrlModalModel","modelToReturn","thisKey","isUnique","j","factory","configurationModelInit","Object","prototype","toString","call","configurationModelResult","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,WAuBG,QAASA,GAAkBC,GAGzBA,EAA6BC,mBAAkB,GAkBjD,QAASC,GAAgBC,GAyKvB,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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GAAWD,GAClB,GAAIa,IAAclL,QAClBjV,SAAQ8I,KAAKqX,EAAWb,GAvO1B,GAAInW,IACFiW,OAA4BA,EAC5BC,UAA4BA,EAC5BG,eAA4BA,EAC5BE,oBAA4BA,EAC5BpO,kBAA4BA,EAC5BY,wBAA4BA,EAC5Ba,0BAA4BA,EAC5BlB,aAA4BA,EAC5BE,aAA4BA,EAC5BE,eAA4BA,EAE9B,OAAO9I,GAlBXnJ,QACG6B,OAAO,0CACPma,QAAQ,qBAAsBnL,GAE/BA,EAAmB7O,cA4PtB,WAGAhC,QAAQ6B,OACA,oBACW,mCACA,sCACA,yDAmBnB,WAGA7B,QACE6B,OAAO,0BAMPuH","file":"eda.stepway.min.js","sourcesContent":["!function(){\"use strict\";!function(){function e(e){e.setModalAnimation(!1)}function o(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\"],a=[\"datepicker-mode\",\"min-date\",\"max-date\"],r={};angular.forEach(i,function(e){r[o(e)]={attribute:e}}),angular.forEach(a,function(e){r[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:r,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\",\"eda.easyFormGenerator.translate\",\"eda.easyFormSteWayConfigProvider\",\"ngwfApp.controllers\",\"ngwfApp.services\",\"ngwfApp.filters\",\"ngwfApp.directives\"]).value(\"easyFormGenVersion\",\"v1.0.31\").config(o).config(e),e.$inject=[\"easyFormSteWayConfigProvider\"],o.$inject=[\"formlyConfigProvider\"]}(),angular.module(\"ngwfApp\").run([\"$templateCache\",function(e){e.put(\"edaStepWayEasyFormGeneratorTemplate.html\",'

{{\\'WIZARD_LINES\\' | translate}}

{{\\'WIZARD_LAYOUT\\' | translate}}

{{\\'WIZARD_CONTROLS\\' | translate}}

{{\\'WIZARD_SAVE\\' | translate}}

 {{\\'COMMAND_PANEL\\' | translate}}

{{\\'ADD_NEW_LINE\\' | translate}} : 

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}

- {{\\'SELECTED_LINE\\' | translate}} -

{{\\'NUMBER_OF_COLUMN\\' | translate}} :

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

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}

- {{\\'APPLY_CTRL2COL\\' | translate}} -


  {{\\'CLIC_TAP_2_OPEN\\' | translate}}.

  {{\\'SELECT_2_APPLY_COL\\' | translate}}.

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}



 {{\\'FINAL_STEP\\' | translate}}

{{\\'DATA_MODEL\\' | translate}}

\\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\\' | translate}}

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

'),e.put(\"editModalTemplate.html\",'');\n\n}]),function(){angular.module(\"ngwfApp.core\",[\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"pascalprecht.translate\"])}(),angular.module(\"eda.easyFormGenerator.translate\",[]).config([\"$translateProvider\",function(e){e.translations(\"de\",{SAY_HI:\"Hallo\",EDIT_TAB:\"Bearbeiten / Schaffen\",PREVIEW_TAB:\"Vorschau\",WIZARD_LINES:\"Linien\",WIZARD_LAYOUT:\"Layout\",WIZARD_CONTROLS:\"Steuerung\",WIZARD_SAVE:\"sparen\",PAGER_PREVIOUS:\"vorher.\",PAGER_NEXT:\"nächste\",COMMAND_PANEL:\"Anweisung\",VISUAL_PANEL:\"visuell\",ADD_NEW_LINE:\"Hinzufügen neuer Leitung\",SELECTED_LINE:\"ausgewählte Linie\",NUMBER_OF_COLUMN:\"Anzahl von Spalten\",APPLY_CTRL2COL:\"gelten diese Steuer Spalte\",CLIC_TAP_2_OPEN:\"klicken Sie auf Spalte zur Steuerungsauswahl öffnen\",SELECT_2_APPLY_COL:\"Wählen Sie die gewünschte Steuerung und gültig , um es in Spalte anwenden\",CUSTOM_SUBMIT_BTN:\"Passen Submit-Button Text\",CUSTOM_CANCEL_BTN:\"Passen Cancel-Button Text\",NAME_THIS_FORM:\"Nennen dieses Formular\",SAVE_THIS_FORM:\"Speichern dieses Formular\",FINAL_STEP:\"Endschritt : Formular Vorschau\",DATA_MODEL:\"DATEN MODELL\",FIELDS_MODEL:\"FELDER MODELL (Datenbank-kompatibel)\",SELECT_A_CTRL:\"Wählen Sie ein Steuer\",SELECT_CTRL_IN_LIST:\"Wählen Sie ein Steuer aus der Liste unten\",COL_WILL_BE_BLANK:\"die Spalte werde leer sein\",EDIT_PROPERTIES:\"Anzeigen\",HEADER_TEXT:\"Kopftext\",ADD_EDIT_HEADER_HERE:\"Kopftext ändern\",SUBTITLE_TEXT:\"Untertitel\",ADD_EDIT_SUBTIL_HERE:\"Untertitel ändern\",LABEL_TEXT:\"Etikett\",ADD_EDIT_LABEL_HERE:\"Etikett ändern\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"placeholder ändern\",REQUIRED:\"erforderlich\",DESCRIPTION:\"Beschreibung\",ADDEDIT_DESCRIPTION:\"Beschreibung ändern\",DATE_FORMAT:\"Datumsformat\",ADD_NEW_RADIO:\"Radiobutton hinzufügen\",ADD_RADIO_PLACEHOLD:\"Radiobutton hinzufügen\",EDIT_REMOVE_RADIO:\"Radiobutton ändern\",NO_RADIO_ADD_NEW:\"kein Radiobutton : Radiobutton hinzufügen\",SEARCH_4_OPTION:\"option suchen\",ADD:\"hinzufügen\",ORDER:\"bestellen\",OPTION:\"Option\",GROUP:\"Gruppe\",ADD_NEW_OPTIONS:\"Optionen hinzufügen\",ADD_A_NEW_OPTION:\"Option hinzufügen\",EDIT_REMOVE_OPTIONS:\"Optionen ändern\",NO_OPTION_ADD_NEW:\"kein option : Option hinzufügen\",ADD_NEW_GROUPS:\"Gruppen hinzufügen\",ADD_A_NEW_GROUP:\"Gruppe hinzufügen\",EDIT_GROUPS_OPTIONS:\"Gruppen ändern\",NO_GROUP_ADD_NEW:\"keine Gruppe : Gruppe hinzufügen\",OK:\"bestätigen\",CANCEL:\"stornieren\"}),e.translations(\"en\",{SAY_HI:\"Hello\",EDIT_TAB:\"Edit / Create\",PREVIEW_TAB:\"Preview\",WIZARD_LINES:\"lines\",WIZARD_LAYOUT:\"layout\",WIZARD_CONTROLS:\"controls\",WIZARD_SAVE:\"save\",PAGER_PREVIOUS:\"Previous\",PAGER_NEXT:\"Next\",COMMAND_PANEL:\"Command\",VISUAL_PANEL:\"Visual\",ADD_NEW_LINE:\"Add a new line\",SELECTED_LINE:\"Selected line\",NUMBER_OF_COLUMN:\"number of columns\",APPLY_CTRL2COL:\"Apply controls to columns\",CLIC_TAP_2_OPEN:\"Click / Tap on column to open control selection\",SELECT_2_APPLY_COL:\"Select desired control and valid to apply it to column\",CUSTOM_SUBMIT_BTN:\"Customize Submit button Text\",CUSTOM_CANCEL_BTN:\"Customize Cancel button Text\",NAME_THIS_FORM:\"Name this form\",SAVE_THIS_FORM:\"save this form\",FINAL_STEP:\"Final Step : form preview\",DATA_MODEL:\"DATA MODEL\",FIELDS_MODEL:\"FIELDS MODEL (ready to save to database one)\",SELECT_A_CTRL:\"Select a control\",SELECT_CTRL_IN_LIST:\"Select a control in the list below\",COL_WILL_BE_BLANK:\"Column will be blank\",EDIT_PROPERTIES:\"Edit properties\",HEADER_TEXT:\"Header text\",ADD_EDIT_HEADER_HERE:\"Add / edit header text here\",SUBTITLE_TEXT:\"Subtitle text\",ADD_EDIT_SUBTIL_HERE:\"Add / edit subtitle text here\",LABEL_TEXT:\"Label text\",ADD_EDIT_LABEL_HERE:\"Add / edit control label here\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"Add / edit placeholder text here\",REQUIRED:\"Required\",DESCRIPTION:\"Description\",ADDEDIT_DESCRIPTION:\"Add / edit description here\",DATE_FORMAT:\"Date format\",ADD_NEW_RADIO:\"Add new radio\",ADD_RADIO_PLACEHOLD:\"add new radio\",EDIT_REMOVE_RADIO:\"Edit/Remove radio\",NO_RADIO_ADD_NEW:\"no radio : add new radio values\",SEARCH_4_OPTION:\"search for option\",ADD:\"add\",ORDER:\"order\",OPTION:\"option\",GROUP:\"group\",ADD_NEW_OPTIONS:\"Add new options\",ADD_A_NEW_OPTION:\"add new option\",EDIT_REMOVE_OPTIONS:\"Edit/Remove options\",NO_OPTION_ADD_NEW:\"no option : add new options\",ADD_NEW_GROUPS:\"Add new groups\",ADD_A_NEW_GROUP:\"Add new group\",EDIT_GROUPS_OPTIONS:\"Edit/Remove options/groups\",NO_GROUP_ADD_NEW:\"add new groups\",OK:\"OK\",CANCEL:\"Cancel\"}),e.translations(\"es\",{SAY_HI:\"Hola\",EDIT_TAB:\"Editar / Crear\",PREVIEW_TAB:\"Previsualizar\",WIZARD_LINES:\"lineas\",WIZARD_LAYOUT:\"diseño\",WIZARD_CONTROLS:\"controles\",WIZARD_SAVE:\"guardar\",PAGER_PREVIOUS:\"Anterior\",PAGER_NEXT:\"Siguiente\",COMMAND_PANEL:\"Comando\",VISUAL_PANEL:\"Visual\",ADD_NEW_LINE:\"Agregar nueva linea\",SELECTED_LINE:\"Linea seleccionada\",NUMBER_OF_COLUMN:\"numero de columnas\",APPLY_CTRL2COL:\"Aplicar controles a columnas\",CLIC_TAP_2_OPEN:\"Click / Toque en la columna para seleccionar controles\",SELECT_2_APPLY_COL:\"Selecciona el control deseado para aplicarlo a la columna\",CUSTOM_SUBMIT_BTN:\"Personalizar texto de boton Enviar\",CUSTOM_CANCEL_BTN:\"Personalizar texto de boton Cancelar\",NAME_THIS_FORM:\"Nombrar formulario\",SAVE_THIS_FORM:\"guardar formulario\",FINAL_STEP:\"Ultimo paso : previsualizar formulario\",DATA_MODEL:\"MODELO DE DATOS\",FIELDS_MODEL:\"MODELO DE CAMPOS (listo para guardar en base de datos uno)\",SELECT_A_CTRL:\"Selecciona un control\",SELECT_CTRL_IN_LIST:\"Selecciona un control de la lista\",COL_WILL_BE_BLANK:\"Columna sera vacia\",EDIT_PROPERTIES:\"Editar propiedades\",HEADER_TEXT:\"Texto de encabezado\",ADD_EDIT_HEADER_HERE:\"Agregar / editar texto de encabezado aqui\",SUBTITLE_TEXT:\"Texto de subtitulo\",ADD_EDIT_SUBTIL_HERE:\"Agregar / editar texto de subtitulo aqui\",LABEL_TEXT:\"Texto de etiqueta\",ADD_EDIT_LABEL_HERE:\"Agregar / editar texto de etiqueta aqui\",PLACEHOLDER:\"Marcador\",ADD_EDIT_PLACEHOLD:\"Agregar / editar texto de marcador aqui\",REQUIRED:\"Requerido\",DESCRIPTION:\"Descripcion\",ADDEDIT_DESCRIPTION:\"Agregar / editar descripcion aqui\",DATE_FORMAT:\"Formato de fecha\",ADD_NEW_RADIO:\"Agregar nuevo radio\",ADD_RADIO_PLACEHOLD:\"agregar nuevo radio\",EDIT_REMOVE_RADIO:\"Editar/Eliminar radio\",NO_RADIO_ADD_NEW:\"sin radio : agregar nuevos valores de radio\",SEARCH_4_OPTION:\"buscar opcion\",ADD:\"agregar\",ORDER:\"orden\",OPTION:\"opcion\",GROUP:\"grupo\",ADD_NEW_OPTIONS:\"agregar nuevas opciones\",ADD_A_NEW_OPTION:\"agregar nueva opcione\",EDIT_REMOVE_OPTIONS:\"Editar/Eliminar opciones\",NO_OPTION_ADD_NEW:\"sin opcion : agregar nuevas opciones\",ADD_NEW_GROUPS:\"Agregar nuevos grupos\",ADD_A_NEW_GROUP:\"Agregar nuevo grupo\",EDIT_GROUPS_OPTIONS:\"Editar/Eliminar opciones/grupos\",NO_GROUP_ADD_NEW:\"agregar nuevos grupos\",OK:\"OK\",CANCEL:\"Cancelar\"}),e.translations(\"fr\",{SAY_HI:\"Bonjour\",EDIT_TAB:\"Edition / Creation\",PREVIEW_TAB:\"Aperçu\",WIZARD_LINES:\"lignes\",WIZARD_LAYOUT:\"disposition\",WIZARD_CONTROLS:\"contrôles\",WIZARD_SAVE:\"sauvegarder\",PAGER_PREVIOUS:\"Précédent\",PAGER_NEXT:\"Suivant\",COMMAND_PANEL:\"Commandes\",VISUAL_PANEL:\"Visuel\",ADD_NEW_LINE:\"Ajouter une nouvelle ligne\",SELECTED_LINE:\"Ligne sélectionnée\",NUMBER_OF_COLUMN:\"nombre de colonnes\",APPLY_CTRL2COL:\"Appliquer les contrôles aux colonnes\",CLIC_TAP_2_OPEN:\"Cliquer sur une colonne pour ouvrir le menu d'édition\",SELECT_2_APPLY_COL:\"Sélectionner un contrôle puis valider pour l'appliquer à la colonne\",CUSTOM_SUBMIT_BTN:\"Personnaliser le texte du bouton envoie\",CUSTOM_CANCEL_BTN:\"Personnaliser le texte du bouton annuler\",NAME_THIS_FORM:\"Nommer le formulaire\",SAVE_THIS_FORM:\"sauvegarder le formulaire\",FINAL_STEP:\"Dernière étape : aperçu du formulaire\",DATA_MODEL:\"MODELE DE DONNEES\",FIELDS_MODEL:\"MODELE DES CHAMPS (modèle compatible base de données)\",SELECT_A_CTRL:\"Sélectionner un contrôle\",SELECT_CTRL_IN_LIST:\"Sélectionner un contrôle dans la liste ci-dessous\",COL_WILL_BE_BLANK:\"La colonne sera vide\",EDIT_PROPERTIES:\"Editer les propriétés\",HEADER_TEXT:\"Texte du titre principal\",ADD_EDIT_HEADER_HERE:\"Editer le textes du titre principal\",SUBTITLE_TEXT:\"Texte du sous-titre\",ADD_EDIT_SUBTIL_HERE:\"Editer le textes du sous-titre\",LABEL_TEXT:\"Texte de l'étiquette\",ADD_EDIT_LABEL_HERE:\"Editer le texte de l'étiquette\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"Editer le placeholder\",REQUIRED:\"Requis\",DESCRIPTION:\"Description\",ADDEDIT_DESCRIPTION:\"Ajouter / editer la description\",DATE_FORMAT:\"Format de la date\",ADD_NEW_RADIO:\"Ajouter un nouveau choix à cocher\",ADD_RADIO_PLACEHOLD:\"Ajouter un nouveau choix à cocher\",EDIT_REMOVE_RADIO:\"Editer / supprimer un choix à cocher\",NO_RADIO_ADD_NEW:\"aucun choix à cocher : en ajouter un\",SEARCH_4_OPTION:\"rechercher une option\",ADD:\"ajouter\",ORDER:\"ordre\",OPTION:\"option\",GROUP:\"groupe\",ADD_NEW_OPTIONS:\"Ajouter de nouvelles options\",ADD_A_NEW_OPTION:\"ajoutre une option\",EDIT_REMOVE_OPTIONS:\"Editer / supprimer des options\",NO_OPTION_ADD_NEW:\"aucune option : en ajouter\",ADD_NEW_GROUPS:\"Ajouter de nouveaux groupes\",ADD_A_NEW_GROUP:\"Ajouter un nouveau groupe\",EDIT_GROUPS_OPTIONS:\"Editer / supprimer les groupes et options\",NO_GROUP_ADD_NEW:\"ajouter de nouveaux groupes\",OK:\"Valider\",CANCEL:\"Annuler\"}),e.translations(\"jp\",{SAY_HI:\"こんにちわ\",EDIT_TAB:\"編集 / 作成\",PREVIEW_TAB:\"プレビュー\",WIZARD_LINES:\"ライン\",WIZARD_LAYOUT:\"レイアウト\",WIZARD_CONTROLS:\"コントロール\",WIZARD_SAVE:\"サーブ\",PAGER_PREVIOUS:\"前\",PAGER_NEXT:\"次\",COMMAND_PANEL:\"コマンド\",VISUAL_PANEL:\"ビジュアル\",ADD_NEW_LINE:\"新しいライン追加\",SELECTED_LINE:\"選択されたライン\",NUMBER_OF_COLUMN:\"カラムの数\",APPLY_CTRL2COL:\"カラムにコントロール適用\",CLIC_TAP_2_OPEN:\"コントロール選択を広げるには列をクリック\",SELECT_2_APPLY_COL:\"好きなコントロールを選び適用\",CUSTOM_SUBMIT_BTN:\"適用ボタンの文字変更する場合\",CUSTOM_CANCEL_BTN:\"キャンセルボタンの文字変更する場合\",NAME_THIS_FORM:\"形式に名前を付ける\",SAVE_THIS_FORM:\"形式をサーブ\",FINAL_STEP:\"ファイナルステップ : プレビュー形式\",DATA_MODEL:\"データーモデル\",FIELDS_MODEL:\"モデルフィールド\",SELECT_A_CTRL:\"コントロールを選び選択\",SELECT_CTRL_IN_LIST:\"以下のリストからコントロールを選び選択\",COL_WILL_BE_BLANK:\"空になる列\",EDIT_PROPERTIES:\"プロパティの変更\",HEADER_TEXT:\"ヘッダーテキスト\",ADD_EDIT_HEADER_HERE:\"ヘッダーテキスト文字変更\",SUBTITLE_TEXT:\"サブタイトル テキスト\",ADD_EDIT_SUBTIL_HERE:\"サブタイトルテキスト文字変更\",LABEL_TEXT:\"ラベルテキスト\",ADD_EDIT_LABEL_HERE:\"ラベルテキスト文字変更\",PLACEHOLDER:\"プレースホルダー\",ADD_EDIT_PLACEHOLD:\"プレースホルダー文字変更\",REQUIRED:\"必須\",DESCRIPTION:\"説明\",ADDEDIT_DESCRIPTION:\"説明の変更\",DATE_FORMAT:\"日付の形式\",ADD_NEW_RADIO:\"新ラジオボタンを追加\",ADD_RADIO_PLACEHOLD:\"新ラジオボタンを追加\",EDIT_REMOVE_RADIO:\"ラジオボタン変更\",NO_RADIO_ADD_NEW:\"ラジオ無し : 新ラジオボタン追加\",SEARCH_4_OPTION:\"オプション検索\",ADD:\"追加\",ORDER:\"順番\",OPTION:\"オプション\",GROUP:\"グループ\",ADD_NEW_OPTIONS:\"新しいオプション追加\",ADD_A_NEW_OPTION:\"新しいオプション追加\",EDIT_REMOVE_OPTIONS:\"オプションの変更\",NO_OPTION_ADD_NEW:\"オプション無し : 新しいオプション追加\",ADD_NEW_GROUPS:\"新しいグループ追加\",ADD_A_NEW_GROUP:\"新しいグループ追加\",EDIT_GROUPS_OPTIONS:\"グループを変更\",NO_GROUP_ADD_NEW:\"グループを追加\",OK:\"オッケー\",CANCEL:\"キャンセル\"}),e.translations(\"tr\",{SAY_HI:\"Merhaba\",EDIT_TAB:\"Düzenle / Oluştur\",PREVIEW_TAB:\"Önizleme\",WIZARD_LINES:\"satırlar\",WIZARD_LAYOUT:\"düzen\",WIZARD_CONTROLS:\"kontroller\",WIZARD_SAVE:\"kaydet\",PAGER_PREVIOUS:\"Geri\",PAGER_NEXT:\"İleri\",COMMAND_PANEL:\"Komut\",VISUAL_PANEL:\"Görsel\",ADD_NEW_LINE:\"Yeni satır ekle\",SELECTED_LINE:\"Seçili satır\",NUMBER_OF_COLUMN:\"sütun sayısı\",APPLY_CTRL2COL:\"Sütunlara form ögesi ekle\",CLIC_TAP_2_OPEN:\"Form ögesi eklemek için sütunlara tıkla\",SELECT_2_APPLY_COL:\"İstediğin ögeyi seçtikten sonra gerekli yerleri doldur ve kaydet\",CUSTOM_SUBMIT_BTN:\"Gönder butonu yazısını düzenle\",CUSTOM_CANCEL_BTN:\"İptal butonu yazısını düzenle\",NAME_THIS_FORM:\"Forma isim ver\",SAVE_THIS_FORM:\"formu kaydet\",FINAL_STEP:\"Son aşama : form önizlemesi\",DATA_MODEL:\"VERİ MODELİ\",FIELDS_MODEL:\"ALAN MODELİ (veritabanına kaydetmeye hazır)\",SELECT_A_CTRL:\"Form ögesi seç\",SELECT_CTRL_IN_LIST:\"Verilen listeden bir form ögesi seç\",COL_WILL_BE_BLANK:\"Sütun boş kalacak\",EDIT_PROPERTIES:\"Özellikleri düzenle\",HEADER_TEXT:\"Başlık yazısı\",ADD_EDIT_HEADER_HERE:\"Başlık yazısını ekle / düzenle\",SUBTITLE_TEXT:\"Altyazı\",ADD_EDIT_SUBTIL_HERE:\"Altyazı ekle / düzenle\",LABEL_TEXT:\"Form ögesinin adı\",ADD_EDIT_LABEL_HERE:\"Ad ekle / düzenle\",PLACEHOLDER:\"Form ögesinin içine geçici yazı ekle\",ADD_EDIT_PLACEHOLD:\"Geçici yazı ekle / düzenle\",REQUIRED:\"Gerekli\",DESCRIPTION:\"Açıklama\",ADDEDIT_DESCRIPTION:\"Açıklama ekle / düzenle\",DATE_FORMAT:\"Tarih formatı\",ADD_NEW_RADIO:\"Radio butonu ekle\",ADD_RADIO_PLACEHOLD:\"radio butonu ekle\",EDIT_REMOVE_RADIO:\"Radio butonunu ekle / düzenle\",NO_RADIO_ADD_NEW:\"radio butonu yok : yeni buton ekle\",SEARCH_4_OPTION:\"seçenek ara\",ADD:\"ekle\",ORDER:\"sıra\",OPTION:\"seçenek\",GROUP:\"grup\",ADD_NEW_OPTIONS:\"Yeni seçenek ekle\",ADD_A_NEW_OPTION:\"yeni seçenek ekle\",EDIT_REMOVE_OPTIONS:\"Seçenekleri düzenle/sil\",NO_OPTION_ADD_NEW:\"seçenek yok : yeni seçenek ekle\",ADD_NEW_GROUPS:\"Yeni grup ekle\",ADD_A_NEW_GROUP:\"Yeni grup ekle\",EDIT_GROUPS_OPTIONS:\"Seçenek/Grup Ekle/sil\",NO_GROUP_ADD_NEW:\"yeni grup ekle\",OK:\"TAMAM\",CANCEL:\"İptal\"})}]),function(){function e(e){function o(){var e={modalAnimated:!1};return e}function l(){return!0}function t(){return!0}function n(){var e=[{name:\"empty\",enabled:!0},{name:\"Header\",enabled:!0},{name:\"TextInput\",enabled:!0},{name:\"Password\",enabled:!0},{name:\"Date\",enabled:!0},{name:\"Texarea\",enabled:!0},{name:\"RichTextEditor\",enabled:!0},{name:\"Radio\",enabled:!0},{name:\"Checkbox\",enabled:!0},{name:\"BasicSelect\",enabled:!0},{name:\"GroupedSelect\",enabled:!0}];return e}function i(e){var o=e===!0?e:e===!1?e:b.modalAnimated;b.modalAnimated=o}function a(){return b.modalAnimated}function r(){return E}function s(e){angular.isString(e)&&angular.forEach(E,function(o){o.name===e&&(o.enabled=!1,console.log(\"disable aControl : \"+o.name,0/0+e))})}function c(e){angular.isDefined(e)&&(e===!0&&(D=!0),e===!1&&(D=!1))}function d(e){angular.isDefined(e)&&(e===!0&&(_=!0),e===!1&&(_=!1))}function u(e){angular.isString(e)&&angular.forEach(E,function(o){o.name===e&&(o.enabled=!0)})}function p(){var e=\"en\";return e}function m(){return e.useSanitizeValueStrategy(\"escape\"),e.fallbackLanguage(T),e.preferredLanguage(T),T}function f(){return h=T,e.preferredLanguage(h),h}function v(o){angular.isString(o)?(h=o,e.preferredLanguage(o)):f()}function y(){return h}function g(e){function o(){return b.modalAnimated}function l(e){i(e)}function t(){return angular.copy(E)}function n(){return D}function a(){return _}function r(o){angular.isString(o)?(h=o,e.use(o)):f()}var s={setModalAnimation:l,getModalAnimationValue:o,getListEnabledControl:t,setLanguage:r,getCurrentLanguage:y,isPreviewPanelVisible:n,arePreviewModelsVisible:a};return s}var b=o(),E=n(),T=p(),h=m(),D=l(),_=t();this.$get=g,this.setModalAnimation=i,this.getModalAnimation=a,this.configuration=b,this.getEnabledControls=r,this.disableControl=s,this.enableControl=u,this.setLanguage=v,this.getCurrentLanguage=y,this.showPreviewPanel=c,this.showPreviewModels=d,g.$inject=[\"$translate\"]}angular.module(\"eda.easyFormSteWayConfigProvider\",[]).provider(\"easyFormSteWayConfig\",e),e.$inject=[\"$translateProvider\"]}(),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,a,r,s,c,d,u){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function m(){return{editTab:{active:!0},previewTab:{active:!1}}}function f(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 v(){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 y(){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 b(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function E(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function T(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function h(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 D(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 _(){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 w(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):a(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 C(){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 O(){e.configuration.configStepCounter=0}function L(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,F(e.configuration.configStepCounter)}function A(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,F(e.configuration.configStepCounter)}function x(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function F(o){N(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=v,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=m(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=y(),e.lineTemplate=g(),e.resetToZeroModel=b,e.countConfigurationModelLines=E,e.setActiveLineNumber=T,e.upThisLine=h,e.downThisLine=D,e.addNewline=_,e.removeThisLine=w,e.increaseNumberOfColumns=C,e.decreaseNumberOfColumns=S,e.resetStepCounter=O,e.nextConfigStep=L,e.previousConfigStep=A,e.stepReachable=x,e.nyaSelect={},e.animationsEnabled=u.getModalAnimationValue(),e.showModalAddCtrlToColumn=R,e.loadExistingFormsList=P(),e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=f,e.saveThisForm=I,P(),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\",\"easyFormSteWayConfig\"]}(),function(){function e(e,o,l,t,n,i,a){function r(){e.nyaSelectFiltered={};var o=[].concat(a.getFilteredNyaSelectObject());angular.extend(e.nyaSelectFiltered,{controls:o,selectedControl:e.nyaSelect.selectedControl,temporyConfig:e.nyaSelect.temporyConfig})}function s(){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 c(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 d(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 u(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 m(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 f(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 v(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 y(){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 b(){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 E(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 T(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 h(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 D(){e.demodt.dt=new Date}function w(){e.demodt.dt=null}function C(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0}function S(){return{formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null}}function O(o){e.nyaSelect.selectedControl=\"none\",B();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&&k()}function L(){\"BasicSelect\"===e.nyaSelect.selectedControl&&I(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&F(),\"Radio\"===e.nyaSelect.selectedControl&&R(),a.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)}function A(){o.dismiss(\"cancel\")}function x(){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 I(){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 N(){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 F(){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 k(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function M(){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&&N(),\"Radio\"===e.nyaSelect.selectedControl&&x()}r()}function B(){e.nyaSelectFiltered.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var q={rows:[]};e.radioRowCollection=q,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=s,e.removeRadioRow=c,e.upThisRadioRow=d,e.downThisRadioRow=u,e.basicSelectRowCollection=q,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=p,e.removeRow=m,e.upThisRow=f,e.downThisRow=v,e.groupedSelectRowCollection=q,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=y,e.addNewGroupToGroupedSelect=g,e.addNewOptionGroupedSelect=b,e.removeGroupedSelectRow=E,e.upThisGroupedSelectRow=T,e.downThisGroupedSelectRow=h,e.demodt={},e.today=D,e.clear=w,e.open=C,e.dateOptions=S(),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=O,e.ok=L,e.cancel=A,e.nyaSelectFiltered={},D(),M()}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:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){p()}function d(){return e.returnSaveEvent}function u(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 p(){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=r,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(s,c,!0),e.$watch(d,u)}function i(e,o,l,t,n,i,a,r,s,c,d,u){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function m(){var e={editTab:{active:!0},previewTab:{active:!1,tabVisible:u.isPreviewPanelVisible(),modelsVisible:u.arePreviewModelsVisible()}};return e}function f(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 v(){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 y(){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 b(){\nreturn e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function E(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function T(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function h(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 D(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 _(){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 w(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):a(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 C(){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 O(){e.configuration.configStepCounter=0}function L(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,N(e.configuration.configStepCounter)}function A(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,N(e.configuration.configStepCounter)}function x(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function N(o){I(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=v,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=m(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=y(),e.lineTemplate=g(),e.resetToZeroModel=b,e.countConfigurationModelLines=E,e.setActiveLineNumber=T,e.upThisLine=h,e.downThisLine=D,e.addNewline=_,e.removeThisLine=w,e.increaseNumberOfColumns=C,e.decreaseNumberOfColumns=S,e.resetStepCounter=O,e.nextConfigStep=L,e.previousConfigStep=A,e.stepReachable=x,e.nyaSelect={},e.animationsEnabled=u.getModalAnimationValue(),e.showModalAddCtrlToColumn=R,e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=f,e.saveThisForm=P,e.returnSaveEvent=!1,c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}i.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\",\"easyFormSteWayConfig\"];var a={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaStepWayEasyFormGeneratorTemplate.html\",link:n};return a}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(e){function o(e){return u(e)}function l(){var e={};return u(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function n(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function i(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function a(e,o,l,t){return u(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 r(e,o,l,t){var n=m(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();f(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),f(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 s(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 c(){return{formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function d(){var e={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:{messages:{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(p(angular.copy(e)))}function u(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:{messages:{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 p(o){var l=e.getListEnabledControl(),t=[];return angular.forEach(l,function(e){angular.forEach(o.controls,function(o){o.id===e.name&&e.enabled===!0&&(t=t.concat(o))})}),t}function m(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 f(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 v={initNyaSelect:o,getNyASelectFromSelectedLineColumn:a,bindConfigurationModelFromModalReturn:r,applyConfigToSelectedControl:s,resetTemporyConfig:c,getControlsDefinition:l,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:n,refreshControlFormlyValidation:i,getFilteredNyaSelectObject:d};return v}angular.module(\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",e),e.$inject=[\"easyFormSteWayConfig\"]}(),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),h(\"configuration model is bound\",\"lines are bound to configuration model.\")}return T(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function l(e,o,l){t(o),E(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):a(o,e,c)),2===e.lines[c].columns.length&&r(o,e,c),3===e.lines[c].columns.length&&s(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 a(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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(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 r(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)+\"


\"},a={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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(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-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:y(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:g(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:u(o.lines[l].columns[1].control),validators:p(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 s=[];s.push(\"header\"===o.lines[l].columns[0].control.type?t:a),s.push(\"header\"===o.lines[l].columns[1].control.type?n:r),e.push({className:\"row\",fieldGroup:s})}function s(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)+\"


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

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


\"},r={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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(r,o,l);var s={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:y(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:g(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:u(o.lines[l].columns[1].control),validators:p(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(s,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:y(o.lines[l].columns[2].control),label:c(o.lines[l].columns[2].control),required:f(o.lines[l].columns[2].control),placeholder:g(o.lines[l].columns[2].control),description:b(o.lines[l].columns[2].control),options:v(o.lines[l].columns[2].control)},expressionProperties:u(o.lines[l].columns[2].control),validators:p(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 E=[];E.push(\"header\"===o.lines[l].columns[0].control.type?t:r),E.push(\"header\"===o.lines[l].columns[1].control.type?n:s),E.push(\"header\"===o.lines[l].columns[2].control.type?a:d),e.push({className:\"row\",fieldGroup:E})}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 u(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function p(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 y(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function g(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 E(e){var o={};return angular.copy(o,e),!0}function T(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!1,l.title=e,l.Message=o,l}function h(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!0,l.title=e,l.Message=o,l}var D={initConfigurationEditFromScratch:e,\nbindConfigurationLines:o,applyConfigurationToformlyModel:l};return D}angular.module(\"ngwfApp.services.formFieldManage\",[]).factory(\"formFieldManage\",e),e.$inject=[]}(),function(){function e(){function e(){return\"selectOptionManage is here.\"}function o(e){u(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 a(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 r(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 s(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 u(e){var o={rows:[]};angular.copy(o,e)}var p={testMe:e,initModel:o,isOptionUnique:l,isOptionValidFormat:t,addNewOptionRadio:n,addNewOptionBasicSelect:i,addNewOptionGroupedSelect:a,removeOption:r,upthisOption:s,downthisOption:c};return p}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_DragDropWay_As_Module.html b/index_DragDropWay_As_Module.html index 9e662fdd..14b6fd81 100644 --- a/index_DragDropWay_As_Module.html +++ b/index_DragDropWay_As_Module.html @@ -59,6 +59,44 @@
+ +
+

Easy Form Generator : Drag and drop way

+

This is currently in development (BETA).

+

It may change so I can't tell you this will look like the same when released.

+

 go github

+ +
+

+ How to : +

+
    +
  • +
    + expand a group of control (left column) +
    +
  • +
  • drag controls from left column then drop into right column
  • +
  • drag and drop controls within right column to re-order controls
  • +
  • drag and drop lines of controls within right column to re-order lines
  • +
  • right click controls (right column) to edit and customize it
  • +
  • Check your form anytime (preview tab - upper right)
  • +
+
+
+ +
+ +
+
+
+ + + + +
', - link: function ($scope, el, attrs) { - /* Inspect */ - //console.log($scope); - //console.log(el); - //console.log(attrs); - - /* Parameters */ - var param = {}; - - param.side = $scope.psSide || 'right'; - param.speed = $scope.psSpeed || '0.5'; - param.size = $scope.psSize || '300px'; - param.zindex = 1000; // Override with custom CSS - param.className = $scope.psClass || 'ng-pageslide'; - param.cloak = $scope.psCloak && $scope.psCloak.toLowerCase() == 'false' ? false : true; - param.squeeze = Boolean($scope.psSqueeze) || false; - param.push = Boolean($scope.psPush) || false; - param.container = $scope.psContainer || false; - - // Apply Class - el.addClass(param.className); - - /* DOM manipulation */ - var content = null; - var slider = null; - var body = param.container ? document.getElementById(param.container) : document.body; - - slider = el[0]; - - // Check for div tag - if (slider.tagName.toLowerCase() !== 'div' && - slider.tagName.toLowerCase() !== 'pageslide') - throw new Error('Pageslide can only be applied to
or elements'); - - // Check for content - if (slider.children.length === 0) - throw new Error('You have to content inside the '); - - content = angular.element(slider.children); - - /* Append */ - body.appendChild(slider); - - /* Style setup */ - slider.style.zIndex = param.zindex; - slider.style.position = param.container !== false ? 'absolute' : 'fixed'; - slider.style.width = 0; - slider.style.height = 0; - slider.style.overflow = 'hidden'; - slider.style.transitionDuration = param.speed + 's'; - slider.style.webkitTransitionDuration = param.speed + 's'; - slider.style.transitionProperty = 'width, height'; - if (param.squeeze) { - body.style.position = 'absolute'; - body.style.transitionDuration = param.speed + 's'; - body.style.webkitTransitionDuration = param.speed + 's'; - body.style.transitionProperty = 'top, bottom, left, right'; - } - - switch (param.side) { - case 'right': - slider.style.height = attrs.psCustomHeight || '100%'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - case 'left': - slider.style.height = attrs.psCustomHeight || '100%'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.left = attrs.psCustomLeft || '0px'; - break; - case 'top': - slider.style.width = attrs.psCustomWidth || '100%'; - slider.style.left = attrs.psCustomLeft || '0px'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - case 'bottom': - slider.style.width = attrs.psCustomWidth || '100%'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.left = attrs.psCustomLeft || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - } - - - /* Closed */ - function psClose(slider, param) { - if (slider && slider.style.width !== 0 && slider.style.width !== 0) { - if (param.cloak) content.css('display', 'none'); - switch (param.side) { - case 'right': - slider.style.width = '0px'; - if (param.squeeze) body.style.right = '0px'; - if (param.push) { - body.style.right = '0px'; - body.style.left = '0px'; - } - break; - case 'left': - slider.style.width = '0px'; - if (param.squeeze) body.style.left = '0px'; - if (param.push) { - body.style.left = '0px'; - body.style.right = '0px'; - } - break; - case 'top': - slider.style.height = '0px'; - if (param.squeeze) body.style.top = '0px'; - if (param.push) { - body.style.top = '0px'; - body.style.bottom = '0px'; - } - break; - case 'bottom': - slider.style.height = '0px'; - if (param.squeeze) body.style.bottom = '0px'; - if (param.push) { - body.style.bottom = '0px'; - body.style.top = '0px'; - } - break; - } - } - $scope.psOpen = false; - } - - /* Open */ - function psOpen(slider, param) { - if (slider.style.width !== 0 && slider.style.width !== 0) { - switch (param.side) { - case 'right': - slider.style.width = param.size; - if (param.squeeze) body.style.right = param.size; - if (param.push) { - body.style.right = param.size; - body.style.left = '-' + param.size; - } - break; - case 'left': - slider.style.width = param.size; - if (param.squeeze) body.style.left = param.size; - if (param.push) { - body.style.left = param.size; - body.style.right = '-' + param.size; - } - break; - case 'top': - slider.style.height = param.size; - if (param.squeeze) body.style.top = param.size; - if (param.push) { - body.style.top = param.size; - body.style.bottom = '-' + param.size; - } - break; - case 'bottom': - slider.style.height = param.size; - if (param.squeeze) body.style.bottom = param.size; - if (param.push) { - body.style.bottom = param.size; - body.style.top = '-' + param.size; - } - break; - } - setTimeout(function() { - if (param.cloak) content.css('display', 'block'); - }, (param.speed * 1000)); - - } - } - - function isFunction(functionToCheck) { - var getType = {}; - return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; - } - - /* - * Watchers - * */ - - $scope.$watch('psOpen', function(value) { - if (!!value) { - // Open - psOpen(slider, param); - } else { - // Close - psClose(slider, param); - } - }); - - - /* - * Events - * */ - - $scope.$on('$destroy', function () { - body.removeChild(slider); - }); - - if ($scope.psAutoClose) { - $scope.$on('$locationChangeStart', function() { - psClose(slider, param); - }); - $scope.$on('$stateChangeStart', function() { - psClose(slider, param); - }); - - } - } - }; - } -]); +;(function(){ + 'use strict'; + + angular + .module('pageslide-directive', []) + .directive('pageslide', [ + function () { + var defaults = {}; + + /* Return directive definition object */ + + return { + restrict: 'EAC', + transclude: false, + scope: { + psOpen: '=?', + psAutoClose: '=?', + psSide: '@', + psSpeed: '@', + psClass: '@', + psSize: '@', + psSqueeze: '@', + psCloak: '@', + psPush: '@', + psContainer: '@' + }, + //template: '
', + link: function ($scope, el, attrs) { + /* Inspect */ + //console.log($scope); + //console.log(el); + //console.log(attrs); + + /* Parameters */ + var param = {}; + + param.side = $scope.psSide || 'right'; + param.speed = $scope.psSpeed || '0.5'; + param.size = $scope.psSize || '300px'; + param.zindex = 1000; // Override with custom CSS + param.className = $scope.psClass || 'ng-pageslide'; + param.cloak = $scope.psCloak && $scope.psCloak.toLowerCase() == 'false' ? false : true; + param.squeeze = Boolean($scope.psSqueeze) || false; + param.push = Boolean($scope.psPush) || false; + param.container = $scope.psContainer || false; + + // Apply Class + el.addClass(param.className); + + /* DOM manipulation */ + var content = null; + var slider = null; + var body = param.container ? document.getElementById(param.container) : document.body; + + slider = el[0]; + + // Check for div tag + if (slider.tagName.toLowerCase() !== 'div' && + slider.tagName.toLowerCase() !== 'pageslide') + throw new Error('Pageslide can only be applied to
or elements'); + + // Check for content + if (slider.children.length === 0) + throw new Error('You have to content inside the '); + + content = angular.element(slider.children); + + /* Append */ + body.appendChild(slider); + + /* Style setup */ + slider.style.zIndex = param.zindex; + slider.style.position = param.container !== false ? 'absolute' : 'fixed'; + slider.style.width = 0; + slider.style.height = 0; + slider.style.overflow = 'hidden'; + slider.style.transitionDuration = param.speed + 's'; + slider.style.webkitTransitionDuration = param.speed + 's'; + slider.style.transitionProperty = 'width, height'; + if (param.squeeze) { + body.style.position = 'absolute'; + body.style.transitionDuration = param.speed + 's'; + body.style.webkitTransitionDuration = param.speed + 's'; + body.style.transitionProperty = 'top, bottom, left, right'; + } + + switch (param.side) { + case 'right': + slider.style.height = attrs.psCustomHeight || '100%'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + case 'left': + slider.style.height = attrs.psCustomHeight || '100%'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.left = attrs.psCustomLeft || '0px'; + break; + case 'top': + slider.style.width = attrs.psCustomWidth || '100%'; + slider.style.left = attrs.psCustomLeft || '0px'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + case 'bottom': + slider.style.width = attrs.psCustomWidth || '100%'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.left = attrs.psCustomLeft || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + } + + + /* Closed */ + function psClose(slider, param) { + if (slider && slider.style.width !== 0 && slider.style.width !== 0) { + if (param.cloak) content.css('display', 'none'); + switch (param.side) { + case 'right': + slider.style.width = '0px'; + if (param.squeeze) body.style.right = '0px'; + if (param.push) { + body.style.right = '0px'; + body.style.left = '0px'; + } + break; + case 'left': + slider.style.width = '0px'; + if (param.squeeze) body.style.left = '0px'; + if (param.push) { + body.style.left = '0px'; + body.style.right = '0px'; + } + break; + case 'top': + slider.style.height = '0px'; + if (param.squeeze) body.style.top = '0px'; + if (param.push) { + body.style.top = '0px'; + body.style.bottom = '0px'; + } + break; + case 'bottom': + slider.style.height = '0px'; + if (param.squeeze) body.style.bottom = '0px'; + if (param.push) { + body.style.bottom = '0px'; + body.style.top = '0px'; + } + break; + } + } + $scope.psOpen = false; + } + + /* Open */ + function psOpen(slider, param) { + if (slider.style.width !== 0 && slider.style.width !== 0) { + switch (param.side) { + case 'right': + slider.style.width = param.size; + if (param.squeeze) body.style.right = param.size; + if (param.push) { + body.style.right = param.size; + body.style.left = '-' + param.size; + } + break; + case 'left': + slider.style.width = param.size; + if (param.squeeze) body.style.left = param.size; + if (param.push) { + body.style.left = param.size; + body.style.right = '-' + param.size; + } + break; + case 'top': + slider.style.height = param.size; + if (param.squeeze) body.style.top = param.size; + if (param.push) { + body.style.top = param.size; + body.style.bottom = '-' + param.size; + } + break; + case 'bottom': + slider.style.height = param.size; + if (param.squeeze) body.style.bottom = param.size; + if (param.push) { + body.style.bottom = param.size; + body.style.top = '-' + param.size; + } + break; + } + setTimeout(function() { + if (param.cloak) content.css('display', 'block'); + }, (param.speed * 1000)); + + } + } + + function isFunction(functionToCheck) { + var getType = {}; + return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; + } + + /* + * Watchers + * */ + + $scope.$watch('psOpen', function(value) { + if (!!value) { + // Open + psOpen(slider, param); + } else { + // Close + psClose(slider, param); + } + }); + + + /* + * Events + * */ + + $scope.$on('$destroy', function () { + body.removeChild(slider); + }); + + if ($scope.psAutoClose) { + $scope.$on('$locationChangeStart', function() { + psClose(slider, param); + }); + $scope.$on('$stateChangeStart', function() { + psClose(slider, param); + }); + + } + } + }; + } + ]); +})(); })(this); \ No newline at end of file diff --git a/public/js/eda.dragdropway.min.js b/public/js/eda.dragdropway.min.js index c3336f4d..dba7bb14 100644 --- a/public/js/eda.dragdropway.min.js +++ b/public/js/eda.dragdropway.min.js @@ -1,6 +1,6 @@ !function(){"use strict";function e(e){function o(){return['"].join("")}function t(){return['
','
','
','
','
  Edit :
',"
","
",'
','
','
Column will be blank
',"
","
","
",f,"
"].join("")}function n(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function l(){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 d(){return['
','
','
','
','
  Edit properties :
',"
","
",'
','
','
','
',' ','
',' ',"
","
","
","
",'
','
','
','
',' ','
','
 
',' ',"
","
","
","
",'
','
','
','
',' ','
',' ',"
","
","
","
","
",f,"
"].join("")}function s(){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",n()),e.put("editPanelSubTitleCtrl-tpls.html",l()),e.put("editPanelTextInputCtrl-tpls.html",i()),e.put("editPanelPasswordCtrl-tpls.html",r()),e.put("editPanelDateCtrl-tpls.html",a()),e.put("editPanelTextareaCtrl-tpls.html",d()),e.put("editPanelRichTextEditorCtrl-tpls.html",s()),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("eda.easyformGen.dragdropway",["edaApp"]),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.31").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 n(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():""})}console.info("app in config"),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 l=['
','
','

{{options.templateOptions.placeholder}}

',"
","

","
"].join(" ");e.setType({name:"subTitle",template:l}),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[n(e)]={attribute:e}}),angular.forEach(r,function(e){a[n(e)]={bound:e}});var d=[""].join(" ");e.setType({name:"datepicker",template:d,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 s=['',""].join(" ");e.setType({name:"richEditor",template:s}),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("edaDragDropWayEasyFormGeneratorTemplate.html",'
  Select a control

   Customize form buttons

   DATA MODEL

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

   FIELDS MODEL (ready to save to database one)

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

   Save this form


Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put("editModalTemplate.html","

no use right now

")}]),angular.module("edaApp.providers.dragDropConfigProvider",[]).provider("dragDropConfig",[function(){function e(e,o){if(n[0].length>0){if(n[0].lengthi;i++)n[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){n[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[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}},n=[[],[[]]],l={itemBeingDragged:""};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return l},this.setItemsNotTocount=function(e){l=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){"undefined"!=typeof o&&"undefined"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return n},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return l},e.getItemCssDependingNumberItemsInRow=function(e){if("undefined"!=typeof e){for(var t="",n=o.length-1;n>=0;n--)o[n].numberItemPerRow===e&&(t=o[n].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 n=!0;angular.forEach(e,function(e){var o=e;t===o&&(n=!1)}),n&&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 n},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"}},n={submitButtonText:"submit",cancelButtonText:"cancel",lines:[].concat(o)},l={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:""}},d=[{controlType:"datepicker",properties:[{isRoot:!1,isTemplateOptions:!0,value:"datepickerPopup"}]}];this.getAllParticularControlProperties=function(){return d},this.addParticularControlProperties=function(e){if("controlType"in e&&"properties"in e){var o=!1;d.length>0&&d.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||d.push(e)}return d},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 s={};return s.getEasyFormListControls=function(){return e},s.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(n);return"undefined"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return"undefined"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormEmptyConfigurationLineModel=function(){return o},s.getEasyFormConfigurationEmptyControlModel=function(){return t},s.getRawHeaderTemplates=function(){return r},s.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}},s.getRawFormlyControlTemplates=function(){return a},s.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&&d.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=""),e.isTemplateOptions&&(t.templateOptions[e.value]="")})}),t}},s}]}]),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","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager",function(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:"warning",title:"Last line",body:"Can't delete the last line",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return"undefined"==typeof e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(l.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),l.clear(),l.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if("itemType"===a&&!n.label)return!1;if("containerType"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if("itemType"===f&&!s.label)return!1;if("containerType"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on("$destroy",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),"undefined"!=typeof s.getEditPanelModelLineIndex()&&"undefined"!=typeof s.getEditPanelModelColumnIndex()&&"undefined"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}]),angular.module("edaApp.controllers.edaEditMODALController",[]).controller("edaEditMODALController",["$scope","$modalInstance","nyaSelect","toaster","$timeout","selectOptionManage","controllerModalProxy",function(e,o,t,n,l,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 d(){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 n={name:e.radioRowCollection.rows[t].option,value:t,group:""};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}function s(){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 n={name:e.basicSelectRowCollection.rows[t].option,value:t,group:""};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}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 n=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,"group"));angular.copy(n,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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.pop({type:"warning",timeout:2e3,title:"Group already exists",body:"No group added.",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else n.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&&n.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&&n.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&&n.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&&n.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 v=e.nyaSelect.controls.length-1;v>=0;v--)e.nyaSelect.controls[v].id===t.selectedControl&&(e.modelNyaSelect=t.controls[v]);"BasicSelect"===e.nyaSelect.selectedControl&&s(),"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&&d(),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,n,l){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=l.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=l.basicSelectRowCollection,a.newOptionBasicSelect=l.newOptionBasicSelect,a.groupedSelectRowCollection=l.groupedSelectRowCollection,a.newOptionGroupedSelect=l.newOptionGroupedSelect,a.GroupedSelectGroups=l.GroupedSelectGroups,a.newGroupGroupedSelect=l.newGroupGroupedSelect,a.groupSelectGroupClick=l.groupSelectGroupClick,a.radioRowCollection=l.radioRowCollection,a.newOptionRadio=l.newOptionRadio,l.resetAllTemporyModels(),"none"!==a.proxyModel.temporyConfig.selectedControl){for(var d=a.proxyModel.controls.length-1;d>=0;d--)a.proxyModel.controls[d].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[d]);"BasicSelect"===a.proxyModel.temporyConfig.selectedControl&&l.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),"GroupedSelect"===a.proxyModel.temporyConfig.selectedControl&&l.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),"Radio"===a.proxyModel.temporyConfig.selectedControl&&l.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return l.basicSelectRowCollection=a.basicSelectRowCollection,l.newOptionBasicSelect=a.newOptionBasicSelect,l.groupedSelectRowCollection=a.groupedSelectRowCollection,l.newOptionGroupedSelect=a.newOptionGroupedSelect,l.GroupedSelectGroups=a.GroupedSelectGroups,l.newGroupGroupedSelect=a.newGroupGroupedSelect,l.groupSelectGroupClick=a.groupSelectGroupClick,l.radioRowCollection=a.radioRowCollection,l.newOptionRadio=a.newOptionRadio,l.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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,n){var l;t.$watch(function(){return n[0].children.length},function(i,r){if(i!==r){for(var a=0,d=[],s=n[0].children.length-1;s>=0;s--)e.isHtmlElementToCount(n[0].children[s].classList)?(a++,d.push({item:s,isReal:!0})):d.push({item:s,isReal:!1});t.contentRealCount=a,l=o(function(){e.updateLineItemCss(t.fullModel,d,t.parentIndex,t.currentIndex,a)},20)}}),t.$on("$destroy",function(){console.warn("ddContentCounter timer destruction!"),o.cancel(l)})}}}]),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,n,l){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),l(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 n=angular.lowercase(o);("true"===n||"1"===n)&&console.dir({whoAmI:"I am verbose from ddDecorDropZone link",verbodeMode:n,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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex,s=e.getDistinctItemCssClass();if(angular.forEach(s,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch("cssClass",function(e,o){e!==o&&(angular.forEach(s,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:d,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}"0"===o.parentParentIndex&&t.addClass(s[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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,""!==r){var s=angular.lowercase(r);("true"===s||"1"===s)&&console.dir({whoAmI:"I am verbose from ddDecorLine directive link",verbodeMode:s,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:d,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","edaApp.directives.edaDragdropWayEasyFormGenDirective"]),function(){function e(e,o,t,n){function l(e,l,i){function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}];return e}function d(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){m()}function p(){return e.returnSaveEvent}function u(o,t){if(o===!0){var n={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:n}),e.returnSaveEvent=!1}}function m(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var n=r();e.configurationLoaded={},o.bindConfigurationLines(e.configurationLoaded,n,!1),e.configuration=angular.copy(e.configurationLoaded),t.loadDragDropModelFromConfigurationModel(e.configuration,e.dragDropModel),f(e.configuration),t.refreshControlsKeys(e.configuration,e.dragDropModel),console.info("compare both configuration model"),console.dir({"loaded one":angular.copy(e.configurationLoaded),"bound one":angular.copy(e.configuration)}),o.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=d,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"}}function f(e){angular.forEach(e.lines,function(e){var o=n.getItemCssDependingNumberItemsInRow(e.columns.length);angular.forEach(e.columns,function(e){e.control.className=o})})}e.$watch(s,c,!0),e.$watch(p,u)}function i(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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.returnSaveEvent=!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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:"warning",title:"Last line",body:"Can't delete the last line",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return"undefined"==typeof e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(l.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),l.clear(),l.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if("itemType"===a&&!n.label)return!1;if("containerType"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if("itemType"===f&&!s.label)return!1;if("containerType"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on("$destroy",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),"undefined"!=typeof s.getEditPanelModelLineIndex()&&"undefined"!=typeof s.getEditPanelModelColumnIndex()&&"undefined"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=["$scope","easyFormGenVersion","$filter","$anchorScroll","toaster","$timeout","$modal","$log","formFieldManage","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager"];var r={restrict:"E",scope:{edaEasyFormGeneratorModel:"=",edaSaveFormEvent:"&edaSaveFormEvent"},controller:i,controllerAs:"vm",replace:!1,templateUrl:"edaDragDropWayEasyFormGeneratorTemplate.html",link:l};return r}angular.module("edaApp.directives.edaDragdropWayEasyFormGenDirective",[]).directive("edaDragdropWayEasyFormGen",e),e.$inject=["$timeout","formFieldManage","ddModelConfModelProxyService","dragDropConfig"]}(),angular.module("edaApp.directives.edaRightClickDirective",[]).directive("edaRightClick",["$parse",function(e){return{restrict:"A",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on("contextmenu",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module("edaApp.directives.edaStRationDirective",[]).directive("stRatio",[function(){return{restrict:"A",link:function(e,o,t){var n=+t.stRatio;o.css("width",n+"%")}}}]),angular.module("edaApp.services.dragDropItemCountersService",[]).factory("dragDropItemCounterService",["dragDropConfig",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if("undefined"!=typeof o&&"undefined"!=typeof t&&"undefined"!=typeof n&&"undefined"!=typeof l&&"undefined"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if("undefined"!=typeof t&&"undefined"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module("edaApp.services.dragDropModelConfigModelProxyService",[]).factory("ddModelConfModelProxyService",["EasyFormGenFormlyBindingModels","controllerModalProxy","dragDropConfig","$parse",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n("controls");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)"undefined"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+"-"+Date.now();return i(t,o)===!0?t:(t=e+"-"+Date.now(),i(t,o)===!0?t:t=e+"-"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n("control.selectedControl").assign(o,n("selectedControl")(e)),n("control.type").assign(o,n("formlyType")(e)),n("control.key").assign(o,r(n("control.type")(o),t)),n("control.subtype").assign(o,n("formlySubtype")(e)),n("control.templateOptions.label").assign(o,n("formlyLabel")(e)),n("control.templateOptions.required").assign(o,n("formlyRequired")(e)),n("control.templateOptions.description").assign(o,n("formlyDesciption")(e)),n("control.templateOptions.placeholder").assign(o,n("formlyPlaceholder")(e)),n("control.templateOptions.options").assign(o,n("formlyOptions")(e)),"datepicker"===n("control.type")(o)&&n("control.templateOptions.datepickerPopup").assign(o,n("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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if("undefined"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){"undefined"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:"empty",cssClass:"col-xs-12",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t="none",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),"undefined"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl="undefined"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:"none",e.temporyConfig.formlyLabel="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:"",e.temporyConfig.formlyRequired="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:"",e.temporyConfig.formlyDesciption="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:"",e.temporyConfig.formlyPlaceholder="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:"",e.temporyConfig.formlyOptions="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:"","Date"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:"")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+"-"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn("debug edaEditCtrlControllerModalProxy"),console.dir(n),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,"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+"-"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:""}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,"group"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module("edaApp.services.formFieldManage",[]).factory("formFieldManage",["EasyFormGenFormlyBindingModels",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:"row",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if("[object Array]"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i("configuration model is bound","lines are bound to configuration model.")}return l("lines is not an array","Checks lines type, it is not an array.")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:""},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details="",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass("dndDragover"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on("dragover",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass("dndDragover"),e.preventDefault(),e.stopPropagation(),!1)}),i.on("drop",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData("Text")||e.dataTransfer.getData("text/plain");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect="none"===e.dataTransfer.dropEffect?"copy"===e.dataTransfer.effectAllowed||"move"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?"copy":"move":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on("dragleave",function(e){e=e.originalEvent||e,i.removeClass("dndDragover"),o(function(){i.hasClass("dndDragover")||m.remove()},100)})}}]).factory("dndDragTypeWorkaround",function(){return{}}).factory("dndDropEffectWorkaround",function(){return{}})}(),angular.module("pageslide-directive",[]).directive("pageslide",[function(){return{restrict:"EAC",transclude:!1,scope:{psOpen:"=?",psAutoClose:"=?",psSide:"@",psSpeed:"@",psClass:"@",psSize:"@",psSqueeze:"@",psCloak:"@",psPush:"@",psContainer:"@"},link:function(e,o,t){function n(o,t){ -if(o&&0!==o.style.width&&0!==o.style.width)switch(t.cloak&&r.css("display","none"),t.side){case"right":o.style.width="0px",t.squeeze&&(d.style.right="0px"),t.push&&(d.style.right="0px",d.style.left="0px");break;case"left":o.style.width="0px",t.squeeze&&(d.style.left="0px"),t.push&&(d.style.left="0px",d.style.right="0px");break;case"top":o.style.height="0px",t.squeeze&&(d.style.top="0px"),t.push&&(d.style.top="0px",d.style.bottom="0px");break;case"bottom":o.style.height="0px",t.squeeze&&(d.style.bottom="0px"),t.push&&(d.style.bottom="0px",d.style.top="0px")}e.psOpen=!1}function l(e,o){if(0!==e.style.width&&0!==e.style.width){switch(o.side){case"right":e.style.width=o.size,o.squeeze&&(d.style.right=o.size),o.push&&(d.style.right=o.size,d.style.left="-"+o.size);break;case"left":e.style.width=o.size,o.squeeze&&(d.style.left=o.size),o.push&&(d.style.left=o.size,d.style.right="-"+o.size);break;case"top":e.style.height=o.size,o.squeeze&&(d.style.top=o.size),o.push&&(d.style.top=o.size,d.style.bottom="-"+o.size);break;case"bottom":e.style.height=o.size,o.squeeze&&(d.style.bottom=o.size),o.push&&(d.style.bottom=o.size,d.style.top="-"+o.size)}setTimeout(function(){o.cloak&&r.css("display","block")},1e3*o.speed)}}var i={};i.side=e.psSide||"right",i.speed=e.psSpeed||"0.5",i.size=e.psSize||"300px",i.zindex=1e3,i.className=e.psClass||"ng-pageslide",i.cloak=e.psCloak&&"false"==e.psCloak.toLowerCase()?!1:!0,i.squeeze=Boolean(e.psSqueeze)||!1,i.push=Boolean(e.psPush)||!1,i.container=e.psContainer||!1,o.addClass(i.className);var r=null,a=null,d=i.container?document.getElementById(i.container):document.body;if(a=o[0],"div"!==a.tagName.toLowerCase()&&"pageslide"!==a.tagName.toLowerCase())throw new Error("Pageslide can only be applied to
or elements");if(0===a.children.length)throw new Error("You have to content inside the ");switch(r=angular.element(a.children),d.appendChild(a),a.style.zIndex=i.zindex,a.style.position=i.container!==!1?"absolute":"fixed",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a.style.transitionDuration=i.speed+"s",a.style.webkitTransitionDuration=i.speed+"s",a.style.transitionProperty="width, height",i.squeeze&&(d.style.position="absolute",d.style.transitionDuration=i.speed+"s",d.style.webkitTransitionDuration=i.speed+"s",d.style.transitionProperty="top, bottom, left, right"),i.side){case"right":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.right=t.psCustomRight||"0px";break;case"left":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px";break;case"top":a.style.width=t.psCustomWidth||"100%",a.style.left=t.psCustomLeft||"0px",a.style.top=t.psCustomTop||"0px",a.style.right=t.psCustomRight||"0px";break;case"bottom":a.style.width=t.psCustomWidth||"100%",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px",a.style.right=t.psCustomRight||"0px"}e.$watch("psOpen",function(e){e?l(a,i):n(a,i)}),e.$on("$destroy",function(){d.removeChild(a)}),e.psAutoClose&&(e.$on("$locationChangeStart",function(){n(a,i)}),e.$on("$stateChangeStart",function(){n(a,i)}))}}}])}(this); +numColumn:-1,exist:!0,control:{type:"none",key:"none"}});e.configuration.lines[e.configuration.activeLine-1].columns[o-1].numColumn=o}d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.decreaseNumberOfColumns=function(o,t){e.configuration.lines[e.configuration.activeLine-1].columns.length>1&&e.configuration.lines[e.configuration.activeLine-1].columns.splice(e.configuration.lines[e.configuration.activeLine-1].columns.length-1,1),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return"undefined"==typeof e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===e.configuration.formName?(l.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(l.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),l.clear(),l.pop({type:"info",timeout:2e3,title:"Form would be saved if it were not a static example",body:"",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:"editModalTemplate.html",controller:"edaEditMODALController",size:"lg",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if("itemType"===a&&!n.label)return!1;if("containerType"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on("$destroy",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if("itemType"===f&&!s.label)return!1;if("containerType"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on("$destroy",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),"undefined"!=typeof s.getEditPanelModelLineIndex()&&"undefined"!=typeof s.getEditPanelModelColumnIndex()&&"undefined"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on("$destroy",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=["$scope","easyFormGenVersion","$filter","$anchorScroll","toaster","$timeout","$modal","$log","formFieldManage","controllerModalProxy","dragDropItemDecorationService","dragDropConfig","ddModelConfModelProxyService","ddItemRightClickedManager"];var r={restrict:"E",scope:{edaEasyFormGeneratorModel:"=",edaSaveFormEvent:"&edaSaveFormEvent"},controller:i,controllerAs:"vm",replace:!1,templateUrl:"edaDragDropWayEasyFormGeneratorTemplate.html",link:l};return r}angular.module("edaApp.directives.edaDragdropWayEasyFormGenDirective",[]).directive("edaDragdropWayEasyFormGen",e),e.$inject=["$timeout","formFieldManage","ddModelConfModelProxyService","dragDropConfig"]}(),angular.module("edaApp.directives.edaRightClickDirective",[]).directive("edaRightClick",["$parse",function(e){return{restrict:"A",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on("contextmenu",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module("edaApp.directives.edaStRationDirective",[]).directive("stRatio",[function(){return{restrict:"A",link:function(e,o,t){var n=+t.stRatio;o.css("width",n+"%")}}}]),angular.module("edaApp.services.dragDropItemCountersService",[]).factory("dragDropItemCounterService",["dragDropConfig",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if("undefined"!=typeof o&&"undefined"!=typeof t&&"undefined"!=typeof n&&"undefined"!=typeof l&&"undefined"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if("undefined"!=typeof t&&"undefined"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module("edaApp.services.dragDropModelConfigModelProxyService",[]).factory("ddModelConfModelProxyService",["EasyFormGenFormlyBindingModels","controllerModalProxy","dragDropConfig","$parse",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n("controls");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)"undefined"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+"-"+Date.now();return i(t,o)===!0?t:(t=e+"-"+Date.now(),i(t,o)===!0?t:t=e+"-"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n("control.selectedControl").assign(o,n("selectedControl")(e)),n("control.type").assign(o,n("formlyType")(e)),n("control.key").assign(o,r(n("control.type")(o),t)),n("control.subtype").assign(o,n("formlySubtype")(e)),n("control.templateOptions.label").assign(o,n("formlyLabel")(e)),n("control.templateOptions.required").assign(o,n("formlyRequired")(e)),n("control.templateOptions.description").assign(o,n("formlyDesciption")(e)),n("control.templateOptions.placeholder").assign(o,n("formlyPlaceholder")(e)),n("control.templateOptions.options").assign(o,n("formlyOptions")(e)),"datepicker"===n("control.type")(o)&&n("control.templateOptions.datepickerPopup").assign(o,n("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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if("undefined"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){"undefined"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:"empty",cssClass:"col-xs-12",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t="none",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),"undefined"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl="undefined"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:"none",e.temporyConfig.formlyLabel="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:"",e.temporyConfig.formlyRequired="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:"",e.temporyConfig.formlyDesciption="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:"",e.temporyConfig.formlyPlaceholder="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:"",e.temporyConfig.formlyOptions="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:"","Date"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup="undefined"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:"")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+"-"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn("debug edaEditCtrlControllerModalProxy"),console.dir(n),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,"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+"-"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:""}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:""}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,"group"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:""};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module("edaApp.services.formFieldManage",[]).factory("formFieldManage",["EasyFormGenFormlyBindingModels",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:"row",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if("[object Array]"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i("configuration model is bound","lines are bound to configuration model.")}return l("lines is not an array","Checks lines type, it is not an array.")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:""},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details="",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:""},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details="",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass("dndDragover"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on("dragover",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass("dndDragover"),e.preventDefault(),e.stopPropagation(),!1)}),i.on("drop",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData("Text")||e.dataTransfer.getData("text/plain");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect="none"===e.dataTransfer.dropEffect?"copy"===e.dataTransfer.effectAllowed||"move"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?"copy":"move":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on("dragleave",function(e){e=e.originalEvent||e,i.removeClass("dndDragover"),o(function(){i.hasClass("dndDragover")||m.remove()},100)})}}]).factory("dndDragTypeWorkaround",function(){return{}}).factory("dndDropEffectWorkaround",function(){return{}})}(),function(){angular.module("pageslide-directive",[]).directive("pageslide",[function(){return{restrict:"EAC",transclude:!1,scope:{psOpen:"=?",psAutoClose:"=?",psSide:"@",psSpeed:"@",psClass:"@",psSize:"@",psSqueeze:"@",psCloak:"@",psPush:"@",psContainer:"@"},link:function(e,o,t){ +function n(o,t){if(o&&0!==o.style.width&&0!==o.style.width)switch(t.cloak&&r.css("display","none"),t.side){case"right":o.style.width="0px",t.squeeze&&(d.style.right="0px"),t.push&&(d.style.right="0px",d.style.left="0px");break;case"left":o.style.width="0px",t.squeeze&&(d.style.left="0px"),t.push&&(d.style.left="0px",d.style.right="0px");break;case"top":o.style.height="0px",t.squeeze&&(d.style.top="0px"),t.push&&(d.style.top="0px",d.style.bottom="0px");break;case"bottom":o.style.height="0px",t.squeeze&&(d.style.bottom="0px"),t.push&&(d.style.bottom="0px",d.style.top="0px")}e.psOpen=!1}function l(e,o){if(0!==e.style.width&&0!==e.style.width){switch(o.side){case"right":e.style.width=o.size,o.squeeze&&(d.style.right=o.size),o.push&&(d.style.right=o.size,d.style.left="-"+o.size);break;case"left":e.style.width=o.size,o.squeeze&&(d.style.left=o.size),o.push&&(d.style.left=o.size,d.style.right="-"+o.size);break;case"top":e.style.height=o.size,o.squeeze&&(d.style.top=o.size),o.push&&(d.style.top=o.size,d.style.bottom="-"+o.size);break;case"bottom":e.style.height=o.size,o.squeeze&&(d.style.bottom=o.size),o.push&&(d.style.bottom=o.size,d.style.top="-"+o.size)}setTimeout(function(){o.cloak&&r.css("display","block")},1e3*o.speed)}}var i={};i.side=e.psSide||"right",i.speed=e.psSpeed||"0.5",i.size=e.psSize||"300px",i.zindex=1e3,i.className=e.psClass||"ng-pageslide",i.cloak=e.psCloak&&"false"==e.psCloak.toLowerCase()?!1:!0,i.squeeze=Boolean(e.psSqueeze)||!1,i.push=Boolean(e.psPush)||!1,i.container=e.psContainer||!1,o.addClass(i.className);var r=null,a=null,d=i.container?document.getElementById(i.container):document.body;if(a=o[0],"div"!==a.tagName.toLowerCase()&&"pageslide"!==a.tagName.toLowerCase())throw new Error("Pageslide can only be applied to
or elements");if(0===a.children.length)throw new Error("You have to content inside the ");switch(r=angular.element(a.children),d.appendChild(a),a.style.zIndex=i.zindex,a.style.position=i.container!==!1?"absolute":"fixed",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a.style.transitionDuration=i.speed+"s",a.style.webkitTransitionDuration=i.speed+"s",a.style.transitionProperty="width, height",i.squeeze&&(d.style.position="absolute",d.style.transitionDuration=i.speed+"s",d.style.webkitTransitionDuration=i.speed+"s",d.style.transitionProperty="top, bottom, left, right"),i.side){case"right":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.right=t.psCustomRight||"0px";break;case"left":a.style.height=t.psCustomHeight||"100%",a.style.top=t.psCustomTop||"0px",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px";break;case"top":a.style.width=t.psCustomWidth||"100%",a.style.left=t.psCustomLeft||"0px",a.style.top=t.psCustomTop||"0px",a.style.right=t.psCustomRight||"0px";break;case"bottom":a.style.width=t.psCustomWidth||"100%",a.style.bottom=t.psCustomBottom||"0px",a.style.left=t.psCustomLeft||"0px",a.style.right=t.psCustomRight||"0px"}e.$watch("psOpen",function(e){e?l(a,i):n(a,i)}),e.$on("$destroy",function(){d.removeChild(a)}),e.psAutoClose&&(e.$on("$locationChangeStart",function(){n(a,i)}),e.$on("$stateChangeStart",function(){n(a,i)}))}}}])}()}(this); //# sourceMappingURL=eda.dragdropway.min.js.map \ No newline at end of file diff --git a/public/js/eda.dragdropway.min.js.map b/public/js/eda.dragdropway.min.js.map index eecb6a36..21a9e958 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","console","info","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","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","clear","nyaSelect","initNyaSelect","animationsEnabled","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","templateUrl","resolve","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","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","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","edaDragDropWayEasyFormGen","linkFct","returnAttributeConfigurationLinesIfNotEmpty","edaEasyFormGeneratorModelToReturn","edaEasyFormGeneratorModel","edaFieldsModel","emptyEdaFieldsModel","emptyModel","returnAttributeDataModelIfNotEmpty","dataModelToReturn","dataModel","watchEdaEasyFormModelExpression","watchEdaEasyFormModelHasChanged","loadExistingConfigurationModel","watchReturnSaveEventExpression","returnSaveEvent","watchReturnSaveEventhasChanged","_easyFormGeneratorModel","btnSubmitText","btnCancelText","edaFieldsModelStringified","toJson","formlyFieldsModel","edaSaveFormEvent","isDefined","configlines","configurationLoaded","bindConfigurationLines","loadDragDropModelFromConfigurationModel","updateConfigurationClassName","loaded one","bound one","isString","configModel","aline","cssClassToApply","aControl","edaDragDropWayEasyFormGenCtrl","controllerAs","$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","aLineValue","aLineKey","bindConfigCtrlModelFromFormlyDetailedCtrlModel","formlyDetailCtrlModel","configurationCtrlModel","assign","ddModel","lineValue","keyValue","colValue","controlToBind","formlyDetailedControlModel","configModelControl","newClassName","aConfigLine","aConfigLineIndex","aConfigControl","aConfigControlIndex","dragdropControlRef","groupOfCtrlRef","groupOfCtrlRefIndex","aCtrlref","aCtrlRefIndex","ddControlToUpdate","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","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","dndDropEffectWorkaround","dndDragTypeWorkaround","dndDisableIf","disabled","originalEvent","dataTransfer","setData","$eval","dndDraggable","effectAllowed","dndEffectAllowed","dropEffect","isDragging","dragType","dndType","undefined","dndDragstart","dndMoved","dndCopied","dndSelected","dragDrop","isMouseInFirstHalf","targetNode","relativeToParent","mousePointer","horizontal","offsetX","layerX","offsetY","layerY","targetSize","offsetWidth","offsetHeight","targetPosition","offsetLeft","offsetTop","getPlaceholderIndex","Array","indexOf","listNode","placeholderNode","isDropAllowed","externalSources","hasTextMimetype","types","dndAllowedTypes","allowed","stopDragover","remove","invokeCallback","expression","dndHorizontalList","dndExternalSources","parentNode","target","listItemNode","insertBefore","nextSibling","previousElementSibling","nextElementSibling","dndDragover","transferredObject","data","getData","JSON","parse","e","dndDrop","targetArray","dndList","ctrlKey","hasClass","psOpen","psAutoClose","psSide","psSpeed","psClass","psSize","psSqueeze","psCloak","psPush","psContainer","el","psClose","slider","param","style","width","cloak","content","side","squeeze","right","left","height","top","bottom","setTimeout","speed","zindex","Boolean","container","document","getElementById","tagName","Error","appendChild","zIndex","position","overflow","transitionDuration","webkitTransitionDuration","transitionProperty","psCustomHeight","psCustomTop","psCustomBottom","psCustomRight","psCustomLeft","psCustomWidth","removeChild"],"mappings":"CAOE,WACA,YAkDA,SAASA,GAAOC,GAsBd,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,kCAAoCR,KACvDR,EAAegB,IAAI,8BAA+BP,KAClDT,EAAegB,IAAI,kCAAmCN,KACtDV,EAAegB,IAAI,wCAAyCL,KAC5DX,EAAegB,IAAI,+BAAgCJ,KACnDZ,EAAegB,IAAI,kCAAmCH,KACtDb,EAAegB,IAAI,qCAAsCF,KACzDd,EAAegB,IAAI,uCAAwCD,KA9ChEE,QACGC,OAAO,+BAAgC,WAG1CD,QACGC,OAAO,UACc,mBACZ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EpCC,GAAa,WACbH,KAAc,WACdI,SAAgB,aAChBC,MAAc,aACdC,WAAiB,WACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEfC,OACW,0BACA,+BACA,uBACA,gDACA,gBACA,eACA,aACA,UACEjD,KAAK,IAClBkD,QAAY,WACZC,SAAY,cAGjBC,eAAiB,YAYpB3B,EAAuCa,0BAEpCC,GAAa,YACbH,KAAc,aACdI,SAAgB,aAChBC,MAAc,QACdC,WAAiB,QACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEhBC,OACY,0BACA,2BACA,6EACA,0EACA,aACA,mBACA,6GACA,sDACA,WACA,SACA,UACCjD,KAAK,IAElBkD,QAAY,YACZC,SAAY,cAGhBC,eAAiB,WAYpB3B,EAAuCa,0BAEpCC,GAAa,WACbH,KAAc,WACdI,SAAgB,WAChBC,MAAc,QACdC,WAAiB,QACjBC,cAAkB,WAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAGfC,OACY,0BACA,2BACA,wFACA,8EACA,aACA,mBACA,oHACA,iEACA,WACA,SACA,UACCjD,KAAK,IAElBkD,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,YAGLC,IAEJzC,SAAQ0C,QAAQH,EAAY,SAASI,GACnCF,EAAa9B,EAASgC,KAAUC,UAAWD,KAG7C3C,QAAQ0C,QAAQF,EAAU,SAASK,GACjCJ,EAAa9B,EAASkC,KAAaC,MAAOD,IAa3C,IAAIE,IACa,UACA,qBACA,8BACA,gCACA,mEACA,qCACA,kDACA,MACE9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ACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEpBC,OACM,0BACA,+BACW,oDACA,gHACX,uBACA,gJACA,gDACA,eACA,aACA,UACCjD,KAAK,IACVkD,QAAU,iBACVC,SAAU,cAGZC,eAAiB,cAYpB3B,EAAuCa,0BAEpCC,GAAa,QACbH,KAAc,QACdI,SAAgB,QAChBoC,WACAnC,MAAc,QACdC,WAAiB,QACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEfC,OACc,0BACA,6BACA,8IACA,qCACA,8BACA,4BACA,oCACA,uIACA,oBACA,mBACA,kCACA,oCACA,wIACA,oBACA,mBACA,eACA,wDACA,aACA,WACA,UACAjD,KAAK,IACnBkD,QAAY,QACZC,SAAY,cAGjBC,eAAiB,WAYpB3B,EAAuCa,0BAEpCC,GAAa,WACbH,KAAc,WACdI,SAAgB,WAChBC,MAAc,WACdC,WAAiB,WACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAGpBC,OACM,0BACA,yBACA,8BACA,uEACA,kEACA,qDACA,aACA,SACA,mDACA,UACCjD,KAAK,IACXkD,QAAU,WACVC,SAAU,cAGXC,eAAiB,cASpB,IAAIkC,IACU,qEACA,6CACA,kBACA,8DACA,2FACA,+BACA,YACA,WACCtF,KAAK,GAEpBwB,GAAqBW,SAEnBC,KAAU,cACVC,SAAYiD,IAId7D,EAAuCa,0BAEpCC,GAAa,cACbH,KAAc,eACdI,SAAgB,eAChBoC,WACAnC,MAAc,SACdC,WAAiB,cACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEpBC,OACM,0BACA,+BAEA,sEACA,0HACA,sCACA,6BACA,6EACA,4CACA,mDACA,YACA,sCACA,YAEA,aACA,UACCjD,KAAK,I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E,MAAMO,KAAO5T,EAAMoV,cAAgB,MAC1CjC,EAAOE,MAAMM,MAAQ3T,EAAMmV,eAAiB,MAoGpD5tB,EAAOkX,OAAO,SAAU,SAASla,GACvBA,EAEFguB,EAAOY,EAAQC,GAGfF,EAAQC,EAAQC,KASxB7rB,EAAOoP,IAAI,WAAY,WACnB3E,EAAKsjB,YAAYnC,KAGjB5rB,EAAOirB,cACPjrB,EAAOoP,IAAI,uBAAwB,WAC/Buc,EAAQC,EAAQC,KAEpB7rB,EAAOoP,IAAI,oBAAqB,WAC5Buc,EAAQC,EAAQC,YASrCzoB","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 n(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\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 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 d(){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 s(){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\",n()),e.put(\"editPanelSubTitleCtrl-tpls.html\",l()),e.put(\"editPanelTextInputCtrl-tpls.html\",i()),e.put(\"editPanelPasswordCtrl-tpls.html\",r()),e.put(\"editPanelDateCtrl-tpls.html\",a()),e.put(\"editPanelTextareaCtrl-tpls.html\",d()),e.put(\"editPanelRichTextEditorCtrl-tpls.html\",s()),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(\"eda.easyformGen.dragdropway\",[\"edaApp\"]),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.30\").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 n(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():\"\"})}console.info(\"app in config\"),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 l=['
','
','

{{options.templateOptions.placeholder}}

',\"
\",\"

\",\"
\"].join(\" \");e.setType({name:\"subTitle\",template:l}),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[n(e)]={attribute:e}}),angular.forEach(r,function(e){a[n(e)]={bound:e}});var d=[\"\"].join(\" \");e.setType({name:\"datepicker\",template:d,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 s=['',\"\"].join(\" \");e.setType({name:\"richEditor\",template:s}),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(\"edaDragDropWayEasyFormGeneratorTemplate.html\",'
  Select a control
    • 2\" dnd-dragover=\"dragoverCallbackItems($parent.$parent.$index, $parent.$index, $index, external);\" dnd-drop=\"dropCallbackItems(event, index, $index,$parent.$index, $parent.$parent.$index, $parent.$parent.$parent.$index, item, external, type, \\'itemType\\');\" class=itemlist dd-content-counter=\"\" dd-value-when-placeholder=dndPlaceholder dd-value-when-dragging=dndDraggingSource dd-full-model=dragDropModel dd-content-counter-current-index={{$index}} dd-content-counter-parent-index={{$parent.$index}} dd-content-counter-force-css-refresh=command.forceRefresh>

   Customize form buttons

   DATA MODEL

\\n\t\t\t\t\t\t\t\t\t\t\t{{vm.model | json}}\\n\t\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\t{{vm.wfFormFieldsOnlyNeededProperties | json}}\\n\t\t\t\t\t\t\t\t\t\t

   Save this form


Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put(\"editModalTemplate.html\",\"

no use right now

\")}]),angular.module(\"edaApp.providers.dragDropConfigProvider\",[]).provider(\"dragDropConfig\",[function(){function e(e,o){if(n[0].length>0){if(n[0].lengthi;i++)n[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){n[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[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}},n=[[],[[]]],l={itemBeingDragged:\"\"};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return l},this.setItemsNotTocount=function(e){l=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return n},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return l},e.getItemCssDependingNumberItemsInRow=function(e){if(\"undefined\"!=typeof e){for(var t=\"\",n=o.length-1;n>=0;n--)o[n].numberItemPerRow===e&&(t=o[n].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 n=!0;angular.forEach(e,function(e){var o=e;t===o&&(n=!1)}),n&&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 n},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\"}},n={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[].concat(o)},l={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:\"\"}},d=[{controlType:\"datepicker\",properties:[{isRoot:!1,isTemplateOptions:!0,value:\"datepickerPopup\"}]}];this.getAllParticularControlProperties=function(){return d},this.addParticularControlProperties=function(e){if(\"controlType\"in e&&\"properties\"in e){var o=!1;d.length>0&&d.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||d.push(e)}return d},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 s={};return s.getEasyFormListControls=function(){return e},s.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(n);return\"undefined\"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return\"undefined\"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormEmptyConfigurationLineModel=function(){return o},s.getEasyFormConfigurationEmptyControlModel=function(){return t},s.getRawHeaderTemplates=function(){return r},s.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}},s.getRawFormlyControlTemplates=function(){return a},s.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&&d.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=\"\"),e.isTemplateOptions&&(t.templateOptions[e.value]=\"\")})}),t}},s}]}]),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\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\",function(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return\"undefined\"==typeof e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):\"\"===e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):(l.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0}),l.clear(),l.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if(\"itemType\"===a&&!n.label)return!1;if(\"containerType\"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if(\"itemType\"===f&&!s.label)return!1;if(\"containerType\"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on(\"$destroy\",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),\"undefined\"!=typeof s.getEditPanelModelLineIndex()&&\"undefined\"!=typeof s.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}]),angular.module(\"edaApp.controllers.edaEditMODALController\",[]).controller(\"edaEditMODALController\",[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,n,l,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 d(){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 n={name:e.radioRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}function s(){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 n={name:e.basicSelectRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}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 n=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(n,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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else n.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&&n.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&&n.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&&n.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&&n.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 v=e.nyaSelect.controls.length-1;v>=0;v--)e.nyaSelect.controls[v].id===t.selectedControl&&(e.modelNyaSelect=t.controls[v]);\"BasicSelect\"===e.nyaSelect.selectedControl&&s(),\"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&&d(),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,n,l){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=l.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=l.basicSelectRowCollection,a.newOptionBasicSelect=l.newOptionBasicSelect,a.groupedSelectRowCollection=l.groupedSelectRowCollection,a.newOptionGroupedSelect=l.newOptionGroupedSelect,a.GroupedSelectGroups=l.GroupedSelectGroups,a.newGroupGroupedSelect=l.newGroupGroupedSelect,a.groupSelectGroupClick=l.groupSelectGroupClick,a.radioRowCollection=l.radioRowCollection,a.newOptionRadio=l.newOptionRadio,l.resetAllTemporyModels(),\"none\"!==a.proxyModel.temporyConfig.selectedControl){for(var d=a.proxyModel.controls.length-1;d>=0;d--)a.proxyModel.controls[d].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[d]);\"BasicSelect\"===a.proxyModel.temporyConfig.selectedControl&&l.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),\"GroupedSelect\"===a.proxyModel.temporyConfig.selectedControl&&l.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),\"Radio\"===a.proxyModel.temporyConfig.selectedControl&&l.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return l.basicSelectRowCollection=a.basicSelectRowCollection,l.newOptionBasicSelect=a.newOptionBasicSelect,l.groupedSelectRowCollection=a.groupedSelectRowCollection,l.newOptionGroupedSelect=a.newOptionGroupedSelect,l.GroupedSelectGroups=a.GroupedSelectGroups,l.newGroupGroupedSelect=a.newGroupGroupedSelect,l.groupSelectGroupClick=a.groupSelectGroupClick,l.radioRowCollection=a.radioRowCollection,l.newOptionRadio=a.newOptionRadio,l.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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,n){var l;t.$watch(function(){return n[0].children.length},function(i,r){if(i!==r){for(var a=0,d=[],s=n[0].children.length-1;s>=0;s--)e.isHtmlElementToCount(n[0].children[s].classList)?(a++,d.push({item:s,isReal:!0})):d.push({item:s,isReal:!1});t.contentRealCount=a,l=o(function(){e.updateLineItemCss(t.fullModel,d,t.parentIndex,t.currentIndex,a)},20)}}),t.$on(\"$destroy\",function(){console.warn(\"ddContentCounter timer destruction!\"),o.cancel(l)})}}}]),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,n,l){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),l(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 n=angular.lowercase(o);(\"true\"===n||\"1\"===n)&&console.dir({whoAmI:\"I am verbose from ddDecorDropZone link\",verbodeMode:n,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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex,s=e.getDistinctItemCssClass();if(angular.forEach(s,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch(\"cssClass\",function(e,o){e!==o&&(angular.forEach(s,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:d,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}\"0\"===o.parentParentIndex&&t.addClass(s[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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,\"\"!==r){var s=angular.lowercase(r);(\"true\"===s||\"1\"===s)&&console.dir({whoAmI:\"I am verbose from ddDecorLine directive link\",verbodeMode:s,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:d,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\",\"edaApp.directives.edaDragdropWayEasyFormGenDirective\"]),function(){function e(e,o,t,n){function l(e,l,i){function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function d(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){m()}function p(){return e.returnSaveEvent}function u(o,t){if(o===!0){var n={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:n}),e.returnSaveEvent=!1}}function m(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var n=r();e.configurationLoaded={},o.bindConfigurationLines(e.configurationLoaded,n,!1),e.configuration=angular.copy(e.configurationLoaded),t.loadDragDropModelFromConfigurationModel(e.configuration,e.dragDropModel),f(e.configuration),t.refreshControlsKeys(e.configuration,e.dragDropModel),console.info(\"compare both configuration model\"),console.dir({\"loaded one\":angular.copy(e.configurationLoaded),\"bound one\":angular.copy(e.configuration)}),o.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=d,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\"}}function f(e){angular.forEach(e.lines,function(e){var o=n.getItemCssDependingNumberItemsInRow(e.columns.length);angular.forEach(e.columns,function(e){e.control.className=o})})}e.$watch(s,c,!0),e.$watch(p,u)}function i(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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.returnSaveEvent=!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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return\"undefined\"==typeof e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):\"\"===e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):(l.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0}),l.clear(),l.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if(\"itemType\"===a&&!n.label)return!1;if(\"containerType\"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if(\"itemType\"===f&&!s.label)return!1;if(\"containerType\"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on(\"$destroy\",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),\"undefined\"!=typeof s.getEditPanelModelLineIndex()&&\"undefined\"!=typeof s.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=[\"$scope\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\"];var r={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaDragDropWayEasyFormGeneratorTemplate.html\",link:l};return r}angular.module(\"edaApp.directives.edaDragdropWayEasyFormGenDirective\",[]).directive(\"edaDragdropWayEasyFormGen\",e),e.$inject=[\"$timeout\",\"formFieldManage\",\"ddModelConfModelProxyService\",\"dragDropConfig\"]}(),angular.module(\"edaApp.directives.edaRightClickDirective\",[]).directive(\"edaRightClick\",[\"$parse\",function(e){return{restrict:\"A\",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on(\"contextmenu\",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module(\"edaApp.directives.edaStRationDirective\",[]).directive(\"stRatio\",[function(){return{restrict:\"A\",link:function(e,o,t){var n=+t.stRatio;o.css(\"width\",n+\"%\")}}}]),angular.module(\"edaApp.services.dragDropItemCountersService\",[]).factory(\"dragDropItemCounterService\",[\"dragDropConfig\",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if(\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&\"undefined\"!=typeof n&&\"undefined\"!=typeof l&&\"undefined\"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if(\"undefined\"!=typeof t&&\"undefined\"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module(\"edaApp.services.dragDropModelConfigModelProxyService\",[]).factory(\"ddModelConfModelProxyService\",[\"EasyFormGenFormlyBindingModels\",\"controllerModalProxy\",\"dragDropConfig\",\"$parse\",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n(\"controls\");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)\"undefined\"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+\"-\"+Date.now();return i(t,o)===!0?t:(t=e+\"-\"+Date.now(),i(t,o)===!0?t:t=e+\"-\"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n(\"control.selectedControl\").assign(o,n(\"selectedControl\")(e)),n(\"control.type\").assign(o,n(\"formlyType\")(e)),n(\"control.key\").assign(o,r(n(\"control.type\")(o),t)),n(\"control.subtype\").assign(o,n(\"formlySubtype\")(e)),n(\"control.templateOptions.label\").assign(o,n(\"formlyLabel\")(e)),n(\"control.templateOptions.required\").assign(o,n(\"formlyRequired\")(e)),n(\"control.templateOptions.description\").assign(o,n(\"formlyDesciption\")(e)),n(\"control.templateOptions.placeholder\").assign(o,n(\"formlyPlaceholder\")(e)),n(\"control.templateOptions.options\").assign(o,n(\"formlyOptions\")(e)),\"datepicker\"===n(\"control.type\")(o)&&n(\"control.templateOptions.datepickerPopup\").assign(o,n(\"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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if(\"undefined\"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){\"undefined\"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:\"empty\",cssClass:\"col-xs-12\",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t=\"none\",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:\"\",\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:\"\")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+\"-\"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn(\"debug edaEditCtrlControllerModalProxy\"),console.dir(n),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,\"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:\"\"}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,\"group\"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module(\"edaApp.services.formFieldManage\",[]).factory(\"formFieldManage\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:\"row\",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if(\"[object Array]\"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i(\"configuration model is bound\",\"lines are bound to configuration model.\")}return l(\"lines is not an array\",\"Checks lines type, it is not an array.\")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:\"\"},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details=\"\",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:\"\"},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details=\"\",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:\"\"},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details=\"\",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass(\"dndDragover\"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on(\"dragover\",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass(\"dndDragover\"),e.preventDefault(),e.stopPropagation(),!1)}),i.on(\"drop\",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData(\"Text\")||e.dataTransfer.getData(\"text/plain\");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect=\"none\"===e.dataTransfer.dropEffect?\"copy\"===e.dataTransfer.effectAllowed||\"move\"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?\"copy\":\"move\":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on(\"dragleave\",function(e){e=e.originalEvent||e,i.removeClass(\"dndDragover\"),o(function(){i.hasClass(\"dndDragover\")||m.remove()},100)})}}]).factory(\"dndDragTypeWorkaround\",function(){return{}}).factory(\"dndDropEffectWorkaround\",function(){return{}})}()}(this);\n//# sourceMappingURL=eda.dragdropway.min.js.map"],"sourceRoot":"/source/"} \ No newline at end of file +{"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","console","info","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","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","clear","nyaSelect","initNyaSelect","animationsEnabled","showModalAddCtrlToColumn","size","numcolumn","modalInstance","animation","templateUrl","resolve","getNyASelectFromSelectedLineColumn","result","then","modalAddCtrlModel","bindConfigurationModelFromModalReturn","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","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","edaDragDropWayEasyFormGen","linkFct","returnAttributeConfigurationLinesIfNotEmpty","edaEasyFormGeneratorModelToReturn","edaEasyFormGeneratorModel","edaFieldsModel","emptyEdaFieldsModel","emptyModel","returnAttributeDataModelIfNotEmpty","dataModelToReturn","dataModel","watchEdaEasyFormModelExpression","watchEdaEasyFormModelHasChanged","loadExistingConfigurationModel","watchReturnSaveEventExpression","returnSaveEvent","watchReturnSaveEventhasChanged","_easyFormGeneratorModel","btnSubmitText","btnCancelText","edaFieldsModelStringified","toJson","formlyFieldsModel","edaSaveFormEvent","isDefined","configlines","configurationLoaded","bindConfigurationLines","loadDragDropModelFromConfigurationModel","updateConfigurationClassName","loaded one","bound one","isString","configModel","aline","cssClassToApply","aControl","edaDragDropWayEasyFormGenCtrl","controllerAs","$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","aLineValue","aLineKey","bindConfigCtrlModelFromFormlyDetailedCtrlModel","formlyDetailCtrlModel","configurationCtrlModel","assign","ddModel","lineValue","keyValue","colValue","controlToBind","formlyDetailedControlModel","configModelControl","newClassName","aConfigLine","aConfigLineIndex","aConfigControl","aConfigControlIndex","dragdropControlRef","groupOfCtrlRef","groupOfCtrlRefIndex","aCtrlref","aCtrlRefIndex","ddControlToUpdate","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","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","dndDropEffectWorkaround","dndDragTypeWorkaround","dndDisableIf","disabled","originalEvent","dataTransfer","setData","$eval","dndDraggable","effectAllowed","dndEffectAllowed","dropEffect","isDragging","dragType","dndType","undefined","dndDragstart","dndMoved","dndCopied","dndSelected","dragDrop","isMouseInFirstHalf","targetNode","relativeToParent","mousePointer","horizontal","offsetX","layerX","offsetY","layerY","targetSize","offsetWidth","offsetHeight","targetPosition","offsetLeft","offsetTop","getPlaceholderIndex","Array","indexOf","listNode","placeholderNode","isDropAllowed","externalSources","hasTextMimetype","types","dndAllowedTypes","allowed","stopDragover","remove","invokeCallback","expression","dndHorizontalList","dndExternalSources","parentNode","target","listItemNode","insertBefore","nextSibling","previousElementSibling","nextElementSibling","dndDragover","transferredObject","data","getData","JSON","parse","e","dndDrop","targetArray","dndList","ctrlKey","hasClass","psOpen","psAutoClose","psSide","psSpeed","psClass","psSize","psSqueeze","psCloak","psPush","psContainer","el","psClose","slider","param","style","width","cloak","content","side","squeeze","right","left","height","top","bottom","setTimeout","speed","zindex","Boolean","container","document","getElementById","tagName","Error","appendChild","zIndex","position","overflow","transitionDuration","webkitTransitionDuration","transitionProperty","psCustomHeight","psCustomTop","psCustomBottom","psCustomRight","psCustomLeft","psCustomWidth","removeChild"],"mappings":"CAOE,WACA,YAkDA,SAASA,GAAOC,GAsBd,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,GAAkB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AAiB,WACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEfC,OACc,0BACA,+BACA,oDACA,wGACA,uBACA,gJACA,0DACA,eACA,aACA,UACDjD,KAAK,IAClBkD,QAAY,UACZC,SAAY,cAGjBC,eAAiB,aAQpB,IAAIiC,IACW,+BACA,yCACA,wDACA,mBACCrF,KAAK,IACrBwB,GAAqBW,SAEnBC,KAAY,aACZC,SAAYgD,IAId5D,EAAuCa,0BAEpCC,GAAa,iBACbH,KAAc,iBACdI,SAAgB,iBAChBC,MAAc,WACdC,WAAiB,aACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEpBC,OACM,0BACA,+BACW,oDACA,gHACX,uBACA,gJACA,gDACA,eACA,aACA,UACCjD,KAAK,IACVkD,QAAU,iBACVC,SAAU,cAGZC,eAAiB,cAYpB3B,EAAuCa,0BAEpCC,GAAa,QACbH,KAAc,QACdI,SAAgB,QAChBoC,WACAnC,MAAc,QACdC,WAAiB,QACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAEfC,OACc,0BACA,6BACA,8IACA,qCACA,8BACA,4BACA,oCACA,uIACA,oBACA,mBACA,kCACA,oCACA,wIACA,oBACA,mBACA,eACA,wDACA,aACA,WACA,UACAjD,KAAK,IACnBkD,QAAY,QACZC,SAAY,cAGjBC,eAAiB,WAYpB3B,EAAuCa,0BAEpCC,GAAa,WACbH,KAAc,WACdI,SAAgB,WAChBC,MAAc,WACdC,WAAiB,WACjBC,cAAkB,GAClBC,YAAiB,GACjBC,gBAAmB,EACnBC,iBAAoB,GACpBC,mBAWH1B,EAAuB2B,uCAGpBC,OACM,0BACA,yBACA,8BACA,uEACA,kEACA,qDACA,aACA,SACA,mDACA,UACCjD,KAAK,IACXkD,QAAU,WAC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ACxC9B,EAAOE,MAAMU,OAAS/T,EAAMkV,gBAAkB,MAC9C/B,EAAOE,MAAMO,KAAO5T,EAAMoV,cAAgB,KAC1C,MACJ,KAAK,MACDjC,EAAOE,MAAMC,MAAQtT,EAAMqV,eAAiB,OAC5ClC,EAAOE,MAAMO,KAAO5T,EAAMoV,cAAgB,MAC1CjC,EAAOE,MAAMS,IAAM9T,EAAMiV,aAAe,MACxC9B,EAAOE,MAAMM,MAAQ3T,EAAMmV,eAAiB,KAC5C,MACJ,KAAK,SACDhC,EAAOE,MAAMC,MAAQtT,EAAMqV,eAAiB,OAC5ClC,EAAOE,MAAMU,OAAS/T,EAAMkV,gBAAkB,MAC9C/B,EAAOE,MAAMO,KAAO5T,EAAMoV,cAAgB,MAC1CjC,EAAOE,MAAMM,MAAQ3T,EAAMmV,eAAiB,MAoGpD5tB,EAAOkX,OAAO,SAAU,SAASla,GACvBA,EAEFguB,EAAOY,EAAQC,GAGfF,EAAQC,EAAQC,KASxB7rB,EAAOoP,IAAI,WAAY,WACnB3E,EAAKsjB,YAAYnC,KAGjB5rB,EAAOirB,cACPjrB,EAAOoP,IAAI,uBAAwB,WAC/Buc,EAAQC,EAAQC,KAEpB7rB,EAAOoP,IAAI,oBAAqB,WAC5Buc,EAAQC,EAAQC,eAUvCzoB","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 n(){return['
','
','
','
','
  Edit properties :
',\"
\",\"
\",'
','
','
','\t\t\t\t\t\t\t
',' ','
',' ',\"
\",\"\t\t\t\t\t\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 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 d(){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 s(){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\",n()),e.put(\"editPanelSubTitleCtrl-tpls.html\",l()),e.put(\"editPanelTextInputCtrl-tpls.html\",i()),e.put(\"editPanelPasswordCtrl-tpls.html\",r()),e.put(\"editPanelDateCtrl-tpls.html\",a()),e.put(\"editPanelTextareaCtrl-tpls.html\",d()),e.put(\"editPanelRichTextEditorCtrl-tpls.html\",s()),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(\"eda.easyformGen.dragdropway\",[\"edaApp\"]),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.31\").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 n(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():\"\"})}console.info(\"app in config\"),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 l=['
','
','

{{options.templateOptions.placeholder}}

',\"
\",\"

\",\"
\"].join(\" \");e.setType({name:\"subTitle\",template:l}),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[n(e)]={attribute:e}}),angular.forEach(r,function(e){a[n(e)]={bound:e}});var d=[\"\"].join(\" \");e.setType({name:\"datepicker\",template:d,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 s=['',\"\"].join(\" \");e.setType({name:\"richEditor\",template:s}),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(\"edaDragDropWayEasyFormGeneratorTemplate.html\",'
  Select a control
    • 2\" dnd-dragover=\"dragoverCallbackItems($parent.$parent.$index, $parent.$index, $index, external);\" dnd-drop=\"dropCallbackItems(event, index, $index,$parent.$index, $parent.$parent.$index, $parent.$parent.$parent.$index, item, external, type, \\'itemType\\');\" class=itemlist dd-content-counter=\"\" dd-value-when-placeholder=dndPlaceholder dd-value-when-dragging=dndDraggingSource dd-full-model=dragDropModel dd-content-counter-current-index={{$index}} dd-content-counter-parent-index={{$parent.$index}} dd-content-counter-force-css-refresh=command.forceRefresh>

   Customize form buttons

   DATA MODEL

\\n\t\t\t\t\t\t\t\t\t\t\t{{vm.model | json}}\\n\t\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\t{{vm.wfFormFieldsOnlyNeededProperties | json}}\\n\t\t\t\t\t\t\t\t\t\t

   Save this form


Easy form generator : {{easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)
'),e.put(\"editModalTemplate.html\",\"

no use right now

\")}]),angular.module(\"edaApp.providers.dragDropConfigProvider\",[]).provider(\"dragDropConfig\",[function(){function e(e,o){if(n[0].length>0){if(n[0].lengthi;i++)n[0].push([]);t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[0][t.WhenIndex].push(e)})}else t.containerConfig.decoration.forEach(function(){n[0].push([])}),t.containerConfig.decoration.forEach(function(t){o.addToGroupCtrl===t.groupId&&n[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}},n=[[],[[]]],l={itemBeingDragged:\"\"};this.setListItemCssClass=function(e){o=[].concat(e)},this.getItemsNotTocount=function(){return l},this.setItemsNotTocount=function(e){l=angular.copy(e)},this.addControlToDragDropPresentationModel=function(o,t){\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&e(o,t)},this.getDragDropPresentationModel=function(){return n},this.$get=[function(){var e={};return e.getListItemCssClass=function(){return o},e.getItemsNotToCount=function(){return l},e.getItemCssDependingNumberItemsInRow=function(e){if(\"undefined\"!=typeof e){for(var t=\"\",n=o.length-1;n>=0;n--)o[n].numberItemPerRow===e&&(t=o[n].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 n=!0;angular.forEach(e,function(e){var o=e;t===o&&(n=!1)}),n&&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 n},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\"}},n={submitButtonText:\"submit\",cancelButtonText:\"cancel\",lines:[].concat(o)},l={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:\"\"}},d=[{controlType:\"datepicker\",properties:[{isRoot:!1,isTemplateOptions:!0,value:\"datepickerPopup\"}]}];this.getAllParticularControlProperties=function(){return d},this.addParticularControlProperties=function(e){if(\"controlType\"in e&&\"properties\"in e){var o=!1;d.length>0&&d.forEach(function(t){t.controlType===e.controlType&&(t.properties=[].concat(e.properties),o=!0)}),o||d.push(e)}return d},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 s={};return s.getEasyFormListControls=function(){return e},s.getEasyFormInitialStateConfigurationModel=function(e){var o=angular.copy(n);return\"undefined\"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormReloadConfigurationModel=function(e){var o=angular.copy(i);return\"undefined\"!=typeof e&&e&&angular.extend(o,l),o},s.getEasyFormEmptyConfigurationLineModel=function(){return o},s.getEasyFormConfigurationEmptyControlModel=function(){return t},s.getRawHeaderTemplates=function(){return r},s.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}},s.getRawFormlyControlTemplates=function(){return a},s.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&&d.forEach(function(e){e.controlType===o&&e.properties.forEach(function(e){e.isRoot&&(t[e.value]=\"\"),e.isTemplateOptions&&(t.templateOptions[e.value]=\"\")})}),t}},s}]}]),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\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\",function(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return\"undefined\"==typeof e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):\"\"===e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):(l.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0}),l.clear(),l.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if(\"itemType\"===a&&!n.label)return!1;if(\"containerType\"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if(\"itemType\"===f&&!s.label)return!1;if(\"containerType\"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on(\"$destroy\",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),\"undefined\"!=typeof s.getEditPanelModelLineIndex()&&\"undefined\"!=typeof s.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}]),angular.module(\"edaApp.controllers.edaEditMODALController\",[]).controller(\"edaEditMODALController\",[\"$scope\",\"$modalInstance\",\"nyaSelect\",\"toaster\",\"$timeout\",\"selectOptionManage\",\"controllerModalProxy\",function(e,o,t,n,l,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 d(){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 n={name:e.radioRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}function s(){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 n={name:e.basicSelectRowCollection.rows[t].option,value:t,group:\"\"};e.nyaSelect.temporyConfig.formlyOptions.push(n)}}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 n=_.uniq(_.pluck(e.groupedSelectRowCollection.rows,\"group\"));angular.copy(n,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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.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&&n.pop({type:\"warning\",timeout:2e3,title:\"Group already exists\",body:\"No group added.\",showCloseButton:!0});e.GroupedSelectGroups.list.push(e.newGroupGroupedSelect.saisie)}else n.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&&n.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&&n.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&&n.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&&n.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 v=e.nyaSelect.controls.length-1;v>=0;v--)e.nyaSelect.controls[v].id===t.selectedControl&&(e.modelNyaSelect=t.controls[v]);\"BasicSelect\"===e.nyaSelect.selectedControl&&s(),\"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&&d(),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,n,l){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=l.proxyModel,a.proxyModel.selectedControl=a.proxyModel.temporyConfig.selectedControl,a.basicSelectRowCollection=l.basicSelectRowCollection,a.newOptionBasicSelect=l.newOptionBasicSelect,a.groupedSelectRowCollection=l.groupedSelectRowCollection,a.newOptionGroupedSelect=l.newOptionGroupedSelect,a.GroupedSelectGroups=l.GroupedSelectGroups,a.newGroupGroupedSelect=l.newGroupGroupedSelect,a.groupSelectGroupClick=l.groupSelectGroupClick,a.radioRowCollection=l.radioRowCollection,a.newOptionRadio=l.newOptionRadio,l.resetAllTemporyModels(),\"none\"!==a.proxyModel.temporyConfig.selectedControl){for(var d=a.proxyModel.controls.length-1;d>=0;d--)a.proxyModel.controls[d].id===a.proxyModel.temporyConfig.selectedControl&&(a.modelproxyModel=a.proxyModel.controls[d]);\"BasicSelect\"===a.proxyModel.temporyConfig.selectedControl&&l.bindBasicSelectFromProxyModel(a.basicSelectRowCollection),\"GroupedSelect\"===a.proxyModel.temporyConfig.selectedControl&&l.bindGroupedSelectFromProxyModel(a.groupedSelectRowCollection,a.GroupedSelectGroups),\"Radio\"===a.proxyModel.temporyConfig.selectedControl&&l.bindRadioFromProxyModel(a.radioRowCollection)}a.updateSpecialControl=function(){return l.basicSelectRowCollection=a.basicSelectRowCollection,l.newOptionBasicSelect=a.newOptionBasicSelect,l.groupedSelectRowCollection=a.groupedSelectRowCollection,l.newOptionGroupedSelect=a.newOptionGroupedSelect,l.GroupedSelectGroups=a.GroupedSelectGroups,l.newGroupGroupedSelect=a.newGroupGroupedSelect,l.groupSelectGroupClick=a.groupSelectGroupClick,l.radioRowCollection=a.radioRowCollection,l.newOptionRadio=a.newOptionRadio,l.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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=n.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,n){var l;t.$watch(function(){return n[0].children.length},function(i,r){if(i!==r){for(var a=0,d=[],s=n[0].children.length-1;s>=0;s--)e.isHtmlElementToCount(n[0].children[s].classList)?(a++,d.push({item:s,isReal:!0})):d.push({item:s,isReal:!1});t.contentRealCount=a,l=o(function(){e.updateLineItemCss(t.fullModel,d,t.parentIndex,t.currentIndex,a)},20)}}),t.$on(\"$destroy\",function(){console.warn(\"ddContentCounter timer destruction!\"),o.cancel(l)})}}}]),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,n,l){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),l(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 n=angular.lowercase(o);(\"true\"===n||\"1\"===n)&&console.dir({whoAmI:\"I am verbose from ddDecorDropZone link\",verbodeMode:n,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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex,s=e.getDistinctItemCssClass();if(angular.forEach(s,function(e){t.removeClass(e)}),t.addClass(o.cssClass),o.$watch(\"cssClass\",function(e,o){e!==o&&(angular.forEach(s,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:d,parentParentIndex:o.parentParentIndex,currentIndex:a,lineItemsCount:o.lineItemsCount})}\"0\"===o.parentParentIndex&&t.addClass(s[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,n,l,i){var r=o.verboseMode,a=o.currentIndex,d=o.parentIndex;if(o.deleteLine={},o.deleteLine.readyToDelete=!1,o.deleteLine.dblClickCount=0,o.isCollapsed=!1,\"\"!==r){var s=angular.lowercase(r);(\"true\"===s||\"1\"===s)&&console.dir({whoAmI:\"I am verbose from ddDecorLine directive link\",verbodeMode:s,ParentParentIndex:o.$parent.$parent.$index,ParentIndex:d,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\",\"edaApp.directives.edaDragdropWayEasyFormGenDirective\"]),function(){function e(e,o,t,n){function l(e,l,i){function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.edaFieldsModel)&&e.edaEasyFormGeneratorModel.edaFieldsModel.length>0?e.edaEasyFormGeneratorModel.edaFieldsModel:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function d(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){m()}function p(){return e.returnSaveEvent}function u(o,t){if(o===!0){var n={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:n}),e.returnSaveEvent=!1}}function m(){if(angular.isDefined(e.edaEasyFormGeneratorModel)){var n=r();e.configurationLoaded={},o.bindConfigurationLines(e.configurationLoaded,n,!1),e.configuration=angular.copy(e.configurationLoaded),t.loadDragDropModelFromConfigurationModel(e.configuration,e.dragDropModel),f(e.configuration),t.refreshControlsKeys(e.configuration,e.dragDropModel),console.info(\"compare both configuration model\"),console.dir({\"loaded one\":angular.copy(e.configurationLoaded),\"bound one\":angular.copy(e.configuration)}),o.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),e.vm.model=d,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\"}}function f(e){angular.forEach(e.lines,function(e){var o=n.getItemCssDependingNumberItemsInRow(e.columns.length);angular.forEach(e.columns,function(e){e.control.className=o})})}e.$watch(s,c,!0),e.$watch(p,u)}function i(e,o,t,n,l,i,r,a,d,s,c,p,u,m){function f(){l.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 g(){d.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.returnSaveEvent=!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=p.getDragDropConfigModel(),e.dragDropModel=[].concat(p.getDragDropPresentationModel()),e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.configuration={},d.initConfigurationEditFromScratch(e.configuration,!1),s.initProxyModel(),e.collapseAllGroupControl=function(o){angular.forEach(e.easyFormDragDropProperties.containerConfig.decoration,function(t){t.WhenIndex!==o&&p.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,t.WhenIndex,!0)})},e.vm.onSubmit=f,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}d.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}d.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(){l.pop({type:\"warning\",title:\"Last line\",body:\"Can't delete the last line\",showCloseButton:!0})},100),d.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),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields)},e.saveThisForm=function(){return\"undefined\"==typeof e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is undefined\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):\"\"===e.configuration.formName?(l.pop({type:\"warning\",timeout:2e3,title:\"Form name is required\",body:\"Form has not been saved.\",showCloseButton:!0}),!1):(l.pop({type:\"wait\",timeout:1e4,title:\"Form is being saved\",body:\"Wait.\",showCloseButton:!0}),l.clear(),l.pop({type:\"info\",timeout:2e3,title:\"Form would be saved if it were not a static example\",body:\"\",showCloseButton:!0}),e.returnSaveEvent=!0,!0)},e.nyaSelect={},s.initNyaSelect(e.nyaSelect),e.animationsEnabled=!0,e.showModalAddCtrlToColumn=function(o,t,n){var l=r.open({animation:e.animationsEnabled,templateUrl:\"editModalTemplate.html\",controller:\"edaEditMODALController\",size:\"lg\",resolve:{nyaSelect:function(){return s.getNyASelectFromSelectedLineColumn(e.nyaSelect,e.configuration,t,n)}}});l.result.then(function(o){s.bindConfigurationModelFromModalReturn(t,n,o,e.configuration),d.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,n,l,r,a){if(l){if(\"itemType\"===a&&!n.label)return!1;if(\"containerType\"===a&&!angular.isArray(n))return!1}var s=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return e.$on(\"$destroy\",function(){i.cancel(s)}),n},e.dndItemMoved=function(o,t,n){o>0&&e.dragDropModel[o][t].splice(n,1)},e.dragoverCallbackItems=function(e,o,t,n){return 0===o?!1:!0},e.disableItemDropIf=function(){},e.dropCallbackItems=function(o,t,n,l,r,a,s,c,p,f){if(c){if(\"itemType\"===f&&!s.label)return!1;if(\"containerType\"===f&&!angular.isArray(s))return!1}var g=i(function(){e.configuration=angular.copy(u.refreshAllConfigurationFromDragAndDropModel(e.configuration,e.dragDropModel)),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel)},200);return m.setUnRightClicked(s),e.$on(\"$destroy\",function(){i.cancel(g)}),s},e.editPanelModel={toggle:!1},e.saveFromEditPanel=function(){s.bindSpecialCtrlTemporyModelsToProxyModel(),s.bindConfigurationModelFromProxyModel(s.getEditPanelModelLineIndex(),s.getEditPanelModelColumnIndex(),e.configuration),d.applyConfigurationToformlyModel(e.configuration,e.vm.wfFormFields,e.vm.model),e.vm.wfFormFieldsOnlyNeededProperties=angular.copy(e.vm.wfFormFields),u.refreshControlsKeys(e.configuration,e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),m.resetAllDragDropItemSelectedState(e.dragDropModel)},e.closeEditPanel=function(){m.resetAllDragDropItemSelectedState(e.dragDropModel),s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.debugProxyModel=s.ProxyModel,e.setRightClicked=function(e,o){o.rightCliked=!0},e.toggleEditPanel=function(o,t,n,l){if(m.resetAllDragDropItemSelectedState(e.dragDropModel),s.getEditPanelModelToggle()){if(s.setEditPanelModelToggle(!1),e.editPanelModel.toggle=s.getEditPanelModelToggle(),\"undefined\"!=typeof s.getEditPanelModelLineIndex()&&\"undefined\"!=typeof s.getEditPanelModelColumnIndex()&&\"undefined\"!=typeof s.getEditPanelModelControl())if(s.getEditPanelModelLineIndex()===t&&s.getEditPanelModelColumnIndex()===n&&angular.equals(s.getEditPanelModelControl(),l));else{l.rightCliked=!0;var r=i(function(){s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},200);e.$on(\"$destroy\",function(){i.cancel(r)})}}else l.rightCliked=!0,s.setEditPanelModelLineIndex(t),s.setEditPanelModelColumnIndex(n),s.setEditPanelModelControl(l),s.setProxyModelFromConfigurationSelection(e.configuration,t,n),s.setEditPanelModelToggle(!0),e.editPanelModel.toggle=s.getEditPanelModelToggle()},e.removeThisLine=function(o){e.dragDropModel[1].splice(o,1)},e.model=[],e.insertNewLine=function(){g(),e.dragDropModel[1].push([])}}i.$inject=[\"$scope\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\",\"dragDropItemDecorationService\",\"dragDropConfig\",\"ddModelConfModelProxyService\",\"ddItemRightClickedManager\"];var r={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaDragDropWayEasyFormGeneratorTemplate.html\",link:l};return r}angular.module(\"edaApp.directives.edaDragdropWayEasyFormGenDirective\",[]).directive(\"edaDragdropWayEasyFormGen\",e),e.$inject=[\"$timeout\",\"formFieldManage\",\"ddModelConfModelProxyService\",\"dragDropConfig\"]}(),angular.module(\"edaApp.directives.edaRightClickDirective\",[]).directive(\"edaRightClick\",[\"$parse\",function(e){return{restrict:\"A\",link:function(o,t,n){var l=e(n.edaRightClick),i=e(n.edaRightClickColIndex),r=e(n.edaSetRightClicked);t.on(\"contextmenu\",function(e){o.$apply(function(){e.preventDefault(),1===i(o)&&r(o,{}),1===i(o)&&l(o,{$event:e})})})}}}]),angular.module(\"edaApp.directives.edaStRationDirective\",[]).directive(\"stRatio\",[function(){return{restrict:\"A\",link:function(e,o,t){var n=+t.stRatio;o.css(\"width\",n+\"%\")}}}]),angular.module(\"edaApp.services.dragDropItemCountersService\",[]).factory(\"dragDropItemCounterService\",[\"dragDropConfig\",function(e){var o=[],t=angular.copy(e.getItemsNotToCount()),n={};return n.getItemsNotToCount=function(){return t},n.getModelItemsRealCounter=function(){return o},n.isHtmlElementToCount=function(e){var o=!0;return e.length>0&&angular.forEach(t,function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&(o&=!1)}),o},n.updateLineItemCss=function(o,t,n,l,i){if(\"undefined\"!=typeof o&&\"undefined\"!=typeof t&&\"undefined\"!=typeof n&&\"undefined\"!=typeof l&&\"undefined\"!=typeof i){for(var r=o[n][l].length-1;r>=0;r--)for(var a=0;a=0;r--)o[t][n][r].cssClass=e.getItemCssDependingNumberItemsInRow(l);return!0}return!1},t.updateCssClassWholeColumn=function(o,t){if(\"undefined\"!=typeof t&&\"undefined\"!=typeof o){for(var n=o[t].length-1;n>=0;n--)for(var l=o[t][n].length-1;l>=0;l--)o[t][n][l].cssClass=e.getItemCssDependingNumberItemsInRow(o[t][n].length);return!0}return!1},t}]),angular.module(\"edaApp.services.dragDropModelConfigModelProxyService\",[]).factory(\"ddModelConfModelProxyService\",[\"EasyFormGenFormlyBindingModels\",\"controllerModalProxy\",\"dragDropConfig\",\"$parse\",function(e,o,t,n){function l(o){var t={},l=e.getEasyFormListControls(),i=n(\"controls\");return angular.forEach(i(l),function(e){e.id===o.control&&(t=e)}),t}function i(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)\"undefined\"!=typeof o.lines[n].columns[l].control&&o.lines[n].columns[l].control.key===e&&(t=!1);return t}function r(e,o){var t=e+\"-\"+Date.now();return i(t,o)===!0?t:(t=e+\"-\"+Date.now(),i(t,o)===!0?t:t=e+\"-\"+Date.now())}function a(e,o,t){angular.forEach(t.lines,function(t,n){n===o&&(t.line=e)})}function d(e,o,t){n(\"control.selectedControl\").assign(o,n(\"selectedControl\")(e)),n(\"control.type\").assign(o,n(\"formlyType\")(e)),n(\"control.key\").assign(o,r(n(\"control.type\")(o),t)),n(\"control.subtype\").assign(o,n(\"formlySubtype\")(e)),n(\"control.templateOptions.label\").assign(o,n(\"formlyLabel\")(e)),n(\"control.templateOptions.required\").assign(o,n(\"formlyRequired\")(e)),n(\"control.templateOptions.description\").assign(o,n(\"formlyDesciption\")(e)),n(\"control.templateOptions.placeholder\").assign(o,n(\"formlyPlaceholder\")(e)),n(\"control.templateOptions.options\").assign(o,n(\"formlyOptions\")(e)),\"datepicker\"===n(\"control.type\")(o)&&n(\"control.templateOptions.datepickerPopup\").assign(o,n(\"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())),a(n+1,n,o),angular.forEach(t,function(i,r){var a={control:angular.copy(e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType))},s=l(t[r]);if(\"undefined\"!=typeof i.key){a.control=angular.copy(i.configModelControl);var c=e.getFormlyControlTemplateForNcolumnLine(t.length,l(t[r]).formlyType);a.control.className=c.className,a.control.cssClass=c.className}else d(s,a,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(a.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,n){\"undefined\"!=typeof o[1][t]&&o[1][t].length>0&&(o[1][t][n].key=e.control.key,o[1][t][n].configModelControl=angular.copy(e.control))})})},s.loadDragDropModelFromConfigurationModel=function(e,o){o[1]=[],angular.forEach(e.lines,function(e,n){o[1].push([]),angular.forEach(e.columns,function(e,l){var i={control:\"empty\",cssClass:\"col-xs-12\",label:'
'};angular.forEach(o[0],function(o,t){angular.forEach(o,function(o,t){o.control===e.control.selectedControl&&(i=angular.copy(o))})}),o[1][n].push(i);var r=t.getItemCssDependingNumberItemsInRow(o[1][n].length);angular.forEach(o[1][n],function(e){e.cssClass=r})})})},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 n(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 l(e,o){for(var t=!0,n=o.lines.length-1;n>=0;n--)for(var l=o.lines[n].columns.length-1;l>=0;l--)o.lines[n].columns[l].control.key===e&&(t=!1);return t}function i(o){var t=\"none\",n=angular.copy(e.getEasyFormListControls().controls);return n.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,n,l){return o(e),\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions&&(e.temporyConfig.selectedControl=\"undefined\"!=typeof t.lines[n].columns[l].control.selectedControl?t.lines[n].columns[l].control.selectedControl:\"none\",e.temporyConfig.formlyLabel=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.label?t.lines[n].columns[l].control.templateOptions.label:\"\",e.temporyConfig.formlyRequired=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.required?t.lines[n].columns[l].control.templateOptions.required:\"\",e.temporyConfig.formlyDesciption=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.description?t.lines[n].columns[l].control.templateOptions.description:\"\",e.temporyConfig.formlyPlaceholder=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.placeholder?t.lines[n].columns[l].control.templateOptions.placeholder:\"\",e.temporyConfig.formlyOptions=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.options?t.lines[n].columns[l].control.templateOptions.options:\"\",\"Date\"===e.temporyConfig.selectedControl&&(e.temporyConfig.datepickerPopup=\"undefined\"!=typeof t.lines[n].columns[l].control.templateOptions.datepickerPopup?t.lines[n].columns[l].control.templateOptions.datepickerPopup:\"\")),e},r.bindConfigurationModelFromModalReturn=function(e,o,t,i){var r=n(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();l(a,i)===!0?i.lines[e].columns[o].control.key=a:(a=i.lines[e].columns[o].control.type+\"-\"+Date.now(),l(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 n=angular.copy(r.proxyModel.temporyConfig);console.warn(\"debug edaEditCtrlControllerModalProxy\"),console.dir(n),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,\"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();l(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),l(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 d={rows:[]};return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(d),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(d),r.newOptionRadio=angular.copy({saisie:\"\"}),r.resetAllTemporyModels=function(){return r.basicSelectRowCollection=angular.copy(d),r.newOptionBasicSelect=angular.copy({saisie:\"\"}),r.groupedSelectRowCollection=angular.copy(d),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(d),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 n={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(n)}},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 n={option:r.proxyModel.temporyConfig.formlyOptions[t].name,order:t,group:r.proxyModel.temporyConfig.formlyOptions[t].group};e.rows.push(n)}var l=_.uniq(_.pluck(e.rows,\"group\"));angular.copy(l,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 n={name:e.rows[t].option,value:t,group:\"\"};r.proxyModel.temporyConfig.formlyOptions.push(n)}},r}]),angular.module(\"edaApp.services.formFieldManage\",[]).factory(\"formFieldManage\",[\"EasyFormGenFormlyBindingModels\",function(e){function o(e){var o=[];angular.copy(o,e)}function t(o,t,n){var l=t.lines[n].columns.length,i=o.push({className:\"row\",fieldGroup:[]})-1;t.lines[n].columns.forEach(function(t,n){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(l,a).template,r.className=e.getRawHeaderTemplates().selectedClass}else r=e.getFormlyControlTemplateForNcolumnLine(l,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 n(e){var o={};return angular.copy(o,e),!0}function l(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 n=e.getEasyFormInitialStateConfigurationModel(t);angular.copy(n,o)},r.bindConfigurationLines=function(o,t,n){if(\"[object Array]\"===Object.prototype.toString.call(t)){var r=e.getEasyFormReloadConfigurationModel(n);return r.lines=[].concat(t),angular.copy(r,o),i(\"configuration model is bound\",\"lines are bound to configuration model.\")}return l(\"lines is not an array\",\"Checks lines type, it is not an array.\")},r.applyConfigurationToformlyModel=function(e,l,i){o(l),n(i);for(var r=e.lines.length,a=0;r>a;a++)t(l,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 n=e.rows.length-1;n>=0;n--)if(e.rows[n].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 n={resultFlag:!1,details:\"\"},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details=\"\",n}return angular.copy(l,n),n},addNewOptionBasicSelect:function(o,t){var n={resultFlag:!1,details:\"\"},l=e(o,t);if(l.resultFlag===!0){var i={option:t,order:o.rows.length};return o.rows.push(i),n.resultFlag=!0,n.details=\"\",n}return angular.copy(l,n),n},addNewOptionGroupedSelect:function(o,t,n){var l={resultFlag:!1,details:\"\"},i=e(o,t);if(i.resultFlag===!0){var r={option:t,group:n,order:o.rows.length};return o.rows.push(r),l.resultFlag=!0,l.details=\"\",l}return angular.copy(i,l),l},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 n=e.rows[o];return e.rows.splice(o,1),e.rows.splice(o-1,0,n),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(on}function d(){return Array.prototype.indexOf.call(g.children,f)}function s(e){if(!n.isDragging&&!y)return!1;if(!u(e.dataTransfer.types))return!1;if(r.dndAllowedTypes&&n.isDragging){var o=l.$eval(r.dndAllowedTypes);if(angular.isArray(o)&&-1===o.indexOf(n.dragType))return!1}return r.dndDisableIf&&l.$eval(r.dndDisableIf)?!1:!0}function c(){return m.remove(),i.removeClass(\"dndDragover\"),!0}function p(o,t,i){return e(o)(l,{event:t,index:d(),item:i||void 0,external:!n.isDragging,type:n.isDragging?n.dragType:void 0})}function u(e){if(!e)return!0;for(var o=0;o'),f=m[0],g=i[0],v=r.dndHorizontalList&&l.$eval(r.dndHorizontalList),y=r.dndExternalSources&&l.$eval(r.dndExternalSources);i.on(\"dragover\",function(e){if(e=e.originalEvent||e,!s(e))return!0;if(f.parentNode!=g&&i.append(m),e.target!==g){for(var o=e.target;o.parentNode!==g&&o.parentNode;)o=o.parentNode;o.parentNode===g&&o!==f&&(a(e,o)?g.insertBefore(f,o):g.insertBefore(f,o.nextSibling))}else if(a(e,f,!0))for(;f.previousElementSibling&&(a(e,f.previousElementSibling,!0)||0===f.previousElementSibling.offsetHeight);)g.insertBefore(f,f.previousElementSibling);else for(;f.nextElementSibling&&!a(e,f.nextElementSibling,!0);)g.insertBefore(f,f.nextElementSibling.nextElementSibling);return r.dndDragover&&!p(r.dndDragover,e)?c():(i.addClass(\"dndDragover\"),e.preventDefault(),e.stopPropagation(),!1)}),i.on(\"drop\",function(e){if(e=e.originalEvent||e,!s(e))return!0;e.preventDefault();var o,n=e.dataTransfer.getData(\"Text\")||e.dataTransfer.getData(\"text/plain\");try{o=JSON.parse(n)}catch(i){return c()}if(r.dndDrop&&(o=p(r.dndDrop,e,o),!o))return c();var a=l.$eval(r.dndList);return l.$apply(function(){a.splice(d(),0,o)}),t.dropEffect=\"none\"===e.dataTransfer.dropEffect?\"copy\"===e.dataTransfer.effectAllowed||\"move\"===e.dataTransfer.effectAllowed?e.dataTransfer.effectAllowed:e.ctrlKey?\"copy\":\"move\":e.dataTransfer.dropEffect,c(),e.stopPropagation(),!1}),i.on(\"dragleave\",function(e){e=e.originalEvent||e,i.removeClass(\"dndDragover\"),o(function(){i.hasClass(\"dndDragover\")||m.remove()},100)})}}]).factory(\"dndDragTypeWorkaround\",function(){return{}}).factory(\"dndDropEffectWorkaround\",function(){return{}})}(),angular.module(\"pageslide-directive\",[]).directive(\"pageslide\",[function(){return{restrict:\"EAC\",transclude:!1,scope:{psOpen:\"=?\",psAutoClose:\"=?\",psSide:\"@\",psSpeed:\"@\",psClass:\"@\",psSize:\"@\",psSqueeze:\"@\",psCloak:\"@\",psPush:\"@\",psContainer:\"@\"},link:function(e,o,t){function n(o,t){\nif(o&&0!==o.style.width&&0!==o.style.width)switch(t.cloak&&r.css(\"display\",\"none\"),t.side){case\"right\":o.style.width=\"0px\",t.squeeze&&(d.style.right=\"0px\"),t.push&&(d.style.right=\"0px\",d.style.left=\"0px\");break;case\"left\":o.style.width=\"0px\",t.squeeze&&(d.style.left=\"0px\"),t.push&&(d.style.left=\"0px\",d.style.right=\"0px\");break;case\"top\":o.style.height=\"0px\",t.squeeze&&(d.style.top=\"0px\"),t.push&&(d.style.top=\"0px\",d.style.bottom=\"0px\");break;case\"bottom\":o.style.height=\"0px\",t.squeeze&&(d.style.bottom=\"0px\"),t.push&&(d.style.bottom=\"0px\",d.style.top=\"0px\")}e.psOpen=!1}function l(e,o){if(0!==e.style.width&&0!==e.style.width){switch(o.side){case\"right\":e.style.width=o.size,o.squeeze&&(d.style.right=o.size),o.push&&(d.style.right=o.size,d.style.left=\"-\"+o.size);break;case\"left\":e.style.width=o.size,o.squeeze&&(d.style.left=o.size),o.push&&(d.style.left=o.size,d.style.right=\"-\"+o.size);break;case\"top\":e.style.height=o.size,o.squeeze&&(d.style.top=o.size),o.push&&(d.style.top=o.size,d.style.bottom=\"-\"+o.size);break;case\"bottom\":e.style.height=o.size,o.squeeze&&(d.style.bottom=o.size),o.push&&(d.style.bottom=o.size,d.style.top=\"-\"+o.size)}setTimeout(function(){o.cloak&&r.css(\"display\",\"block\")},1e3*o.speed)}}var i={};i.side=e.psSide||\"right\",i.speed=e.psSpeed||\"0.5\",i.size=e.psSize||\"300px\",i.zindex=1e3,i.className=e.psClass||\"ng-pageslide\",i.cloak=e.psCloak&&\"false\"==e.psCloak.toLowerCase()?!1:!0,i.squeeze=Boolean(e.psSqueeze)||!1,i.push=Boolean(e.psPush)||!1,i.container=e.psContainer||!1,o.addClass(i.className);var r=null,a=null,d=i.container?document.getElementById(i.container):document.body;if(a=o[0],\"div\"!==a.tagName.toLowerCase()&&\"pageslide\"!==a.tagName.toLowerCase())throw new Error(\"Pageslide can only be applied to
or elements\");if(0===a.children.length)throw new Error(\"You have to content inside the \");switch(r=angular.element(a.children),d.appendChild(a),a.style.zIndex=i.zindex,a.style.position=i.container!==!1?\"absolute\":\"fixed\",a.style.width=0,a.style.height=0,a.style.overflow=\"hidden\",a.style.transitionDuration=i.speed+\"s\",a.style.webkitTransitionDuration=i.speed+\"s\",a.style.transitionProperty=\"width, height\",i.squeeze&&(d.style.position=\"absolute\",d.style.transitionDuration=i.speed+\"s\",d.style.webkitTransitionDuration=i.speed+\"s\",d.style.transitionProperty=\"top, bottom, left, right\"),i.side){case\"right\":a.style.height=t.psCustomHeight||\"100%\",a.style.top=t.psCustomTop||\"0px\",a.style.bottom=t.psCustomBottom||\"0px\",a.style.right=t.psCustomRight||\"0px\";break;case\"left\":a.style.height=t.psCustomHeight||\"100%\",a.style.top=t.psCustomTop||\"0px\",a.style.bottom=t.psCustomBottom||\"0px\",a.style.left=t.psCustomLeft||\"0px\";break;case\"top\":a.style.width=t.psCustomWidth||\"100%\",a.style.left=t.psCustomLeft||\"0px\",a.style.top=t.psCustomTop||\"0px\",a.style.right=t.psCustomRight||\"0px\";break;case\"bottom\":a.style.width=t.psCustomWidth||\"100%\",a.style.bottom=t.psCustomBottom||\"0px\",a.style.left=t.psCustomLeft||\"0px\",a.style.right=t.psCustomRight||\"0px\"}e.$watch(\"psOpen\",function(e){e?l(a,i):n(a,i)}),e.$on(\"$destroy\",function(){d.removeChild(a)}),e.psAutoClose&&(e.$on(\"$locationChangeStart\",function(){n(a,i)}),e.$on(\"$stateChangeStart\",function(){n(a,i)}))}}}])}(this);\n//# sourceMappingURL=eda.dragdropway.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 486bb931..b5710b8a 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":["easyFromConfigFct","easyFormSteWayConfigProvider","setModalAnimation","formlyConfigFct","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","$translateProvider","translations","SAY_HI","EDIT_TAB","PREVIEW_TAB","WIZARD_LINES","WIZARD_LAYOUT","WIZARD_CONTROLS","WIZARD_SAVE","PAGER_PREVIOUS","PAGER_NEXT","COMMAND_PANEL","VISUAL_PANEL","ADD_NEW_LINE","SELECTED_LINE","NUMBER_OF_COLUMN","APPLY_CTRL2COL","CLIC_TAP_2_OPEN","SELECT_2_APPLY_COL","CUSTOM_SUBMIT_BTN","CUSTOM_CANCEL_BTN","NAME_THIS_FORM","SAVE_THIS_FORM","FINAL_STEP","DATA_MODEL","FIELDS_MODEL","SELECT_A_CTRL","SELECT_CTRL_IN_LIST","COL_WILL_BE_BLANK","EDIT_PROPERTIES","HEADER_TEXT","ADD_EDIT_HEADER_HERE","SUBTITLE_TEXT","ADD_EDIT_SUBTIL_HERE","LABEL_TEXT","ADD_EDIT_LABEL_HERE","PLACEHOLDER","ADD_EDIT_PLACEHOLD","REQUIRED","DESCRIPTION","ADDEDIT_DESCRIPTION","DATE_FORMAT","ADD_NEW_RADIO","ADD_RADIO_PLACEHOLD","EDIT_REMOVE_RADIO","NO_RADIO_ADD_NEW","SEARCH_4_OPTION","ADD","ORDER","OPTION","GROUP","ADD_NEW_OPTIONS","ADD_A_NEW_OPTION","EDIT_REMOVE_OPTIONS","NO_OPTION_ADD_NEW","ADD_NEW_GROUPS","ADD_A_NEW_GROUP","EDIT_GROUPS_OPTIONS","NO_GROUP_ADD_NEW","OK","CANCEL","easyFormSteWayConfigFct","defaultConfig","_defaultConfiguration","modalAnimated","getDefaultshowPreviewPanel","getDefaultShowPreviewModel","controlsList","controls","enabled","flagConfig","valueToApply","_configuration","getModalAnimation","getEnabledControls","_controlsList","disableControl","controlName","isString","aControl","console","log","showPreviewPanel","wantToShow","isDefined","_showPreviewPanel","showPreviewModels","_showPreviewModels","enableControl","getDefaultLanguage","lang","initDefaultLanguage","useSanitizeValueStrategy","fallbackLanguage","_defaultLanguage","preferredLanguage","setDefaultLanguage","_currentLanguage","setLanguage","language","getCurrentLanguage","easyFormSteWayConfig","$translate","getModalAnimationValue","setModalAnimationFct","getListEnabledControl","copy","isPreviewPanelVisible","arePreviewModelsVisible","switchLanguage","use","service","this","$get","configuration","provider","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","wfFormFields","cancelButtonText","submitButtonText","onSubmit","pop","type","timeout","title","body","showCloseButton","initColumnTemplate","numColumn","exist","control","key","subtype","initLineTemplate","line","activeColumn","columns","resetToZeroModel","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","loadExistingFormsAsList","saveThisForm","formName","clear","resetAllIndicators","i","stepIndicators","indexIndicator","easyFormGeneratorVERSION","tab","numberOfColumns","MinNumberOfColumns","columnTemplate","lineTemplate","loadExistingFormsList","formlyList","initConfigurationEditFromScratch","initNyaSelect","ngwfWfEditMODALController","$modalInstance","selectOptionManage","initNyaSelectFiltered","nyaSelectFiltered","listCtrl","concat","getFilteredNyaSelectObject","extend","selectedControl","temporyConfig","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","resetTemporyConfig","id","initDatePicker","okfct","bindBasicSelectToNya","bindGroupedSelectToNya","bindRadioToNya","applyConfigToSelectedControl","close","cancelfct","dismiss","bindRadioFromNYA","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","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","$watch","edaStepWayEasyFormGenCtrl","_tabInitialized","tabVisible","modelsVisible","directive","restrict","controllerAs","link","stRatio","linkfct","ratio","css","nyaSelectObj","resetNyaSelect","getControlsDefinition","configurationModel","isObject","column","controlIndex","_controlsDefinition","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","filterDisabledControl","listAllEnabledControl","filteredNyaList","enabledControl","nyaControl","CtrlModalModel","modelToReturn","thisKey","isUnique","j","factory","configurationModelInit","Object","prototype","toString","call","configurationModelResult","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","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B,OACA,oBACW,mCACA,sCACA,yDAmBnB,WAGA7B,QACE6B,OAAO,0BAMPuH","file":"eda.stepway.min.js","sourcesContent":["!function(){\"use strict\";!function(){function e(e){e.setModalAnimation(!1)}function o(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\"],a=[\"datepicker-mode\",\"min-date\",\"max-date\"],r={};angular.forEach(i,function(e){r[o(e)]={attribute:e}}),angular.forEach(a,function(e){r[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:r,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\",\"eda.easyFormGenerator.translate\",\"eda.easyFormSteWayConfigProvider\",\"ngwfApp.controllers\",\"ngwfApp.services\",\"ngwfApp.filters\",\"ngwfApp.directives\"]).value(\"easyFormGenVersion\",\"v1.0.30\").config(o).config(e),e.$inject=[\"easyFormSteWayConfigProvider\"],o.$inject=[\"formlyConfigProvider\"]}(),angular.module(\"ngwfApp\").run([\"$templateCache\",function(e){e.put(\"edaStepWayEasyFormGeneratorTemplate.html\",'

{{\\'WIZARD_LINES\\' | translate}}

{{\\'WIZARD_LAYOUT\\' | translate}}

{{\\'WIZARD_CONTROLS\\' | translate}}

{{\\'WIZARD_SAVE\\' | translate}}

 {{\\'COMMAND_PANEL\\' | translate}}

{{\\'ADD_NEW_LINE\\' | translate}} : 

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}

- {{\\'SELECTED_LINE\\' | translate}} -

{{\\'NUMBER_OF_COLUMN\\' | translate}} :

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

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}

- {{\\'APPLY_CTRL2COL\\' | translate}} -


  {{\\'CLIC_TAP_2_OPEN\\' | translate}}.

  {{\\'SELECT_2_APPLY_COL\\' | translate}}.

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}



 {{\\'FINAL_STEP\\' | translate}}

{{\\'DATA_MODEL\\' | translate}}

\\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\\' | translate}}

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

'),e.put(\"editModalTemplate.html\",'');\n\n}]),function(){angular.module(\"ngwfApp.core\",[\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"pascalprecht.translate\"])}(),angular.module(\"eda.easyFormGenerator.translate\",[]).config([\"$translateProvider\",function(e){e.translations(\"de\",{SAY_HI:\"Hallo\",EDIT_TAB:\"Bearbeiten / Schaffen\",PREVIEW_TAB:\"Vorschau\",WIZARD_LINES:\"Linien\",WIZARD_LAYOUT:\"Layout\",WIZARD_CONTROLS:\"Steuerung\",WIZARD_SAVE:\"sparen\",PAGER_PREVIOUS:\"vorher.\",PAGER_NEXT:\"nächste\",COMMAND_PANEL:\"Anweisung\",VISUAL_PANEL:\"visuell\",ADD_NEW_LINE:\"Hinzufügen neuer Leitung\",SELECTED_LINE:\"ausgewählte Linie\",NUMBER_OF_COLUMN:\"Anzahl von Spalten\",APPLY_CTRL2COL:\"gelten diese Steuer Spalte\",CLIC_TAP_2_OPEN:\"klicken Sie auf Spalte zur Steuerungsauswahl öffnen\",SELECT_2_APPLY_COL:\"Wählen Sie die gewünschte Steuerung und gültig , um es in Spalte anwenden\",CUSTOM_SUBMIT_BTN:\"Passen Submit-Button Text\",CUSTOM_CANCEL_BTN:\"Passen Cancel-Button Text\",NAME_THIS_FORM:\"Nennen dieses Formular\",SAVE_THIS_FORM:\"Speichern dieses Formular\",FINAL_STEP:\"Endschritt : Formular Vorschau\",DATA_MODEL:\"DATEN MODELL\",FIELDS_MODEL:\"FELDER MODELL (Datenbank-kompatibel)\",SELECT_A_CTRL:\"Wählen Sie ein Steuer\",SELECT_CTRL_IN_LIST:\"Wählen Sie ein Steuer aus der Liste unten\",COL_WILL_BE_BLANK:\"die Spalte werde leer sein\",EDIT_PROPERTIES:\"Anzeigen\",HEADER_TEXT:\"Kopftext\",ADD_EDIT_HEADER_HERE:\"Kopftext ändern\",SUBTITLE_TEXT:\"Untertitel\",ADD_EDIT_SUBTIL_HERE:\"Untertitel ändern\",LABEL_TEXT:\"Etikett\",ADD_EDIT_LABEL_HERE:\"Etikett ändern\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"placeholder ändern\",REQUIRED:\"erforderlich\",DESCRIPTION:\"Beschreibung\",ADDEDIT_DESCRIPTION:\"Beschreibung ändern\",DATE_FORMAT:\"Datumsformat\",ADD_NEW_RADIO:\"Radiobutton hinzufügen\",ADD_RADIO_PLACEHOLD:\"Radiobutton hinzufügen\",EDIT_REMOVE_RADIO:\"Radiobutton ändern\",NO_RADIO_ADD_NEW:\"kein Radiobutton : Radiobutton hinzufügen\",SEARCH_4_OPTION:\"option suchen\",ADD:\"hinzufügen\",ORDER:\"bestellen\",OPTION:\"Option\",GROUP:\"Gruppe\",ADD_NEW_OPTIONS:\"Optionen hinzufügen\",ADD_A_NEW_OPTION:\"Option hinzufügen\",EDIT_REMOVE_OPTIONS:\"Optionen ändern\",NO_OPTION_ADD_NEW:\"kein option : Option hinzufügen\",ADD_NEW_GROUPS:\"Gruppen hinzufügen\",ADD_A_NEW_GROUP:\"Gruppe hinzufügen\",EDIT_GROUPS_OPTIONS:\"Gruppen ändern\",NO_GROUP_ADD_NEW:\"keine Gruppe : Gruppe hinzufügen\",OK:\"bestätigen\",CANCEL:\"stornieren\"}),e.translations(\"en\",{SAY_HI:\"Hello\",EDIT_TAB:\"Edit / Create\",PREVIEW_TAB:\"Preview\",WIZARD_LINES:\"lines\",WIZARD_LAYOUT:\"layout\",WIZARD_CONTROLS:\"controls\",WIZARD_SAVE:\"save\",PAGER_PREVIOUS:\"Previous\",PAGER_NEXT:\"Next\",COMMAND_PANEL:\"Command\",VISUAL_PANEL:\"Visual\",ADD_NEW_LINE:\"Add a new line\",SELECTED_LINE:\"Selected line\",NUMBER_OF_COLUMN:\"number of columns\",APPLY_CTRL2COL:\"Apply controls to columns\",CLIC_TAP_2_OPEN:\"Click / Tap on column to open control selection\",SELECT_2_APPLY_COL:\"Select desired control and valid to apply it to column\",CUSTOM_SUBMIT_BTN:\"Customize Submit button Text\",CUSTOM_CANCEL_BTN:\"Customize Cancel button Text\",NAME_THIS_FORM:\"Name this form\",SAVE_THIS_FORM:\"save this form\",FINAL_STEP:\"Final Step : form preview\",DATA_MODEL:\"DATA MODEL\",FIELDS_MODEL:\"FIELDS MODEL (ready to save to database one)\",SELECT_A_CTRL:\"Select a control\",SELECT_CTRL_IN_LIST:\"Select a control in the list below\",COL_WILL_BE_BLANK:\"Column will be blank\",EDIT_PROPERTIES:\"Edit properties\",HEADER_TEXT:\"Header text\",ADD_EDIT_HEADER_HERE:\"Add / edit header text here\",SUBTITLE_TEXT:\"Subtitle text\",ADD_EDIT_SUBTIL_HERE:\"Add / edit subtitle text here\",LABEL_TEXT:\"Label text\",ADD_EDIT_LABEL_HERE:\"Add / edit control label here\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"Add / edit placeholder text here\",REQUIRED:\"Required\",DESCRIPTION:\"Description\",ADDEDIT_DESCRIPTION:\"Add / edit description here\",DATE_FORMAT:\"Date format\",ADD_NEW_RADIO:\"Add new radio\",ADD_RADIO_PLACEHOLD:\"add new radio\",EDIT_REMOVE_RADIO:\"Edit/Remove radio\",NO_RADIO_ADD_NEW:\"no radio : add new radio values\",SEARCH_4_OPTION:\"search for option\",ADD:\"add\",ORDER:\"order\",OPTION:\"option\",GROUP:\"group\",ADD_NEW_OPTIONS:\"Add new options\",ADD_A_NEW_OPTION:\"add new option\",EDIT_REMOVE_OPTIONS:\"Edit/Remove options\",NO_OPTION_ADD_NEW:\"no option : add new options\",ADD_NEW_GROUPS:\"Add new groups\",ADD_A_NEW_GROUP:\"Add new group\",EDIT_GROUPS_OPTIONS:\"Edit/Remove options/groups\",NO_GROUP_ADD_NEW:\"add new groups\",OK:\"OK\",CANCEL:\"Cancel\"}),e.translations(\"es\",{SAY_HI:\"Hola\",EDIT_TAB:\"Editar / Crear\",PREVIEW_TAB:\"Previsualizar\",WIZARD_LINES:\"lineas\",WIZARD_LAYOUT:\"diseño\",WIZARD_CONTROLS:\"controles\",WIZARD_SAVE:\"guardar\",PAGER_PREVIOUS:\"Anterior\",PAGER_NEXT:\"Siguiente\",COMMAND_PANEL:\"Comando\",VISUAL_PANEL:\"Visual\",ADD_NEW_LINE:\"Agregar nueva linea\",SELECTED_LINE:\"Linea seleccionada\",NUMBER_OF_COLUMN:\"numero de columnas\",APPLY_CTRL2COL:\"Aplicar controles a columnas\",CLIC_TAP_2_OPEN:\"Click / Toque en la columna para seleccionar controles\",SELECT_2_APPLY_COL:\"Selecciona el control deseado para aplicarlo a la columna\",CUSTOM_SUBMIT_BTN:\"Personalizar texto de boton Enviar\",CUSTOM_CANCEL_BTN:\"Personalizar texto de boton Cancelar\",NAME_THIS_FORM:\"Nombrar formulario\",SAVE_THIS_FORM:\"guardar formulario\",FINAL_STEP:\"Ultimo paso : previsualizar formulario\",DATA_MODEL:\"MODELO DE DATOS\",FIELDS_MODEL:\"MODELO DE CAMPOS (listo para guardar en base de datos uno)\",SELECT_A_CTRL:\"Selecciona un control\",SELECT_CTRL_IN_LIST:\"Selecciona un control de la lista\",COL_WILL_BE_BLANK:\"Columna sera vacia\",EDIT_PROPERTIES:\"Editar propiedades\",HEADER_TEXT:\"Texto de encabezado\",ADD_EDIT_HEADER_HERE:\"Agregar / editar texto de encabezado aqui\",SUBTITLE_TEXT:\"Texto de subtitulo\",ADD_EDIT_SUBTIL_HERE:\"Agregar / editar texto de subtitulo aqui\",LABEL_TEXT:\"Texto de etiqueta\",ADD_EDIT_LABEL_HERE:\"Agregar / editar texto de etiqueta aqui\",PLACEHOLDER:\"Marcador\",ADD_EDIT_PLACEHOLD:\"Agregar / editar texto de marcador aqui\",REQUIRED:\"Requerido\",DESCRIPTION:\"Descripcion\",ADDEDIT_DESCRIPTION:\"Agregar / editar descripcion aqui\",DATE_FORMAT:\"Formato de fecha\",ADD_NEW_RADIO:\"Agregar nuevo radio\",ADD_RADIO_PLACEHOLD:\"agregar nuevo radio\",EDIT_REMOVE_RADIO:\"Editar/Eliminar radio\",NO_RADIO_ADD_NEW:\"sin radio : agregar nuevos valores de radio\",SEARCH_4_OPTION:\"buscar opcion\",ADD:\"agregar\",ORDER:\"orden\",OPTION:\"opcion\",GROUP:\"grupo\",ADD_NEW_OPTIONS:\"agregar nuevas opciones\",ADD_A_NEW_OPTION:\"agregar nueva opcione\",EDIT_REMOVE_OPTIONS:\"Editar/Eliminar opciones\",NO_OPTION_ADD_NEW:\"sin opcion : agregar nuevas opciones\",ADD_NEW_GROUPS:\"Agregar nuevos grupos\",ADD_A_NEW_GROUP:\"Agregar nuevo grupo\",EDIT_GROUPS_OPTIONS:\"Editar/Eliminar opciones/grupos\",NO_GROUP_ADD_NEW:\"agregar nuevos grupos\",OK:\"OK\",CANCEL:\"Cancelar\"}),e.translations(\"fr\",{SAY_HI:\"Bonjour\",EDIT_TAB:\"Edition / Creation\",PREVIEW_TAB:\"Aperçu\",WIZARD_LINES:\"lignes\",WIZARD_LAYOUT:\"disposition\",WIZARD_CONTROLS:\"contrôles\",WIZARD_SAVE:\"sauvegarder\",PAGER_PREVIOUS:\"Précédent\",PAGER_NEXT:\"Suivant\",COMMAND_PANEL:\"Commandes\",VISUAL_PANEL:\"Visuel\",ADD_NEW_LINE:\"Ajouter une nouvelle ligne\",SELECTED_LINE:\"Ligne sélectionnée\",NUMBER_OF_COLUMN:\"nombre de colonnes\",APPLY_CTRL2COL:\"Appliquer les contrôles aux colonnes\",CLIC_TAP_2_OPEN:\"Cliquer sur une colonne pour ouvrir le menu d'édition\",SELECT_2_APPLY_COL:\"Sélectionner un contrôle puis valider pour l'appliquer à la colonne\",CUSTOM_SUBMIT_BTN:\"Personnaliser le texte du bouton envoie\",CUSTOM_CANCEL_BTN:\"Personnaliser le texte du bouton annuler\",NAME_THIS_FORM:\"Nommer le formulaire\",SAVE_THIS_FORM:\"sauvegarder le formulaire\",FINAL_STEP:\"Dernière étape : aperçu du formulaire\",DATA_MODEL:\"MODELE DE DONNEES\",FIELDS_MODEL:\"MODELE DES CHAMPS (modèle compatible base de données)\",SELECT_A_CTRL:\"Sélectionner un contrôle\",SELECT_CTRL_IN_LIST:\"Sélectionner un contrôle dans la liste ci-dessous\",COL_WILL_BE_BLANK:\"La colonne sera vide\",EDIT_PROPERTIES:\"Editer les propriétés\",HEADER_TEXT:\"Texte du titre principal\",ADD_EDIT_HEADER_HERE:\"Editer le textes du titre principal\",SUBTITLE_TEXT:\"Texte du sous-titre\",ADD_EDIT_SUBTIL_HERE:\"Editer le textes du sous-titre\",LABEL_TEXT:\"Texte de l'étiquette\",ADD_EDIT_LABEL_HERE:\"Editer le texte de l'étiquette\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"Editer le placeholder\",REQUIRED:\"Requis\",DESCRIPTION:\"Description\",ADDEDIT_DESCRIPTION:\"Ajouter / editer la description\",DATE_FORMAT:\"Format de la date\",ADD_NEW_RADIO:\"Ajouter un nouveau choix à cocher\",ADD_RADIO_PLACEHOLD:\"Ajouter un nouveau choix à cocher\",EDIT_REMOVE_RADIO:\"Editer / supprimer un choix à cocher\",NO_RADIO_ADD_NEW:\"aucun choix à cocher : en ajouter un\",SEARCH_4_OPTION:\"rechercher une option\",ADD:\"ajouter\",ORDER:\"ordre\",OPTION:\"option\",GROUP:\"groupe\",ADD_NEW_OPTIONS:\"Ajouter de nouvelles options\",ADD_A_NEW_OPTION:\"ajoutre une option\",EDIT_REMOVE_OPTIONS:\"Editer / supprimer des options\",NO_OPTION_ADD_NEW:\"aucune option : en ajouter\",ADD_NEW_GROUPS:\"Ajouter de nouveaux groupes\",ADD_A_NEW_GROUP:\"Ajouter un nouveau groupe\",EDIT_GROUPS_OPTIONS:\"Editer / supprimer les groupes et options\",NO_GROUP_ADD_NEW:\"ajouter de nouveaux groupes\",OK:\"Valider\",CANCEL:\"Annuler\"}),e.translations(\"jp\",{SAY_HI:\"こんにちわ\",EDIT_TAB:\"編集 / 作成\",PREVIEW_TAB:\"プレビュー\",WIZARD_LINES:\"ライン\",WIZARD_LAYOUT:\"レイアウト\",WIZARD_CONTROLS:\"コントロール\",WIZARD_SAVE:\"サーブ\",PAGER_PREVIOUS:\"前\",PAGER_NEXT:\"次\",COMMAND_PANEL:\"コマンド\",VISUAL_PANEL:\"ビジュアル\",ADD_NEW_LINE:\"新しいライン追加\",SELECTED_LINE:\"選択されたライン\",NUMBER_OF_COLUMN:\"カラムの数\",APPLY_CTRL2COL:\"カラムにコントロール適用\",CLIC_TAP_2_OPEN:\"コントロール選択を広げるには列をクリック\",SELECT_2_APPLY_COL:\"好きなコントロールを選び適用\",CUSTOM_SUBMIT_BTN:\"適用ボタンの文字変更する場合\",CUSTOM_CANCEL_BTN:\"キャンセルボタンの文字変更する場合\",NAME_THIS_FORM:\"形式に名前を付ける\",SAVE_THIS_FORM:\"形式をサーブ\",FINAL_STEP:\"ファイナルステップ : プレビュー形式\",DATA_MODEL:\"データーモデル\",FIELDS_MODEL:\"モデルフィールド\",SELECT_A_CTRL:\"コントロールを選び選択\",SELECT_CTRL_IN_LIST:\"以下のリストからコントロールを選び選択\",COL_WILL_BE_BLANK:\"空になる列\",EDIT_PROPERTIES:\"プロパティの変更\",HEADER_TEXT:\"ヘッダーテキスト\",ADD_EDIT_HEADER_HERE:\"ヘッダーテキスト文字変更\",SUBTITLE_TEXT:\"サブタイトル テキスト\",ADD_EDIT_SUBTIL_HERE:\"サブタイトルテキスト文字変更\",LABEL_TEXT:\"ラベルテキスト\",ADD_EDIT_LABEL_HERE:\"ラベルテキスト文字変更\",PLACEHOLDER:\"プレースホルダー\",ADD_EDIT_PLACEHOLD:\"プレースホルダー文字変更\",REQUIRED:\"必須\",DESCRIPTION:\"説明\",ADDEDIT_DESCRIPTION:\"説明の変更\",DATE_FORMAT:\"日付の形式\",ADD_NEW_RADIO:\"新ラジオボタンを追加\",ADD_RADIO_PLACEHOLD:\"新ラジオボタンを追加\",EDIT_REMOVE_RADIO:\"ラジオボタン変更\",NO_RADIO_ADD_NEW:\"ラジオ無し : 新ラジオボタン追加\",SEARCH_4_OPTION:\"オプション検索\",ADD:\"追加\",ORDER:\"順番\",OPTION:\"オプション\",GROUP:\"グループ\",ADD_NEW_OPTIONS:\"新しいオプション追加\",ADD_A_NEW_OPTION:\"新しいオプション追加\",EDIT_REMOVE_OPTIONS:\"オプションの変更\",NO_OPTION_ADD_NEW:\"オプション無し : 新しいオプション追加\",ADD_NEW_GROUPS:\"新しいグループ追加\",ADD_A_NEW_GROUP:\"新しいグループ追加\",EDIT_GROUPS_OPTIONS:\"グループを変更\",NO_GROUP_ADD_NEW:\"グループを追加\",OK:\"オッケー\",CANCEL:\"キャンセル\"}),e.translations(\"tr\",{SAY_HI:\"Merhaba\",EDIT_TAB:\"Düzenle / Oluştur\",PREVIEW_TAB:\"Önizleme\",WIZARD_LINES:\"satırlar\",WIZARD_LAYOUT:\"düzen\",WIZARD_CONTROLS:\"kontroller\",WIZARD_SAVE:\"kaydet\",PAGER_PREVIOUS:\"Geri\",PAGER_NEXT:\"İleri\",COMMAND_PANEL:\"Komut\",VISUAL_PANEL:\"Görsel\",ADD_NEW_LINE:\"Yeni satır ekle\",SELECTED_LINE:\"Seçili satır\",NUMBER_OF_COLUMN:\"sütun sayısı\",APPLY_CTRL2COL:\"Sütunlara form ögesi ekle\",CLIC_TAP_2_OPEN:\"Form ögesi eklemek için sütunlara tıkla\",SELECT_2_APPLY_COL:\"İstediğin ögeyi seçtikten sonra gerekli yerleri doldur ve kaydet\",CUSTOM_SUBMIT_BTN:\"Gönder butonu yazısını düzenle\",CUSTOM_CANCEL_BTN:\"İptal butonu yazısını düzenle\",NAME_THIS_FORM:\"Forma isim ver\",SAVE_THIS_FORM:\"formu kaydet\",FINAL_STEP:\"Son aşama : form önizlemesi\",DATA_MODEL:\"VERİ MODELİ\",FIELDS_MODEL:\"ALAN MODELİ (veritabanına kaydetmeye hazır)\",SELECT_A_CTRL:\"Form ögesi seç\",SELECT_CTRL_IN_LIST:\"Verilen listeden bir form ögesi seç\",COL_WILL_BE_BLANK:\"Sütun boş kalacak\",EDIT_PROPERTIES:\"Özellikleri düzenle\",HEADER_TEXT:\"Başlık yazısı\",ADD_EDIT_HEADER_HERE:\"Başlık yazısını ekle / düzenle\",SUBTITLE_TEXT:\"Altyazı\",ADD_EDIT_SUBTIL_HERE:\"Altyazı ekle / düzenle\",LABEL_TEXT:\"Form ögesinin adı\",ADD_EDIT_LABEL_HERE:\"Ad ekle / düzenle\",PLACEHOLDER:\"Form ögesinin içine geçici yazı ekle\",ADD_EDIT_PLACEHOLD:\"Geçici yazı ekle / düzenle\",REQUIRED:\"Gerekli\",DESCRIPTION:\"Açıklama\",ADDEDIT_DESCRIPTION:\"Açıklama ekle / düzenle\",DATE_FORMAT:\"Tarih formatı\",ADD_NEW_RADIO:\"Radio butonu ekle\",ADD_RADIO_PLACEHOLD:\"radio butonu ekle\",EDIT_REMOVE_RADIO:\"Radio butonunu ekle / düzenle\",NO_RADIO_ADD_NEW:\"radio butonu yok : yeni buton ekle\",SEARCH_4_OPTION:\"seçenek ara\",ADD:\"ekle\",ORDER:\"sıra\",OPTION:\"seçenek\",GROUP:\"grup\",ADD_NEW_OPTIONS:\"Yeni seçenek ekle\",ADD_A_NEW_OPTION:\"yeni seçenek ekle\",EDIT_REMOVE_OPTIONS:\"Seçenekleri düzenle/sil\",NO_OPTION_ADD_NEW:\"seçenek yok : yeni seçenek ekle\",ADD_NEW_GROUPS:\"Yeni grup ekle\",ADD_A_NEW_GROUP:\"Yeni grup ekle\",EDIT_GROUPS_OPTIONS:\"Seçenek/Grup Ekle/sil\",NO_GROUP_ADD_NEW:\"yeni grup ekle\",OK:\"TAMAM\",CANCEL:\"İptal\"})}]),function(){function e(e){function o(){var e={modalAnimated:!1};return e}function l(){return!0}function t(){return!0}function n(){var e=[{name:\"empty\",enabled:!0},{name:\"Header\",enabled:!0},{name:\"TextInput\",enabled:!0},{name:\"Password\",enabled:!0},{name:\"Date\",enabled:!0},{name:\"Texarea\",enabled:!0},{name:\"RichTextEditor\",enabled:!0},{name:\"Radio\",enabled:!0},{name:\"Checkbox\",enabled:!0},{name:\"BasicSelect\",enabled:!0},{name:\"GroupedSelect\",enabled:!0}];return e}function i(e){var o=e===!0?e:e===!1?e:b.modalAnimated;b.modalAnimated=o}function a(){return b.modalAnimated}function r(){return E}function s(e){angular.isString(e)&&angular.forEach(E,function(o){o.name===e&&(o.enabled=!1,console.log(\"disable aControl : \"+o.name,0/0+e))})}function c(e){angular.isDefined(e)&&(e===!0&&(D=!0),e===!1&&(D=!1))}function d(e){angular.isDefined(e)&&(e===!0&&(_=!0),e===!1&&(_=!1))}function u(e){angular.isString(e)&&angular.forEach(E,function(o){o.name===e&&(o.enabled=!0)})}function p(){var e=\"en\";return e}function m(){return e.useSanitizeValueStrategy(\"escape\"),e.fallbackLanguage(T),e.preferredLanguage(T),T}function f(){return h=T,e.preferredLanguage(h),h}function v(o){angular.isString(o)?(h=o,e.preferredLanguage(o)):f()}function y(){return h}function g(e){function o(){return b.modalAnimated}function l(e){i(e)}function t(){return angular.copy(E)}function n(){return D}function a(){return _}function r(o){angular.isString(o)?(h=o,e.use(o)):f()}var s={setModalAnimation:l,getModalAnimationValue:o,getListEnabledControl:t,setLanguage:r,getCurrentLanguage:y,isPreviewPanelVisible:n,arePreviewModelsVisible:a};return s}var b=o(),E=n(),T=p(),h=m(),D=l(),_=t();this.$get=g,this.setModalAnimation=i,this.getModalAnimation=a,this.configuration=b,this.getEnabledControls=r,this.disableControl=s,this.enableControl=u,this.setLanguage=v,this.getCurrentLanguage=y,this.showPreviewPanel=c,this.showPreviewModels=d,g.$inject=[\"$translate\"]}angular.module(\"eda.easyFormSteWayConfigProvider\",[]).provider(\"easyFormSteWayConfig\",e),e.$inject=[\"$translateProvider\"]}(),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,a,r,s,c,d,u){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function m(){return{editTab:{active:!0},previewTab:{active:!1}}}function f(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 v(){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 y(){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 b(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function E(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function T(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function h(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 D(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 _(){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 w(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):a(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 C(){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 O(){e.configuration.configStepCounter=0}function L(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,F(e.configuration.configStepCounter)}function A(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,F(e.configuration.configStepCounter)}function x(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function F(o){N(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=v,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=m(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=y(),e.lineTemplate=g(),e.resetToZeroModel=b,e.countConfigurationModelLines=E,e.setActiveLineNumber=T,e.upThisLine=h,e.downThisLine=D,e.addNewline=_,e.removeThisLine=w,e.increaseNumberOfColumns=C,e.decreaseNumberOfColumns=S,e.resetStepCounter=O,e.nextConfigStep=L,e.previousConfigStep=A,e.stepReachable=x,e.nyaSelect={},e.animationsEnabled=u.getModalAnimationValue(),e.showModalAddCtrlToColumn=R,e.loadExistingFormsList=P(),e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=f,e.saveThisForm=I,P(),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\",\"easyFormSteWayConfig\"]}(),function(){function e(e,o,l,t,n,i,a){function r(){e.nyaSelectFiltered={};var o=[].concat(a.getFilteredNyaSelectObject());angular.extend(e.nyaSelectFiltered,{controls:o,selectedControl:e.nyaSelect.selectedControl,temporyConfig:e.nyaSelect.temporyConfig})}function s(){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 c(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 d(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 u(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 m(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 f(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 v(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 y(){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 b(){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 E(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 T(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 h(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 D(){e.demodt.dt=new Date}function w(){e.demodt.dt=null}function C(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0}function S(){return{formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null}}function O(o){e.nyaSelect.selectedControl=\"none\",B();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&&k()}function L(){\"BasicSelect\"===e.nyaSelect.selectedControl&&I(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&F(),\"Radio\"===e.nyaSelect.selectedControl&&R(),a.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)}function A(){o.dismiss(\"cancel\")}function x(){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 I(){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 N(){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 F(){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 k(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function M(){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&&N(),\"Radio\"===e.nyaSelect.selectedControl&&x()}r()}function B(){e.nyaSelectFiltered.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var q={rows:[]};e.radioRowCollection=q,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=s,e.removeRadioRow=c,e.upThisRadioRow=d,e.downThisRadioRow=u,e.basicSelectRowCollection=q,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=p,e.removeRow=m,e.upThisRow=f,e.downThisRow=v,e.groupedSelectRowCollection=q,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=y,e.addNewGroupToGroupedSelect=g,e.addNewOptionGroupedSelect=b,e.removeGroupedSelectRow=E,e.upThisGroupedSelectRow=T,e.downThisGroupedSelectRow=h,e.demodt={},e.today=D,e.clear=w,e.open=C,e.dateOptions=S(),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=O,e.ok=L,e.cancel=A,e.nyaSelectFiltered={},D(),M()}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:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){p()}function d(){return e.returnSaveEvent}function u(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 p(){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=r,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(s,c,!0),e.$watch(d,u)}function i(e,o,l,t,n,i,a,r,s,c,d,u){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function m(){var e={editTab:{active:!0},previewTab:{active:!1,tabVisible:u.isPreviewPanelVisible(),modelsVisible:u.arePreviewModelsVisible()}};return e}function f(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 v(){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 y(){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 b(){\nreturn e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function E(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function T(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function h(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 D(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 _(){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 w(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):a(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 C(){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 O(){e.configuration.configStepCounter=0}function L(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,N(e.configuration.configStepCounter)}function A(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,N(e.configuration.configStepCounter)}function x(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function N(o){I(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=v,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=m(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=y(),e.lineTemplate=g(),e.resetToZeroModel=b,e.countConfigurationModelLines=E,e.setActiveLineNumber=T,e.upThisLine=h,e.downThisLine=D,e.addNewline=_,e.removeThisLine=w,e.increaseNumberOfColumns=C,e.decreaseNumberOfColumns=S,e.resetStepCounter=O,e.nextConfigStep=L,e.previousConfigStep=A,e.stepReachable=x,e.nyaSelect={},e.animationsEnabled=u.getModalAnimationValue(),e.showModalAddCtrlToColumn=R,e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=f,e.saveThisForm=P,e.returnSaveEvent=!1,c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}i.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\",\"easyFormSteWayConfig\"];var a={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaStepWayEasyFormGeneratorTemplate.html\",link:n};return a}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(e){function o(e){return u(e)}function l(){var e={};return u(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function n(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function i(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function a(e,o,l,t){return u(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 r(e,o,l,t){var n=m(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();f(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),f(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 s(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 c(){return{formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function d(){var e={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:{messages:{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(p(angular.copy(e)))}function u(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:{messages:{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 p(o){var l=e.getListEnabledControl(),t=[];return angular.forEach(l,function(e){angular.forEach(o.controls,function(o){o.id===e.name&&e.enabled===!0&&(t=t.concat(o))})}),t}function m(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 f(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 v={initNyaSelect:o,getNyASelectFromSelectedLineColumn:a,bindConfigurationModelFromModalReturn:r,applyConfigToSelectedControl:s,resetTemporyConfig:c,getControlsDefinition:l,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:n,refreshControlFormlyValidation:i,getFilteredNyaSelectObject:d};return v}angular.module(\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",e),e.$inject=[\"easyFormSteWayConfig\"]}(),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),h(\"configuration model is bound\",\"lines are bound to configuration model.\")}return T(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function l(e,o,l){t(o),E(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):a(o,e,c)),2===e.lines[c].columns.length&&r(o,e,c),3===e.lines[c].columns.length&&s(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 a(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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(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 r(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)+\"


\"},a={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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(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-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:y(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:g(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:u(o.lines[l].columns[1].control),validators:p(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 s=[];s.push(\"header\"===o.lines[l].columns[0].control.type?t:a),s.push(\"header\"===o.lines[l].columns[1].control.type?n:r),e.push({className:\"row\",fieldGroup:s})}function s(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)+\"


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

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


\"},r={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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(r,o,l);var s={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:y(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:g(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:u(o.lines[l].columns[1].control),validators:p(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(s,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:y(o.lines[l].columns[2].control),label:c(o.lines[l].columns[2].control),required:f(o.lines[l].columns[2].control),placeholder:g(o.lines[l].columns[2].control),description:b(o.lines[l].columns[2].control),options:v(o.lines[l].columns[2].control)},expressionProperties:u(o.lines[l].columns[2].control),validators:p(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 E=[];E.push(\"header\"===o.lines[l].columns[0].control.type?t:r),E.push(\"header\"===o.lines[l].columns[1].control.type?n:s),E.push(\"header\"===o.lines[l].columns[2].control.type?a:d),e.push({className:\"row\",fieldGroup:E})}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 u(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function p(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 y(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function g(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 E(e){var o={};return angular.copy(o,e),!0}function T(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!1,l.title=e,l.Message=o,l}function h(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!0,l.title=e,l.Message=o,l}var D={initConfigurationEditFromScratch:e,\nbindConfigurationLines:o,applyConfigurationToformlyModel:l};return D}angular.module(\"ngwfApp.services.formFieldManage\",[]).factory(\"formFieldManage\",e),e.$inject=[]}(),function(){function e(){function e(){return\"selectOptionManage is here.\"}function o(e){u(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 a(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 r(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 s(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 u(e){var o={rows:[]};angular.copy(o,e)}var p={testMe:e,initModel:o,isOptionUnique:l,isOptionValidFormat:t,addNewOptionRadio:n,addNewOptionBasicSelect:i,addNewOptionGroupedSelect:a,removeOption:r,upthisOption:s,downthisOption:c};return p}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":["easyFromConfigFct","easyFormSteWayConfigProvider","setModalAnimation","formlyConfigFct","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","$translateProvider","translations","SAY_HI","EDIT_TAB","PREVIEW_TAB","WIZARD_LINES","WIZARD_LAYOUT","WIZARD_CONTROLS","WIZARD_SAVE","PAGER_PREVIOUS","PAGER_NEXT","COMMAND_PANEL","VISUAL_PANEL","ADD_NEW_LINE","SELECTED_LINE","NUMBER_OF_COLUMN","APPLY_CTRL2COL","CLIC_TAP_2_OPEN","SELECT_2_APPLY_COL","CUSTOM_SUBMIT_BTN","CUSTOM_CANCEL_BTN","NAME_THIS_FORM","SAVE_THIS_FORM","FINAL_STEP","DATA_MODEL","FIELDS_MODEL","SELECT_A_CTRL","SELECT_CTRL_IN_LIST","COL_WILL_BE_BLANK","EDIT_PROPERTIES","HEADER_TEXT","ADD_EDIT_HEADER_HERE","SUBTITLE_TEXT","ADD_EDIT_SUBTIL_HERE","LABEL_TEXT","ADD_EDIT_LABEL_HERE","PLACEHOLDER","ADD_EDIT_PLACEHOLD","REQUIRED","DESCRIPTION","ADDEDIT_DESCRIPTION","DATE_FORMAT","ADD_NEW_RADIO","ADD_RADIO_PLACEHOLD","EDIT_REMOVE_RADIO","NO_RADIO_ADD_NEW","SEARCH_4_OPTION","ADD","ORDER","OPTION","GROUP","ADD_NEW_OPTIONS","ADD_A_NEW_OPTION","EDIT_REMOVE_OPTIONS","NO_OPTION_ADD_NEW","ADD_NEW_GROUPS","ADD_A_NEW_GROUP","EDIT_GROUPS_OPTIONS","NO_GROUP_ADD_NEW","OK","CANCEL","easyFormSteWayConfigFct","defaultConfig","_defaultConfiguration","modalAnimated","getDefaultshowPreviewPanel","getDefaultShowPreviewModel","controlsList","controls","enabled","flagConfig","valueToApply","_configuration","getModalAnimation","getEnabledControls","_controlsList","disableControl","controlName","isString","aControl","console","log","showPreviewPanel","wantToShow","isDefined","_showPreviewPanel","showPreviewModels","_showPreviewModels","enableControl","getDefaultLanguage","lang","initDefaultLanguage","useSanitizeValueStrategy","fallbackLanguage","_defaultLanguage","preferredLanguage","setDefaultLanguage","_currentLanguage","setLanguage","language","getCurrentLanguage","easyFormSteWayConfig","$translate","getModalAnimationValue","setModalAnimationFct","getListEnabledControl","copy","isPreviewPanelVisible","arePreviewModelsVisible","switchLanguage","use","service","this","$get","configuration","provider","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","wfFormFields","cancelButtonText","submitButtonText","onSubmit","pop","type","timeout","title","body","showCloseButton","initColumnTemplate","numColumn","exist","control","key","subtype","initLineTemplate","line","activeColumn","columns","resetToZeroModel","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","loadExistingFormsAsList","saveThisForm","formName","clear","resetAllIndicators","i","stepIndicators","indexIndicator","easyFormGeneratorVERSION","tab","numberOfColumns","MinNumberOfColumns","columnTemplate","lineTemplate","loadExistingFormsList","formlyList","initConfigurationEditFromScratch","initNyaSelect","ngwfWfEditMODALController","$modalInstance","selectOptionManage","initNyaSelectFiltered","nyaSelectFiltered","listCtrl","concat","getFilteredNyaSelectObject","extend","selectedControl","temporyConfig","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","resetTemporyConfig","id","initDatePicker","okfct","bindBasicSelectToNya","bindGroupedSelectToNya","bindRadioToNya","applyConfigToSelectedControl","close","cancelfct","dismiss","bindRadioFromNYA","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","refreshControlFormlyExpressionProperties","refreshControlFormlyValidators","refreshControlFormlyValidation","$watch","edaStepWayEasyFormGenCtrl","_tabInitialized","tabVisible","modelsVisible","directive","restrict","controllerAs","link","stRatio","linkfct","ratio","css","nyaSelectObj","resetNyaSelect","getControlsDefinition","configurationModel","isObject","column","controlIndex","_controlsDefinition","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","filterDisabledControl","listAllEnabledControl","filteredNyaList","enabledControl","nyaControl","CtrlModalModel","modelToReturn","thisKey","isUnique","j","factory","configurationModelInit","Object","prototype","toString","call","configurationModelResult","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,WAuBG,QAASA,GAAkBC,GAGzBA,EAA6BC,mBAAkB,GAkBjD,QAASC,GAAgBC,GAyKvB,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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,EAAWb,GAvO1B,GAAInW,IACFiW,OAA4BA,EAC5BC,UAA4BA,EAC5BG,eAA4BA,EAC5BE,oBAA4BA,EAC5BpO,kBAA4BA,EAC5BY,wBAA4BA,EAC5Ba,0BAA4BA,EAC5BlB,aAA4BA,EAC5BE,aAA4BA,EAC5BE,eAA4BA,EAE9B,OAAO9I,GAlBXnJ,QACG6B,OAAO,0CACPma,QAAQ,qBAAsBnL,GAE/BA,EAAmB7O,cA4PtB,WAGAhC,QAAQ6B,OACA,oBACW,mCACA,sCACA,yDAmBnB,WAGA7B,QACE6B,OAAO,0BAMPuH","file":"eda.stepway.min.js","sourcesContent":["!function(){\"use strict\";!function(){function e(e){e.setModalAnimation(!1)}function o(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\"],a=[\"datepicker-mode\",\"min-date\",\"max-date\"],r={};angular.forEach(i,function(e){r[o(e)]={attribute:e}}),angular.forEach(a,function(e){r[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:r,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\",\"eda.easyFormGenerator.translate\",\"eda.easyFormSteWayConfigProvider\",\"ngwfApp.controllers\",\"ngwfApp.services\",\"ngwfApp.filters\",\"ngwfApp.directives\"]).value(\"easyFormGenVersion\",\"v1.0.31\").config(o).config(e),e.$inject=[\"easyFormSteWayConfigProvider\"],o.$inject=[\"formlyConfigProvider\"]}(),angular.module(\"ngwfApp\").run([\"$templateCache\",function(e){e.put(\"edaStepWayEasyFormGeneratorTemplate.html\",'

{{\\'WIZARD_LINES\\' | translate}}

{{\\'WIZARD_LAYOUT\\' | translate}}

{{\\'WIZARD_CONTROLS\\' | translate}}

{{\\'WIZARD_SAVE\\' | translate}}

 {{\\'COMMAND_PANEL\\' | translate}}

{{\\'ADD_NEW_LINE\\' | translate}} : 

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}

- {{\\'SELECTED_LINE\\' | translate}} -

{{\\'NUMBER_OF_COLUMN\\' | translate}} :

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

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}

- {{\\'APPLY_CTRL2COL\\' | translate}} -


  {{\\'CLIC_TAP_2_OPEN\\' | translate}}.

  {{\\'SELECT_2_APPLY_COL\\' | translate}}.

 {{\\'VISUAL_PANEL\\' | translate}}

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

 {{\\'COMMAND_PANEL\\' | translate}}



 {{\\'FINAL_STEP\\' | translate}}

{{\\'DATA_MODEL\\' | translate}}

\\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\\' | translate}}

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

'),e.put(\"editModalTemplate.html\",'');\n\n}]),function(){angular.module(\"ngwfApp.core\",[\"textAngular\",\"textAngularSetup\",\"ngAnimate\",\"toaster\",\"formly\",\"formlyBootstrap\",\"ui.bootstrap\",\"nya.bootstrap.select\",\"pascalprecht.translate\"])}(),angular.module(\"eda.easyFormGenerator.translate\",[]).config([\"$translateProvider\",function(e){e.translations(\"de\",{SAY_HI:\"Hallo\",EDIT_TAB:\"Bearbeiten / Schaffen\",PREVIEW_TAB:\"Vorschau\",WIZARD_LINES:\"Linien\",WIZARD_LAYOUT:\"Layout\",WIZARD_CONTROLS:\"Steuerung\",WIZARD_SAVE:\"sparen\",PAGER_PREVIOUS:\"vorher.\",PAGER_NEXT:\"nächste\",COMMAND_PANEL:\"Anweisung\",VISUAL_PANEL:\"visuell\",ADD_NEW_LINE:\"Hinzufügen neuer Leitung\",SELECTED_LINE:\"ausgewählte Linie\",NUMBER_OF_COLUMN:\"Anzahl von Spalten\",APPLY_CTRL2COL:\"gelten diese Steuer Spalte\",CLIC_TAP_2_OPEN:\"klicken Sie auf Spalte zur Steuerungsauswahl öffnen\",SELECT_2_APPLY_COL:\"Wählen Sie die gewünschte Steuerung und gültig , um es in Spalte anwenden\",CUSTOM_SUBMIT_BTN:\"Passen Submit-Button Text\",CUSTOM_CANCEL_BTN:\"Passen Cancel-Button Text\",NAME_THIS_FORM:\"Nennen dieses Formular\",SAVE_THIS_FORM:\"Speichern dieses Formular\",FINAL_STEP:\"Endschritt : Formular Vorschau\",DATA_MODEL:\"DATEN MODELL\",FIELDS_MODEL:\"FELDER MODELL (Datenbank-kompatibel)\",SELECT_A_CTRL:\"Wählen Sie ein Steuer\",SELECT_CTRL_IN_LIST:\"Wählen Sie ein Steuer aus der Liste unten\",COL_WILL_BE_BLANK:\"die Spalte werde leer sein\",EDIT_PROPERTIES:\"Anzeigen\",HEADER_TEXT:\"Kopftext\",ADD_EDIT_HEADER_HERE:\"Kopftext ändern\",SUBTITLE_TEXT:\"Untertitel\",ADD_EDIT_SUBTIL_HERE:\"Untertitel ändern\",LABEL_TEXT:\"Etikett\",ADD_EDIT_LABEL_HERE:\"Etikett ändern\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"placeholder ändern\",REQUIRED:\"erforderlich\",DESCRIPTION:\"Beschreibung\",ADDEDIT_DESCRIPTION:\"Beschreibung ändern\",DATE_FORMAT:\"Datumsformat\",ADD_NEW_RADIO:\"Radiobutton hinzufügen\",ADD_RADIO_PLACEHOLD:\"Radiobutton hinzufügen\",EDIT_REMOVE_RADIO:\"Radiobutton ändern\",NO_RADIO_ADD_NEW:\"kein Radiobutton : Radiobutton hinzufügen\",SEARCH_4_OPTION:\"option suchen\",ADD:\"hinzufügen\",ORDER:\"bestellen\",OPTION:\"Option\",GROUP:\"Gruppe\",ADD_NEW_OPTIONS:\"Optionen hinzufügen\",ADD_A_NEW_OPTION:\"Option hinzufügen\",EDIT_REMOVE_OPTIONS:\"Optionen ändern\",NO_OPTION_ADD_NEW:\"kein option : Option hinzufügen\",ADD_NEW_GROUPS:\"Gruppen hinzufügen\",ADD_A_NEW_GROUP:\"Gruppe hinzufügen\",EDIT_GROUPS_OPTIONS:\"Gruppen ändern\",NO_GROUP_ADD_NEW:\"keine Gruppe : Gruppe hinzufügen\",OK:\"bestätigen\",CANCEL:\"stornieren\"}),e.translations(\"en\",{SAY_HI:\"Hello\",EDIT_TAB:\"Edit / Create\",PREVIEW_TAB:\"Preview\",WIZARD_LINES:\"lines\",WIZARD_LAYOUT:\"layout\",WIZARD_CONTROLS:\"controls\",WIZARD_SAVE:\"save\",PAGER_PREVIOUS:\"Previous\",PAGER_NEXT:\"Next\",COMMAND_PANEL:\"Command\",VISUAL_PANEL:\"Visual\",ADD_NEW_LINE:\"Add a new line\",SELECTED_LINE:\"Selected line\",NUMBER_OF_COLUMN:\"number of columns\",APPLY_CTRL2COL:\"Apply controls to columns\",CLIC_TAP_2_OPEN:\"Click / Tap on column to open control selection\",SELECT_2_APPLY_COL:\"Select desired control and valid to apply it to column\",CUSTOM_SUBMIT_BTN:\"Customize Submit button Text\",CUSTOM_CANCEL_BTN:\"Customize Cancel button Text\",NAME_THIS_FORM:\"Name this form\",SAVE_THIS_FORM:\"save this form\",FINAL_STEP:\"Final Step : form preview\",DATA_MODEL:\"DATA MODEL\",FIELDS_MODEL:\"FIELDS MODEL (ready to save to database one)\",SELECT_A_CTRL:\"Select a control\",SELECT_CTRL_IN_LIST:\"Select a control in the list below\",COL_WILL_BE_BLANK:\"Column will be blank\",EDIT_PROPERTIES:\"Edit properties\",HEADER_TEXT:\"Header text\",ADD_EDIT_HEADER_HERE:\"Add / edit header text here\",SUBTITLE_TEXT:\"Subtitle text\",ADD_EDIT_SUBTIL_HERE:\"Add / edit subtitle text here\",LABEL_TEXT:\"Label text\",ADD_EDIT_LABEL_HERE:\"Add / edit control label here\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"Add / edit placeholder text here\",REQUIRED:\"Required\",DESCRIPTION:\"Description\",ADDEDIT_DESCRIPTION:\"Add / edit description here\",DATE_FORMAT:\"Date format\",ADD_NEW_RADIO:\"Add new radio\",ADD_RADIO_PLACEHOLD:\"add new radio\",EDIT_REMOVE_RADIO:\"Edit/Remove radio\",NO_RADIO_ADD_NEW:\"no radio : add new radio values\",SEARCH_4_OPTION:\"search for option\",ADD:\"add\",ORDER:\"order\",OPTION:\"option\",GROUP:\"group\",ADD_NEW_OPTIONS:\"Add new options\",ADD_A_NEW_OPTION:\"add new option\",EDIT_REMOVE_OPTIONS:\"Edit/Remove options\",NO_OPTION_ADD_NEW:\"no option : add new options\",ADD_NEW_GROUPS:\"Add new groups\",ADD_A_NEW_GROUP:\"Add new group\",EDIT_GROUPS_OPTIONS:\"Edit/Remove options/groups\",NO_GROUP_ADD_NEW:\"add new groups\",OK:\"OK\",CANCEL:\"Cancel\"}),e.translations(\"es\",{SAY_HI:\"Hola\",EDIT_TAB:\"Editar / Crear\",PREVIEW_TAB:\"Previsualizar\",WIZARD_LINES:\"lineas\",WIZARD_LAYOUT:\"diseño\",WIZARD_CONTROLS:\"controles\",WIZARD_SAVE:\"guardar\",PAGER_PREVIOUS:\"Anterior\",PAGER_NEXT:\"Siguiente\",COMMAND_PANEL:\"Comando\",VISUAL_PANEL:\"Visual\",ADD_NEW_LINE:\"Agregar nueva linea\",SELECTED_LINE:\"Linea seleccionada\",NUMBER_OF_COLUMN:\"numero de columnas\",APPLY_CTRL2COL:\"Aplicar controles a columnas\",CLIC_TAP_2_OPEN:\"Click / Toque en la columna para seleccionar controles\",SELECT_2_APPLY_COL:\"Selecciona el control deseado para aplicarlo a la columna\",CUSTOM_SUBMIT_BTN:\"Personalizar texto de boton Enviar\",CUSTOM_CANCEL_BTN:\"Personalizar texto de boton Cancelar\",NAME_THIS_FORM:\"Nombrar formulario\",SAVE_THIS_FORM:\"guardar formulario\",FINAL_STEP:\"Ultimo paso : previsualizar formulario\",DATA_MODEL:\"MODELO DE DATOS\",FIELDS_MODEL:\"MODELO DE CAMPOS (listo para guardar en base de datos uno)\",SELECT_A_CTRL:\"Selecciona un control\",SELECT_CTRL_IN_LIST:\"Selecciona un control de la lista\",COL_WILL_BE_BLANK:\"Columna sera vacia\",EDIT_PROPERTIES:\"Editar propiedades\",HEADER_TEXT:\"Texto de encabezado\",ADD_EDIT_HEADER_HERE:\"Agregar / editar texto de encabezado aqui\",SUBTITLE_TEXT:\"Texto de subtitulo\",ADD_EDIT_SUBTIL_HERE:\"Agregar / editar texto de subtitulo aqui\",LABEL_TEXT:\"Texto de etiqueta\",ADD_EDIT_LABEL_HERE:\"Agregar / editar texto de etiqueta aqui\",PLACEHOLDER:\"Marcador\",ADD_EDIT_PLACEHOLD:\"Agregar / editar texto de marcador aqui\",REQUIRED:\"Requerido\",DESCRIPTION:\"Descripcion\",ADDEDIT_DESCRIPTION:\"Agregar / editar descripcion aqui\",DATE_FORMAT:\"Formato de fecha\",ADD_NEW_RADIO:\"Agregar nuevo radio\",ADD_RADIO_PLACEHOLD:\"agregar nuevo radio\",EDIT_REMOVE_RADIO:\"Editar/Eliminar radio\",NO_RADIO_ADD_NEW:\"sin radio : agregar nuevos valores de radio\",SEARCH_4_OPTION:\"buscar opcion\",ADD:\"agregar\",ORDER:\"orden\",OPTION:\"opcion\",GROUP:\"grupo\",ADD_NEW_OPTIONS:\"agregar nuevas opciones\",ADD_A_NEW_OPTION:\"agregar nueva opcione\",EDIT_REMOVE_OPTIONS:\"Editar/Eliminar opciones\",NO_OPTION_ADD_NEW:\"sin opcion : agregar nuevas opciones\",ADD_NEW_GROUPS:\"Agregar nuevos grupos\",ADD_A_NEW_GROUP:\"Agregar nuevo grupo\",EDIT_GROUPS_OPTIONS:\"Editar/Eliminar opciones/grupos\",NO_GROUP_ADD_NEW:\"agregar nuevos grupos\",OK:\"OK\",CANCEL:\"Cancelar\"}),e.translations(\"fr\",{SAY_HI:\"Bonjour\",EDIT_TAB:\"Edition / Creation\",PREVIEW_TAB:\"Aperçu\",WIZARD_LINES:\"lignes\",WIZARD_LAYOUT:\"disposition\",WIZARD_CONTROLS:\"contrôles\",WIZARD_SAVE:\"sauvegarder\",PAGER_PREVIOUS:\"Précédent\",PAGER_NEXT:\"Suivant\",COMMAND_PANEL:\"Commandes\",VISUAL_PANEL:\"Visuel\",ADD_NEW_LINE:\"Ajouter une nouvelle ligne\",SELECTED_LINE:\"Ligne sélectionnée\",NUMBER_OF_COLUMN:\"nombre de colonnes\",APPLY_CTRL2COL:\"Appliquer les contrôles aux colonnes\",CLIC_TAP_2_OPEN:\"Cliquer sur une colonne pour ouvrir le menu d'édition\",SELECT_2_APPLY_COL:\"Sélectionner un contrôle puis valider pour l'appliquer à la colonne\",CUSTOM_SUBMIT_BTN:\"Personnaliser le texte du bouton envoie\",CUSTOM_CANCEL_BTN:\"Personnaliser le texte du bouton annuler\",NAME_THIS_FORM:\"Nommer le formulaire\",SAVE_THIS_FORM:\"sauvegarder le formulaire\",FINAL_STEP:\"Dernière étape : aperçu du formulaire\",DATA_MODEL:\"MODELE DE DONNEES\",FIELDS_MODEL:\"MODELE DES CHAMPS (modèle compatible base de données)\",SELECT_A_CTRL:\"Sélectionner un contrôle\",SELECT_CTRL_IN_LIST:\"Sélectionner un contrôle dans la liste ci-dessous\",COL_WILL_BE_BLANK:\"La colonne sera vide\",EDIT_PROPERTIES:\"Editer les propriétés\",HEADER_TEXT:\"Texte du titre principal\",ADD_EDIT_HEADER_HERE:\"Editer le textes du titre principal\",SUBTITLE_TEXT:\"Texte du sous-titre\",ADD_EDIT_SUBTIL_HERE:\"Editer le textes du sous-titre\",LABEL_TEXT:\"Texte de l'étiquette\",ADD_EDIT_LABEL_HERE:\"Editer le texte de l'étiquette\",PLACEHOLDER:\"placeholder\",ADD_EDIT_PLACEHOLD:\"Editer le placeholder\",REQUIRED:\"Requis\",DESCRIPTION:\"Description\",ADDEDIT_DESCRIPTION:\"Ajouter / editer la description\",DATE_FORMAT:\"Format de la date\",ADD_NEW_RADIO:\"Ajouter un nouveau choix à cocher\",ADD_RADIO_PLACEHOLD:\"Ajouter un nouveau choix à cocher\",EDIT_REMOVE_RADIO:\"Editer / supprimer un choix à cocher\",NO_RADIO_ADD_NEW:\"aucun choix à cocher : en ajouter un\",SEARCH_4_OPTION:\"rechercher une option\",ADD:\"ajouter\",ORDER:\"ordre\",OPTION:\"option\",GROUP:\"groupe\",ADD_NEW_OPTIONS:\"Ajouter de nouvelles options\",ADD_A_NEW_OPTION:\"ajoutre une option\",EDIT_REMOVE_OPTIONS:\"Editer / supprimer des options\",NO_OPTION_ADD_NEW:\"aucune option : en ajouter\",ADD_NEW_GROUPS:\"Ajouter de nouveaux groupes\",ADD_A_NEW_GROUP:\"Ajouter un nouveau groupe\",EDIT_GROUPS_OPTIONS:\"Editer / supprimer les groupes et options\",NO_GROUP_ADD_NEW:\"ajouter de nouveaux groupes\",OK:\"Valider\",CANCEL:\"Annuler\"}),e.translations(\"jp\",{SAY_HI:\"こんにちわ\",EDIT_TAB:\"編集 / 作成\",PREVIEW_TAB:\"プレビュー\",WIZARD_LINES:\"ライン\",WIZARD_LAYOUT:\"レイアウト\",WIZARD_CONTROLS:\"コントロール\",WIZARD_SAVE:\"サーブ\",PAGER_PREVIOUS:\"前\",PAGER_NEXT:\"次\",COMMAND_PANEL:\"コマンド\",VISUAL_PANEL:\"ビジュアル\",ADD_NEW_LINE:\"新しいライン追加\",SELECTED_LINE:\"選択されたライン\",NUMBER_OF_COLUMN:\"カラムの数\",APPLY_CTRL2COL:\"カラムにコントロール適用\",CLIC_TAP_2_OPEN:\"コントロール選択を広げるには列をクリック\",SELECT_2_APPLY_COL:\"好きなコントロールを選び適用\",CUSTOM_SUBMIT_BTN:\"適用ボタンの文字変更する場合\",CUSTOM_CANCEL_BTN:\"キャンセルボタンの文字変更する場合\",NAME_THIS_FORM:\"形式に名前を付ける\",SAVE_THIS_FORM:\"形式をサーブ\",FINAL_STEP:\"ファイナルステップ : プレビュー形式\",DATA_MODEL:\"データーモデル\",FIELDS_MODEL:\"モデルフィールド\",SELECT_A_CTRL:\"コントロールを選び選択\",SELECT_CTRL_IN_LIST:\"以下のリストからコントロールを選び選択\",COL_WILL_BE_BLANK:\"空になる列\",EDIT_PROPERTIES:\"プロパティの変更\",HEADER_TEXT:\"ヘッダーテキスト\",ADD_EDIT_HEADER_HERE:\"ヘッダーテキスト文字変更\",SUBTITLE_TEXT:\"サブタイトル テキスト\",ADD_EDIT_SUBTIL_HERE:\"サブタイトルテキスト文字変更\",LABEL_TEXT:\"ラベルテキスト\",ADD_EDIT_LABEL_HERE:\"ラベルテキスト文字変更\",PLACEHOLDER:\"プレースホルダー\",ADD_EDIT_PLACEHOLD:\"プレースホルダー文字変更\",REQUIRED:\"必須\",DESCRIPTION:\"説明\",ADDEDIT_DESCRIPTION:\"説明の変更\",DATE_FORMAT:\"日付の形式\",ADD_NEW_RADIO:\"新ラジオボタンを追加\",ADD_RADIO_PLACEHOLD:\"新ラジオボタンを追加\",EDIT_REMOVE_RADIO:\"ラジオボタン変更\",NO_RADIO_ADD_NEW:\"ラジオ無し : 新ラジオボタン追加\",SEARCH_4_OPTION:\"オプション検索\",ADD:\"追加\",ORDER:\"順番\",OPTION:\"オプション\",GROUP:\"グループ\",ADD_NEW_OPTIONS:\"新しいオプション追加\",ADD_A_NEW_OPTION:\"新しいオプション追加\",EDIT_REMOVE_OPTIONS:\"オプションの変更\",NO_OPTION_ADD_NEW:\"オプション無し : 新しいオプション追加\",ADD_NEW_GROUPS:\"新しいグループ追加\",ADD_A_NEW_GROUP:\"新しいグループ追加\",EDIT_GROUPS_OPTIONS:\"グループを変更\",NO_GROUP_ADD_NEW:\"グループを追加\",OK:\"オッケー\",CANCEL:\"キャンセル\"}),e.translations(\"tr\",{SAY_HI:\"Merhaba\",EDIT_TAB:\"Düzenle / Oluştur\",PREVIEW_TAB:\"Önizleme\",WIZARD_LINES:\"satırlar\",WIZARD_LAYOUT:\"düzen\",WIZARD_CONTROLS:\"kontroller\",WIZARD_SAVE:\"kaydet\",PAGER_PREVIOUS:\"Geri\",PAGER_NEXT:\"İleri\",COMMAND_PANEL:\"Komut\",VISUAL_PANEL:\"Görsel\",ADD_NEW_LINE:\"Yeni satır ekle\",SELECTED_LINE:\"Seçili satır\",NUMBER_OF_COLUMN:\"sütun sayısı\",APPLY_CTRL2COL:\"Sütunlara form ögesi ekle\",CLIC_TAP_2_OPEN:\"Form ögesi eklemek için sütunlara tıkla\",SELECT_2_APPLY_COL:\"İstediğin ögeyi seçtikten sonra gerekli yerleri doldur ve kaydet\",CUSTOM_SUBMIT_BTN:\"Gönder butonu yazısını düzenle\",CUSTOM_CANCEL_BTN:\"İptal butonu yazısını düzenle\",NAME_THIS_FORM:\"Forma isim ver\",SAVE_THIS_FORM:\"formu kaydet\",FINAL_STEP:\"Son aşama : form önizlemesi\",DATA_MODEL:\"VERİ MODELİ\",FIELDS_MODEL:\"ALAN MODELİ (veritabanına kaydetmeye hazır)\",SELECT_A_CTRL:\"Form ögesi seç\",SELECT_CTRL_IN_LIST:\"Verilen listeden bir form ögesi seç\",COL_WILL_BE_BLANK:\"Sütun boş kalacak\",EDIT_PROPERTIES:\"Özellikleri düzenle\",HEADER_TEXT:\"Başlık yazısı\",ADD_EDIT_HEADER_HERE:\"Başlık yazısını ekle / düzenle\",SUBTITLE_TEXT:\"Altyazı\",ADD_EDIT_SUBTIL_HERE:\"Altyazı ekle / düzenle\",LABEL_TEXT:\"Form ögesinin adı\",ADD_EDIT_LABEL_HERE:\"Ad ekle / düzenle\",PLACEHOLDER:\"Form ögesinin içine geçici yazı ekle\",ADD_EDIT_PLACEHOLD:\"Geçici yazı ekle / düzenle\",REQUIRED:\"Gerekli\",DESCRIPTION:\"Açıklama\",ADDEDIT_DESCRIPTION:\"Açıklama ekle / düzenle\",DATE_FORMAT:\"Tarih formatı\",ADD_NEW_RADIO:\"Radio butonu ekle\",ADD_RADIO_PLACEHOLD:\"radio butonu ekle\",EDIT_REMOVE_RADIO:\"Radio butonunu ekle / düzenle\",NO_RADIO_ADD_NEW:\"radio butonu yok : yeni buton ekle\",SEARCH_4_OPTION:\"seçenek ara\",ADD:\"ekle\",ORDER:\"sıra\",OPTION:\"seçenek\",GROUP:\"grup\",ADD_NEW_OPTIONS:\"Yeni seçenek ekle\",ADD_A_NEW_OPTION:\"yeni seçenek ekle\",EDIT_REMOVE_OPTIONS:\"Seçenekleri düzenle/sil\",NO_OPTION_ADD_NEW:\"seçenek yok : yeni seçenek ekle\",ADD_NEW_GROUPS:\"Yeni grup ekle\",ADD_A_NEW_GROUP:\"Yeni grup ekle\",EDIT_GROUPS_OPTIONS:\"Seçenek/Grup Ekle/sil\",NO_GROUP_ADD_NEW:\"yeni grup ekle\",OK:\"TAMAM\",CANCEL:\"İptal\"})}]),function(){function e(e){function o(){var e={modalAnimated:!1};return e}function l(){return!0}function t(){return!0}function n(){var e=[{name:\"empty\",enabled:!0},{name:\"Header\",enabled:!0},{name:\"TextInput\",enabled:!0},{name:\"Password\",enabled:!0},{name:\"Date\",enabled:!0},{name:\"Texarea\",enabled:!0},{name:\"RichTextEditor\",enabled:!0},{name:\"Radio\",enabled:!0},{name:\"Checkbox\",enabled:!0},{name:\"BasicSelect\",enabled:!0},{name:\"GroupedSelect\",enabled:!0}];return e}function i(e){var o=e===!0?e:e===!1?e:b.modalAnimated;b.modalAnimated=o}function a(){return b.modalAnimated}function r(){return E}function s(e){angular.isString(e)&&angular.forEach(E,function(o){o.name===e&&(o.enabled=!1,console.log(\"disable aControl : \"+o.name,0/0+e))})}function c(e){angular.isDefined(e)&&(e===!0&&(D=!0),e===!1&&(D=!1))}function d(e){angular.isDefined(e)&&(e===!0&&(_=!0),e===!1&&(_=!1))}function u(e){angular.isString(e)&&angular.forEach(E,function(o){o.name===e&&(o.enabled=!0)})}function p(){var e=\"en\";return e}function m(){return e.useSanitizeValueStrategy(\"escape\"),e.fallbackLanguage(T),e.preferredLanguage(T),T}function f(){return h=T,e.preferredLanguage(h),h}function v(o){angular.isString(o)?(h=o,e.preferredLanguage(o)):f()}function y(){return h}function g(e){function o(){return b.modalAnimated}function l(e){i(e)}function t(){return angular.copy(E)}function n(){return D}function a(){return _}function r(o){angular.isString(o)?(h=o,e.use(o)):f()}var s={setModalAnimation:l,getModalAnimationValue:o,getListEnabledControl:t,setLanguage:r,getCurrentLanguage:y,isPreviewPanelVisible:n,arePreviewModelsVisible:a};return s}var b=o(),E=n(),T=p(),h=m(),D=l(),_=t();this.$get=g,this.setModalAnimation=i,this.getModalAnimation=a,this.configuration=b,this.getEnabledControls=r,this.disableControl=s,this.enableControl=u,this.setLanguage=v,this.getCurrentLanguage=y,this.showPreviewPanel=c,this.showPreviewModels=d,g.$inject=[\"$translate\"]}angular.module(\"eda.easyFormSteWayConfigProvider\",[]).provider(\"easyFormSteWayConfig\",e),e.$inject=[\"$translateProvider\"]}(),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,a,r,s,c,d,u){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function m(){return{editTab:{active:!0},previewTab:{active:!1}}}function f(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 v(){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 y(){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 b(){return e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function E(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function T(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function h(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 D(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 _(){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 w(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):a(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 C(){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 O(){e.configuration.configStepCounter=0}function L(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,F(e.configuration.configStepCounter)}function A(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,F(e.configuration.configStepCounter)}function x(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function F(o){N(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=v,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=m(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=y(),e.lineTemplate=g(),e.resetToZeroModel=b,e.countConfigurationModelLines=E,e.setActiveLineNumber=T,e.upThisLine=h,e.downThisLine=D,e.addNewline=_,e.removeThisLine=w,e.increaseNumberOfColumns=C,e.decreaseNumberOfColumns=S,e.resetStepCounter=O,e.nextConfigStep=L,e.previousConfigStep=A,e.stepReachable=x,e.nyaSelect={},e.animationsEnabled=u.getModalAnimationValue(),e.showModalAddCtrlToColumn=R,e.loadExistingFormsList=P(),e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=f,e.saveThisForm=I,P(),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\",\"easyFormSteWayConfig\"]}(),function(){function e(e,o,l,t,n,i,a){function r(){e.nyaSelectFiltered={};var o=[].concat(a.getFilteredNyaSelectObject());angular.extend(e.nyaSelectFiltered,{controls:o,selectedControl:e.nyaSelect.selectedControl,temporyConfig:e.nyaSelect.temporyConfig})}function s(){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 c(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 d(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 u(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 m(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 f(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 v(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 y(){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 b(){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 E(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 T(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 h(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 D(){e.demodt.dt=new Date}function w(){e.demodt.dt=null}function C(o){o.preventDefault(),o.stopPropagation(),e.demodt.opened=!0}function S(){return{formatYear:\"yy\",startingDay:1,showWeeks:!0,initDate:null}}function O(o){e.nyaSelect.selectedControl=\"none\",B();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&&k()}function L(){\"BasicSelect\"===e.nyaSelect.selectedControl&&I(),\"GroupedSelect\"===e.nyaSelect.selectedControl&&F(),\"Radio\"===e.nyaSelect.selectedControl&&R(),a.applyConfigToSelectedControl(e.nyaSelect),o.close(e.nyaSelect)}function A(){o.dismiss(\"cancel\")}function x(){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 I(){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 N(){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 F(){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 k(){e.nyaSelect.temporyConfig.datepickerPopup=e.demodt.formats[0]}function M(){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&&N(),\"Radio\"===e.nyaSelect.selectedControl&&x()}r()}function B(){e.nyaSelectFiltered.temporyConfig={formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}var q={rows:[]};e.radioRowCollection=q,e.newOptionRadio={saisie:\"\"},e.addNewOptionRadio=s,e.removeRadioRow=c,e.upThisRadioRow=d,e.downThisRadioRow=u,e.basicSelectRowCollection=q,e.newOptionBasicSelect={saisie:\"\"},e.addNewOptionBasicSelect=p,e.removeRow=m,e.upThisRow=f,e.downThisRow=v,e.groupedSelectRowCollection=q,e.newOptionGroupedSelect={saisie:\"\"},e.GroupedSelectGroups={list:[]},e.newGroupGroupedSelect={saisie:\"\"},e.groupSelectGroupClick={showList:!1},e.showGroupListToChoose=y,e.addNewGroupToGroupedSelect=g,e.addNewOptionGroupedSelect=b,e.removeGroupedSelectRow=E,e.upThisGroupedSelectRow=T,e.downThisGroupedSelectRow=h,e.demodt={},e.today=D,e.clear=w,e.open=C,e.dateOptions=S(),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=O,e.ok=L,e.cancel=A,e.nyaSelectFiltered={},D(),M()}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:a();return o}function a(){var e=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:\"none\",key:\"none\"}}]}];return e}function r(){var o=angular.isArray(e.edaEasyFormGeneratorModel.dataModel)&&e.edaEasyFormGeneratorModel.dataModel.length>0?e.edaEasyFormGeneratorModel.dataModel:[];return o}function s(){return e.edaEasyFormGeneratorModel}function c(e,o){p()}function d(){return e.returnSaveEvent}function u(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 p(){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=r,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(s,c,!0),e.$watch(d,u)}function i(e,o,l,t,n,i,a,r,s,c,d,u){function p(){return{showDebug:!1,configurationModelNumberofLines:1}}function m(){var e={editTab:{active:!0},previewTab:{active:!1,tabVisible:u.isPreviewPanelVisible(),modelsVisible:u.arePreviewModelsVisible()}};return e}function f(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 v(){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 y(){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 b(){\nreturn e.configuration.activeLine=1,e.configuration.lines.length>1&&e.configuration.lines.splice(1,e.configuration.lines.length-2),e.countConfigurationModelLines()}function E(){return e.debug.configurationModelNumberofLines=e.configuration.lines.length,e.configuration.lines.length}function T(o){o<=e.countConfigurationModelLines()&&(e.configuration.activeLine=o)}function h(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 D(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 _(){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 w(o){o>-1&&(e.configuration.lines.length>1?(e.configuration.activeLine===o+1&&(e.configuration.activeLine=1),e.configuration.lines.splice(o,1)):a(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 C(){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 O(){e.configuration.configStepCounter=0}function L(){var o=e.configuration.listConfigStep.length-1;e.configuration.configStepCounter!==o&&e.configuration.configStepCounter++,N(e.configuration.configStepCounter)}function A(){0!==e.configuration.configStepCounter&&e.configuration.configStepCounter--,N(e.configuration.configStepCounter)}function x(o){return o=0;o--)e.configuration.stepIndicators[o]=!1}function N(o){I(),e.configuration.stepIndicators[o]=!0}e.vm=this,e.vm.model={},e.vm.wfFormFields=[],e.vm.wfFormFieldsOnlyNeededProperties=[],e.vm.onSubmit=v,e.easyFormGeneratorVERSION=l,e.debug=p(),e.tab=m(),e.configuration={},e.numberOfColumns=1,e.MaxNumberOfColumns=3,e.MinNumberOfColumns=1,e.columnTemplate=y(),e.lineTemplate=g(),e.resetToZeroModel=b,e.countConfigurationModelLines=E,e.setActiveLineNumber=T,e.upThisLine=h,e.downThisLine=D,e.addNewline=_,e.removeThisLine=w,e.increaseNumberOfColumns=C,e.decreaseNumberOfColumns=S,e.resetStepCounter=O,e.nextConfigStep=L,e.previousConfigStep=A,e.stepReachable=x,e.nyaSelect={},e.animationsEnabled=u.getModalAnimationValue(),e.showModalAddCtrlToColumn=R,e.formlyList={},e.previewLoadedForm={fieldsModel:[]},e.configurationLoaded={},e.previewExistingform=f,e.saveThisForm=P,e.returnSaveEvent=!1,c.initConfigurationEditFromScratch(e.configuration),d.initNyaSelect(e.nyaSelect)}i.$inject=[\"$scope\",\"$templateCache\",\"easyFormGenVersion\",\"$filter\",\"$anchorScroll\",\"toaster\",\"$timeout\",\"$modal\",\"$log\",\"formFieldManage\",\"controllerModalProxy\",\"easyFormSteWayConfig\"];var a={restrict:\"E\",scope:{edaEasyFormGeneratorModel:\"=\",edaSaveFormEvent:\"&edaSaveFormEvent\"},controller:i,controllerAs:\"vm\",replace:!1,templateUrl:\"edaStepWayEasyFormGeneratorTemplate.html\",link:n};return a}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(e){function o(e){return u(e)}function l(){var e={};return u(e),e}function t(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyExpressionProperties=o.formlyExpressionProperties)})})})}function n(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidators=o.formlyValidators)})})})}function i(e){angular.isObject(e)&&angular.forEach(e.lines,function(e,o){angular.forEach(e.columns,function(e,o){var t=l();angular.forEach(t.controls,function(o,l){e.control.type===o.formlyType&&e.control.subtype===o.formlySubtype&&(e.control.formlyValidation=o.formlyValidation)})})})}function a(e,o,l,t){return u(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 r(e,o,l,t){var n=m(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();f(i,t)===!0?t.lines[e].columns[o].control.key=i:(i=t.lines[e].columns[o].control.type+\"-\"+Date.now(),f(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 s(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 c(){return{formlyLabel:\"\",formlyRequired:!1,formlyPlaceholder:\"\",formlyDesciption:\"\",formlyOptions:[]}}function d(){var e={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:{messages:{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(p(angular.copy(e)))}function u(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:{messages:{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 p(o){var l=e.getListEnabledControl(),t=[];return angular.forEach(l,function(e){angular.forEach(o.controls,function(o){o.id===e.name&&e.enabled===!0&&(t=t.concat(o))})}),t}function m(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 f(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 v={initNyaSelect:o,getNyASelectFromSelectedLineColumn:a,bindConfigurationModelFromModalReturn:r,applyConfigToSelectedControl:s,resetTemporyConfig:c,getControlsDefinition:l,refreshControlFormlyExpressionProperties:t,refreshControlFormlyValidators:n,refreshControlFormlyValidation:i,getFilteredNyaSelectObject:d};return v}angular.module(\"ngwfApp.services.ngwfEditCtrlControllerModalProxy\",[]).factory(\"controllerModalProxy\",e),e.$inject=[\"easyFormSteWayConfig\"]}(),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),h(\"configuration model is bound\",\"lines are bound to configuration model.\")}return T(\"lines is not an array\",\"Checks lines type, it is not an array.\")}function l(e,o,l){t(o),E(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):a(o,e,c)),2===e.lines[c].columns.length&&r(o,e,c),3===e.lines[c].columns.length&&s(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 a(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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(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 r(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)+\"


\"},a={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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(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-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:y(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:g(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:u(o.lines[l].columns[1].control),validators:p(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 s=[];s.push(\"header\"===o.lines[l].columns[0].control.type?t:a),s.push(\"header\"===o.lines[l].columns[1].control.type?n:r),e.push({className:\"row\",fieldGroup:s})}function s(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)+\"


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

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


\"},r={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:y(o.lines[l].columns[0].control),label:c(o.lines[l].columns[0].control),required:f(o.lines[l].columns[0].control),placeholder:g(o.lines[l].columns[0].control),description:b(o.lines[l].columns[0].control),options:v(o.lines[l].columns[0].control)},expressionProperties:u(o.lines[l].columns[0].control),validators:p(o.lines[l].columns[0].control),validation:m(o.lines[l].columns[0].control)};\"datepicker\"===o.lines[l].columns[0].control.type&&i(r,o,l);var s={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:y(o.lines[l].columns[1].control),label:c(o.lines[l].columns[1].control),required:f(o.lines[l].columns[1].control),placeholder:g(o.lines[l].columns[1].control),description:b(o.lines[l].columns[1].control),options:v(o.lines[l].columns[1].control)},expressionProperties:u(o.lines[l].columns[1].control),validators:p(o.lines[l].columns[1].control),validation:m(o.lines[l].columns[1].control)};\"datepicker\"===o.lines[l].columns[1].control.type&&i(s,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:y(o.lines[l].columns[2].control),label:c(o.lines[l].columns[2].control),required:f(o.lines[l].columns[2].control),placeholder:g(o.lines[l].columns[2].control),description:b(o.lines[l].columns[2].control),options:v(o.lines[l].columns[2].control)},expressionProperties:u(o.lines[l].columns[2].control),validators:p(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 E=[];E.push(\"header\"===o.lines[l].columns[0].control.type?t:r),E.push(\"header\"===o.lines[l].columns[1].control.type?n:s),E.push(\"header\"===o.lines[l].columns[2].control.type?a:d),e.push({className:\"row\",fieldGroup:E})}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 u(e){return\"undefined\"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}}function p(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 y(e){return\"undefined\"!=typeof e.subtype?e.subtype:\"\"}function g(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 E(e){var o={};return angular.copy(o,e),!0}function T(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!1,l.title=e,l.Message=o,l}function h(e,o){var l={noError:!1,title:\"\",Message:\"\"};return l.noError=!0,l.title=e,l.Message=o,l}var D={initConfigurationEditFromScratch:e,\nbindConfigurationLines:o,applyConfigurationToformlyModel:l};return D}angular.module(\"ngwfApp.services.formFieldManage\",[]).factory(\"formFieldManage\",e),e.$inject=[]}(),function(){function e(){function e(){return\"selectOptionManage is here.\"}function o(e){u(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 a(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 r(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 s(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 u(e){var o={rows:[]};angular.copy(o,e)}var p={testMe:e,initModel:o,isOptionUnique:l,isOptionValidFormat:t,addNewOptionRadio:n,addNewOptionBasicSelect:i,addNewOptionGroupedSelect:a,removeOption:r,upthisOption:s,downthisOption:c};return p}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/dragdropway/edaApp.js b/src/app/dragdropway/edaApp.js index cec2d4bf..ce58e6d4 100644 --- a/src/app/dragdropway/edaApp.js +++ b/src/app/dragdropway/edaApp.js @@ -41,7 +41,7 @@ angular 'pageslide-directive' ]) - .value('easyFormGenVersion', 'v1.0.31') + .value('easyFormGenVersion', 'v1.0.32') .run(runfct); diff --git a/src/app/dragdropway/vendors/angular-pageslide-directive.min.js b/src/app/dragdropway/vendors/angular-pageslide-directive.min.js index 104a27e6..953e0658 100644 --- a/src/app/dragdropway/vendors/angular-pageslide-directive.min.js +++ b/src/app/dragdropway/vendors/angular-pageslide-directive.min.js @@ -1,238 +1,243 @@ -angular.module('pageslide-directive', []) - -.directive('pageslide', [ - function () { - var defaults = {}; - - /* Return directive definition object */ - - return { - restrict: 'EAC', - transclude: false, - scope: { - psOpen: '=?', - psAutoClose: '=?', - psSide: '@', - psSpeed: '@', - psClass: '@', - psSize: '@', - psSqueeze: '@', - psCloak: '@', - psPush: '@', - psContainer: '@' - }, - //template: '
', - link: function ($scope, el, attrs) { - /* Inspect */ - //console.log($scope); - //console.log(el); - //console.log(attrs); - - /* Parameters */ - var param = {}; - - param.side = $scope.psSide || 'right'; - param.speed = $scope.psSpeed || '0.5'; - param.size = $scope.psSize || '300px'; - param.zindex = 1000; // Override with custom CSS - param.className = $scope.psClass || 'ng-pageslide'; - param.cloak = $scope.psCloak && $scope.psCloak.toLowerCase() == 'false' ? false : true; - param.squeeze = Boolean($scope.psSqueeze) || false; - param.push = Boolean($scope.psPush) || false; - param.container = $scope.psContainer || false; - - // Apply Class - el.addClass(param.className); - - /* DOM manipulation */ - var content = null; - var slider = null; - var body = param.container ? document.getElementById(param.container) : document.body; - - slider = el[0]; - - // Check for div tag - if (slider.tagName.toLowerCase() !== 'div' && - slider.tagName.toLowerCase() !== 'pageslide') - throw new Error('Pageslide can only be applied to
or elements'); - - // Check for content - if (slider.children.length === 0) - throw new Error('You have to content inside the '); - - content = angular.element(slider.children); - - /* Append */ - body.appendChild(slider); - - /* Style setup */ - slider.style.zIndex = param.zindex; - slider.style.position = param.container !== false ? 'absolute' : 'fixed'; - slider.style.width = 0; - slider.style.height = 0; - slider.style.overflow = 'hidden'; - slider.style.transitionDuration = param.speed + 's'; - slider.style.webkitTransitionDuration = param.speed + 's'; - slider.style.transitionProperty = 'width, height'; - if (param.squeeze) { - body.style.position = 'absolute'; - body.style.transitionDuration = param.speed + 's'; - body.style.webkitTransitionDuration = param.speed + 's'; - body.style.transitionProperty = 'top, bottom, left, right'; - } - - switch (param.side) { - case 'right': - slider.style.height = attrs.psCustomHeight || '100%'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - case 'left': - slider.style.height = attrs.psCustomHeight || '100%'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.left = attrs.psCustomLeft || '0px'; - break; - case 'top': - slider.style.width = attrs.psCustomWidth || '100%'; - slider.style.left = attrs.psCustomLeft || '0px'; - slider.style.top = attrs.psCustomTop || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - case 'bottom': - slider.style.width = attrs.psCustomWidth || '100%'; - slider.style.bottom = attrs.psCustomBottom || '0px'; - slider.style.left = attrs.psCustomLeft || '0px'; - slider.style.right = attrs.psCustomRight || '0px'; - break; - } - - - /* Closed */ - function psClose(slider, param) { - if (slider && slider.style.width !== 0 && slider.style.width !== 0) { - if (param.cloak) content.css('display', 'none'); - switch (param.side) { - case 'right': - slider.style.width = '0px'; - if (param.squeeze) body.style.right = '0px'; - if (param.push) { - body.style.right = '0px'; - body.style.left = '0px'; - } - break; - case 'left': - slider.style.width = '0px'; - if (param.squeeze) body.style.left = '0px'; - if (param.push) { - body.style.left = '0px'; - body.style.right = '0px'; - } - break; - case 'top': - slider.style.height = '0px'; - if (param.squeeze) body.style.top = '0px'; - if (param.push) { - body.style.top = '0px'; - body.style.bottom = '0px'; - } - break; - case 'bottom': - slider.style.height = '0px'; - if (param.squeeze) body.style.bottom = '0px'; - if (param.push) { - body.style.bottom = '0px'; - body.style.top = '0px'; - } - break; - } - } - $scope.psOpen = false; - } - - /* Open */ - function psOpen(slider, param) { - if (slider.style.width !== 0 && slider.style.width !== 0) { - switch (param.side) { - case 'right': - slider.style.width = param.size; - if (param.squeeze) body.style.right = param.size; - if (param.push) { - body.style.right = param.size; - body.style.left = '-' + param.size; - } - break; - case 'left': - slider.style.width = param.size; - if (param.squeeze) body.style.left = param.size; - if (param.push) { - body.style.left = param.size; - body.style.right = '-' + param.size; - } - break; - case 'top': - slider.style.height = param.size; - if (param.squeeze) body.style.top = param.size; - if (param.push) { - body.style.top = param.size; - body.style.bottom = '-' + param.size; - } - break; - case 'bottom': - slider.style.height = param.size; - if (param.squeeze) body.style.bottom = param.size; - if (param.push) { - body.style.bottom = param.size; - body.style.top = '-' + param.size; - } - break; - } - setTimeout(function() { - if (param.cloak) content.css('display', 'block'); - }, (param.speed * 1000)); - - } - } - - function isFunction(functionToCheck) { - var getType = {}; - return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; - } - - /* - * Watchers - * */ - - $scope.$watch('psOpen', function(value) { - if (!!value) { - // Open - psOpen(slider, param); - } else { - // Close - psClose(slider, param); - } - }); - - - /* - * Events - * */ - - $scope.$on('$destroy', function () { - body.removeChild(slider); - }); - - if ($scope.psAutoClose) { - $scope.$on('$locationChangeStart', function() { - psClose(slider, param); - }); - $scope.$on('$stateChangeStart', function() { - psClose(slider, param); - }); - - } - } - }; - } -]); +;(function(){ + 'use strict'; + + angular + .module('pageslide-directive', []) + .directive('pageslide', [ + function () { + var defaults = {}; + + /* Return directive definition object */ + + return { + restrict: 'EAC', + transclude: false, + scope: { + psOpen: '=?', + psAutoClose: '=?', + psSide: '@', + psSpeed: '@', + psClass: '@', + psSize: '@', + psSqueeze: '@', + psCloak: '@', + psPush: '@', + psContainer: '@' + }, + //template: '
', + link: function ($scope, el, attrs) { + /* Inspect */ + //console.log($scope); + //console.log(el); + //console.log(attrs); + + /* Parameters */ + var param = {}; + + param.side = $scope.psSide || 'right'; + param.speed = $scope.psSpeed || '0.5'; + param.size = $scope.psSize || '300px'; + param.zindex = 1000; // Override with custom CSS + param.className = $scope.psClass || 'ng-pageslide'; + param.cloak = $scope.psCloak && $scope.psCloak.toLowerCase() == 'false' ? false : true; + param.squeeze = Boolean($scope.psSqueeze) || false; + param.push = Boolean($scope.psPush) || false; + param.container = $scope.psContainer || false; + + // Apply Class + el.addClass(param.className); + + /* DOM manipulation */ + var content = null; + var slider = null; + var body = param.container ? document.getElementById(param.container) : document.body; + + slider = el[0]; + + // Check for div tag + if (slider.tagName.toLowerCase() !== 'div' && + slider.tagName.toLowerCase() !== 'pageslide') + throw new Error('Pageslide can only be applied to
or elements'); + + // Check for content + if (slider.children.length === 0) + throw new Error('You have to content inside the '); + + content = angular.element(slider.children); + + /* Append */ + body.appendChild(slider); + + /* Style setup */ + slider.style.zIndex = param.zindex; + slider.style.position = param.container !== false ? 'absolute' : 'fixed'; + slider.style.width = 0; + slider.style.height = 0; + slider.style.overflow = 'hidden'; + slider.style.transitionDuration = param.speed + 's'; + slider.style.webkitTransitionDuration = param.speed + 's'; + slider.style.transitionProperty = 'width, height'; + if (param.squeeze) { + body.style.position = 'absolute'; + body.style.transitionDuration = param.speed + 's'; + body.style.webkitTransitionDuration = param.speed + 's'; + body.style.transitionProperty = 'top, bottom, left, right'; + } + + switch (param.side) { + case 'right': + slider.style.height = attrs.psCustomHeight || '100%'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + case 'left': + slider.style.height = attrs.psCustomHeight || '100%'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.left = attrs.psCustomLeft || '0px'; + break; + case 'top': + slider.style.width = attrs.psCustomWidth || '100%'; + slider.style.left = attrs.psCustomLeft || '0px'; + slider.style.top = attrs.psCustomTop || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + case 'bottom': + slider.style.width = attrs.psCustomWidth || '100%'; + slider.style.bottom = attrs.psCustomBottom || '0px'; + slider.style.left = attrs.psCustomLeft || '0px'; + slider.style.right = attrs.psCustomRight || '0px'; + break; + } + + + /* Closed */ + function psClose(slider, param) { + if (slider && slider.style.width !== 0 && slider.style.width !== 0) { + if (param.cloak) content.css('display', 'none'); + switch (param.side) { + case 'right': + slider.style.width = '0px'; + if (param.squeeze) body.style.right = '0px'; + if (param.push) { + body.style.right = '0px'; + body.style.left = '0px'; + } + break; + case 'left': + slider.style.width = '0px'; + if (param.squeeze) body.style.left = '0px'; + if (param.push) { + body.style.left = '0px'; + body.style.right = '0px'; + } + break; + case 'top': + slider.style.height = '0px'; + if (param.squeeze) body.style.top = '0px'; + if (param.push) { + body.style.top = '0px'; + body.style.bottom = '0px'; + } + break; + case 'bottom': + slider.style.height = '0px'; + if (param.squeeze) body.style.bottom = '0px'; + if (param.push) { + body.style.bottom = '0px'; + body.style.top = '0px'; + } + break; + } + } + $scope.psOpen = false; + } + + /* Open */ + function psOpen(slider, param) { + if (slider.style.width !== 0 && slider.style.width !== 0) { + switch (param.side) { + case 'right': + slider.style.width = param.size; + if (param.squeeze) body.style.right = param.size; + if (param.push) { + body.style.right = param.size; + body.style.left = '-' + param.size; + } + break; + case 'left': + slider.style.width = param.size; + if (param.squeeze) body.style.left = param.size; + if (param.push) { + body.style.left = param.size; + body.style.right = '-' + param.size; + } + break; + case 'top': + slider.style.height = param.size; + if (param.squeeze) body.style.top = param.size; + if (param.push) { + body.style.top = param.size; + body.style.bottom = '-' + param.size; + } + break; + case 'bottom': + slider.style.height = param.size; + if (param.squeeze) body.style.bottom = param.size; + if (param.push) { + body.style.bottom = param.size; + body.style.top = '-' + param.size; + } + break; + } + setTimeout(function() { + if (param.cloak) content.css('display', 'block'); + }, (param.speed * 1000)); + + } + } + + function isFunction(functionToCheck) { + var getType = {}; + return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; + } + + /* + * Watchers + * */ + + $scope.$watch('psOpen', function(value) { + if (!!value) { + // Open + psOpen(slider, param); + } else { + // Close + psClose(slider, param); + } + }); + + + /* + * Events + * */ + + $scope.$on('$destroy', function () { + body.removeChild(slider); + }); + + if ($scope.psAutoClose) { + $scope.$on('$locationChangeStart', function() { + psClose(slider, param); + }); + $scope.$on('$stateChangeStart', function() { + psClose(slider, param); + }); + + } + } + }; + } + ]); + +})(); \ No newline at end of file diff --git a/src/app/stepway/ngwfApp.js b/src/app/stepway/ngwfApp.js index 6fc109e0..6f2ca540 100644 --- a/src/app/stepway/ngwfApp.js +++ b/src/app/stepway/ngwfApp.js @@ -29,7 +29,7 @@ 'ngwfApp.filters', 'ngwfApp.directives' ]) - .value('easyFormGenVersion', 'v1.0.31') + .value('easyFormGenVersion', 'v1.0.32') .config(formlyConfigFct) .config(easyFromConfigFct);