import{L as i,H as u,dV as o}from"./app-k0jcl5PQ.js";import{C as l}from"./80MCcucU.chunk.js";const b="shared.shared-utils",y={getEnglishName(e,t){var n;const s=e.language,r=t==null?void 0:t.filter(g=>g.language!==s);let a;return r.length>0?a=l.getFullEnglishName(s):a=l.getEnglishName(s),(n=e.metadata)!=null&&n.autoGenerated?i.getPhrase(b,"autoGeneratedSubtitle",{name:a}):a}},d={subtitle(e){return{url:`{gateway}/v1/objects/${e}`,key:`subtitles:${e}`}},videoSubtitles(e){return{url:`{gateway}/v1/objects/${e}/subtitles?query=customer`,key:`videos:${e}:subtitles`}},addSubtitle(e,t,s,r,a){return{url:`{gateway}/v1/objects/${e}/subtitles`,key:`create:subtitle:${t.fileId||o.getRandomInt()}`,data:t,type:u.POST,invalidationKeys:`videos:${e}:subtitles`,success:s,error:r,always:a}},deleteSubtitle(e,t,s,r,a){return{url:`{gateway}/v1/objects/${e}`,key:`delete:subtitle:${e}`,type:u.DELETE,invalidationKeys:`videos:${t}:subtitles`,success:s,error:r,always:a}}};export{y as S,d as a};
//# sourceMappingURL=6pQ09KdH.chunk.js.map
