This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,31 @@
// Metro module 5837 (f5838).
import { ShopBlockType } from "../../../_bundle/Module5829";
import { getAssetDisplayConfig } from "../CollectiblesUtils";
class HeroBlockRecord {
type = ShopBlockType.HERO;
constructor(a0) {
this.categorySkuId = a0.category_sku_id;
this.name = a0.name;
this.summary = a0.summary.trim();
this.categoryStoreListingId = a0.category_store_listing_id;
this.title = a0.title;
this.rankedSkuIds = a0.ranked_sku_ids;
this.unpublishedAt = a0.unpublished_at != null ? new Date(a0.unpublished_at) : null;
this.bannerTextColor = a0.banner_text_color;
this.mobileTitle = a0.mobile_title;
this.mobileSummary = a0.mobile_summary;
this.mobileProductsTitle = a0.mobile_products_title;
this.heroBannerUrl = a0.hero_banner_url;
this.heroBannerAnimatedUrl = a0.hero_banner_animated_url;
this.heroRiveUrl = a0.hero_rive_url;
this.heroLogoUrl = a0.hero_logo_url;
this.mobileHeroUrl = a0.mobile_hero_url;
this.mobileHeroAnimatedUrl = a0.mobile_hero_animated_url;
this.bannerDisplayConfig = getAssetDisplayConfig(a0.banner_display_config);
this.logoDisplayConfig = getAssetDisplayConfig(a0.logo_display_config);
}
static fromServer(a0) {
return new HeroBlockRecord(a0);
}
}
export { HeroBlockRecord };