/* Metro module 7987; source: design/components/TableRow/native/TableRadioRow.native.tsx; dependencies: [31, 33, 7988, 3862, 3874, 6238, 7989, 2] */
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 UseA11yRolesNativeModule from '../../../../external/discord_common/js/packages/design/hooks/useA11yRolesNative.tsx'; /* Metro dependency 3874 */
import * as TableRowNativeModule from './TableRow.native.tsx'; /* Metro dependency 6238 */
import * as TableRadioGroupNativeModule from './TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
import * as FormRadioNativeModule from '../../Forms/native/FormRadio.native.tsx'; /* Metro dependency 7989 */
function _fun63527(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8165:6, offset: 0x01b84064, size: 133 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('design/components/TableRow/native/TableRadioRow.native.tsx');
exports.TableRadioRow = TableRadioRow;
function TableRadioRow(a0) { // fn#63528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8165:228, offset: 0x01b840e9, size: 501 bytes, params: 2, frame: 28
let value = a0.value;
const label = a0.label;
const subLabel = a0.subLabel;
let disabled = a0.disabled;
disabled = !(disabled === undefined) && disabled;
const accessibilityHint = a0.accessibilityHint;
const legacyCompat_selected = a0.legacyCompat_selected;
const env0_1 = a0.legacyCompat_onPress;
const object = {'value': 0, 'label': 0, 'subLabel': 0, 'disabled': 0, 'accessibilityHint': 0,
'legacyCompat_selected': 0, 'legacyCompat_onPress': 0};
silentSetPrototypeOf(object, null, undefined);
const value3 = copyDataProperties({}, a0, object, undefined);
let env0_2 = undefined;
const binding = env0_2;
const useContext = binding.useContext;
const TableRadioGroupContext = (TableRadioGroupNativeModule).TableRadioGroupContext;
const value5 = Reflect.apply(useContext, binding, [TableRadioGroupContext]);
const selectedValue = value5.selectedValue;
env0_2 = value5.onSelect;
const r7 = legacyCompat_selected ?? selectedValue === value;
value = require(3862) /* metro dependency 3862: native */;
value = value.getNodeText(label);
const nodeText = (require(3862) /* metro dependency 3862: native */).getNodeText(subLabel);
const {accessibilityRole,
accessibilityState} = (UseA11yRolesNativeModule).useRadioA11yNative({selected: r7,
disabled: disabled});
const TableRow = (TableRowNativeModule).TableRow;
const tableRowProps = {...value3};
tableRowProps['arrow'] = false;
tableRowProps['label'] = label;
tableRowProps['subLabel'] = subLabel;
tableRowProps['disabled'] = disabled;
tableRowProps['accessibilityState'] = accessibilityState;
tableRowProps['accessible'] = true;
tableRowProps['accessibilityRole'] = accessibilityRole;
const value8 = '';
value = value8 + value + ', ' + (nodeText ?? value8);
tableRowProps['accessibilityLabel'] = value;
tableRowProps['accessibilityHint'] = accessibilityHint;
tableRowProps['onPress'] = function(a0) {
if (legacyCompat_onPress != null) {
legacyCompat_onPress(a0);
}
onSelect(value);
};
const FormRadio = (FormRadioNativeModule).FormRadio;
tableRowProps['trailing'] = ;
return ;
}
}
global.__d(_fun63527, 7987, [31, 33, 7988, 3862, 3874, 6238, 7989,
2]) /* metro module 7987, dependencies: [31, 33, 7988, 3862, 3874, 6238, 7989, 2] */;