// Module ID: 11277 // Function ID: 11278 // Name: useChatWidth // Dependencies: [19, 4939, 4941, 11278, 558, 11279, 2] // Exports: getChatWidth // Module 11277 (useChatWidth) import useChatLayout from "useChatLayout" /* 4939 */; import useBaseAppContainerDimensions from "useBaseAppContainerDimensions" /* 4941 */; import useDrawerWidth from "useDrawerWidth" /* 11278 */; import reactDefault from "react" /* 11279 */; import react from "react" /* 19 */; import ReactCompilerGating from "ReactCompilerGating" /* 558 */; import size from "module_2" /* 2 */; const useChatLayoutDefault = useChatLayout; const useBaseAppContainerDimensionsDefault = useBaseAppContainerDimensions; const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useChatWidth(arg0) { let context = react.useContext(reactDefault); const isChatLockedOpen = useChatLayoutDefault().isChatLockedOpen; const width = useBaseAppContainerDimensionsDefault().width; useDrawerWidth; if (null == context) { let tmp5; if (null == arg0) { let diff = width; if (isChatLockedOpen) { diff = width - tmp3; } tmp5 = diff; } else { tmp5 = width; } context = tmp5; } return context; }) : (function useChatWidth(arg0) { let context = react.useContext(reactDefault); const isChatLockedOpen = useChatLayoutDefault().isChatLockedOpen; const width = useBaseAppContainerDimensionsDefault().width; useDrawerWidth; if (null == context) { let tmp5; if (null == arg0) { let diff = width; if (isChatLockedOpen) { diff = width - tmp3; } tmp5 = diff; } else { tmp5 = width; } context = tmp5; } return context; }); const result = size.fileFinishedImporting("modules/chat/native/useChatWidth.tsx"); export default tmp2; export const getChatWidth = function getChatWidth(arg0) { let tmp3; const obj = useChatLayout; const isChatLockedOpen = obj.getChatLayout().isChatLockedOpen; const obj2 = useBaseAppContainerDimensions; const width = obj2.getBaseAppContainerDimensions().width; if (null == arg0) { let diff = width; if (isChatLockedOpen) { const tmpResult = useDrawerWidth; diff = width - tmpResult.getDrawerWidth(); } tmp3 = diff; } else { tmp3 = width; } return tmp3; };