92 lines
2.9 KiB
TypeScript
92 lines
2.9 KiB
TypeScript
// Module ID: 3874
|
|
// Function ID: 3875
|
|
// Name: isFeatureTeenByDefault
|
|
// Dependencies: [2]
|
|
|
|
// Module 3874 (isFeatureTeenByDefault)
|
|
class SettingsConfig {
|
|
constructor(arg0) {
|
|
obj = Object.create(new.target.prototype);
|
|
obj.teenByDefault = global;
|
|
return obj;
|
|
}
|
|
}
|
|
const prototype = SettingsConfig.prototype;
|
|
prototype["isFeatureTeenByDefault"] = function isFeatureTeenByDefault(arg0) {
|
|
return this.teenByDefault & arg0;
|
|
};
|
|
prototype["hasTeenDefaults"] = function hasTeenDefaults() {
|
|
let num = this.teenByDefault;
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
return 0 !== num;
|
|
};
|
|
class AgeVerificationConfig {
|
|
constructor(arg0) {
|
|
obj = Object.create(new.target.prototype);
|
|
obj.gatedFeatures = global;
|
|
return obj;
|
|
}
|
|
}
|
|
const prototype2 = AgeVerificationConfig.prototype;
|
|
prototype2["isFeatureAgeGated"] = function isFeatureAgeGated(arg0) {
|
|
return this.gatedFeatures & arg0;
|
|
};
|
|
prototype2["hasAgeGatedFeatures"] = function hasAgeGatedFeatures() {
|
|
let num = this.gatedFeatures;
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
return 0 !== num;
|
|
};
|
|
let RegionalFeatureConfig;
|
|
class RegionalFeatureConfig {
|
|
constructor(arg0, arg1) {
|
|
obj = Object.create(new.target.prototype);
|
|
obj.settings = global;
|
|
obj.ageVerification = require;
|
|
return obj;
|
|
}
|
|
}
|
|
const prototype3 = RegionalFeatureConfig.prototype;
|
|
prototype3["isFeatureAgeGated"] = function isFeatureAgeGated(arg0) {
|
|
const ageVerification = this.ageVerification;
|
|
return ageVerification.isFeatureAgeGated(arg0);
|
|
};
|
|
prototype3["isFeatureTeenByDefault"] = function isFeatureTeenByDefault(arg0) {
|
|
const settings = this.settings;
|
|
return settings.isFeatureTeenByDefault(arg0);
|
|
};
|
|
prototype3["hasAgeGatedFeatures"] = function hasAgeGatedFeatures() {
|
|
const ageVerification = this.ageVerification;
|
|
return ageVerification.hasAgeGatedFeatures();
|
|
};
|
|
prototype3["hasTeenDefaults"] = function hasTeenDefaults() {
|
|
const settings = this.settings;
|
|
return settings.hasTeenDefaults();
|
|
};
|
|
RegionalFeatureConfig["fromConnectionOpen"] = function fromConnectionOpen(regionalFeatureConfig) {
|
|
if (typeof SettingsConfig !== "find") {
|
|
HermesBuiltin.throwTypeError();
|
|
}
|
|
let obj = Object.create(SettingsConfig.prototype);
|
|
obj.teenByDefault = regionalFeatureConfig.teen_by_default_settings;
|
|
if (typeof AgeVerificationConfig !== "find") {
|
|
HermesBuiltin.throwTypeError();
|
|
}
|
|
obj = Object.create(AgeVerificationConfig.prototype);
|
|
obj.gatedFeatures = regionalFeatureConfig.age_gated_features;
|
|
if (typeof RegionalFeatureConfig !== "find") {
|
|
HermesBuiltin.throwTypeError();
|
|
}
|
|
const obj1 = Object.create(RegionalFeatureConfig.prototype);
|
|
obj1.settings = obj;
|
|
obj1.ageVerification = obj;
|
|
return obj1;
|
|
};
|
|
const result = require("set").fileFinishedImporting("modules/regional_feature_config/RegionalFeatureConfigModels.tsx");
|
|
|
|
export { SettingsConfig };
|
|
export { AgeVerificationConfig };
|
|
export { RegionalFeatureConfig };
|