define(["components/inbox/module","lodash"],function(a,b){"use strict";return a.registerDirective("messageLabels",["InboxConfig",function(a){return{replace:!0,restrict:"E",link:function(c,d){c.message.labels&&c.message.labels.length?a.success(function(a){var e=b.map(c.message.labels,function(b){return'<span class="label bg-color-'+a.labels[b].color+'">'+a.labels[b].name+"</span>"}).join("");d.replaceWith(e)}):d.replaceWith("")}}}])});