!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","../../Validation"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("tslib"),r=e("../../Validation"),e=(n.prototype.execute=function(i){return o.__awaiter(this,void 0,void 0,function(){var t,n;return o.__generator(this,function(e){switch(e.label){case 0:return t=r.validation.exists("file",i.file),n=r.validation.string("encoding",i.encoding),[4,this.getText(t,n)];case 1:return[2,{result:e.sent()}]}})})},n.prototype.getText=function(i,r){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){return[2,new Promise(function(e,t){var n=new FileReader;n.onload=function(){return e(n.result)},n.onerror=function(e){return t(e)},n.readAsText(i,r)})]})})},n.action="gcx:wf:core::GetTextFromFile",n.suite="gcx:wf:builtin",n);function n(){}t.GetTextFromFile=e});