Build 574548stable
Module 356645
1,039 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{n:()=>p});var i=n(636537),r=n(499979),s=n(451988),a=n(228366),o=n(773669),l=n(189081),u=n(645243),c=n(927813),d=n(652215);let _=10*c.A.Millis.MINUTE,h=10*c.A.Millis.MINUTE,f=+c.A.Millis.MINUTE,E={};async function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=o.default.locale;return a.h.dispatch({type:"APPLICATION_BUILD_FETCH_START",applicationId:e,branchId:t,locale:c}),n&&await (0,r.yy)(Math.random()*f),i.Bo.get({url:d.Rsh.APPLICATION_LIVE_BUILD(e,t),query:{platform:(0,u.O)(),locale:c},oldFormErrors:!0,rejectWithError:!1}).then(n=>{let i=n.body;0===i.manifests.length?a.h.dispatch({type:"APPLICATION_BUILD_NOT_FOUND",applicationId:e,branchId:t}):a.h.dispatch({type:"APPLICATION_BUILD_FETCH_SUCCESS",applicationId:e,branchId:t,locale:c,build:i})},n=>{let{status:i}=n;if(404===i)a.h.dispatch({type:"APPLICATION_BUILD_NOT_FOUND",applicationId:e,branchId:t});else null==E[t]&&(E[t]=new s.Ep),E[t].start(_+Math.random()*h,()=>{null!=l.A.getLibraryApplication(e,t)&&p(e,t)})})}}