Skip to content

Commit b9df0c7

Browse files
3 files | loyaltystore.js, manifest.js, manifest.js
1 parent 282990b commit b9df0c7

File tree

3 files changed

+123
-116
lines changed

3 files changed

+123
-116
lines changed

store.steampowered.com/public/javascript/applications/store/loyaltystore.js

Lines changed: 47 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9203,11 +9203,11 @@
92039203
48474: (e, t, r) => {
92049204
"use strict";
92059205
r.d(t, {
9206-
dR: () => B,
9207-
ZI: () => N,
9208-
Qs: () => C,
9209-
jy: () => S,
9210-
Ch: () => T,
9206+
dR: () => D,
9207+
ZI: () => b,
9208+
Qs: () => I,
9209+
jy: () => v,
9210+
Ch: () => P,
92119211
});
92129212
var i = r(90626),
92139213
n = r(75844),
@@ -9254,8 +9254,9 @@
92549254
r.p +
92559255
"images/applications/store/halloween_2020_pointspage_bg.png?v=valveisgoodatcaching";
92569256
var w = r(30470),
9257-
y = r(55263);
9258-
const C = ({ className: e, ...t }) => {
9257+
y = r(55263),
9258+
C = r(22580);
9259+
const I = ({ className: e, ...t }) => {
92599260
const r = i.useRef(void 0);
92609261
return i.createElement(
92619262
i.Fragment,
@@ -9268,13 +9269,13 @@
92689269
i.createElement(m, { scrollElement: r.current }),
92699270
);
92709271
},
9271-
I = ({ children: e }) =>
9272+
M = ({ children: e }) =>
92729273
i.createElement(
9273-
C,
9274+
I,
92749275
{ className: (0, d.A)(a.ParallaxRoot, s.ParallaxRoot) },
92759276
e,
92769277
),
9277-
M = ({ children: e, src: t, className: r }) =>
9278+
E = ({ children: e, src: t, className: r }) =>
92789279
i.createElement(
92799280
i.Fragment,
92809281
null,
@@ -9288,7 +9289,7 @@
92889289
style: { backgroundImage: `url(${t})` },
92899290
}),
92909291
);
9291-
function E(e) {
9292+
function S(e) {
92929293
const t = (0, o.tv)(["xxsmall", "small", "xxlarge"]),
92939294
r = (0, _.h)("(max-width: 965px)") || w.TS.IN_GAMEPADUI,
92949295
n = (0, o.WH)(t);
@@ -9312,70 +9313,76 @@
93129313
),
93139314
);
93149315
}
9315-
const S = ({ background: e, children: t }) => {
9316+
const v = ({ background: e, children: t }) => {
93169317
let r = g;
93179318
return (
93189319
e && (r = e),
93199320
i.createElement(
9320-
I,
9321+
M,
93219322
null,
9322-
i.createElement(M, { src: r }, i.createElement(E, null, t)),
9323+
i.createElement(E, { src: r }, i.createElement(S, null, t)),
93239324
)
93249325
);
93259326
},
9326-
v = ({ children: e }) =>
9327-
i.createElement(M, { src: h, className: a.HomeBackground }, e),
93289327
N = ({ children: e }) =>
9328+
i.createElement(E, { src: h, className: a.HomeBackground }, e),
9329+
b = ({ children: e }) =>
93299330
i.createElement(
9330-
I,
9331+
M,
93319332
null,
9332-
i.createElement(v, null, i.createElement(E, null, e)),
9333+
i.createElement(N, null, i.createElement(S, null, e)),
93339334
),
9334-
b = (0, n.PA)(({ children: e, appid: t }) => {
9335+
A = (0, n.PA)(({ children: e, appid: t }) => {
93359336
const [r] = (0, y.t7)(t, { include_assets: !0 });
9336-
if (!r) return null;
9337-
const n = r.GetAssets().GetRawPageBackgroundURL()
9338-
? r.GetAssets().GetRawPageBackgroundURL()
9339-
: r.GetAssets().GetPageBackgroundURL();
9340-
return i.createElement(
9341-
M,
9342-
{ src: n, className: a.ParallaxAppBackground },
9343-
e,
9337+
let n = g;
9338+
const s = C.DZ.Get().GetAppHeroImage(t);
9339+
return (
9340+
s.is_custom
9341+
? (n = s.img_url)
9342+
: r &&
9343+
(n =
9344+
r.GetAssets().GetRawPageBackgroundURL() ??
9345+
r.GetAssets().GetPageBackgroundURL()),
9346+
i.createElement(
9347+
E,
9348+
{ src: n, className: a.ParallaxAppBackground },
9349+
e,
9350+
)
93449351
);
93459352
}),
9346-
A = { 1461450: f };
9347-
function B(e) {
9348-
return e.appid in A
9349-
? i.createElement(D, { ...e })
9350-
: i.createElement(R, { ...e });
9351-
}
9353+
B = { 1461450: f };
93529354
function D(e) {
9355+
return e.appid in B
9356+
? i.createElement(R, { ...e })
9357+
: i.createElement(T, { ...e });
9358+
}
9359+
function R(e) {
93539360
const { children: t, appid: r } = e,
93549361
n = (function (e) {
9355-
return A[e];
9362+
return B[e];
93569363
})(r);
93579364
return i.createElement(
9358-
C,
9365+
I,
93599366
null,
93609367
i.createElement(
93619368
"div",
93629369
{
93639370
style: { backgroundImage: `url("${n}")` },
93649371
className: a.CustomAppBackground,
93659372
},
9366-
i.createElement(E, null, t),
9373+
i.createElement(S, null, t),
93679374
),
93689375
);
93699376
}
9370-
function R(e) {
9377+
function T(e) {
93719378
const { children: t, appid: r } = e;
93729379
return i.createElement(
9373-
I,
9380+
M,
93749381
null,
9375-
i.createElement(b, { appid: r }, i.createElement(E, null, t)),
9382+
i.createElement(A, { appid: r }, i.createElement(S, null, t)),
93769383
);
93779384
}
9378-
const T = ({ title: e, subtitle: t, headerImage: r }) =>
9385+
const P = ({ title: e, subtitle: t, headerImage: r }) =>
93799386
i.createElement(
93809387
i.Fragment,
93819388
null,

0 commit comments

Comments
 (0)