2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 12127
|
|
|
|
|
// Function ID: 12128
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: RefreshChatInputCoachmark
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [32, 19, 1955, 7498, 1944, 1115, 4348, 11280, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default, useRefreshChatInputCoachmark
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 12127 (RefreshChatInputCoachmark)
|
2026-09-15 14:23:42 +00:00
|
|
|
import util from "util" /* 1115 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import native from "native" /* 4348 */;
|
|
|
|
|
import useCoachmark from "useCoachmark" /* 11280 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
require = fn;
|
2026-09-15 14:23:42 +00:00
|
|
|
const ContentDismissActionType = fn(1955).ContentDismissActionType;
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/chat_input/native/RefreshChatInputCoachmark.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function RefreshChatInputCoachmark(buttonRef) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const merged = Object.assign(buttonRef, Object.assign({ buttonRef: 0 }));
|
2026-08-24 06:08:38 +00:00
|
|
|
const coachmark = useCoachmark.useCoachmark(buttonRef.buttonRef, merged);
|
2026-07-20 16:05:17 +00:00
|
|
|
return null;
|
|
|
|
|
};
|
|
|
|
|
export const useRefreshChatInputCoachmark = function useRefreshChatInputCoachmark(disabled) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_require = undefined;
|
2026-08-31 15:47:37 +00:00
|
|
|
dependencyMap = undefined;
|
|
|
|
|
if (disabled.disabled) {
|
|
|
|
|
let items = [];
|
|
|
|
|
} else {
|
2026-09-15 14:23:42 +00:00
|
|
|
items = [tmp(1944).DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK];
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp3 = _slicedToArray(require("useSelectedDismissibleContent").useSelectedDismissibleContent(items), 2);
|
2026-08-31 15:47:37 +00:00
|
|
|
_require = tmp4;
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp5 = tmp3[0] === require("dismissible_content").DismissibleContent.MOBILE_REFRESH_CHAT_INPUT_PLUS_BUTTON_COACHMARK;
|
2026-08-31 15:47:37 +00:00
|
|
|
dependencyMap = tmp5;
|
|
|
|
|
const items1 = [tmp5, tmp3[1]];
|
|
|
|
|
let memo = null;
|
|
|
|
|
if (tmp5) {
|
2026-09-10 05:38:07 +00:00
|
|
|
memo = noop.useMemo(() => {
|
|
|
|
|
const obj = { title: null, description: null, position: "top", offsetY: 4, visible: null, onDismiss: null, graphic: null };
|
|
|
|
|
const intl = util.intl;
|
|
|
|
|
obj.title = intl.string(util.t.eqI1WA);
|
|
|
|
|
const intl2 = util.intl;
|
|
|
|
|
obj.description = intl2.string(util.t.nxO3NK);
|
|
|
|
|
obj.visible = visible;
|
|
|
|
|
obj.onDismiss = function onDismiss() {
|
|
|
|
|
closure_1_0(constants.USER_DISMISS);
|
2026-08-31 15:47:37 +00:00
|
|
|
};
|
2026-09-10 05:38:07 +00:00
|
|
|
obj.graphic = { type: "rive", rive: native.OmnibuttonCoachmarkRive, aspectRatio: "16/9" };
|
2026-08-31 15:47:37 +00:00
|
|
|
return obj;
|
|
|
|
|
}, items1);
|
|
|
|
|
}
|
|
|
|
|
return memo;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|