// Module ID: 10350 // Function ID: 10351 // Name: useGetThreadDraftSettings // Dependencies: [5107, 558, 568, 11, 504, 2] // Module 10350 (useGetThreadDraftSettings) import SnowflakeUtilsDefault from "SnowflakeUtils" /* 11 */; import DraftStore from "DraftStore" /* 5107 */; const require = globalThis.__r; const require = fn; fn(558); const ReactCompilerGating = fn(558); let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => { _require = arg0; const cResult = require("c").c(3); if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) { const items = [DraftStore]; cResult[0] = items; let first = items; } else { first = cResult[0]; } if (cResult[1] !== arg0) { const fn = function l() { let tmp2 = null; if (null != closure_0) { let threadSettings = DraftStore.getThreadSettings(tmp); if (threadSettings == null) { threadSettings = obj.getThreadDraftWithParentMessageId(SnowflakeUtilsDefault.castChannelIdAsMessageId(tmp)); } tmp2 = threadSettings; obj = DraftStore; } return tmp2; }; cResult[1] = arg0; cResult[2] = fn; let tmp6 = fn; } else { tmp6 = cResult[2]; } let obj = require("c"); return require("initialize").useStateFromStores(first, tmp6); }) : ((arg0) => { _require = arg0; const items = [DraftStore]; return require("initialize").useStateFromStores(items, () => { let tmp2 = null; if (null != closure_0) { let threadSettings = DraftStore.getThreadSettings(tmp); if (threadSettings == null) { threadSettings = obj.getThreadDraftWithParentMessageId(SnowflakeUtilsDefault.castChannelIdAsMessageId(tmp)); } tmp2 = threadSettings; obj = DraftStore; } return tmp2; }); }); const size = fn(2); const result = size.fileFinishedImporting("modules/threads/useGetThreadDraftSettings.tsx"); export default tmp2; export const useHasThreadDraft = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => { _require = arg0; const cResult = require("c").c(3); if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) { const items = [DraftStore]; cResult[0] = items; let first = items; } else { first = cResult[0]; } if (cResult[1] !== arg0) { const fn = function l() { let tmp2 = null != closure_0; if (tmp2) { let threadSettings = DraftStore.getThreadSettings(tmp); if (threadSettings == null) { threadSettings = obj.getThreadDraftWithParentMessageId(SnowflakeUtilsDefault.castChannelIdAsMessageId(tmp)); } tmp2 = null != threadSettings; obj = DraftStore; } return tmp2; }; cResult[1] = arg0; cResult[2] = fn; let tmp6 = fn; } else { tmp6 = cResult[2]; } let obj = require("c"); return require("initialize").useStateFromStores(first, tmp6); }) : ((arg0) => { _require = arg0; const items = [DraftStore]; return require("initialize").useStateFromStores(items, () => { let tmp2 = null != closure_0; if (tmp2) { let threadSettings = DraftStore.getThreadSettings(tmp); if (threadSettings == null) { threadSettings = obj.getThreadDraftWithParentMessageId(SnowflakeUtilsDefault.castChannelIdAsMessageId(tmp)); } tmp2 = null != threadSettings; obj = DraftStore; } return tmp2; }); });