776 lines
34 KiB
TypeScript
776 lines
34 KiB
TypeScript
/* Metro module 10908; source: modules/parent_tools/RestrictedScheduleNotificationUtils.tsx; dependencies: [22, 2224, 1244, 10909, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
|
|
function _fun83573(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:6, offset: 0x01f1eb7c, size: 473 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const _arrayLikeToArray_83576 = function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value3;
|
|
var length;
|
|
var value5;
|
|
var value = undefined;
|
|
var value2 = value == null;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = value > a0.length;
|
|
r0 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
length = a0.length;
|
|
r1 = length;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = (0, global.Array)(r1);
|
|
var value4 = 0;
|
|
if (value4 < r1) {
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
value[r2] = a0[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < r1) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return value;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {Created: 'created', Enabled: 'enabled', Disabled: 'disabled', Updated: 'updated', Removed: 'removed',
|
|
Multiple: 'multiple'};
|
|
const Map = global.Map;
|
|
const map = new Map();
|
|
const object2 = {};
|
|
const Created = object.Created;
|
|
object2[Created] = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['5V7eBH'];
|
|
const Enabled = object.Enabled;
|
|
object2[Enabled] = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).iefrVg;
|
|
const Disabled = object.Disabled;
|
|
object2[Disabled] = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['k+s9cM'];
|
|
const Updated = object.Updated;
|
|
let Nm6hZV = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Nm6hZV;
|
|
object2[Updated] = Nm6hZV;
|
|
const Multiple = object.Multiple;
|
|
Nm6hZV = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Nm6hZV;
|
|
object2[Multiple] = Nm6hZV;
|
|
const Removed = object.Removed;
|
|
object2[Removed] = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).jR6uOs;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/RestrictedScheduleNotificationUtils.tsx');
|
|
exports.RestrictedScheduleNotificationKind = object;
|
|
exports.EMPTY_SCHEDULE_SNAPSHOT = map;
|
|
exports.toScheduleSnapshot = toScheduleSnapshot;
|
|
exports.diffSchedules = diffSchedules;
|
|
exports.getRestrictedScheduleNotificationTitle = getRestrictedScheduleNotificationTitle;
|
|
exports.getRestrictedScheduleNotificationSubtitle = getRestrictedScheduleNotificationSubtitle;
|
|
exports.restrictedScheduleNotificationKey = function(a0) {
|
|
return 'restricted-schedule-' + a0;
|
|
};
|
|
function _createForOfIteratorHelperLoose_83574(a0, a1) { // fn#83574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:47, offset: 0x01f1ed55, size: 372 bytes, params: 3, frame: 20
|
|
var r6;
|
|
var r9;
|
|
var r5;
|
|
var value3;
|
|
var regexp;
|
|
const env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let value = typeof Symbol !== 'undefined';
|
|
let r1 = value && a0[global.Symbol.iterator];
|
|
r1 = !r1 ? a0['@@iterator'] : r1;
|
|
if (r1) {
|
|
value = r1.call(a0);
|
|
return value.next.bind(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
if (r1) {
|
|
}
|
|
return _fun83575;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_83576(a0, value);
|
|
r5 = value;
|
|
} else {
|
|
value3 = ({}).toString.call(a0).slice(8, -1);
|
|
r6 = value3 === 'Object' && a0.constructor;
|
|
r9 = r6 ? a0.constructor.name : value3;
|
|
if (r9 === 'Map') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Set') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Arguments') {
|
|
value = _arrayLikeToArray_83576(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_83576(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun83575;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
|
function _fun83575() { // fn#83575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:618, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
|
|
return env0_1 >= env0_0.length ? {done: true} : {done: false,
|
|
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
|
|
}
|
|
|
|
}
|
|
|
|
function isOnlyDayLoss(a0, a1) { // fn#83577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:1173, offset: 0x01f1eec9, size: 225 bytes, params: 3, frame: 19
|
|
var Set;
|
|
var days;
|
|
var set;
|
|
var length;
|
|
if (a0.label === a1.label) {
|
|
var value;
|
|
var defaultImport = importDefault(22) /* metro dependency 22 */;
|
|
if (defaultImport.isEqual(a0.startTime, a1.startTime)) {
|
|
value = importDefault(22) /* metro dependency 22 */;
|
|
if (value.isEqual(a0.endTime, a1.endTime)) {
|
|
Set = global.Set;
|
|
days = a0.days;
|
|
set = new Set();
|
|
days = a1.days;
|
|
length = days.length;
|
|
days = a0.days;
|
|
set = length < days.length;
|
|
return set && a1.days.every(_fun83578);
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
return false;
|
|
function _fun83578(a0) { // fn#83578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:1409, offset: 0x00e4010b, size: 22 bytes, params: 2, frame: 11
|
|
return env0_0.has(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function toScheduleSnapshot(a0) { // fn#83579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:1794, offset: 0x01f1efaa, size: 90 bytes, params: 2, frame: 12
|
|
var r0;
|
|
var Map;
|
|
var value;
|
|
if (a0 == null) {
|
|
r0 = env0_4;
|
|
} else if (a0.rules.length === 0) {
|
|
r0 = env0_4;
|
|
} else {
|
|
Map = global.Map;
|
|
value = a0.rules.map(function(a0) {
|
|
return [a0.ruleId, a0];
|
|
});
|
|
r0 = new Map();
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function diffSchedules(a0, a1) { // fn#83581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:1920, offset: 0x01f1f01b, size: 1010 bytes, params: 3, frame: 34
|
|
var r23;
|
|
var r8;
|
|
var r14;
|
|
var r19;
|
|
var r18;
|
|
var r5;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var enabled;
|
|
var enabled2;
|
|
var value11;
|
|
var label;
|
|
var label2;
|
|
var value12;
|
|
var defaultImport;
|
|
var isEqual;
|
|
var startTime;
|
|
var startTime2;
|
|
var isEqual2;
|
|
var defaultImport2;
|
|
var endTime;
|
|
var endTime2;
|
|
var isEqual3;
|
|
var defaultImport3;
|
|
var days;
|
|
var items2;
|
|
var sort;
|
|
var value13;
|
|
var items3;
|
|
var isEqual4;
|
|
var Updated;
|
|
var binding;
|
|
var Disabled;
|
|
var Enabled;
|
|
var Created;
|
|
var value14;
|
|
var Removed;
|
|
var value15;
|
|
var property;
|
|
var property2;
|
|
var isOnlyDayLossBinding;
|
|
var oldRule;
|
|
var newRule;
|
|
const env0_0 = null;
|
|
const env0_1 = null;
|
|
const env0_2 = null;
|
|
const env0_3 = null;
|
|
const env0_4 = 0;
|
|
const env0_5 = 0;
|
|
const env0_6 = 0;
|
|
const env0_7 = 0;
|
|
const env0_8 = 0;
|
|
const items4 = [];
|
|
const diffSchedulesRecord2 = diffSchedulesRecord;
|
|
const _createForOfIteratorHelperLoose_83574Binding = _createForOfIteratorHelperLoose_83574;
|
|
const Set = global.Set;
|
|
const value2 = a0.keys();
|
|
const items5 = [];
|
|
arraySpread(items5, a1.keys(), arraySpread(items5, value2, 0, r23), r23);
|
|
const value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
|
const set = new Set(items5);
|
|
const value6 = _createForOfIteratorHelperLoose_83574Binding(set instanceof Object ? set : value4);
|
|
const value7 = value6();
|
|
let done = value7.done;
|
|
if (!done) {
|
|
r8 = value7;
|
|
while (true) {
|
|
value8 = r8.value;
|
|
value9 = a0.get(value8);
|
|
value10 = a1.get(value8);
|
|
if (value10 == null) {
|
|
value14 = value9 != null;
|
|
if (!value14) {
|
|
r5 = value14;
|
|
continue;
|
|
}
|
|
r5 = value9.enabled;
|
|
if (r5) {
|
|
Removed = env0_3.Removed;
|
|
diffSchedulesRecord2(Removed, value9);
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
if (value9 == null) {
|
|
if (value10.enabled) {
|
|
Created = env0_3.Created;
|
|
diffSchedulesRecord2(Created, value10);
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
enabled = value9.enabled;
|
|
enabled2 = value10.enabled;
|
|
if (enabled !== enabled2) {
|
|
enabled = value10.enabled;
|
|
binding = env0_3;
|
|
if (enabled) {
|
|
Enabled = binding.Enabled;
|
|
r18 = Enabled;
|
|
} else {
|
|
Disabled = binding.Disabled;
|
|
r18 = Disabled;
|
|
}
|
|
enabled = value10.enabled;
|
|
if (enabled) {
|
|
r5 = value10;
|
|
continue;
|
|
}
|
|
r5 = value9;
|
|
continue;
|
|
diffSchedulesRecord2(r18, r5);
|
|
break;
|
|
}
|
|
enabled = value10.enabled;
|
|
value11 = !enabled;
|
|
if (!enabled) {
|
|
r19 = value11;
|
|
continue;
|
|
}
|
|
label = value9.label;
|
|
label2 = value10.label;
|
|
value12 = label === label2;
|
|
if (!value12) {
|
|
r14 = value12;
|
|
continue;
|
|
}
|
|
defaultImport = importDefault(22) /* metro dependency 22 */;
|
|
isEqual = defaultImport.isEqual;
|
|
startTime = value9.startTime;
|
|
startTime2 = value10.startTime;
|
|
isEqual2 = Reflect.apply(isEqual, defaultImport, [startTime, startTime2]);
|
|
r14 = isEqual2;
|
|
if (!r14) {
|
|
continue;
|
|
}
|
|
defaultImport2 = importDefault(22) /* metro dependency 22 */;
|
|
isEqual = defaultImport2.isEqual;
|
|
endTime = value9.endTime;
|
|
endTime2 = value10.endTime;
|
|
isEqual3 = Reflect.apply(isEqual, defaultImport2, [endTime, endTime2]);
|
|
r14 = isEqual3;
|
|
if (!r14) {
|
|
continue;
|
|
}
|
|
defaultImport3 = importDefault(22) /* metro dependency 22 */;
|
|
isEqual = defaultImport3.isEqual;
|
|
days = value9.days;
|
|
items2 = [];
|
|
arraySpread(items2, days, 0, r23);
|
|
value13 = items2.sort();
|
|
days = value10.days;
|
|
items3 = [];
|
|
arraySpread(items3, days, 0, items3);
|
|
sort = items3.sort;
|
|
isEqual4 = Reflect.apply(isEqual, defaultImport3, [value13, Reflect.apply(sort, items3, [])]);
|
|
r14 = isEqual4;
|
|
r23 = items3;
|
|
r19 = r14;
|
|
if (r19) {
|
|
break;
|
|
}
|
|
Updated = env0_3.Updated;
|
|
diffSchedulesRecord2(Updated, value10);
|
|
items4.push({oldRule: value9, newRule: value10});
|
|
break;
|
|
value15 = value6();
|
|
done = value15.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
r8 = value15;
|
|
continue;
|
|
}
|
|
}
|
|
if (env0_4 === 0) {
|
|
return null;
|
|
}
|
|
if (env0_6 !== 1) {
|
|
if (env0_7 !== 1) {
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 >= 1) {
|
|
if (env0_8 === 0) {
|
|
return {kind: env0_3.Updated, rule: env0_3};
|
|
}
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
} else {
|
|
if (env0_8 !== 0) {
|
|
if (env0_7 !== 1) {
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 >= 1) {
|
|
if (env0_8 === 0) {
|
|
return {kind: env0_3.Updated, rule: env0_3};
|
|
}
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (items4.every(function({oldRule, newRule}) {
|
|
return isOnlyDayLoss(oldRule, newRule);
|
|
})) {
|
|
return {kind: env0_3.Created, rule: env0_2};
|
|
}
|
|
if (env0_7 !== 1) {
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 >= 1) {
|
|
if (env0_8 === 0) {
|
|
return {kind: env0_3.Updated, rule: env0_3};
|
|
}
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property.oldRule;
|
|
newRule = property.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
isOnlyDayLossBinding = isOnlyDayLoss;
|
|
oldRule = property2.oldRule;
|
|
newRule = property2.newRule;
|
|
if (isOnlyDayLossBinding(oldRule, newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_7 !== 2) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_6 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_5 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
if (env0_8 !== 0) {
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
}
|
|
property = items4[0];
|
|
property2 = items4[1];
|
|
if (isOnlyDayLoss(property.oldRule, property.newRule)) {
|
|
return {kind: env0_3.Updated, rule: property2.newRule};
|
|
}
|
|
if (isOnlyDayLoss(property2.oldRule, property2.newRule)) {
|
|
return {kind: env0_3.Updated, rule: property.newRule};
|
|
}
|
|
}
|
|
return env0_4 > 1 ? {kind: env0_3.Multiple, rule: null} : {kind: env0_0, rule: env0_1};
|
|
function diffSchedulesRecord(a0, a1) { // fn#83582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:2022, owner: diffSchedules.record, offset: 0x01f1f40d, size: 186 bytes, params: 3, frame: 14
|
|
var items2;
|
|
if (env0_4 === 0) {
|
|
env0_0 = a0;
|
|
env0_1 = a1;
|
|
}
|
|
let binding = env0_4;
|
|
env0_4 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
const Removed = env1_3.Removed;
|
|
if (a0 === Removed) {
|
|
binding = env0_5;
|
|
env0_5 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
} else if (a0 === env1_3.Created) {
|
|
env0_2 = a1;
|
|
binding = env0_6;
|
|
env0_6 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
} else if (a0 === env1_3.Updated) {
|
|
env0_3 = a1;
|
|
binding = env0_7;
|
|
env0_7 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
} else {
|
|
binding = env1_3;
|
|
items2 = [binding.Enabled];
|
|
items2[1] = binding.Disabled;
|
|
if (items2.includes(a0)) {
|
|
binding = env0_8;
|
|
env0_8 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function getRestrictedScheduleNotificationTitle(a0) { // fn#83584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:3163, offset: 0x01f1f4e7, size: 53 bytes, params: 2, frame: 12
|
|
return (IndexNativeModule).intl.string(env0_5[a0]);
|
|
}
|
|
|
|
function getRestrictedScheduleNotificationSubtitle(a0) { // fn#83585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11094:3295, offset: 0x01f1f51c, size: 120 bytes, params: 2, frame: 15
|
|
const value = null;
|
|
let r0 = value != a0 ? (require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).formatRestrictedScheduleInAppSubtitle(a0) : value;
|
|
r0 = value == r0 ? (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['8OlpoY']) : r0;
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun83573, 10908, [22, 2224, 1244, 10909,
|
|
2]) /* metro module 10908, dependencies: [22, 2224, 1244, 10909, 2] */;
|