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