PageSourceSearch

https://www.casadoina.ro/build/assets/CareerJobForm-DatgiCcy.js

js casadoina.ro collected 2026-10-02 13:20:09 UTC 6,618 bytes, 1 lines download raw bytes

1import{H as a,I as d,M as e,R as t,X as n,ac as u,Y as m,Q as c,U as _,ad as g}from"./vueInstantSearch-BJW5nthO.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const b={name:"CareerJobForm",props:["career_job_id","source","honeypot_time"],data:function(){return{formFields:{rec_name:null,rec_time:null,name:"",phone:"",email:"",file_cv:"",terms_conditions:""},formErrors:{},successMessage:"",success:!1,message:null,sending:!1,file_cv_name:""}},created(){this.formFields.rec_time=this.honeypot_time},methods:{submitForm:function(){this.sending=!0;var o=new FormData;for(const i in this.formFields)this.formFields.hasOwnProperty(i)&&o.append(i,this.formFields[i]);o.append("rec_name",document.querySelector("input[name=rec_name]").value),o.append("rec_time",document.querySelector("input[name=rec_time]").value),o.append("source",this.source),o.append("career_job_id",this.career_job_id);const s=this;axios.post(route("pages.cariere.store-job-form"),o,{headers:{"Content-Type":"multipart/form-data"}}).then(function(i){s.successMessage=i.data.message,s.success=!0}).catch(function(i){console.log(i);var p=JSON.parse(JSON.stringify(i.response.data.errors)),f=Object.keys(p),r=[],l;for(l=0;l<f.length;l++){var v=f[l],h=f[l];r[v]=p[h][0]}s.formErrors=r}).finally(()=>s.sending=!1)},handleFileChange(o){this.formErrors.file_cv!==void 0&&typeof this.formFields.file_cv!==null&&(this.formErrors.file_cv=void 0),this.formFields.file_cv=o.target.files[0],this.file_cv_name=o.target.files[0].name}}},F={key:0,class:"contact-form"},k={key:0,class:"d-flex justify-content-center"},C={class:"spinner-border mr-5",role:"status"},E={class:"sr-only"},$={key:1},w={class:"mb-3 cs-select-wrapper"},M={class:"form-control"},N={value:"",disabled:"",selected:""},S={class:"mb-3"},j=["placeholder"],V={class:"text-danger text-xs"},x={class:"mb-3"},D=["placeholder"],J={class:"mb-3"},O=["placeholder"],P={class:"text-danger text-xs"},U={class:"mb-3 cs-select-wrapper"},T={class:"form-control"},q={value:"",disabled:"",selected:""},B={class:"mb-3"},I=["placeholder"],G={class:"mb-3"},L=["placeholder"],R={class:"mb-3"},X={class:"p-0"},Z={id:"label_attach_file",for:"attach-file"},z={id:"file_extentions_text"},H={key:0,class:"text-success text-xs"},Q={class:"text-danger text-xs"},Y={class:"mb-3"},A={class:"form-check"},K={class:"form-check-label",for:"grprCheck"},W={class:"text-danger text-xs my-2"},ee={class:"rec_name_contact_wrap",style:{display:"none"}},se={class:"mb-3"},oe={class:"cs-form-thankyou"},le={key:1},te={class:"mt-2 mb-2 form-text"};function ne(o,s,i,p,f,r){return a(),d("div",null,[this.success?(a(),d("div",le,[e("div",te,[s[21]||(s[21]=e("i",{class:"fas fa-check-circle mx-2"},null,-1)),c(" "+t(this.successMessage),1)])])):(a(),d("div",F,[this.sending?(a(),d("div",k,[e("div",C,[e("span",E,t(o.$lang("Loading...")),1)])])):(a(),d("div",$,[e("form",null,[e("div",w,[e("select",M,[e("option",N,t(o.$lang("Civilité")),1),s[7]||(s[7]=e("option",{value:"M."},"M.",-1)),s[8]||(s[8]=e("option",{value:"Mme"},"Mme",-1))]),s[9]||(s[9]=e("i",{class:"far fa-arrow-down-to-line"},null,-1))]),e("div",S,[n(e("input",{type:"text",class:"form-control","onUpdate:modelValue":s[0]||(s[0]=l=>o.formFields.name=l),placeholder:o.$lang("Nom")+"*"},null,8,j),[[u,o.formFields.name]]),n(e("div",V,[e("small",null,[s[10]||(s[10]=e("i",{class:"far fa-exclamation-circle"},null,-1)),c(" "+t(this.formErrors.name),1)])],512),[[m,o.formErrors.name!==void 0&&typeof o.formFields.name!==null]])]),e("div",x,[e("input",{type:"text",class:"form-control",placeholder:o.$lang("Prénom")},null,8,D)]),e("div",J,[n(e("input",{type:"email",class:"form-control","onUpdate:modelValue":s[1]||(s[1]=l=>o.formFields.email=l),placeholder:o.$lang("E-mail")+"*"},null,8,O),[[u,o.formFields.email]]),n(e("div",P,[e("small",null,[s[11]||(s[11]=e("i",{class:"far fa-exclamation-circle"},null,-1)),c(" "+t(this.formErrors.email),1)])],512),[[m,o.formErrors.email!==void 0&&typeof o.formFields.email!==null]])]),e("div",U,[e("select",T,[e("option",q,t(o.$lang("Niveau professionnel")),1),s[12]||(s[12]=e("option",{value:"junior"},"Junior",-1)),s[13]||(s[13]=e("option",{value:"confirme"},"Confirmé",-1)),s[14]||(s[14]=e("option",{value:"senior"},"Senior",-1)),s[15]||(s[15]=e("option",{value:"expert"},"Expert",-1))]),s[16]||(s[16]=e("i",{class:"far fa-arrow-down-to-line"},null,-1))]),e("div",B,[e("input",{type:"text",class:"form-control",placeholder:o.$lang("Dernier emploi")},null,8,I)]),e("div",G,[e("textarea",{class:"form-control cs-textarea",placeholder:o.$lang("Motivation"),rows:"5"},null,8,L)]),e("div",R,[e("div",X,[e("label",Z,t(o.$lang("Télécharger le CV")),1
1),e("input",{name:"file_complain",type:"file",id:"attach-file",accept:".pdf,.doc,.docx,.jpg,.png,.zip",onChange:s[2]||(s[2]=(...l)=>r.handleFileChange&&r.handleFileChange(...l))},null,32)]),e("div",z,t(o.$lang("(formats acceptés : PDF, DOCX, JPG, PNG, ZIP)")),1),o.file_cv_name?(a(),d("small",H,t(o.file_cv_name),1)):_("",!0),n(e("div",Q,[e("small",null,[s[17]||(s[17]=e("i",{class:"far fa-exclamation-circle"},null,-1)),c(" "+t(this.formErrors.file_cv),1)])],512),[[m,o.formErrors.file_cv!==void 0&&typeof o.formFields.file_cv!==null]])]),s[19]||(s[19]=e("hr",{class:"cs-form-separator"},null,-1)),e("div",Y,[e("div",A,[n(e("input",{class:"form-check-input",type:"checkbox",id:"grprCheck","onUpdate:modelValue":s[3]||(s[3]=l=>o.formFields.terms_conditions=l)},null,512),[[g,o.formFields.terms_conditions]]),e("label",K,t(o.$lang("J'accepte la politique de protection des données")),1)]),n(e("div",W,[e("small",null,[s[18]||(s[18]=e("i",{class:"far fa-exclamation-circle"},null,-1)),c(" "+t(this.formErrors.terms_conditions),1)])],512),[[m,o.formErrors.terms_conditions!==void 0&&typeof o.formFields.terms_conditions!==null]])]),s[20]||(s[20]=e("hr",{class:"cs-form-separator"},null,-1)),n(e("div",null,[e("div",ee,[n(e("input",{name:"rec_name",type:"text",id:"rec_name","onUpdate:modelValue":s[4]||(s[4]=l=>o.formFields.rec_name=l)},null,512),[[u,o.formFields.rec_name]]),n(e("input",{name:"rec_time",type:"text",id:"rec_name","onUpdate:modelValue":s[5]||(s[5]=l=>o.formFields.rec_time=l)},null,512),[[u,o.formFields.rec_time]])])],512),[[m,this.honeypot_time]]),e("div",se,[e("button",{type:"button",class:"btn btn-submit-job",onClick:s[6]||(s[6]=(...l)=>r.submitForm&&r.submitForm(...l))},t(o.$lang("POSTULEZ")),1)]),e("div",oe,[e("p",null,t(o.$lang("Merci pour votre candidature !")),1),e("p",null,t(o.$lang("Nous sommes ravis de votre intérêt pour SENSTRONIC et vous contacterons prochainement.")),1)])])]))]))])}const ae=y(b,[["render",ne]]);export{ae as default};

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.