97 lines
2.7 KiB
TypeScript
97 lines
2.7 KiB
TypeScript
// Metro module 4157 (f4158).
|
|
import _objectWithoutProperties from "../../../_bundle/_objectWithoutProperties";
|
|
import { jsx } from "react/jsx-runtime";
|
|
import Dispatcher from "../../../Dispatcher";
|
|
function $mk73639($env) {
|
|
return () => {
|
|
const r4 = $env;
|
|
if (!r4[6]) {
|
|
const r6 = $env.$parent;
|
|
(0, r6[0])(r6[2][4]).triggerHapticFeedback((0, r6[1])(r6[2][5]).IMPACT_LIGHT);
|
|
}
|
|
const r15 = $env.$parent;
|
|
(0, r15[0])(r15[2][6]).dismissGlobalKeyboard();
|
|
(0, r15[1])(r15[2][3]).dispatch({
|
|
type: "SHOW_ACTION_SHEET",
|
|
content: r4[0],
|
|
key: r4[1],
|
|
impressionName: r4[2],
|
|
impressionProperties: r4[3],
|
|
backdropKind: r4[4],
|
|
stackingBehavior: r4[5],
|
|
appEntryKey: r4[7]
|
|
});
|
|
};
|
|
}
|
|
let env2393 = {};
|
|
const _excluded = ["impressionName", "impressionProperties", "backdropKind", "disableHapticOnOpen", "appEntryKey"];
|
|
const r22 = {
|
|
openLazy: (a0, c13872_0, c13872_1, c13872_2) => {
|
|
(a0 instanceof Promise ? a0.then((result) => result.default) : a0()).then((result) => {
|
|
let r11 = c13872_1;
|
|
if (r11 == null) {
|
|
r11 = {};
|
|
}
|
|
let env24943;
|
|
const { impressionName, impressionProperties, backdropKind, disableHapticOnOpen, appEntryKey } = r11;
|
|
const r2 = env2393;
|
|
const r18 = jsx(result, {
|
|
..._objectWithoutProperties(r11, _excluded)
|
|
});
|
|
const r21 = env24943 = {
|
|
$parent: r2
|
|
};
|
|
env24943[0] = r18;
|
|
env24943[1] = c13872_0;
|
|
env24943[2] = impressionName;
|
|
env24943[3] = impressionProperties;
|
|
env24943[4] = backdropKind;
|
|
env24943[5] = c13872_2;
|
|
env24943[6] = disableHapticOnOpen;
|
|
env24943[7] = appEntryKey;
|
|
Dispatcher.wait($mk73639(r21));
|
|
});
|
|
},
|
|
hideActionSheet: (a0) => {
|
|
Dispatcher.dispatch({
|
|
type: "HIDE_ACTION_SHEET",
|
|
key: a0
|
|
});
|
|
},
|
|
hideAllActionSheets: () => {
|
|
Dispatcher.dispatch({
|
|
type: "HIDE_ALL_ACTION_SHEETS"
|
|
});
|
|
},
|
|
setActionSheetZIndex: (a0) => {
|
|
Dispatcher.dispatch({
|
|
type: "SET_ACTION_SHEET_Z_INDEX",
|
|
zIndex: a0
|
|
});
|
|
},
|
|
resetActionSheetsForAppEntryKey: (a0) => {
|
|
Dispatcher.dispatch({
|
|
type: "RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY",
|
|
appEntryKey: a0
|
|
});
|
|
}
|
|
};
|
|
export default r22;
|
|
export const ACTION_SHEET_HEIGHT_HALF = "start";
|
|
export const ACTION_SHEET_HEIGHT_EXPANDED = "expanded";
|
|
export function showActionSheet(a0) {
|
|
let env13871;
|
|
const r1 = env13871 = {
|
|
$parent: env2393
|
|
};
|
|
env13871[0] = a0.content;
|
|
env13871[1] = a0.key;
|
|
env13871[2] = a0.impressionName;
|
|
env13871[3] = a0.impressionProperties;
|
|
env13871[4] = a0.backdropKind;
|
|
env13871[5] = a0.stackingBehavior;
|
|
env13871[6] = a0.disableHapticOnOpen;
|
|
env13871[7] = a0.appEntryKey;
|
|
Dispatcher.wait($mk73639(r1));
|
|
}
|