angular.module("c8y.ui").component("c8yFeedbackPanel",{bindings:{feedback:"<",filter:"<",sort:"<"},templateUrl:":::PLUGIN_PATH:::/ui/components/feedback-panel.html",controller:function(){var t=this,n={progress:{icon:"circle-o-notch",iconClass:"icon-spin",textClass:"text-muted"},info:{icon:"info-circle",textClass:"text-info"},warning:{icon:"exclamation-triangle",textClass:"text-warning"},success:{icon:"check-circle",textClass:"text-success"},error:{icon:"exclamation-circle",textClass:"text-danger"}},c={},e=[];function i(e){return _.get(e,"type","info")}function o(){return _.get(t,"sort",e)}_.assign(t,{getIcon:function(e){return _.get(n,[i(e),"icon"],n.info.icon)},getIconClass:function(e){return _.get(n,[i(e),"iconClass"],n.info.iconClass)},getTextClass:function(e){return _.get(n,[i(e),"textClass"],n.info.textClass)},getDetails:function(){var e=_.get(t,"feedback.details");return _(e).filter(_.get(t,"filter",c)).orderBy(_.map(o(),"iteratee"),_.map(o(),"order")).value()}})},controllerAs:"vm"});