text: /*! popup.service.min.js v1.1 by Amitesh Kumar, updated 2017-10-20. Visit  https://github.com/amiteshhh/utilities/angular/popup */
  !function(){function t(){var t={okText:"OK",okClass:"btn-info",cancelText:"Cancel",cancelClass:"btn-secondary",headerClass:"text-center",bodyClass:"",footerClass:"",backdrop:"static",keyboard:!1,size:"sm",showStringAs:"body",enableDynamicSize:!0,extendSizeCharLength:300};this.setDefaults=function(n){angular.extend(t,n)},this.$get=["$uibModal",function(e){return new n(t,e)}]}function n(t,n){function e(){angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";.modal-spinner .modal-content{padding:20px;border-radius:5px;background-color:rgba(0,0,0,.8);color:#fff;text-align:center;text-overflow:ellipsis;font-size:15px}.modal-spinner-text .modal-content{text-align:left}.modal-spinner .modal-dialog{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;width:80px;height:300px}.modal-spinner-text .modal-dialog{text-align:left;width:250px}</style>')}function o(n){return d(r([{text:n.okText||t.okText,className:n.okClass||t.okClass,handler:function(){return!0}}],n||{}))}function s(n){return d(r([{text:n.cancelText||t.cancelText,className:n.cancelClass||t.cancelClass,handler:function(){return!1}},{text:n.okText||t.okText,className:n.okClass||t.okClass,handler:function(){return!0}}],n||{}))}function a(t){var n="modal-spinner";t&&(n+=" modal-spinner-text");var e=d({title:t,backdrop:"static",keyboard:!1,windowClass:n,isSpinner:!0}),o=e.close,s=m.length;return m.push(e),e.close=function(t){o(),t||m.splice(s,1)},e}function l(){if(m.length){var t=m.pop();t.close(!0)}}function i(){for(var t;m.length;)t=m.pop(),t.close(!0)}function r(n,e){var o=angular.copy(t);if(e=e||"You there?","string"==typeof e){var s={};s[t.showStringAs]=e,t.enableDynamicSize&&e.length>t.extendSizeCharLength&&(s.size="md"),e=s}return o.buttons=n,angular.extend(o,e)}function d(t){var e=n.open({template:t.isSpinner?p:u,size:t.size,backdrop:t.backdrop,keyboard:t.keyboard,windowClass:t.windowClass,bindToController:!0,controllerAs:"vm",controller:["$injector","options",c],resolve:{options:function(){return t}}}),o=e.result;return o.close=e.close,o}function c(t,n){function e(n){if(!t.has("$sanitize")){var e=t.get("$sce");n.title=e.trustAsHtml(n.title),n.isSpinner||(n.subTitle=e.trustAsHtml(n.subTitle),n.body=e.trustAsHtml(n.body),n.buttons.forEach(function(t,n,o){t.text=e.trustAsHtml(t.text)}))}}var o=this;e(n),angular.extend(o,n),o.onButtonClick=function(t,n){var e=t.handler();o.$close(e)}}var u='        <div>            <div class="modal-header" ng-class="vm.headerClass" ng-if="vm.title" style="border:none; padding-bottom: 0;">                <h3 class="modal-title" ng-bind-html="vm.title"></h3>                <h5 class="modal-sub-title" ng-bind-html="vm.subTitle" ng-if="vm.subTitle"></h5>            </div>            <div class="modal-body" ng-if="vm.body" ng-class="vm.bodyClass">                <div ng-bind-html="vm.body"></div>            </div>            <div class="modal-footer" ng-class="vm.footerClass" style="text-align: center; padding-top: 10px; padding-bottom: 15px; border: none">                <div xclass="btn-group">                    <button ng-repeat="button in vm.buttons" ng-click="vm.onButtonClick(button, $index)" style="min-width: 70px;" class="btn" ng-class="button.className" ng-bind-html="button.text"></button>                </div>            </div>        </div>',p='<div><i class="fa fa-spinner fa-spin fa-2x"></i><span style="margin-left:5px; font-size: 1.3em">{{vm.title}}</span></div>',m=[];return e(),{alert:o,confirm:s,spin:a,stopSpin:l,stopAll:i}}angular.module("popup",[]).provider("PopupSvc",t)}();