1import{G as o,J as c,Nc as i,Xb as d,f as s,s as n}from"./chunk-V2G3FQOC.js";var p=class a{constructor(e){this.http=e}submitFeedback(e){let t={sender:e.sender,message:e.message,type:e.type??"GENERAL",source:e.source,attachment:e.attachment??null};return this.http.post(`${i.apiBaseUrl}/feedbacks/`,t).pipe(n(r=>s(()=>this.#e(r))))}getAttachmentUploadUrl(e,t){return this.http.post(`${i.apiBaseUrl}/feedbacks/get-upload-url`,{feedback_id:e,filename:t}).pipe(n(r=>s(()=>this.#e(r))))}#e(e){console.error("[SupportService] request failed:",e);let t=e?.status??0;if(t===0)return new Error("Unable to reach the server. Please check your connection.");if(t===401||t===403)return new Error("Your session has expired. Please sign in again.");if(t===422)return new Error("That message could not be sent. Please make it shorter and check the email address.");let r=e?.error?.detail;return new Error(typeof r=="string"?r:"Failed to submit feedback. Please try again.")}static \u0275fac=function(t){return new(t||a)(c(d))};static \u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})};export{p as a};
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.