!function(){"use strict";function n(n,a,e,t){var o=this;o.tone=0,o.range=0,o.focus=0,o.strength=0,o.onFocusValue=void 0,o.onFocus=function(n){console.log(n),o.onFocusValue={value:n.target.valueAsNumber,id:n.target.id}},o.onBlur=function(){var n=o[o.onFocusValue.id],a=o.onFocusValue.value;n!=a&&(o.update(),o.onFocusValue.value=n)},o.update=function(){n.isInitialized&&a.hasLayersError().then(function(n){n?a.reset(!0):a.runFilter()})},o.$watch("tone",function(a,e){o.tone=+o.tone,n.params.tonalRangeCenter=+a}),o.$watch("range",function(a,e){o.range=+o.range,n.params.tonalRangeRadius=+a}),o.$watch("focus",function(a,e){o.focus=+o.focus,n.params.curveContrastLevel=+a}),o.$watch("strength",function(a,e){o.strength=+o.strength,n.params.tonalRangeGain=+a}),e.onChangeParams(t,function(a){o.tone=n.params.tonalRangeCenter,o.range=n.params.tonalRangeRadius,o.focus=n.params.curveContrastLevel,o.strength=n.params.tonalRangeGain})}angular.module("app").controller("SlidersController",n),n.$inject=["tk","ps","pubSub","$scope"]}();