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