This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,150 +1,155 @@
/* Metro module 7247; source: modules/user_offers/records/UserDiscountOfferRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 1880, 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 PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Record from '../../../lib/Record.tsx'; /* Metro dependency 1886 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from '../../premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun58252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:6, offset: 0x016c2f81, size: 292 bytes, params: 8, frame: 21
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(1886) /* metro dependency 1886: Record */;
let value = Record;
const {SubscriptionIntervalTypes,
DiscountUserUsageLimitIntervalTypes} = require(1880) /* metro dependency 1880: PremiumConstants */;
object2 = {};
DiscountUserUsageLimitIntervalTypes} = PremiumConstantsModule;
object = {};
let DAY = DiscountUserUsageLimitIntervalTypes.DAY;
const DAY2 = SubscriptionIntervalTypes.DAY;
object2[DAY] = DAY2;
object[DAY] = DAY2;
const WEEK = DiscountUserUsageLimitIntervalTypes.WEEK;
DAY = SubscriptionIntervalTypes.DAY;
object2[WEEK] = DAY;
object[WEEK] = DAY;
const MONTH = DiscountUserUsageLimitIntervalTypes.MONTH;
const MONTH2 = SubscriptionIntervalTypes.MONTH;
object2[MONTH] = MONTH2;
object[MONTH] = MONTH2;
const YEAR = DiscountUserUsageLimitIntervalTypes.YEAR;
const YEAR2 = SubscriptionIntervalTypes.YEAR;
object2[YEAR] = YEAR2;
object[YEAR] = YEAR2;
value = _fun58256(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_offers/records/UserDiscountOfferRecord.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_offers/records/UserDiscountOfferRecord.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_58253() { // fn#58253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:238, offset: 0x016c30a5, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_58253_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun58256(a0) { // fn#58256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:504, offset: 0x016c3103, size: 269 bytes, params: 2, frame: 17
const closure = UserDiscountOfferRecord;
env0_4(closure, a0);
return env0_1(closure, [{key: 'hasExpired', value: function() {
var r0;
var property;
var value = this.expiresAt != null;
if (value) {
property = global.Date;
value = property.now();
property = this.expiresAt;
value = value > property.getTime();
r0 = value;
} else {
r0 = value;
function _isNativeReflectConstruct_58253() { // fn#58253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:238, offset: 0x016c30a5, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return r0;
}}, {key: 'isApplied', value: function() {
return this.appliedAt != null;
}}, {key: 'isDeleted', value: function() {
return this.deletedAt != null;
}}, {key: 'hasAcknowledged', value: function() {
return this.expiresAt != null;
}}, {key: 'getFullIntervalCount', value: function() {
return this.discount == null ? 0 : this.discount.userUsageLimit;
}}, {key: 'getDiscountInterval', value: function() {
return this.discount.userUsageLimitInterval;
}}, {key: 'getApplicableSubscriptionInterval', value: value_58264}, {key: 'getIsMultiIntervalDiscount',
value: function() {
return this.getFullIntervalCount() > 1;
}}], [{key: 'createFromServer', value: value_58266}]);
}
function UserDiscountOfferRecord({id, discountId, discount, userId, appliedAt, deletedAt, expiresAt}) { // fn#58257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:516, offset: 0x016c3210, size: 231 bytes, params: 2, frame: 20
let value = environment.__proto__;
env1_0(this, UserDiscountOfferRecord);
const value3 = env1_3(UserDiscountOfferRecord);
value = env1_2(this, _isNativeReflectConstruct_58253() ? global.Reflect.construct(value3, [],
env1_3(this).constructor) : value3.apply(this, undefined));
value.id = id;
value.discountId = discountId;
value.discount = discount;
value.userId = userId;
value.appliedAt = appliedAt ?? null;
value.deletedAt = deletedAt ?? null;
value.expiresAt = expiresAt ?? null;
return value;
}
function value_58264() { // fn#58264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:1573, offset: 0x016c3396, size: 28 bytes, params: 1, frame: 10
const binding = env1_5;
const getDiscountInterval = this.getDiscountInterval;
return binding[Reflect.apply(getDiscountInterval, this, [])];
}
function value_58266(a0) { // fn#58266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:1745, offset: 0x016c33ca, size: 348 bytes, params: 2, frame: 16
var r4;
var date;
const object2 = {};
object2.id = a0.id;
object2.discountId = a0.discount_id;
const user_usage_limit_interval = a0.discount.user_usage_limit_interval;
const user_usage_limit_interval_count = a0.discount.user_usage_limit_interval_count;
const user_usage_limit = a0.discount.user_usage_limit;
object2.discount = {id: a0.discount.id, planIds: a0.discount.plan_ids,
userUsageLimitInterval: user_usage_limit_interval, userUsageLimitIntervalCount: user_usage_limit_interval_count,
userUsageLimit: user_usage_limit, amount: a0.discount.amount};
const user_id = a0.user_id;
object2.userId = user_id;
const applied_at = a0.applied_at;
let value = null;
if (value != applied_at) {
date = new global.Date(a0.applied_at);
} else {
r4 = value;
return (_isNativeReflectConstruct_58253_isNativeReflectConstruct = function() {
return !!result;
})();
}
object2.appliedAt = r4;
if (value != a0.deleted_at) {
date = new global.Date(a0.deleted_at);
} else {
r4 = value;
function _fun58256(a0) { // fn#58256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:504, offset: 0x016c3103, size: 269 bytes, params: 2, frame: 17
const UserDiscountOfferRecord2 = UserDiscountOfferRecord;
Inherits(UserDiscountOfferRecord2, a0);
return CreateClass(UserDiscountOfferRecord2, [{key: 'hasExpired', value: function() {
var r0;
var property;
var value = this.expiresAt != null;
if (value) {
property = global.Date;
value = property.now();
property = this.expiresAt;
value = value > property.getTime();
r0 = value;
} else {
r0 = value;
}
return r0;
}}, {key: 'isApplied', value: function() {
return this.appliedAt != null;
}}, {key: 'isDeleted', value: function() {
return this.deletedAt != null;
}}, {key: 'hasAcknowledged', value: function() {
return this.expiresAt != null;
}}, {key: 'getFullIntervalCount', value: function() {
return this.discount == null ? 0 : this.discount.userUsageLimit;
}}, {key: 'getDiscountInterval', value: function() {
return this.discount.userUsageLimitInterval;
}}, {key: 'getApplicableSubscriptionInterval', value: value_58264}, {key: 'getIsMultiIntervalDiscount',
value: function() {
return this.getFullIntervalCount() > 1;
}}], [{key: 'createFromServer', value: value_58266}]);
function UserDiscountOfferRecord({id, discountId, discount, userId, appliedAt, deletedAt, expiresAt}) { // fn#58257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:516, offset: 0x016c3210, size: 231 bytes, params: 2, frame: 20
let value = environment.__proto__;
env1_0(this, UserDiscountOfferRecord);
const value3 = env1_3(UserDiscountOfferRecord);
value = env1_2(this, _isNativeReflectConstruct_58253() ? global.Reflect.construct(value3, [],
env1_3(this).constructor) : value3.apply(this, undefined));
value.id = id;
value.discountId = discountId;
value.discount = discount;
value.userId = userId;
value.appliedAt = appliedAt ?? null;
value.deletedAt = deletedAt ?? null;
value.expiresAt = expiresAt ?? null;
return value;
}
function value_58264() { // fn#58264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:1573, offset: 0x016c3396, size: 28 bytes, params: 1, frame: 10
const binding = env1_5;
const getDiscountInterval = this.getDiscountInterval;
return binding[Reflect.apply(getDiscountInterval, this, [])];
}
function value_58266(a0) { // fn#58266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7425:1745, offset: 0x016c33ca, size: 348 bytes, params: 2, frame: 16
var r4;
var date;
const object = {};
object.id = a0.id;
object.discountId = a0.discount_id;
const user_usage_limit_interval = a0.discount.user_usage_limit_interval;
const user_usage_limit_interval_count = a0.discount.user_usage_limit_interval_count;
const user_usage_limit = a0.discount.user_usage_limit;
object.discount = {id: a0.discount.id, planIds: a0.discount.plan_ids,
userUsageLimitInterval: user_usage_limit_interval, userUsageLimitIntervalCount: user_usage_limit_interval_count,
userUsageLimit: user_usage_limit, amount: a0.discount.amount};
const user_id = a0.user_id;
object.userId = user_id;
const applied_at = a0.applied_at;
let value = null;
if (value != applied_at) {
date = new global.Date(a0.applied_at);
} else {
r4 = value;
}
object.appliedAt = r4;
if (value != a0.deleted_at) {
date = new global.Date(a0.deleted_at);
} else {
r4 = value;
}
object.deletedAt = r4;
object.expiresAt = value != a0.expires_at ? new global.Date(a0.expires_at) : value;
value = Object.create(UserDiscountOfferRecord.prototype, {constructor: {value: UserDiscountOfferRecord}});
const userDiscountOfferRecord = new UserDiscountOfferRecord(object);
return userDiscountOfferRecord instanceof Object ? userDiscountOfferRecord : value;
}
}
object2.deletedAt = r4;
object2.expiresAt = value != a0.expires_at ? new global.Date(a0.expires_at) : value;
value = Object.create(UserDiscountOfferRecord.prototype, {constructor: {value: UserDiscountOfferRecord}});
const userDiscountOfferRecord = new UserDiscountOfferRecord(object2);
return userDiscountOfferRecord instanceof Object ? userDiscountOfferRecord : value;
}
global.__d(_fun58252, 7247, [6, 7, 15, 17, 18, 1886, 1880,
2]) /* metro module 7247, dependencies: [6, 7, 15, 17, 18, 1886, 1880, 2] */;