text: angular.module("ng-breadcrumbs",["pascalprecht.translate"]).factory("breadcrumbs",["$rootScope","$location","$route","$translate",function(r,a,t,e){var n={breadcrumbs:[],get:function(r){if(this.options=r||this.options,this.options)for(var a in this.options)if(this.options.hasOwnProperty(a))for(var t in this.breadcrumbs)if(this.breadcrumbs.hasOwnProperty(t)){var e=this.breadcrumbs[t];e.label===a&&(e.label=this.options[a])}return this.breadcrumbs},generateBreadcrumbs:function(){var r=t.routes,n=a.path().split("/"),s="",o=this,i=function(r){if(t.current){var a;return angular.forEach(t.current.params,function(t,e){-1!==r.indexOf(t)&&(a=t),a&&(r=r.replace(t,":"+e))}),{path:r,param:a}}};""===n[1]&&delete n[1],this.breadcrumbs=[],angular.forEach(n,function(a){s+="/"===s?a:"/"+a;var t=i(s);if(t&&r[t.path]){var n=r[t.path].label||t.param,u=e.instant(n);null!==u&&(n=u);var c=r[t.path].name||"";o.breadcrumbs.push({label:n,path:s,name:c,param:t.param})}})}};return r.$on("$routeChangeSuccess",function(){n.generateBreadcrumbs()}),r.$watch(function(){return n.options},function(){n.generateBreadcrumbs()}),n.generateBreadcrumbs(),n}]);