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