!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 i=e("tslib"),r=e("../../Validation"),e=(n.prototype.execute=function(n){return i.__awaiter(this,void 0,void 0,function(){var t;return i.__generator(this,function(e){switch(e.label){case 0:return(t=r.validation.exists("file",n.file))instanceof ArrayBuffer&&(t=new Blob([t],{type:"application/octet-binary"})),[4,this.getBase64(t)];case 1:return[2,{result:e.sent()}]}})})},n.prototype.getBase64=function(r){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(e){return[2,new Promise(function(t,n){var i=new FileReader;i.onload=function(){var e=(e=i.result).substring(e.indexOf("base64,")+7);return t(e)},i.onerror=function(e){return n(e)},i.readAsDataURL(r)})]})})},n.action="gcx:wf:core::GetBase64StringFromFile",n.suite="gcx:wf:builtin",n);function n(){}t.GetBase64StringFromFile=e});