(()=>{function e(t,s,e){var n={templateUrl:":::PLUGIN_PATH:::/ui/views/modal.html",controller:["$scope","$uibModalInstance",function(e,c){var o={success:"check-circle",warning:"exclamation-triangle",danger:"exclamation-circle",info:"info-circle"};e.statusIcon=function(){return o[e.status]},e.colorStatusClass=function(){return"alert-".concat(e.status)},e.checkboxes=_.reduce(e.checkboxes,function(e,c,o){c=_.cloneDeep(c);return c.key=o,e.push(c),e},[]),e.vals=_.reduce(e.checkboxes,function(e,c){return e[c.key]=c.checked,e},{}),e.showIf=function(e){return e.showIf()},e.close=c.close,e.dismiss=c.dismiss}]},a={ok:e("Confirm"),cancel:e("Cancel")};return function(e){var c=_.assign(_.cloneDeep(n),e),o=c.scope||s.$new(!0);return o.labels=_.assign(_.cloneDeep(a),c.labels||{}),o.title=c.title||o.title,o.body=c.body||o.body,o.checkboxes=c.checkboxes||o.checkboxes,o.status=c.status||"info",o.dismissValue=c.dismissValue,e.allowHTML||(o.title=_.escape(o.title),o.body=_.escape(o.body)),c.scope=o,c.ariaLabelledBy="modal-title",c.ariaDescribedBy="modal-body",t.open(c).result}}e.$inject=["$uibModal","$rootScope","gettext"],angular.module("c8y.ui").factory("c8yModal",e)})();