define("share/assert/js/dialogutil",[],function(require,exports){var a={};a.openFileDialog=function(a){var b=jQuery.Deferred(),c=jQuery('<input style="display:none;"  type="file" />');if(c.length){if(a)for(var d in a)c.attr(d,a[d]);if(c.one("change",function(){b.resolve(c.val())}),c.trigger("click"),a)for(var d in a)c.removeAttr(d)}return b.promise()},a.saveFileDialog=function(a){a=a||{},a.nwsaveas||(a.nwsaveas="");var b=jQuery.Deferred();return this.openFileDialog(a).done(function(a){console.log("save file: "+a),b.resolve(a)}),b.promise()},exports.DialogUtil=a});