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,101 +1,108 @@
/* Metro module 12722; source: design/void/GradientBorder/native/GradientBorder.tsx; dependencies: [31, 27, 661, 33, 4242, 697, 4589, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as Module04242Module from '../../../../by-id/module-04242.js'; /* Metro dependency 4242 */
function _fun97405(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12912:6, offset: 0x0217f4a3, size: 251 bytes, params: 8, frame: 19
const env0_0 = require;
const closure = GradientBorder;
const GradientBorder2 = GradientBorder;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_5 = constantsModule.HorizontalGradient;
const env0_6 = constantsModule.VerticalGradient;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
closure.Direction = {HORIZONTAL: 'horizontal', VERTICAL: 'vertical', DIAGONAL: 'diagonal',
GradientBorder2.Direction = {HORIZONTAL: 'horizontal', VERTICAL: 'vertical', DIAGONAL: 'diagonal',
ANTI_DIAGONAL: 'anti-diagonal'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/GradientBorder/native/GradientBorder.tsx');
exports.default = closure;
}
function GradientBorder(a0) { // fn#97406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12912:322, offset: 0x0217f59e, size: 426 bytes, params: 2, frame: 26
var r11;
var r6;
var r0;
var value;
var binding;
var value5;
var cloneElement;
var object3;
var props;
var object6;
const children = a0.children;
const direction = a0.direction;
const style = a0.style;
let borderWidth = a0.borderWidth;
borderWidth = borderWidth === undefined ? 1 : borderWidth;
const borderRadius = a0.borderRadius;
if (borderRadius !== undefined) {
r11 = borderRadius;
} else {
value = (importDefault(697) /* metro dependency 697: native */).radii.sm + 1;
r11 = value;
}
const object7 = {'children': 0, 'direction': 0, 'style': 0, 'borderWidth': 0, 'borderRadius': 0};
silentSetPrototypeOf(object7, null, undefined);
const value2 = copyDataProperties({}, a0, object7, undefined);
const {START, END} = getStartEnd(direction);
if (value != children) {
binding = env0_3;
if (binding.isValidElement(children)) {
value = importDefault(4589) /* metro dependency 4589 */;
var valueProps = {start: START, end: END, style: [style, {borderRadius: r11, padding: borderWidth}],
...value2};
if (children.type !== View) {
r6 = <View style={{borderRadius: r11 - borderWidth}}>{children}</View>;
(FileImportTrackerModule).fileFinishedImporting('design/void/GradientBorder/native/GradientBorder.tsx');
exports.default = GradientBorder2;
function GradientBorder(a0) { // fn#97406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12912:322, offset: 0x0217f59e, size: 426 bytes, params: 2, frame: 26
var r11;
var r6;
var r0;
var value;
var binding;
var value5;
var cloneElement;
var object;
var props;
var object2;
const children = a0.children;
const direction = a0.direction;
const style = a0.style;
let borderWidth = a0.borderWidth;
borderWidth = borderWidth === undefined ? 1 : borderWidth;
const borderRadius = a0.borderRadius;
if (borderRadius !== undefined) {
r11 = borderRadius;
} else {
value = (importDefault(697) /* metro dependency 697: native */).radii.sm + 1;
r11 = value;
}
const object4 = {'children': 0, 'direction': 0, 'style': 0, 'borderWidth': 0, 'borderRadius': 0};
silentSetPrototypeOf(object4, null, undefined);
const value2 = copyDataProperties({}, a0, object4, undefined);
const {START, END} = getStartEnd(direction);
if (value != children) {
binding = ReactModule;
if (binding.isValidElement(children)) {
value = importDefault(4589) /* metro dependency 4589 */;
var valueProps = {start: START, end: END, style: [style, {borderRadius: r11, padding: borderWidth}],
...value2};
if (children.type !== View) {
r6 = (
<View style={{borderRadius: r11 - borderWidth}}>
{children}
</View>
);
} else {
value5 = ReactModule.Children.only(children);
binding = ReactModule;
cloneElement = binding.cloneElement;
object = {};
props = value5.props;
copyDataProperties(object, props, object4);
object2 = {};
props = value5.props;
copyDataProperties(object2, props.style, object4);
object2['borderRadius'] = r11 - borderWidth;
object2['overflow'] = 'hidden';
object['style'] = object2;
r6 = Reflect.apply(cloneElement, binding, [value5, object]);
}
value = ((Component) => <Component {...valueProps}>{r6}</Component>)(value);
r0 = value;
} else {
value5 = env0_3.Children.only(children);
binding = env0_3;
cloneElement = binding.cloneElement;
object3 = {};
props = value5.props;
copyDataProperties(object3, props, object7);
object6 = {};
props = value5.props;
copyDataProperties(object6, props.style, object7);
object6['borderRadius'] = r11 - borderWidth;
object6['overflow'] = 'hidden';
object3['style'] = object6;
r6 = Reflect.apply(cloneElement, binding, [value5, object3]);
r0 = value;
}
value = ((Component) => <Component {...valueProps}>{r6}</Component>)(value);
r0 = value;
} else {
r0 = value;
}
} else {
r0 = value;
return r0;
function getStartEnd(a0) { // fn#97407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12912:441, owner: GradientBorder.getStartEnd, offset: 0x0217f748, size: 169 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__;
const value2 = (Module04242Module).match(a0);
const HORIZONTAL = env1_8.HORIZONTAL;
const value3 = value2.with(HORIZONTAL, function() {
return HorizontalGradient;
});
const VERTICAL = env1_8.VERTICAL;
const value4 = value3.with(VERTICAL, function() {
return VerticalGradient;
});
const DIAGONAL = env1_8.DIAGONAL;
const value5 = value4.with(DIAGONAL, function() {
return {START: {'x': 0, 'y': 0}, END: {'x': 1, 'y': 1}};
});
const ANTI_DIAGONAL = env1_8.ANTI_DIAGONAL;
return value5.with(ANTI_DIAGONAL, function() {
return {START: {'x': 0, 'y': 1}, END: {'x': 1, 'y': 0}};
}).exhaustive();
}
}
return r0;
}
function getStartEnd(a0) { // fn#97407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12912:441, owner: GradientBorder.getStartEnd, offset: 0x0217f748, size: 169 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__;
const value2 = (require(4242) /* metro dependency 4242 */).match(a0);
const HORIZONTAL = env1_8.HORIZONTAL;
const value3 = value2.with(HORIZONTAL, function() {
return HorizontalGradient;
});
const VERTICAL = env1_8.VERTICAL;
const value4 = value3.with(VERTICAL, function() {
return VerticalGradient;
});
const DIAGONAL = env1_8.DIAGONAL;
const value5 = value4.with(DIAGONAL, function() {
return {START: {'x': 0, 'y': 0}, END: {'x': 1, 'y': 1}};
});
const ANTI_DIAGONAL = env1_8.ANTI_DIAGONAL;
return value5.with(ANTI_DIAGONAL, function() {
return {START: {'x': 0, 'y': 1}, END: {'x': 1, 'y': 0}};
}).exhaustive();
}
global.__d(_fun97405, 12722, [31, 27, 661, 33, 4242, 697, 4589,
2]) /* metro module 12722, dependencies: [31, 27, 661, 33, 4242, 697, 4589, 2] */;