function launchFileChooser() {
    var uploader = document.querySelector('.hidden-uploader');
    if (uploader) {
        uploader.click();
    }
}
Polymer({
    is: 'paw-filechooser',
    properties: {
        onFileChosen: Object,
    },
    ready: function () {
        var _this = this;
        var uploader = document.querySelector('.hidden-uploader');
        uploader.addEventListener('change', function (event) {
            var file = event.target.files[0];
            if (file !== undefined && file.path !== undefined) {
                _this.onFileChosen(file.path);
            }
        });
    },
});
//# sourceMappingURL=paw-filechooser.js.map