Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,101 @@
|
||||
/* Metro module 12722; source: design/void/GradientBorder/native/GradientBorder.tsx; dependencies: [31, 27, 661, 33, 4242, 697, 4589, 2] */
|
||||
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 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',
|
||||
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>;
|
||||
} 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]);
|
||||
}
|
||||
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 = (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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user