import{H as r,K as u,cf as n,bH as e}from"./app-k0jcl5PQ.js";import{D as g}from"./Ec7UK8uC.chunk.js";var l=(t=>(t[t.Other=0]="Other",t[t.SuggestImprovement=1]="SuggestImprovement",t[t.ReportBug=2]="ReportBug",t[t.RequestVideo=3]="RequestVideo",t[t.RaiseIssue=4]="RaiseIssue",t[t.GivePraise=5]="GivePraise",t[t.Footer=6]="Footer",t[t.RequestLivestream=7]="RequestLivestream",t))(l||{});const f={submitFeedback(t,s){return{url:"{gateway}/v1/feedback",key:"submit:feedback",type:r.POST,data:{...t,...s}}}},R={[e.AU]:"au",[e.NZ]:"nz",[e.UK]:"uk",[e.US]:"us",[e.CA]:"ca"},d={getUserInfo:(t,s)=>({id:t.id,username:t.username,email:t.email,userType:t.role===n.Admin?"Admin":"Staff",customerId:t.customerId,cvcId:s.crmId,customerName:s.name,instanceRegion:t.instanceRegion,contentRegion:t.contentRegion,firstName:t.givenName,lastName:t.familyName}),mapCountryCodeToTag:t=>R[t.toLowerCase()],getTags:(t,s,i,o)=>{const a=[s,...o];a.push(i?"student":"staff"),t.role===n.Admin&&a.push("administrator");const m=d.mapCountryCodeToTag(t.countryCode);return m&&a.push(m),a},categorizeFiles(t){return t.reduce((s,i)=>{const o=i.get("fileInfo");return g.isValidFile(i.get("file"),u.VIDEO)?s.videoUrls.push(o==null?void 0:o.url):s.imageUrls.push(o==null?void 0:o.url),s},{imageUrls:[],videoUrls:[]})}};export{f as F,d as a,l as b};
//# sourceMappingURL=vLEsZKXS.chunk.js.map
