2026-07-24 07:16:23 +00:00
|
|
|
// Module ID: 9665
|
|
|
|
|
// Function ID: 75189
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: EmptyStateSticker
|
2026-07-24 07:16:23 +00:00
|
|
|
// Dependencies: [57, 31, 27, 5035, 3806, 653, 1851, 33, 4130, 9636, 9651, 5462, 5482, 566, 675, 4126, 1212, 4660, 4099, 4100, 4543, 5085, 8057, 9659, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-24 07:16:23 +00:00
|
|
|
// Module 9665 (EmptyStateSticker)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _slicedToArray from "_slicedToArray";
|
|
|
|
|
import result from "result";
|
|
|
|
|
import { View } from "get ActivityIndicator";
|
|
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import { EMPTY_STATE_STICKERS } from "STICKER_PICKER_TAB_PANEL_ID";
|
|
|
|
|
import ME from "ME";
|
|
|
|
|
import { PremiumUpsellTypes } from "GuildFeatures";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let closure_11;
|
|
|
|
|
let closure_12;
|
|
|
|
|
let closure_8;
|
|
|
|
|
let closure_9;
|
|
|
|
|
let require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function EmptyStateSticker(sticker) {
|
|
|
|
|
sticker = sticker.sticker;
|
2026-07-24 07:16:23 +00:00
|
|
|
const animated = require(9636) /* _createForOfIteratorHelperLoose */.useShouldAnimateSticker(sticker.isFocused);
|
2026-07-20 16:05:17 +00:00
|
|
|
let id;
|
2026-07-24 07:16:23 +00:00
|
|
|
const obj = require(9636) /* _createForOfIteratorHelperLoose */;
|
2026-07-20 16:05:17 +00:00
|
|
|
const tmp2 = closure_11;
|
|
|
|
|
if (null != sticker) {
|
|
|
|
|
id = sticker.id;
|
|
|
|
|
}
|
2026-07-24 07:16:23 +00:00
|
|
|
return tmp2(importDefault(9651), { sticker, size: 60, animated }, id);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
({ AnalyticEvents: closure_8, AnalyticsSections: closure_9 } = ME);
|
|
|
|
|
({ jsx: closure_11, jsxs: closure_12 } = jsxProd);
|
|
|
|
|
let closure_13 = _createForOfIteratorHelperLoose.createStyles({ header: { marginBottom: 8, textAlign: "center" }, blurb: { lineHeight: 18, textAlign: "center", marginBottom: 12 }, premiumButton: { marginTop: 20, alignSelf: "center", paddingLeft: 5, paddingRight: 10, flexGrow: 0 }, nitroWheel: { width: 32 }, stickersRow: { flexDirection: "row", alignSelf: "center" }, sticker: { paddingHorizontal: 2 } });
|
|
|
|
|
let result = require("get ActivityIndicator").fileFinishedImporting("modules/stickers/native/StickerPickerEmptyState.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function _default() {
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp = callback4();
|
|
|
|
|
const require = tmp;
|
2026-07-24 07:16:23 +00:00
|
|
|
let obj = require(9636) /* _createForOfIteratorHelperLoose */;
|
2026-07-20 16:05:17 +00:00
|
|
|
const fetchStickerPacks = obj.useFetchStickerPacks();
|
2026-07-24 07:16:23 +00:00
|
|
|
analyticsLocations = analyticsLocations(5462)(analyticsLocations(5482).EMPTY_STATE).analyticsLocations;
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj1 = require(566) /* initialize */;
|
|
|
|
|
const items = [_isNativeReflectConstruct];
|
2026-07-20 16:05:17 +00:00
|
|
|
const stateFromStoresArray = obj1.useStateFromStoresArray(items, () => {
|
2026-07-23 10:11:24 +00:00
|
|
|
const mapped = outer1_7.map((arg0) => outer2_6.getStickerById(arg0));
|
2026-07-20 16:05:17 +00:00
|
|
|
return mapped.filter((arg0) => null != arg0);
|
|
|
|
|
});
|
|
|
|
|
const tmp4 = callback(React.useState(null), 2);
|
2026-07-23 10:11:24 +00:00
|
|
|
const dependencyMap = tmp4[0];
|
|
|
|
|
callback = tmp4[1];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [analyticsLocations];
|
|
|
|
|
const effect = React.useEffect(() => {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = analyticsLocations(675);
|
|
|
|
|
obj = { type: outer1_10.EMPTY_STICKER_PICKER_UPSELL, source: obj, location_stack: analyticsLocations };
|
|
|
|
|
obj = { section: outer1_9.EMPTY_STICKER_PICKER_UPSELL };
|
|
|
|
|
obj.track(outer1_8.PREMIUM_UPSELL_VIEWED, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
|
|
|
|
obj = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { style: tmp.header, accessibilityRole: "header", variant: "heading-lg/extrabold", color: "mobile-text-heading-primary" };
|
|
|
|
|
const intl = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj.children = intl.string(require(1212) /* getSystemLocale */.t.HEm04J);
|
|
|
|
|
const items2 = [callback2(require(4126) /* Text */.Text, obj), , , ];
|
|
|
|
|
obj1 = { style: tmp.blurb, variant: "text-sm/medium", color: "text-default" };
|
|
|
|
|
const intl2 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj1.children = intl2.string(require(1212) /* getSystemLocale */.t.FnNud4);
|
|
|
|
|
items2[1] = callback2(require(4126) /* Text */.Text, obj1);
|
2026-07-24 07:16:23 +00:00
|
|
|
const tmp3 = analyticsLocations(5462);
|
2026-07-20 16:05:17 +00:00
|
|
|
items2[2] = callback2(View, {
|
|
|
|
|
style: tmp.stickersRow,
|
|
|
|
|
children: stateFromStoresArray.map((id) => {
|
|
|
|
|
let tmp = id;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp = outer1_11;
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = {
|
|
|
|
|
accessible: false,
|
|
|
|
|
onLongPress() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = id(4099).triggerHapticFeedback(analyticsLocations(4100).IMPACT_LIGHT);
|
|
|
|
|
outer1_3(id.id);
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
|
|
|
|
style: tmp.sticker
|
|
|
|
|
};
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { sticker: id, isFocused: dependencyMap === id.id };
|
|
|
|
|
obj.children = outer1_11(outer1_14, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
id = undefined;
|
|
|
|
|
if (null != id) {
|
|
|
|
|
id = id.id;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
return tmp(tmp(4660).PressableOpacity, obj, id);
|
2026-07-20 16:05:17 +00:00
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
const obj3 = { style: tmp.premiumButton };
|
|
|
|
|
const obj4 = {};
|
|
|
|
|
const obj5 = {};
|
|
|
|
|
const obj2 = {
|
|
|
|
|
style: tmp.stickersRow,
|
|
|
|
|
children: stateFromStoresArray.map((id) => {
|
|
|
|
|
let tmp = id;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp = outer1_11;
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = {
|
|
|
|
|
accessible: false,
|
|
|
|
|
onLongPress() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = id(4099).triggerHapticFeedback(analyticsLocations(4100).IMPACT_LIGHT);
|
|
|
|
|
outer1_3(id.id);
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
|
|
|
|
style: tmp.sticker
|
|
|
|
|
};
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { sticker: id, isFocused: dependencyMap === id.id };
|
|
|
|
|
obj.children = outer1_11(outer1_14, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
id = undefined;
|
|
|
|
|
if (null != id) {
|
|
|
|
|
id = id.id;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
return tmp(tmp(4660).PressableOpacity, obj, id);
|
2026-07-20 16:05:17 +00:00
|
|
|
})
|
|
|
|
|
};
|
2026-07-24 07:16:23 +00:00
|
|
|
obj5.source = analyticsLocations(8057);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj5.style = tmp.nitroWheel;
|
|
|
|
|
obj5.resizeMode = "contain";
|
2026-07-23 10:11:24 +00:00
|
|
|
obj4.icon = callback2(analyticsLocations(5085), obj5);
|
|
|
|
|
const intl3 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj4.text = intl3.string(require(1212) /* getSystemLocale */.t.pj0XBN);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj4.variant = "active";
|
|
|
|
|
obj4.size = "sm";
|
|
|
|
|
obj4.onPress = function onPress() {
|
2026-07-24 07:16:23 +00:00
|
|
|
return analyticsLocations(9659)({ section: outer1_9.EXPRESSION_PICKER });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-07-23 10:11:24 +00:00
|
|
|
obj3.children = callback2(require(4543) /* Button */.Button, obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
items2[3] = callback2(View, obj3);
|
|
|
|
|
obj.children = items2;
|
|
|
|
|
return callback3(View, obj);
|
|
|
|
|
};
|