/* Metro module 9068; source: unknown; dependencies: [31, 27, 33, 9069, 9073] */ import React from './module-00031-React.js'; /* Metro dependency 31 */ import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as DatePickerAndroidModule from './module-09069-DatePickerAndroid.jsx'; /* Metro dependency 9069 */ import * as ColorToHexModule from './module-09073-colorToHex.js'; /* Metro dependency 9073 */ function _fun70858(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9253:6, offset: 0x01d0b3fb, size: 223 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactNativeModule.Platform; ReactNativeModule.Text; const getTitle_70863 = function({title, mode}) { return title === null ? '' : title || (mode !== 'time' ? 'Select date' : 'Select time'); }; exports.default = React.memo(DatePickerWrapper); function getTheme_70859(a0) { // fn#70859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9253:224, offset: 0x01d0b4da, size: 63 bytes, params: 2, frame: 11 if (a0.theme) { return a0.theme; } var colorScheme; if (Appearance) { colorScheme = Appearance.getColorScheme(); return colorScheme === null ? undefined : colorScheme; } return 'auto'; } function getDividerColor(a0) { // fn#70860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9253:343, offset: 0x01d0b519, size: 65 bytes, params: 2, frame: 13 if (a0.dividerColor) { return a0.dividerColor; } const getTheme_70859Binding = getTheme_70859; const value = undefined; const theme_70859Binding = getTheme_70859Binding(a0); return theme_70859Binding === 'dark' ? 'white' : theme_70859Binding !== 'light' ? value : 'black'; } function getTextColor(a0) { // fn#70861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9253:477, offset: 0x01d0b55a, size: 48 bytes, params: 2, frame: 12 const getTheme_70859Binding = getTheme_70859; const value = undefined; const theme_70859Binding = getTheme_70859Binding(a0); return theme_70859Binding === 'dark' ? 'white' : theme_70859Binding !== 'light' ? value : 'black'; } function getButtonColor(a0) { // fn#70862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9253:568, offset: 0x01d0b58a, size: 65 bytes, params: 2, frame: 13 if (a0.buttonColor) { return a0.buttonColor; } const getTheme_70859Binding = getTheme_70859; const value = undefined; const theme_70859Binding = getTheme_70859Binding(a0); return theme_70859Binding === 'dark' ? 'white' : theme_70859Binding !== 'light' ? value : 'black'; } function DatePickerWrapper(a0) { // fn#70864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9253:817, offset: 0x01d0b601, size: 323 bytes, params: 2, frame: 24 const Object = global.Object; const assign = Object.assign; const object = {}; object.textColor = ColorToHexModule.colorToHex(getTextColor(a0)); object.dividerColor = ColorToHexModule.colorToHex(getDividerColor(a0)); object.buttonColor = ColorToHexModule.colorToHex(getButtonColor(a0)); object.theme = getTheme_70859(a0); object.title = getTitle_70863(a0); let confirmText = a0.confirmText; confirmText = confirmText ? a0.confirmText : 'Confirm'; object.confirmText = confirmText; let cancelText = a0.cancelText; cancelText = cancelText ? a0.cancelText : 'Cancel'; object.cancelText = cancelText; let minuteInterval = a0.minuteInterval; minuteInterval = minuteInterval ? a0.minuteInterval : 1; object.minuteInterval = minuteInterval; let mode = a0.mode; mode = mode ? a0.mode : 'datetime'; object.mode = mode; object.timeZoneOffsetInMinutes = a0.timeZoneOffsetInMinutes == null ? '' : a0.timeZoneOffsetInMinutes.toString(); return ; } } global.__d(_fun70858, 9068, [31, 27, 33, 9069, 9073]) /* metro module 9068, dependencies: [31, 27, 33, 9069, 9073] */;