(()=>{function e(e){var t=this;_.assign(t,{$onInit:function(){t.setController.addItem(t)},$onChanges:function(e){_.forOwn(e,function(e){return!!e.isFirstChange()||(t.setController.emitUpdate(),!1)})},$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 t.index(e.$el[0])}).reverse().map(function(e){return e.getCrumb()}).value()},paths:r,addItem:function(e){r.push(e),t.$emit("update")},removeItem:function(e){_.pull(r,e),t.$emit("update")},emitUpdate:function(){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:"@"}})})();