44 lines
1.5 KiB
JavaScript
44 lines
1.5 KiB
JavaScript
// Metro module 222 (f223).
|
|
import _classCallCheck from "./_classCallCheck";
|
|
import _createClass from "./_createClass";
|
|
import _possibleConstructorReturn from "./_possibleConstructorReturn";
|
|
import _getPrototypeOf from "./_getPrototypeOf";
|
|
import _inherits from "./_inherits";
|
|
import * as _Module38 from "./Module38";
|
|
import Blob2 from "./Blob";
|
|
let File2;
|
|
let env241 = {};
|
|
env241[5] = function _isNativeReflectConstruct() {
|
|
let c12210_0;
|
|
try {
|
|
c12210_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
} catch ($e) {}
|
|
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
|
|
return !!c12210_0;
|
|
};
|
|
env241[5] = _isNativeReflectConstruct2;
|
|
return _isNativeReflectConstruct2();
|
|
};
|
|
File2 = function(a0, a1, a2) {
|
|
_classCallCheck(this, File2);
|
|
_Module38(a0 != null && a1 != null, "Failed to construct `File`: Must pass both `parts` and `name` arguments.");
|
|
const r11 = [a0, a2];
|
|
const r20 = _getPrototypeOf(File2);
|
|
const r31 = _possibleConstructorReturn(this, (0, env241[5])() ? Reflect.construct(r20, r11, _getPrototypeOf(this).constructor) : r20.apply(this, r11));
|
|
r31.data.name = a1;
|
|
return r31;
|
|
};
|
|
_inherits(File2, Blob2);
|
|
export default _createClass(File2, [{
|
|
key: "name",
|
|
get: function get() {
|
|
_Module38(this.data.name != null, "Files must have a name set.");
|
|
return this.data.name;
|
|
}
|
|
}, {
|
|
key: "lastModified",
|
|
get: function get() {
|
|
return this.data.lastModified || 0;
|
|
}
|
|
}]);
|