define(["require","exports","tslib","../../Validation","./MapProvider","../../Hooks","./tools"],function(i,e,t,l,r,a,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n.prototype.execute=function(i,e,t){var r=l.validation.id("layerId",i.layerId,l.validation.never),a=l.validation.id("sublayerId",i.sublayerId,void 0),n=t.create();return o.inline(n.load(),function(){var e=n.findLayer(r);return null!=e?o.inline(e.load(),function(){if(void 0===a)return{visible:e.getVisible()};var i=n.findLayer(a,e.layer);return null!=i?{visible:i.getVisible()}:{}}):{}})},n.action="gcx:wf:arcgis::GetLayerVisibility",n.suite="gcx:wf:builtin",r=t.__decorate([a.activate(r.MapProvider)],n);function n(){}e.GetLayerVisibility=r});