Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
53 lines
1.9 KiB
TypeScript
53 lines
1.9 KiB
TypeScript
// Module ID: 12567
|
|
// Function ID: 12568
|
|
// Name: ScheduledMessageDraftCoachmark
|
|
// Dependencies: [19, 17, 1955, 21, 4639, 1115, 12354, 11266, 2]
|
|
// Exports: default
|
|
|
|
// Module 12567 (ScheduledMessageDraftCoachmark)
|
|
import util from "util" /* 1115 */;
|
|
import useCoachmark from "useCoachmark" /* 11266 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
function AttachedCoachmark(buttonRef) {
|
|
const merged = Object.assign(buttonRef, Object.assign({ buttonRef: 0 }));
|
|
const coachmark = useCoachmark.useCoachmark(buttonRef.buttonRef, merged);
|
|
return null;
|
|
}
|
|
const Image = fn(17).Image;
|
|
const ContentDismissActionType = fn(1955).ContentDismissActionType;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4639);
|
|
let closure_7 = createStyles.createStyles({ image: { width: 100, height: 80 } });
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/scheduled_messages/native/ScheduledMessageDraftCoachmark.tsx");
|
|
|
|
export default function ScheduledMessageDraftCoachmark(onDismiss) {
|
|
onDismiss = onDismiss.onDismiss;
|
|
({ buttonRef, isVisible } = onDismiss);
|
|
const tmp = closure_7();
|
|
closure_1 = tmp;
|
|
const items = [onDismiss, tmp.image];
|
|
const memo = noop.useMemo(() => {
|
|
const obj = { title: null, description: null, position: "top", offsetY: 4, visible: true, onDismiss: null, renderImgComponent: null };
|
|
const intl = util.intl;
|
|
obj.title = intl.string(util.t.Pu7sCU);
|
|
const intl2 = util.intl;
|
|
obj.description = intl2.format(util.t.Juk17F, {});
|
|
obj.onDismiss = function onDismiss() {
|
|
return onDismiss(constants.USER_DISMISS);
|
|
};
|
|
obj.renderImgComponent = function renderImgComponent() {
|
|
return <Image source={closure_1(dependencyMap[6])} style={closure_1_1.image} />;
|
|
};
|
|
return obj;
|
|
}, items);
|
|
let tmp3 = null;
|
|
if (isVisible) {
|
|
let obj = { buttonRef };
|
|
const merged = Object.assign(memo);
|
|
tmp3 = <AttachedCoachmark buttonRef={buttonRef} />;
|
|
}
|
|
return tmp3;
|
|
};
|