76 lines
4.8 KiB
TypeScript
76 lines
4.8 KiB
TypeScript
/* Metro module 3841; source: modules/regional_feature_config/RegionalFeatureConfigModels.tsx; dependencies: [6, 7, 2] */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun31678(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3980:6, offset: 0x00fffbad, size: 166 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = _fun31679();
|
|
const value2 = _fun31683();
|
|
const value3 = _fun31687();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/regional_feature_config/RegionalFeatureConfigModels.tsx');
|
|
exports.SettingsConfig = value;
|
|
exports.AgeVerificationConfig = value2;
|
|
exports.RegionalFeatureConfig = value3;
|
|
function _fun31679() { // fn#31679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3980:118, offset: 0x00fffc53, size: 78 bytes, params: 1, frame: 15
|
|
return CreateClass(SettingsConfig, [{key: 'isFeatureTeenByDefault', value: function(a0) {
|
|
return !!(this.teenByDefault & a0);
|
|
}}, {key: 'hasTeenDefaults', value: function() {
|
|
var teenByDefault = this.teenByDefault;
|
|
var value = 0;
|
|
return value !== (teenByDefault ?? value);
|
|
}}]);
|
|
function SettingsConfig(a0) { // fn#31680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3980:139, offset: 0x00fffca1, size: 36 bytes, params: 2, frame: 13
|
|
env1_0(this, SettingsConfig);
|
|
this.teenByDefault = a0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun31683() { // fn#31683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3980:395, offset: 0x00fffcfc, size: 78 bytes, params: 1, frame: 15
|
|
return CreateClass(AgeVerificationConfig, [{key: 'isFeatureAgeGated', value: function(a0) {
|
|
return !!(this.gatedFeatures & a0);
|
|
}}, {key: 'hasAgeGatedFeatures', value: function() {
|
|
var gatedFeatures = this.gatedFeatures;
|
|
var value = 0;
|
|
return value !== (gatedFeatures ?? value);
|
|
}}]);
|
|
function AgeVerificationConfig(a0) { // fn#31684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3980:416, offset: 0x00fffd4a, size: 36 bytes, params: 2, frame: 13
|
|
env1_0(this, AgeVerificationConfig);
|
|
this.gatedFeatures = a0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun31687() { // fn#31687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3980:685, offset: 0x00fffda5, size: 154 bytes, params: 1, frame: 16
|
|
return CreateClass(RegionalFeatureConfig, [{key: 'isFeatureAgeGated', value: function(a0) {
|
|
return this.ageVerification.isFeatureAgeGated(a0);
|
|
}}, {key: 'isFeatureTeenByDefault', value: function(a0) {
|
|
return this.settings.isFeatureTeenByDefault(a0);
|
|
}}, {key: 'hasAgeGatedFeatures', value: function() {
|
|
return this.ageVerification.hasAgeGatedFeatures();
|
|
}}, {key: 'hasTeenDefaults', value: function() {
|
|
return this.settings.hasTeenDefaults();
|
|
}}], [{key: 'fromConnectionOpen', value: value_31693}]);
|
|
function RegionalFeatureConfig(a0, a1) { // fn#31688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3980:696, offset: 0x00fffe3f, size: 45 bytes, params: 3, frame: 13
|
|
env1_0(this, RegionalFeatureConfig);
|
|
this.settings = a0;
|
|
this.ageVerification = a1;
|
|
}
|
|
|
|
function value_31693({teen_by_default_settings, age_gated_features}) { // fn#31693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3980:1235, offset: 0x00fffec8, size: 102 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__;
|
|
const env1_23 = new env1_2(teen_by_default_settings);
|
|
const env1_33 = new env1_3(age_gated_features);
|
|
const value6 = Object.create(RegionalFeatureConfig.prototype, {constructor: {value: RegionalFeatureConfig}});
|
|
const regionalFeatureConfig = new RegionalFeatureConfig(env1_23, env1_33);
|
|
return regionalFeatureConfig instanceof Object ? regionalFeatureConfig : value6;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun31678, 3841, [6, 7, 2]) /* metro module 3841, dependencies: [6, 7, 2] */;
|