decord/source/modules/regional_feature_config/RegionalFeatureConfigModels.tsx

113 lines
3.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4081
// Function ID: 4082
2026-07-29 08:29:29 +00:00
// Name: isFeatureTeenByDefault
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 4081 (isFeatureTeenByDefault)
import set from "set" /* 2 */;
2026-07-29 08:29:29 +00:00
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;
};
2026-07-30 10:14:41 +00:00
class AppStoreConfig {
constructor(arg0) {
obj = Object.create(new.target.prototype);
obj.shouldCollectSignal = global;
return obj;
}
}
2026-07-29 08:29:29 +00:00
let RegionalFeatureConfig;
class RegionalFeatureConfig {
2026-07-30 10:14:41 +00:00
constructor(arg0, arg1, arg2) {
2026-07-29 08:29:29 +00:00
obj = Object.create(new.target.prototype);
obj.settings = global;
obj.ageVerification = require;
2026-07-30 10:14:41 +00:00
obj.appStore = importDefault;
2026-07-29 08:29:29 +00:00
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();
};
2026-07-30 10:14:41 +00:00
prototype3["shouldCollectAppStoreSignal"] = function shouldCollectAppStoreSignal() {
return this.appStore.shouldCollectSignal;
};
2026-07-29 08:29:29 +00:00
RegionalFeatureConfig["fromConnectionOpen"] = function fromConnectionOpen(regionalFeatureConfig) {
2026-08-04 21:03:28 +00:00
if (typeof SettingsConfig !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj = Object.create(SettingsConfig.prototype);
obj.teenByDefault = regionalFeatureConfig.teen_by_default_settings;
2026-08-04 21:03:28 +00:00
if (typeof AgeVerificationConfig !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = Object.create(AgeVerificationConfig.prototype);
obj.gatedFeatures = regionalFeatureConfig.age_gated_features;
2026-08-04 21:03:28 +00:00
if (typeof AppStoreConfig !== "function") {
2026-07-30 10:14:41 +00:00
HermesBuiltin.throwTypeError();
}
2026-08-24 06:08:38 +00:00
obj1 = Object.create(AppStoreConfig.prototype);
2026-07-30 10:14:41 +00:00
obj1.shouldCollectSignal = true === regionalFeatureConfig.should_collect_app_store_signal;
2026-08-04 21:03:28 +00:00
if (typeof RegionalFeatureConfig !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
2026-07-20 16:05:17 +00:00
}
2026-07-30 10:14:41 +00:00
const obj2 = Object.create(RegionalFeatureConfig.prototype);
obj2.settings = obj;
obj2.ageVerification = obj;
obj2.appStore = obj1;
return obj2;
2026-07-29 08:29:29 +00:00
};
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/regional_feature_config/RegionalFeatureConfigModels.tsx");
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
export { SettingsConfig };
export { AgeVerificationConfig };
2026-07-30 10:14:41 +00:00
export { AppStoreConfig };
2026-07-29 08:29:29 +00:00
export { RegionalFeatureConfig };