import{az as c,aI as p,t as o,c1 as i,c3 as d,v as f,ao as n,M as l,f0 as m,dK as g}from"./app-k0jcl5PQ.js";import{u as R}from"./CAxN5LKv.chunk.js";import"./DIAJ896Y.chunk.js";function h(r,e){return r===l.Clip?m.clip(e):g.video(e)}function k(r){const e=c(h(r.type,r.objectId));return R(e),p.useEffect(()=>{var s,a;if(!e.hasCompleted||e.hasError)return;if(!e.data){o.throw(new i);return}if(!((a=(s=e.data.resources)==null?void 0:s.data)==null?void 0:a.find(u=>u.id.toString()===r.resourceId.toString()))){o.throw(new i);return}const t=d.getAppLink(e.data,{},null);f.trigger({...t,params:{...t.params,resourceId:r.resourceId}},{replace:!0})},[e.hasCompleted]),n.jsx(n.Fragment,{})}export{k as ResourceRedirectView};
//# sourceMappingURL=CrkJnT-Q.chunk.js.map
