85 lines
3.5 KiB
TypeScript
85 lines
3.5 KiB
TypeScript
// Module ID: 16237
|
|
// Function ID: 16238
|
|
// Name: FeaturedBlock
|
|
// Dependencies: [19, 17, 21, 587, 5092, 8971, 16238, 558, 576, 6852, 6879, 2]
|
|
|
|
// Module 16237 (FeaturedBlock)
|
|
import react_native from "react-native" /* 17 */;
|
|
import Fragment from "Fragment" /* 21 */;
|
|
import react2 from "react" /* 576 */;
|
|
import nativeDefault from "native" /* 587 */;
|
|
import useAnalyticsLocationsDefault from "useAnalyticsLocations" /* 6852 */;
|
|
import AnalyticsLocationDefault from "AnalyticsLocation" /* 6879 */;
|
|
import CollectiblesAnalyticsContext from "CollectiblesAnalyticsContext" /* 8971 */;
|
|
import react from "react" /* 19 */;
|
|
import createStyles from "createStyles" /* 5092 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let tmp;
|
|
const useAnalyticsLocations = tmp(6852);
|
|
function Subblocks(style) {
|
|
style = style.style;
|
|
const subblocks = style.featuredBlock.subblocks;
|
|
return subblocks.map((subblock, tilePosition) => {
|
|
const CollectiblesAnalyticsProvider = CollectiblesAnalyticsContext.CollectiblesAnalyticsProvider;
|
|
return <CollectiblesAnalyticsProvider key={arg1} newValue={{ tilePosition: arg1 }}>{null}</CollectiblesAnalyticsProvider>;
|
|
});
|
|
}
|
|
const View = react_native.View;
|
|
const jsx = Fragment.jsx;
|
|
const PX_16 = nativeDefault.space.PX_16;
|
|
const PX_12 = nativeDefault.space.PX_12;
|
|
let obj = { container: { display: "flex", width: "100%", flexDirection: "row", flexWrap: "wrap", gap: PX_12, paddingHorizontal: PX_16 }, featuredSubblock: { flex: 1, flexBasis: 400, maxWidth: "100%" } };
|
|
let closure_5 = createStyles.createStyles(obj);
|
|
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function FeaturedBlock(featuredBlock) {
|
|
const obj = react2;
|
|
const cResult = obj.c(9);
|
|
featuredBlock = featuredBlock.featuredBlock;
|
|
const tmp4 = closure_5();
|
|
const tmp5 = useAnalyticsLocationsDefault;
|
|
const analyticsLocations = tmp5(AnalyticsLocationDefault.COLLECTIBLES_SHOP_FEATURED_BLOCK).analyticsLocations;
|
|
if (cResult[0] === featuredBlock) {
|
|
let tmp6;
|
|
if (cResult[1] === tmp4.featuredSubblock) {
|
|
tmp6 = cResult[2];
|
|
}
|
|
if (cResult[3] === tmp4.container) {
|
|
let tmp8;
|
|
if (cResult[4] === tmp6) {
|
|
tmp8 = cResult[5];
|
|
}
|
|
if (cResult[6] === analyticsLocations) {
|
|
let tmp12;
|
|
if (cResult[7] === tmp8) {
|
|
tmp12 = cResult[8];
|
|
}
|
|
return tmp12;
|
|
}
|
|
const tmp14 = jsx(useAnalyticsLocations.AnalyticsLocationProvider, { value: analyticsLocations, children: tmp8 });
|
|
cResult[6] = analyticsLocations;
|
|
cResult[7] = tmp8;
|
|
cResult[8] = tmp14;
|
|
tmp12 = tmp14;
|
|
}
|
|
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;
|
|
}) : (function FeaturedBlock(featuredBlock) {
|
|
featuredBlock = featuredBlock.featuredBlock;
|
|
const tmp = closure_5();
|
|
const tmp2 = useAnalyticsLocationsDefault;
|
|
const AnalyticsLocationProvider = useAnalyticsLocations.AnalyticsLocationProvider;
|
|
return <AnalyticsLocationProvider value={tmp2(AnalyticsLocationDefault.COLLECTIBLES_SHOP_FEATURED_BLOCK).analyticsLocations}>{null}</AnalyticsLocationProvider>;
|
|
});
|
|
const result = size.fileFinishedImporting("modules/collectibles/native/FeaturedBlock.tsx");
|
|
|
|
export default tmp3;
|