/* Metro module 8552; source: design/components/Coachmark/native/Coachmark.native.tsx; dependencies: [29, 57, 31, 27, 33, 4017, 4501, 697, 8547, 4583, 8553, 1357, 4570, 4573, 4578, 1244, 5312, 8554, 8564, 477, 3868, 2] */ function _fun67785(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8737:6, offset: 0x01c30800, size: 1024 bytes, params: 8, frame: 27 var object4; const env0_0 = require; const closure = Coachmark; const env0_3 = ['style']; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_4 = importDefault(29) /* metro dependency 29 */; const env0_5 = importDefault(57) /* metro dependency 57 */; const env0_6 = importAll(31) /* metro dependency 31 */; let value = require(27) /* metro dependency 27 */; const env0_7 = value.View; const Pressable = value.Pressable; const env0_9 = value.Image; value = require(33) /* metro dependency 33 */; const env0_10 = value.jsx; const env0_11 = value.jsxs; const env0_12 = value.Fragment; const env0_13 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).createAnimatedComponent(Pressable); value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object4 = {container: {'position': 'absolute', 'alignItems': 'center'}}; const object5 = {}; const SHADOW_BUTTON_OVERLAY = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_BUTTON_OVERLAY; copyDataProperties(object5, SHADOW_BUTTON_OVERLAY, undefined); object4.shadow = object5; const object8 = {}; const COACHMARK_BODY_WIDTH = (importDefault(697) /* metro dependency 697: native */).modules.mobile.COACHMARK_BODY_WIDTH; object8.width = COACHMARK_BODY_WIDTH; object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg; object8.overflow = 'hidden'; object8.zIndex = 1; object4.body = object8; object4.textGap = {gap: 4}; const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object4.textOnlyPadding = {paddingHorizontal: PX_24}; const object9 = {borderWidth: 1}; const MOBILE_COACHMARK_BORDER_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_COACHMARK_BORDER_DEFAULT; object9.borderColor = MOBILE_COACHMARK_BORDER_DEFAULT; const MOBILE_COACHMARK_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_COACHMARK_BACKGROUND_DEFAULT; object9.backgroundColor = MOBILE_COACHMARK_BACKGROUND_DEFAULT; object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg; object4.bodyBgColor = object9; const object11 = {}; object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg; object11.overflow = 'hidden'; object4.gradient = object11; const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object4.bodyContainer = {'padding': null, 'alignItems': 'center', 'justifyContent': 'center', padding: PX_16}; object4.center = {'alignItems': 'center', 'justifyContent': 'center'}; let COACHMARK_BUTTON_SPACING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.COACHMARK_BUTTON_SPACING; object4.buttonSpacing = {height: COACHMARK_BUTTON_SPACING}; object4.text = {'maxWidth': 200, 'textAlign': 'center'}; object4.cursorContainer = {'alignItems': 'center', 'zIndex': 0}; const object12 = {'height': 8, 'width': 8, 'borderRadius': null, 'borderWidth': 2, 'backgroundColor': 'transparent'}; object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs; let INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE; object12.borderColor = INTERACTIVE_TEXT_ACTIVE; object4.cursorHead = object12; INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE; object4.cursorSpine = {'width': 2, 'height': 16, backgroundColor: INTERACTIVE_TEXT_ACTIVE}; object4.image = {'height': 40, 'width': 40}; COACHMARK_BUTTON_SPACING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.COACHMARK_BUTTON_SPACING; object4.bottomMargin = {marginBottom: COACHMARK_BUTTON_SPACING}; const object14 = {position: 'absolute'}; COACHMARK_BUTTON_SPACING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.COACHMARK_BUTTON_SPACING; object14.top = COACHMARK_BUTTON_SPACING; COACHMARK_BUTTON_SPACING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.COACHMARK_BUTTON_SPACING; object14.right = COACHMARK_BUTTON_SPACING; object4.closeButton = object14; const env0_14 = Reflect.apply(createStyles, value, [object4]); const env0_15 = {'21/9': 90, '16/9': 90, '6/4': 60, '2/1': 40, '1/1': 40}; (require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Coachmark/native/Coachmark.native.tsx'); exports.Coachmark = closure; exports.CoachmarkContainer = CoachmarkContainer; } function Coachmark({targetMeasurements, surfaceMeasurements, title, description, offsetY, graphic, imgSource, position, onDismiss, buttonLabel, buttonVariant, onButtonPress, gradientColor, experimental_withBlurBackground, renderImgComponent, enterExitAnimatedStyles}) { // fn#67786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8737:1653, offset: 0x01c30c00, size: 1796 bytes, params: 2, frame: 56 var object4; var r37; var r31; var r23; var r27; var jsxRuntimeEnv0_12Binding2; var items5; var Button; var object2; var object3; let value = 0; let r12 = offsetY === undefined ? value : offsetY; const styles = useStyles(); const env0_3 = styles; let binding = env0_6; const value5 = binding.useRef(null); const env0_4 = value5; const value7 = env0_5(env0_6.useState(null), 2); const property = value7[value]; var env0_5 = value7[1]; const {adjustmentX, tooltipX, tooltipY} = (importDefault(8547) /* metro dependency 8547: useTooltipPositionNative */)(property, surfaceMeasurements, targetMeasurements, position, -8 + r12); const value10 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(value); var env0_6 = value10; const value11 = env0_6.useCallback(_fun67787, [value10]); const value12 = env0_6.useCallback(_fun67788, [value10]); const value13 = (require(4583) /* metro dependency 4583: ButtonHooksNative */).useButtonPressAnimationProps(value10); const style = value13.style; const value14 = env0_4(value13, env0_3); const value15 = env0_6.useMemo(_fun67789, [graphic, imgSource, renderImgComponent, styles]); const value16 = (importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('Coachmark'); const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12; const viewBindingProps = {ref: value5, accessibilityRole: 'alert', style: styles.center, accessible: true, onLayout: onLayout_67790}; const textGap = value16 ? styles.textGap : undefined; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const view = {value15}{title}{description}; if (buttonLabel != null) { if (onButtonPress != null) { jsxRuntimeEnv0_12Binding2 = jsxRuntimeEnv0_12; items5 = []; Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button; if (experimental_withBlurBackground) { r31 = {'variant': 'secondary-overlay', 'size': 'lg', 'text': null, 'onPress': null, 'grow': true, text: buttonLabel, onPress: onButtonPress}; } else { object2 = {}; r37 = buttonVariant ?? 'secondary'; object2.variant = r37; r37 = value16 ? 'sm' : 'lg'; object2.size = r37; object2.text = buttonLabel; object2.onPress = onButtonPress; object2.grow = true; r31 = object2; } items5[1] =