define(["require","exports","tslib","./esriDelegate!esri/layers/support/MosaicRule","./esriDelegate!esri/layers/support/RasterFunction","../../Validation","./MapProvider","./tools","../../Hooks"],function(e,r,t,o,a,l,i,u,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});s.prototype.execute=function(t,e,r){var i=l.validation.id("layerId",t.layerId,l.validation.never),n=r.create();return u.inline(n.load(),function(){var r=n.findLayer(i);return null!=r?u.inline(r.load(),function(){var e=t.mosaicRule;null!=e&&r.setProperty("mosaicRule",e instanceof o.MosaicRule?e:new o.MosaicRule(e));e=t.renderingRule;null!=e&&r.setProperty("renderingRule",e instanceof a.RasterFunction?e:new a.RasterFunction(e));e=t.pixelFilter;return"function"==typeof e&&r.setProperty("pixelFilter",e),r.redraw(),{mosaicRule:r.getProperty("mosaicRule"),renderingRule:r.getProperty("renderingRule"),pixelFilter:r.getProperty("pixelFilter")}}):{}})},s.action="gcx:wf:arcgis::SetImageryLayerOptions",s.suite="gcx:wf:builtin",i=t.__decorate([n.activate(i.MapProvider)],s);function s(){}r.SetImageryLayerOptions=i});