import{az as C,aj as U,bu as d,fG as g,Y as i,M as r,L as m}from"./app-k0jcl5PQ.js";const S="shared.hooks",h=m.encloseNamespace(S);function b(n,s,e,p){const t=i.safeUrlConcat(n,"manage"),u=i.safeUrlConcat(n,"exchange"),a=(o,c,l)=>i.safeUrlConcat(o,`${c}/${l}`);switch(s){case r.Subject:return i.safeUrlConcat(t,`subjects/presentations/${p}/classifications/${e}/edit`);case r.Video:return a(t,"videos",e);case r.Playlist:return a(t,"playlists",e);case r.Series:return a(t,"series",e);case r.Company:return a(t,"companies",e);case r.Interactive:return a(t,"interactives",e);case r.Clip:return a(t,"clips",e);case r.Category:return a(u,"categories",e)}}function I(){return h("openInCurationStudio")}function v(){var u,a;const n=C(U.currentUser()),{data:s}=C(((u=n.data)==null?void 0:u.id)&&U.groups((a=n.data)==null?void 0:a.id)),e=C(d.config()),p=[g.Curator,g.Content,g.Developer];function t(){return p.some(o=>s==null?void 0:s.data.find(c=>c.name===o))}return{openInCurationStudioLabel:I(),isUserCurator:t(),getOpenInCurationStudioLink:(o,c,l)=>{var f;return b((f=e.data)==null?void 0:f.curatorUrl,o,c,l)}}}export{I as a,b as g,v as u};
//# sourceMappingURL=DAIetGMf.chunk.js.map
