1import{b as u,e as a,j as m,n as o}from"./chunk-2YMVBJJG.js";import{S as p,X as l}from"./chunk-QCTWED4T.js";var C=(()=>{class n{constructor(e,i){this.http=e,this.languageService=i,this.apiUrl=`${m.apiUrl}/contact-requests`}submitContactRequest(e){let i=new u({"Content-Type":"application/json"});return this.http.post(this.apiUrl,e,{headers:i})}submitContactForm(e){let i="";e.firstName&&e.lastName?i=`${e.firstName} ${e.lastName}`:e.firstName?i=e.firstName:e.lastName?i=e.lastName:e.name?i=e.name:e.fullName?i=e.fullName:e.contactName?i=e.contactName:e.customerName?i=e.customerName:e.clientName&&(i=e.clientName);let t={type:"contact",name:i,email:e.email,phone:e.phone,company:e.company,subject:e.subject,message:e.message,locale:this.languageService.getCurrentLocale()};return this.submitContactRequest(t)}submitApplicationForm(e,i){let t="";e.firstName&&e.lastName?t=`${e.firstName} ${e.lastName}`:e.firstName?t=e.firstName:e.lastName&&(t=e.lastName);let s={type:"application",name:t,email:e.email,phone:e.phone,company:e.company,subject:`Application for ${i||"Position"}`,message:e.message||`Application for ${i||"position"}`,position:i,experience:e.experience,resumePath:e.resumePath,locale:this.languageService.getCurrentLocale()};return this.submitContactRequest(s)}submitApplicationFormWithFiles(e,i,t){let s="";e.firstName&&e.lastName?s=`${e.firstName} ${e.lastName}`:e.firstName?s=e.firstName:e.lastName&&(s=e.lastName);let N={type:"application",name:s,email:e.email,phone:e.phone,company:e.company,subject:`Application for ${t||"Position"}`,message:e.coverLetter||e.message||`Application for ${t||"position"}`,position:t,experience:e.experience,locale:this.languageService.getCurrentLocale()},c=new FormData;
1return c.append("data",JSON.stringify(N)),i.forEach((r,h)=>{c.append("files",r)}),this.http.post(`${this.apiUrl}/with-files`,c)}submitProductRequestForm(e){let i="";e.firstName&&e.lastName?i=`${e.firstName} ${e.lastName}`:e.firstName?i=e.firstName:e.lastName?i=e.lastName:e.name&&(i=e.name);let t={type:"product-request",name:i,email:e.email,phone:e.phone,company:e.company,subject:e.subject||`Product Request: ${e.productName||"Custom Product"}`,message:e.message,productName:e.productName,quantity:e.quantity,budget:e.budget,locale:this.languageService.getCurrentLocale()};return this.submitContactRequest(t)}static{this.\u0275fac=function(i){return new(i||n)(l(a),l(o))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{C 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.