2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 10826
|
|
|
|
|
// Function ID: 83953
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useChatWidth
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [31, 3985, 3987, 10827, 10828, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default, getChatWidth
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 10826 (useChatWidth)
|
2026-07-23 10:11:24 +00:00
|
|
|
import result from "result";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("useBaseAppContainerDimensions").fileFinishedImporting("modules/chat/native/useChatWidth.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useChatWidth(arg0) {
|
2026-07-25 08:10:48 +00:00
|
|
|
let context = React.useContext(importDefault(10828));
|
|
|
|
|
const width = importDefault(3987)().width;
|
|
|
|
|
require(10827) /* computeTabletDrawerWidth */;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null == context) {
|
|
|
|
|
if (null == arg0) {
|
|
|
|
|
let diff = width;
|
2026-07-25 08:10:48 +00:00
|
|
|
if (importDefault(3985)().isChatLockedOpen) {
|
2026-07-20 16:05:17 +00:00
|
|
|
diff = width - tmp3;
|
|
|
|
|
}
|
|
|
|
|
let tmp4 = diff;
|
|
|
|
|
} else {
|
|
|
|
|
tmp4 = width;
|
|
|
|
|
}
|
|
|
|
|
context = tmp4;
|
|
|
|
|
}
|
|
|
|
|
return context;
|
|
|
|
|
};
|
|
|
|
|
export const getChatWidth = function getChatWidth(arg0) {
|
2026-07-25 08:10:48 +00:00
|
|
|
const obj = require(3985) /* useChatLayout */;
|
|
|
|
|
const width = require(3987) /* useBaseAppContainerDimensions */.getBaseAppContainerDimensions().width;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null == arg0) {
|
|
|
|
|
let diff = width;
|
|
|
|
|
if (obj.getChatLayout().isChatLockedOpen) {
|
2026-07-25 08:10:48 +00:00
|
|
|
diff = width - require(10827) /* computeTabletDrawerWidth */.getDrawerWidth();
|
|
|
|
|
const obj3 = require(10827) /* computeTabletDrawerWidth */;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let tmp = diff;
|
|
|
|
|
} else {
|
|
|
|
|
tmp = width;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|