Module 975460

461 characters · in 93f1e8e8c91b290d.js
Dependencies
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{g:()=>s,t:()=>c});var l=n(64700),i=n(155718),r=n(587895),a=n(429913),u=n(395671),o=n(705751);function c(e){if(null==e)return null;if(e.type!==o.S7.GAME)return e;let t=e.linkedGames?.find(e=>e.type===i.Mh.OFFICIAL);return t?.application??r.A.getApplication(t?.id)??null}function s(e){let t=null==e||e instanceof u.Ay?void 0:e.getOfficialApplicationId(),n=(0,a.h)(t);return l.useMemo(()=>null==e?null:e instanceof u.Ay?c(e):n??null,[e,n])}}