/* Metro module 7975; source: design/components/TableRow/native/RowButton.native.tsx; dependencies: [31, 33, 4501, 697, 1357, 6242, 6238, 4017, 6239, 7976, 2] */
import MobileVisualRefreshExperiment from '../../../../modules/themes/experiments/MobileVisualRefreshExperiment.tsx'; /* Metro dependency 1357 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
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 ReanimatedRexportModule from '../../../../modules/reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TableRowNativeModule from './TableRow.native.tsx'; /* Metro dependency 6238 */
import * as CardNativeModule from '../../Card/native/Card.native.tsx'; /* Metro dependency 6239 */
import * as TableRowIconNativeModule from './TableRowIcon.native.tsx'; /* Metro dependency 6242 */
function _fun63466(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8153:6, offset: 0x01b80f87, size: 225 bytes, params: 8, frame: 19
const env0_0 = require;
const RowButton2 = RowButton;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_5 = (CreateStylesModule).createStyles(_fun63473);
const TableRowIcon = (TableRowIconNativeModule).TableRowIcon;
RowButton2.Icon = TableRowIcon;
(FileImportTrackerModule).fileFinishedImporting('design/components/TableRow/native/RowButton.native.tsx');
const TableRowIconProps = (TableRowIconNativeModule).TableRowIconProps;
exports.RowButtonIconProps = TableRowIconProps;
exports.RowButton = RowButton2;
function RowButton(a0) { // fn#63467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8153:493, offset: 0x01b81068, size: 382 bytes, params: 2, frame: 25
let arrow = a0.arrow;
const value = undefined;
arrow = arrow === value || arrow;
let disabled = a0.disabled;
disabled = !(disabled === value) && disabled;
let variant = a0.variant;
variant = variant === value ? 'secondary' : variant;
const icon = a0.icon;
const onPress = a0.onPress;
const experimental_withBlurBackground = a0.experimental_withBlurBackground;
const object = {'arrow': 0, 'disabled': 0, 'variant': 0, 'icon': 0, 'onPress': 0,
'experimental_withBlurBackground': 0};
silentSetPrototypeOf(object, null, undefined);
const value5 = copyDataProperties({}, a0, object, undefined);
const value7 = (MobileVisualRefreshExperiment)('RowButton');
const r12 = (
icon == null || ReactModule.isValidElement(icon)
? icon
: ((TableRowIcon) => )((require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon)
);
const rowButtonWrapperBindingProps = {isRefreshEnabled: value7,
experimental_withBlurBackground: experimental_withBlurBackground, onPress: onPress, disabled: disabled,
...value5};
const TableRowInner = (TableRowNativeModule).TableRowInner;
return (
);
}
function RowButtonWrapper(a0) { // fn#63468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8153:998, offset: 0x01b811e6, size: 539 bytes, params: 2, frame: 26
const InternalCard = (CardNativeModule).InternalCard;
const experimental_withBlurBackground = a0.experimental_withBlurBackground;
let isRefreshEnabled = a0.isRefreshEnabled;
const value = undefined;
isRefreshEnabled = !(isRefreshEnabled === value) && isRefreshEnabled;
const onPress = a0.onPress;
const disabled = a0.disabled;
const children = a0.children;
const object = {'experimental_withBlurBackground': 0, 'isRefreshEnabled': 0, 'onPress': 0, 'disabled': 0,
'children': 0};
silentSetPrototypeOf(object, null, undefined);
const value3 = copyDataProperties({}, a0, object, undefined);
let env0_3 = value;
const styles = useStyles(isRefreshEnabled);
const value5 = (ReanimatedRexportModule).useSharedValue(0);
const env0_2 = env0_3.useCallback(_fun63469, [value5]);
env0_3 = env0_3.useCallback(_fun63470, [value5]);
if (experimental_withBlurBackground) {
var internalCardProps2 = {'shadow': 'none', 'border': 'none', 'start': true, 'end': true, onPress: onPress,
onPressIn: onPressIn_63471, onPressOut: onPressOut_63472, style: [styles.card, styles.cardWithBlur],
disabled: disabled, ...value3};
internalCardProps2['variant'] = 'transparent';
return (
{((BackgroundBlurView) => {children})((require(7976) /* metro dependency 7976: BackgroundBlurViewNative */).BackgroundBlurView)}
);
}
return (
{children}
);
function _fun63469() { // fn#63469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8153:1176, offset: 0x01b81401, size: 24 bytes, params: 1, frame: 11
env0_1.set(1);
}
function _fun63470() { // fn#63470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8153:1214, offset: 0x01b81419, size: 23 bytes, params: 1, frame: 11
env0_1.set(0);
}
function RowButtonWrapperOnPressIn(a0) { // fn#63471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8153:1335, owner: RowButtonWrapper.onPressIn, offset: 0x01b81430, size: 49 bytes, params: 2, frame: 12
if (env0_0.onPressIn != null) {
env0_0.onPressIn(a0);
}
env0_2();
}
function RowButtonWrapperOnPressOut(a0) { // fn#63472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8153:1389, owner: RowButtonWrapper.onPressOut, offset: 0x01b81461, size: 49 bytes, params: 2, frame: 12
if (env0_0.onPressOut != null) {
env0_0.onPressOut(a0);
}
env0_3();
}
}
function _fun63473() { // fn#63473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8153:146, offset: 0x01b81492, size: 191 bytes, params: 1, frame: 15
const value = a0;
const value2 = undefined;
const r3 = value !== value2 ? value : false;
const object2 = {};
object2.padding = r3 ? value2 : 0;
let TABLE_ROW_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_BORDER_RADIUS;
object2.borderTopStartRadius = TABLE_ROW_BORDER_RADIUS;
TABLE_ROW_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_BORDER_RADIUS;
object2.borderTopEndRadius = TABLE_ROW_BORDER_RADIUS;
TABLE_ROW_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_BORDER_RADIUS;
object2.borderBottomStartRadius = TABLE_ROW_BORDER_RADIUS;
TABLE_ROW_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_BORDER_RADIUS;
object2.borderBottomEndRadius = TABLE_ROW_BORDER_RADIUS;
return {card: object2, cardWithBlur: {overflow: 'hidden'}};
}
}
global.__d(_fun63466, 7975, [31, 33, 4501, 697, 1357, 6242, 6238, 4017, 6239, 7976,
2]) /* metro module 7975, dependencies: [31, 33, 4501, 697, 1357, 6242, 6238, 4017, 6239, 7976, 2] */;