Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
65 lines
2.7 KiB
TypeScript
65 lines
2.7 KiB
TypeScript
// Module ID: 11279
|
|
// Function ID: 11280
|
|
// Name: useBurstToggleCoachmark
|
|
// Dependencies: [32, 19, 17, 1372, 1955, 21, 1944, 4638, 576, 9516, 504, 4295, 7498, 1115, 11280, 2]
|
|
// Exports: default
|
|
|
|
// Module 11279 (useBurstToggleCoachmark)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1115 */;
|
|
import SuperReactionIcon from "SuperReactionIcon" /* 9516 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import UserStore from "UserStore" /* 1372 */;
|
|
|
|
require = fn;
|
|
function EducationCoachmarkImg() {
|
|
const obj = { style: closure_10().upsellImageContainer, children: jsx(SuperReactionIcon.SuperReactionIcon, { color: nativeDefault.colors.WHITE, size: "md" }) };
|
|
return <View style={closure_10().upsellImageContainer}>{jsx(SuperReactionIcon.SuperReactionIcon, { color: nativeDefault.colors.WHITE, size: "md" })}</View>;
|
|
}
|
|
const View = fn(17).View;
|
|
const ContentDismissActionType = fn(1955).ContentDismissActionType;
|
|
const jsx = fn(21).jsx;
|
|
let closure_9 = fn(1944).DismissibleContent.SUPER_REACTION_TOGGLE_EDUCATION_MOBILE;
|
|
const createStyles = fn(4638);
|
|
let obj2 = { upsellImageContainer: null };
|
|
let size = { backgroundColor: nativeDefault.colors.BACKGROUND_BRAND, borderRadius: nativeDefault.radii.round, height: 40, width: 40, display: "flex", alignItems: "center", justifyContent: "center" };
|
|
obj2.upsellImageContainer = size;
|
|
let closure_10 = createStyles.createStyles(obj2);
|
|
size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/reactions/native/useBurstToggleCoachmark.tsx");
|
|
|
|
export default function useBurstToggleCoachmark(targetRef) {
|
|
const items = [UserStore];
|
|
const stateFromStores = first(504).useStateFromStores(items, () => currentUser.getCurrentUser());
|
|
let obj = first(504);
|
|
if (obj2.isPremium(stateFromStores)) {
|
|
const items1 = [closure_9];
|
|
let items2 = items1;
|
|
} else {
|
|
items2 = [];
|
|
}
|
|
obj2 = first(4295);
|
|
const tmp5 = _slicedToArray(first(7498).useSelectedDismissibleContent(items2), 2);
|
|
first = tmp5[0];
|
|
closure_1 = tmp7;
|
|
const items3 = [first, tmp5[1]];
|
|
const memo = noop.useMemo(() => {
|
|
const obj = { description: null, onDismiss: null, position: "bottom", renderImgComponent: null, title: null, visible: null };
|
|
const intl = util.intl;
|
|
obj.description = intl.string(util.t.nyYohm);
|
|
obj.onDismiss = function onDismiss() {
|
|
closure_1_1(constants.UNKNOWN);
|
|
};
|
|
obj.renderImgComponent = function renderImgComponent() {
|
|
return closure_1_8(closure_1_11, {});
|
|
};
|
|
const intl2 = util.intl;
|
|
obj.title = intl2.string(util.t.ORK94p);
|
|
obj.visible = first === closure_9;
|
|
return obj;
|
|
}, items3);
|
|
const tmpResult = first(7498);
|
|
const coachmark = first(11280).useCoachmark(targetRef, memo);
|
|
return tmp5[1];
|
|
};
|