text: angular.module("dialogs.controllers",["ui.bootstrap.modal","pascalprecht.translate"]).config(["$translateProvider",function(n){n.translations("en-US",{DIALOGS_ERROR:"Error",DIALOGS_ERROR_MSG:"An unknown error has occurred.",DIALOGS_CLOSE:"Close",DIALOGS_PLEASE_WAIT:"Please Wait",DIALOGS_PLEASE_WAIT_ELIPS:"Please Wait...",DIALOGS_PLEASE_WAIT_MSG:"Waiting on operation to complete.",DIALOGS_PERCENT_COMPLETE:"% Complete",DIALOGS_NOTIFICATION:"Notification",DIALOGS_NOTIFICATION_MSG:"Unknown application notification.",DIALOGS_CONFIRMATION:"Confirmation",DIALOGS_CONFIRMATION_MSG:"Confirmation required.",DIALOGS_OK:"OK",DIALOGS_YES:"Yes",DIALOGS_NO:"No"}),n.preferredLanguage("en-US")}]).controller("errorDialogCtrl",["$scope","$modalInstance","$translate","header","msg",function(n,a,e,s,o){n.header=angular.isDefined(s)?s:e.instant("DIALOGS_ERROR"),n.msg=angular.isDefined(o)?o:e.instant("DIALOGS_ERROR_MSG"),n.close=function(){a.close(),n.$destroy()}}]).controller("waitDialogCtrl",["$scope","$modalInstance","$translate","$timeout","header","msg","progress",function(n,a,e,s,o,t,l){n.header=angular.isDefined(o)?o:e.instant("DIALOGS_PLEASE_WAIT_ELIPS"),n.msg=angular.isDefined(t)?t:e.instant("DIALOGS_PLEASE_WAIT_MSG"),n.progress=angular.isDefined(l)?l:100,n.$on("dialogs.wait.complete",function(){s(function(){a.close(),n.$destroy()})}),n.$on("dialogs.wait.message",function(a,e){n.msg=angular.isDefined(e.msg)?e.msg:n.msg}),n.$on("dialogs.wait.progress",function(a,e){n.msg=angular.isDefined(e.msg)?e.msg:n.msg,n.progress=angular.isDefined(e.progress)?e.progress:n.progress}),n.getProgress=function(){return{width:n.progress+"%"}}}]).controller("notifyDialogCtrl",["$scope","$modalInstance","$translate","header","msg",function(n,a,e,s,o){n.header=angular.isDefined(s)?s:e.instant("DIALOGS_NOTIFICATION"),n.msg=angular.isDefined(o)?o:e.instant("DIALOGS_NOTIFICATION_MSG"),n.close=function(){a.close(),n.$destroy()}}]).controller("confirmDialogCtrl",["$scope","$modalInstance","$translate","header","msg",function(n,a,e,s,o){n.header=angular.isDefined(s)?s:e.instant("DIALOGS_CONFIRMATION"),n.msg=angular.isDefined(o)?o:e.instant("DIALOGS_CONFIRMATION_MSG"),n.no=function(){a.dismiss("no")},n.yes=function(){a.close("yes")}}]),angular.module("dialogs.services",["ui.bootstrap.modal","dialogs.controllers"]).provider("dialogs",[function(){var n=!0,a=!0,e="dialogs-default",s=!0,o=null,t="lg",l=function(s){var o={};return s=angular.isDefined(s)?s:{},o.kb=angular.isDefined(s.keyboard)?s.keyboard:a,o.bd=angular.isDefined(s.backdrop)?s.backdrop:n,o.ws=angular.isDefined(s.size)&&(angular.equals(s.size,"sm")||angular.equals(s.size,"lg"))?s.size:t,o.wc=angular.isDefined(s.windowClass)?s.windowClass:e,o};this.useBackdrop=function(a){angular.isDefined(a)&&(n=a)},this.useEscClose=function(n){angular.isDefined(n)&&(a=angular.equals(n,0)||angular.equals(n,"false")||angular.equals(n,"no")||angular.equals(n,null)||angular.equals(n,!1)?!1:!0)},this.useClass=function(n){angular.isDefined(n)&&(e=n)},this.useCopy=function(n){angular.isDefined(n)&&(s=angular.equals(n,0)||angular.equals(n,"false")||angular.equals(n,"no")||angular.equals(n,null)||angular.equals(n,!1)?!1:!0)},this.setWindowTmpl=function(n){angular.isDefined(n)&&(o=n)},this.setSize=function(n){angular.isDefined(n)&&(t=angular.equals(n,"sm")||angular.equals(n,"lg")?n:t)},this.$get=["$modal",function(n){return{error:function(a,e,s){return s=l(s),n.open({templateUrl:"/dialogs/error.html",controller:"errorDialogCtrl",backdrop:s.bd,keyboard:s.kb,windowClass:s.wc,size:s.ws,resolve:{header:function(){return angular.copy(a)},msg:function(){return angular.copy(e)}}})},wait:function(a,e,s,o){return o=l(o),n.open({templateUrl:"/dialogs/wait.html",controller:"waitDialogCtrl",backdrop:o.bd,keyboard:o.kb,windowClass:o.wc,size:o.ws,resolve:{header:function(){return angular.copy(a)},msg:function(){return angular.copy(e)},progress:function(){return angular.copy(s)}}})},notify:function(a,e,s){return s=l(s),n.open({templateUrl:"/dialogs/notify.html",controller:"notifyDialogCtrl",backdrop:s.bd,keyboard:s.kb,windowClass:s.wc,size:s.ws,resolve:{header:function(){return angular.copy(a)},msg:function(){return angular.copy(e)}}})},confirm:function(a,e,s){return s=l(s),n.open({templateUrl:"/dialogs/confirm.html",controller:"confirmDialogCtrl",backdrop:s.bd,keyboard:s.kb,windowClass:s.wc,size:s.ws,resolve:{header:function(){return angular.copy(a)},msg:function(){return angular.copy(e)}}})},create:function(a,e,o,t){var r=angular.isDefined(t)&&angular.isDefined(t.copy)?t.copy:s;return t=l(t),n.open({templateUrl:a,controller:e,keyboard:t.kb,backdrop:t.bd,windowClass:t.wc,size:t.ws,resolve:{data:function(){return r?angular.copy(o):o}}})}}}]}]),angular.module("dialogs.main",["dialogs.services","ngSanitize"]).run(["$templateCache","$interpolate",function(n,a){var e=a.startSymbol(),s=a.endSymbol();n.put("/dialogs/error.html",'<div class="modal-header dialog-header-error"><button type="button" class="close" ng-click="close()">&times;</button><h4 class="modal-title text-danger"><span class="glyphicon glyphicon-warning-sign"></span> <span ng-bind-html="header"></span></h4></div><div class="modal-body text-danger" ng-bind-html="msg"></div><div class="modal-footer"><button type="button" class="btn btn-default" ng-click="close()">'+e+'"DIALOGS_CLOSE" | translate'+s+"</button></div>"),n.put("/dialogs/wait.html",'<div class="modal-header dialog-header-wait"><h4 class="modal-title"><span class="glyphicon glyphicon-time"></span> '+e+'"DIALOGS_PLEASE_WAIT" | translate'+s+'</h4></div><div class="modal-body"><p ng-bind-html="msg"></p><div class="progress progress-striped active"><div class="progress-bar progress-bar-info" ng-style="getProgress()"></div><span class="sr-only">'+e+"progress"+s+e+'"DIALOGS_PERCENT_COMPLETE" | translate'+s+"</span></div></div>"),n.put("/dialogs/notify.html",'<div class="modal-header dialog-header-notify"><button type="button" class="close" ng-click="close()" class="pull-right">&times;</button><h4 class="modal-title text-info"><span class="glyphicon glyphicon-info-sign"></span> '+e+"header"+s+'</h4></div><div class="modal-body text-info" ng-bind-html="msg"></div><div class="modal-footer"><button type="button" class="btn btn-primary" ng-click="close()">'+e+'"DIALOGS_OK" | translate'+s+"</button></div>"),n.put("/dialogs/confirm.html",'<div class="modal-header dialog-header-confirm"><button type="button" class="close" ng-click="no()">&times;</button><h4 class="modal-title"><span class="glyphicon glyphicon-check"></span> '+e+"header"+s+'</h4></div><div class="modal-body" ng-bind-html="msg"></div><div class="modal-footer"><button type="button" class="btn btn-default" ng-click="yes()">'+e+'"DIALOGS_YES" | translate'+s+'</button><button type="button" class="btn btn-primary" ng-click="no()">'+e+'"DIALOGS_NO" | translate'+s+"</button></div>")}]);