1import{a as m,j as o,t as n}from"./index-B_Eg0Obd.js";import{u as f}from"./useEditorRouteAppId-DputfyAz.js";import{g as c}from"./getRoutePathCompilationsInProcess-Vs4fHP5L.js";import{S as q}from"./index-B3nYGjha.js";import{u as g}from"./usePageCheckerCompilationsThatRequireInput-CY5BEmnr.js";import"./lottie-loading-apphive-CnjcHCwh.js";import"./LottieBaseWeb-C5bQzb-x.js";import"./lottie-a22hL3wM.js";import"./buildUseClientApp-Ck-waPaG.js";const T=({element:a,loadingElement:u})=>{var s;const d=f(),{pathname:r}=m(),p=g(d),e=(s=p.data)==null?void 0:s.clientApp;if(p.loading||!e)return u||o.jsx(q,{});const i=(e.compilationActiveRequests||[]).find(t=>!!t.requiredStep);if(r.endsWith("requiresIosProvisioningProfile"))return o.jsx(n,{replace:!0,to:c({clientAppId:e.id,clientProjectId:e.project.id})});const l=["requiresBackgroundgeolocationKey","requiresIosProvisioningProfile"];if(i&&i.requiredStep&&!l.includes(i.requiredStep.name)){const t=`/project/${e.project.id}/app/${e.id}/compilations/request/${i.id}/${i.requiredStep.name}`;if(r!==t)return o.jsx(n,{replace:!0,to:t})}else{const t=c({clientAppId:e.id,clientProjectId:e.project.id});if(r!==t)return o.jsx(n,{replace:!0,to:t})}return a};export{T as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.