1import{n as r,$ as l}from"./index-DaiKoQHB.js";import{a as s}from"./arrowBack-DytmZg7E.js";import"./jquery.mask-AJvNEzFn.js";const i={name:"FormCandidate",data(){return{form:{name:"",email:"",phone:"",linkedin:"",facebook:"",portfolio:"",message:""}}},computed:{guestName(){return this.$store.getters.guestFirstName}},components:{arrowBack:s},mounted(){this.log("mounted: "+this.$options.name),this.$store.commit("setMenuClass","");let o=this;l(".phone").mask("00 0000.00009",{onChange(e){o.form.phone=e},placeholder:"Telefone"})},beforeDestroy(){l(".phone").unmask()},methods:{goBack(){this.$router.go(-1)},goToThanksPage(o){let e=this;o.preventDefault(),window.scroll(0,0),this.guestName||this.$store.commit("setGuestName",this.form.name);let a=[{name:"identificador",value:"contato_candidato"},{name:"token_rdstation",value:"76d813f385092cd1c7a5e954a4c73c5e"},{name:"nome",value:this.$store.state.guestName},{name:"tipo",value:this.$store.state.candidate.type},{name:"vaga",value:this.$store.state.candidate.position},{name:"email",value:this.form.email},{name:"telefone",value:this.form.phone},{name:"linkedin",value:this.form.linkedin},{name:"facebook",value:this.form.facebook},{name:"portfolio",value:this.form.portfolio},{name:"mensagem",value:this.form.message}];return l(".loading").removeClass("hideL"),RdIntegration.post(a,function(){e.$router.push("/thanks")}),!1},resizeTextarea(o){let e=o.target;setTimeout(function(){e.style.cssText="height:auto;",e.style.cssText="height:"+(e.scrollHeight+2)+"px"},0)},chekEmptyField(o){let e=l(o.target);e.val().length>0?e.parent().addClass("white"):e.parent().removeClass("white")}}};var n=function(){var e=this,a=e._self._c;return a("div",{staticClass:"form-candidate FormCandidate.vue full-container block"},[a("div",{staticClass:"form__content"},[a("a",{staticClass:"go-back",attrs:{href:"javascript:void(0);"},on:{click:e.goBack}},[a("arrowBack",{attrs:{id:"arrow-back"}})],1),a("h1",{staticClass:"title-primary animated fadeInUp delay1000ms"},[e._v("Pra finalizar, preenche teus dados.")]),a("form",{staticClass:"animated fadeInUp delay1500ms",on:{submit:e.goToThanksPage}},[e.guestName?e._e():a("div",{staticClass:"form-group fake-label"},[a("input",{directives:[{name:"fakelabel",rawName:"v-fakelabel"},{name:"model",rawName:"v-model",value:e.form.name,expression:"form.name"}],staticClass:"bold-control",attrs:{type:"text",placeholder:"Nome",maxlength:"50",required:""},domProps:{value:e.form.name},on:{keyup:e.chekEmptyField,input:function(t){t.target.composing||e.$set(e.form,"
1name",t.target.value)}}}),a("label",[e._v("Nome")])]),a("div",{staticClass:"form-group fake-label"},[a("input",{directives:[{name:"fakelabel",rawName:"v-fakelabel"},{name:"model",rawName:"v-model",value:e.form.email,expression:"form.email"}],staticClass:"bold-control",attrs:{type:"email",placeholder:"E-mail",maxlength:"50",required:""},domProps:{value:e.form.email},on:{keyup:e.chekEmptyField,input:function(t){t.target.composing||e.$set(e.form,"email",t.target.value)}}}),a("label",[e._v("E-mail")])]),a("div",{staticClass:"form-group fake-label"},[a("input",{directives:[{name:"fakelabel",rawName:"v-fakelabel"}],staticClass:"bold-control phone",attrs:{pattern:"[0-9]{2} [0-9]{4}.[0-9]{4}([0-9])?",type:"text",placeholder:"00 0000.00000",maxlength:"13",required:""},on:{keyup:e.chekEmptyField,blur:e.chekEmptyField}}),a("label",[e._v("Telefone")])]),a("div",{staticClass:"form-group fake-label"},[a("input",{directives:[{name:"fakelabel",rawName:"v-fakelabel"},{name:"model",rawName:"v-model",value:e.form.linkedin,expression:"form.linkedin"}],staticClass:"bold-control",attrs:{type:"text",placeholder:"LinkedIn",minlength:"5",maxlength:"200",required:""},domProps:{value:e.form.linkedin},on:{keyup:e.chekEmptyField,input:function(t){t.target.composing||e.$set(e.form,"linkedin",t.target.value)}}}),a("label",[e._v("Linkedin")])]),a("div",{staticClass:"form-group fake-label"},[a("input",{directives:[{name:"fakelabel",rawName:"v-fakelabel"},{name:"model",rawName:"v-model",value:e.form.facebook,expression:"form.facebook"}],staticClass:"bold-control",attrs:{type:"text",placeholder:"Facebook",minlength:"5",maxlength:"200"},domProps:{value:e.form.facebook},on:{keyup:e.chekEmptyField,input:function(t){t.target.composing||e.$set(e.form,"facebook",t.target.value)}}}),a("label",[e._v("Facebook")])]),a("div",{staticClass:"form-group fake-label"},[a("input",{directives:[{name:"fakelabel",rawName:"v-fakelabel"},{name:"model",rawName:"v-model",value:e.form.portfolio,expression:"form.portfolio"}],staticClass:"bold-control",attrs:{type:"text",placeholder:"Portfólio",maxlength:"200"},domProps:{value:e.form.portfolio},on:{keyup:e.chekEmptyField,input:function(t){t.target.composing||e.$set(e.form,"portfolio",t.target.value)}}}),a("label",[e._v("Portfólio")])]),a("div",{staticClass:"form-group fake-label textarea"},[a("textarea",{directives:[{name:"fakelabel",rawName:"v-fakelabel"},{name:"model",rawName:"v-model",value:e.form.message,expression:"form.message"}],staticClass:"bold-control",attrs:{placeholder:"Quer falar algo mais? Somos todos ouvidos...",minlength:"10",maxlength:"1024"},domProps:{value:e.form.message},on:{keyup:e.chekEmptyField,keydown:e.resizeTextarea,input:function(t){t.target.composing||e.$set(e.form,"message",t.target.value)}}}),a("label",[e._v("Mensagem")])]),a("button",{staticClass:"btn btn-bold btn-lg btn-padding-lg",attrs:{type:"submit"}},[e._v("enviar")])])])])}
1,m=[],d=r(i,n,m,!1,null,null);const u=d.exports;export{u 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.