Module 975460

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