angular.module("controls").directive("kkHistorySwitcher",["core","utils","state",function(t,r,o){return{restrict:"E",scope:{},template:'\t\t<div class="btn-group">\t\t\t<div class="btn no-bg" ng-class="{ disabled: !state.history.backPossible() }" title="Vorheriges Drop{{backInfo()}}" ng-click="historyBack()">\t\t\t\t<small><i class="icon-angle-left"></i></small>\t\t\t</div>\t\t\t<div class="btn no-bg" ng-class="{ disabled: !state.history.forwardPossible() }" title="Nächstes Drop{{forwardInfo()}}" ng-click="historyForward()">\t\t\t\t<small><i class="icon-angle-right"></i></small>\t\t\t</div>\t\t</div>',link:function(a,i,s){a.state=o,a.backInfo=function(){var t=o.history.back(!0);return t?" ("+r.Group.baseName(t._internal.name)+")":""},a.forwardInfo=function(){var t=o.history.forward(!0);return t?" ("+r.Group.baseName(t._internal.name)+")":""},a.historyBack=function(){var t=o.history.back();t&&r.Drops.activateDrop(t,!0)},a.historyForward=function(){var t=o.history.forward();t&&r.Drops.activateDrop(t,!0)},a.$watchCollection((function(){return t.settings.drops}),(function(){o.history.cleanup()}))}}}]);