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