text: "use strict";!function(){function e(e){var t=this;_.assign(t,{$onInit:function(){t.setController.addItem(t)},$onDestroy:function(){t.setController.removeItem(t)},getCrumb:function(){return _.pick(t,["icon","label","path","translate"])},$el:e})}function t(e,t){var n=this,r=[];_.assign(n,{$onInit:function(){e.hide(),t.addLiveBreadcrumbsController(n)},$onDestroy:function(){t.removeLiveBreadcrumbsController(n)},getBreadcrumbs:function(){var t=e.find("c8y-breadcrumbs-item");return _(n.paths).sortBy(function(e){return e.$el.index(t)}).reverse().map(function(e){return e.getCrumb()}).tap(function(e){e.length&&e.push({})}).value()},paths:r,addItem:function(e){r.push(e),t.$emit("update")},removeItem:function(e){_.pull(r,e),t.$emit("update")}})}e.$inject=["$element"],t.$inject=["$element","c8yBreadcrumbs"],angular.module("c8y.ui").component("c8yBreadcrumbsSet",{template:"",controller:t}).component("c8yBreadcrumbsItem",{template:"",require:{setController:"^c8yBreadcrumbsSet"},controller:e,bindings:{icon:"@",label:"@",path:"@",translate:"@"}})}();