Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
80 lines
4 KiB
TypeScript
80 lines
4 KiB
TypeScript
// Module ID: 16151
|
|
// Function ID: 16152
|
|
// Name: FeaturedBlock
|
|
// Dependencies: [19, 17, 21, 580, 4790, 9077, 16152, 558, 568, 7441, 7461, 2]
|
|
|
|
// Module 16151 (FeaturedBlock)
|
|
import c from "c" /* 568 */;
|
|
import nativeDefault from "native" /* 580 */;
|
|
import useAnalyticsLocationsDefault from "useAnalyticsLocations" /* 7441 */;
|
|
import AnalyticsLocationDefault from "AnalyticsLocation" /* 7461 */;
|
|
import CollectiblesAnalyticsContext from "CollectiblesAnalyticsContext" /* 9077 */;
|
|
import FeaturedCategorySubblockDefault from "FeaturedCategorySubblock" /* 16152 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const useAnalyticsLocations = tmp(7441);
|
|
require = fn;
|
|
function Subblocks(style) {
|
|
style = style.style;
|
|
const subblocks = style.featuredBlock.subblocks;
|
|
return subblocks.map((subblock, tilePosition) => {
|
|
const obj = { newValue: { tilePosition }, children: null };
|
|
const obj2 = { style, children: jsx(FeaturedCategorySubblockDefault, { subblock }) };
|
|
obj.children = <View style={style}>{jsx(FeaturedCategorySubblockDefault, { subblock: arg0 })}</View>;
|
|
return jsx(CollectiblesAnalyticsContext.CollectiblesAnalyticsProvider, { newValue: { tilePosition }, children: null }, tilePosition);
|
|
});
|
|
}
|
|
const View = fn(17).View;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4790);
|
|
let closure_5 = createStyles.createStyles({ container: { display: "flex", width: "100%", flexDirection: "row", flexWrap: "wrap", gap: nativeDefault.space.PX_12, paddingHorizontal: nativeDefault.space.PX_16 }, featuredSubblock: { flex: 1, flexBasis: 400, maxWidth: "100%" } });
|
|
const ReactCompilerGating = fn(558);
|
|
let obj2 = { container: { display: "flex", width: "100%", flexDirection: "row", flexWrap: "wrap", gap: nativeDefault.space.PX_12, paddingHorizontal: nativeDefault.space.PX_16 }, featuredSubblock: { flex: 1, flexBasis: 400, maxWidth: "100%" } };
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/collectibles/native/FeaturedBlock.tsx");
|
|
|
|
export default ReactCompilerGating.isReactCompilerEnabled() ? ((featuredBlock) => {
|
|
const cResult = c.c(9);
|
|
featuredBlock = featuredBlock.featuredBlock;
|
|
const tmp4 = closure_5();
|
|
const analyticsLocations = useAnalyticsLocationsDefault(AnalyticsLocationDefault.COLLECTIBLES_SHOP_FEATURED_BLOCK).analyticsLocations;
|
|
if (cResult[0] === featuredBlock) {
|
|
if (cResult[1] === tmp4.featuredSubblock) {
|
|
let tmp6 = cResult[2];
|
|
}
|
|
if (cResult[3] === tmp4.container) {
|
|
if (cResult[4] === tmp6) {
|
|
let tmp8 = cResult[5];
|
|
}
|
|
if (cResult[6] === analyticsLocations) {
|
|
if (cResult[7] === tmp8) {
|
|
let tmp12 = cResult[8];
|
|
}
|
|
return tmp12;
|
|
}
|
|
const obj2 = { value: analyticsLocations, children: tmp8 };
|
|
const tmp14 = jsx(useAnalyticsLocations.AnalyticsLocationProvider, { value: analyticsLocations, children: tmp8 });
|
|
cResult[6] = analyticsLocations;
|
|
cResult[7] = tmp8;
|
|
cResult[8] = tmp14;
|
|
tmp12 = tmp14;
|
|
}
|
|
const obj3 = { style: tmp4.container, children: tmp6 };
|
|
const tmp11 = <View style={tmp4.container}>{tmp6}</View>;
|
|
cResult[3] = tmp4.container;
|
|
cResult[4] = tmp6;
|
|
cResult[5] = tmp11;
|
|
tmp8 = tmp11;
|
|
}
|
|
const tmp7 = <Subblocks featuredBlock={featuredBlock} style={tmp4.featuredSubblock} />;
|
|
cResult[0] = featuredBlock;
|
|
cResult[1] = tmp4.featuredSubblock;
|
|
cResult[2] = tmp7;
|
|
tmp6 = tmp7;
|
|
}) : ((featuredBlock) => {
|
|
const tmp = closure_5();
|
|
const obj = { value: useAnalyticsLocationsDefault(AnalyticsLocationDefault.COLLECTIBLES_SHOP_FEATURED_BLOCK).analyticsLocations, children: null };
|
|
const obj2 = { style: tmp.container, children: <Subblocks featuredBlock={arg0.featuredBlock} style={tmp.featuredSubblock} /> };
|
|
obj.children = <View style={tmp.container}><Subblocks featuredBlock={arg0.featuredBlock} style={tmp.featuredSubblock} /></View>;
|
|
return jsx(useAnalyticsLocations.AnalyticsLocationProvider, { value: useAnalyticsLocationsDefault(AnalyticsLocationDefault.COLLECTIBLES_SHOP_FEATURED_BLOCK).analyticsLocations, children: null });
|
|
});
|