/* Metro module 8361; source: modules/interaction_components/StringSelectActionComponentUtils.tsx; dependencies: [8358, 1909, 2] */ function _fun66587(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8546:6, offset: 0x01c01a91, size: 114 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const localInteractionComponentStateStore = importDefault(8358) /* metro dependency 8358: LocalInteractionComponentStateStore */; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/interaction_components/StringSelectActionComponentUtils.tsx'); exports.getInitialStringSelectOptions = getInitialStringSelectOptions; } function getInitialStringSelectOptions(a0, a1) { // fn#66588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8546:239, offset: 0x01c01b03, size: 134 bytes, params: 3, frame: 17 var r0; var value; const interactionComponentState = LocalInteractionComponentStateStore.getInteractionComponentState(a1, a0.id); const type = interactionComponentState?.type; const ComponentType = (require(1909) /* metro dependency 1909: Server */).ComponentType; const STRING_SELECT = ComponentType.STRING_SELECT; if (type === STRING_SELECT) { r0 = interactionComponentState.values; } else { value = a0.options.filter(function(a0) { return a0.default; }); value = value.map(_fun66590); r0 = value; } return r0; }