Module 356645

1,053 characters · in no known chunk
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{n:()=>E});var r=n(562465),i=n(499979),s=n(451988),a=n(73153),o=n(773669),l=n(189081),u=n(645243),c=n(927813),d=n(652215);let _=10*c.A.Millis.MINUTE,f=10*c.A.Millis.MINUTE,p=+c.A.Millis.MINUTE,h={};function m(e,t){null==h[t]&&(h[t]=new s.Ep),h[t].start(_+Math.random()*f,()=>{null!=l.A.getLibraryApplication(e,t)&&E(e,t)})}async function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=o.default.locale;return a.h.dispatch({type:"APPLICATION_BUILD_FETCH_START",applicationId:e,branchId:t,locale:s}),n&&await (0,i.yy)(Math.random()*p),r.Bo.get({url:d.Rsh.APPLICATION_LIVE_BUILD(e,t),query:{platform:(0,u.O)(),locale:s},oldFormErrors:!0,rejectWithError:!1}).then(n=>{let r=n.body;0===r.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:s,build:r})},n=>{let{status:r}=n;404===r?a.h.dispatch({type:"APPLICATION_BUILD_NOT_FOUND",applicationId:e,branchId:t}):m(e,t)})}}