1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[173],{3906:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/trabalhe-conosco",function(){return c(2758)}])},3266:function(a,b,c){"use strict";c.d(b,{J:function(){return e}});var d=c(5893);function e(a){var b=a.msg,c=a.hasError;return void 0===c||c?(0,d.jsx)("label",{children:(0,d.jsx)("span",{className:"text-xs font-semibold text-red-600",children:b})}):(0,d.jsx)(d.Fragment,{})}c(7294)},8006:function(a,b,c){"use strict";c.d(b,{F:function(){return h}});var d=c(1799),e=c(9396),f=c(5893);c(7294);var g=c(3266);function h(a){var b,c=a.label,h=a.name,i=a.register,j=a.errors,k=a.required,l=a.disabled,m=a.placeholder,n=a.type;return(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{htmlFor:h,className:"label",children:c}),(0,f.jsx)("input",(0,e.Z)((0,d.Z)({type:void 0===n?"text":n,id:h,placeholder:void 0===m?" ":m,style:j[h]&&{border:"1px solid red"}},i(h)),{className:"input-text",disabled:void 0!==l&&l,required:void 0!==k&&k})),(0,f.jsx)(g.J,{msg:null===(b=j[h])|| void 0===b?void 0:b.message,hasError:j[h]})]})}},3795:function(a,b,c){"use strict";c.d(b,{o:function(){return k}});var d=c(1799),e=c(9396),f=c(5893);c(7294);var g=c(6627),h=c.n(g);function i(a){var b=a.name,c=a.label;return(0,f.jsx)("label",{htmlFor:b,className:"label",children:c})}var j=c(3266);function k(a){var b,c=a.register,g=a.errors,k=a.name,l=a.label,m=a.required,n=a.mask,o=a.disabled,p=a.placeholder;return(0,f.jsxs)("div",{children:[(0,f.jsx)(i,{label:l,name:k}),(0,f.jsx)(h(),(0,e.Z)((0,d.Z)({mask:n,type:"text",alwaysShowMask:!1,placeholder:void 0===p?" ":p,style:g[k]&&{border:"1px solid red"}},c(k,{required:{message:"Campo obrigat\xf3rio",value:void 0!==m&&m}})),{className:"input-text",disabled:void 0!==o&&o})),(0,f.jsx)(j.J,{msg:null===(b=g[k])|| void 0===b?void 0:b.message,hasError:g[k]})]})}},114:function(a,b,c){"use strict";c.d(b,{Z:function(){return f}});var d=c(5893),e=c(9590);function f(a){var b=a.title;return(0,d.jsx)("div",{className:"py-5 border-b",children:(0,d.jsxs)(e.W,{children:[(0,d.jsx)("span",{className:"text-zinc-800",children:"Voc\xea est\xe1 em"}),(0,d.jsx)("h2",{children:b})]})})}},2758:function(a,b,c){"use strict";c.r(b),c.d(b,{default:function(){return J}});var d=c(5893),e=c(7568),f=c(603),g=c(4051),h=c.n(g),i=c(1815),j=c(6312),k=c(7294),l=c(7536),m=c(6501),n=c(3448),o=c(8006),p=c(5079),q=c(3795),r=c(1799),s=c(9396),t=c(3266),u=c(1954);function v(a){var b,c=a.label,e=a.name,f=a.register,g=a.errors,h=(a.required,a.disabled),i=a.placeholder,j=void 0===i?" ":i,l=a.setFile,n=a.file;return(0,k.useEffect)(function(){if((null==n?void 0:n.length)<0){if(n[0].size>1e7){m.ZP.error("Adicione um arquivo com no m\xe1ximo 10MB."),l([]);return}if((null==n?void 0:n.length)>1){m.ZP.error("Apenas um arquivo permitido"),l([]);return}}},[n]),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"label",children:c}),(0,d.jsxs)("label",{htmlFor:e,className:"input-text h-11 relative",children:[(null==n?void 0:n.length)>0?"".concat(null==n?void 0:n.length," anexos"):j,(0,d.jsx)("input",(0,s.Z)((0,r.Z)({accept:"application/pdf,application/vnd.ms-excel",type:"file",id:e,multiple:!0,placeholder:j,style:g[e]&&{border:"1px solid red"}},f(e)),{className:"hidden",disabled:void 0!==h&&h,onChange:function(a){l(a.target.files)}})),(0,d.jsx)(u.JO,{icon:"ant-design:paper-clip-outlined",className:"text-2xl text-brand-blue absolute right-2 top-1/2 transform -translate-y-1/2"})]}),(0,d.jsx)(t.J,{msg:null===(b=g[e])|| void 0===b?void 0:b.message,hasError:g[e]})]})}function w(a){var b=a.msg;return(0,d.jsx)("label",{children:(0,d.jsx)("span",{className:"text-xs font-semibold text-red-600",children:b})})}var x=c(9669),y=c.n(x),z=n.Ry({name:n.Z_().nonempty("Nome \xe9 obrigat\xf3rio"),email:n.Z_().email("Email inv\xe1lido").nonempty("Email \xe9 obrigat\xf3rio"),phone:n.Z_().nonempty("Telefone \xe9 obrigat\xf3rio"),curriculum:n.Z_().nonempty("Curr\xedculo \xe9 obrigat\xf3rio"),position:n.Z_().nonempty("Descreva o cargo pretendido")});function A(){var a,b=(0,l.cI)({resolver:(0,j.F)(z)}),c=b.register,g=b.handleSubmit,n=(b.watch,b.formState),r=n.errors,s=n.isSubmitting,t=(0,f.Z)(k.useState([]),2),u=t[0],x=t[1],A=(0,f.Z)(k.useState(!1),2),B=A[0],C=A[1],D=(a=(0,e.Z)(h().mark(function a(b){var c,d,e;return h().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(0!==u.length){a.next=3;break}return C(!0),a.abrupt("return");case 3:return C(!1),b.curriculum=u[0],c=m.ZP.loading("Aguarde..."),a.prev=6,(d=new FormData).append("nome_remetente",b.name),d.append("email_remetente",b.email),d.append("telefone",b.phone),d.append("cargo_pretendido",b.position),d.append("curriculo",b.curriculum),d.append("assunto","Trabalhe Conosco"),d.append("nome_destinatario","Unitapaj\xf3s"),d.append("email_destinatario","[email protected]"),d.append("conteudo_html",'<div>\n <h2 style="font-size:\'20px\'">Solicita\xe7\xe3o de contato via site<h2>\n <p style="font-size:16px;font-weight: normal;"><strong>Nome:</strong> '.concat(b.name,'<p>\n <p style="font-size:16px;font-weight: normal;"><strong>
1E-mail:</strong> ').concat(b.email,'<p>\n <p style="font-size:16px;font-weight: normal;"><strong>Telefone:</strong> ').concat(b.phone,'<p>\n <p style="font-size:16px;font-weight: normal;"><strong>Cargo:</strong> ').concat(b.position,"<p>\n <div>")),a.next=19,y().post("https://email-service.sitebeta.com.br/api/send-email",d);case 19:e=a.sent,m.ZP.success("Formul\xe1rio enviado com sucesso!"),a.next=27;break;case 23:a.prev=23,a.t0=a.catch(6),(0,i.P)(a.t0),m.ZP.error("Erro ao enviar o formul\xe1rio.");case 27:return a.prev=27,m.ZP.dismiss(c),a.finish(27);case 30:case 31:case"end":return a.stop()}},a,null,[[6,23,27,30]])})),function(b){return a.apply(this,arguments)});return(0,d.jsxs)("form",{className:"",onSubmit:g(D),children:[(0,d.jsx)(o.F,{placeholder:"Nome Respons\xe1vel",name:"name",register:c,errors:r}),(0,d.jsx)(q.o,{mask:"(99) 9999-9999",placeholder:"Telefone",name:"phone",register:c,errors:r}),(0,d.jsx)(o.F,{placeholder:"Email",name:"email",type:"email",register:c,errors:r}),(0,d.jsx)(o.F,{placeholder:"Cargo Pretendido",name:"position",type:"text",register:c,errors:r}),(0,d.jsx)(v,{placeholder:"Anexar Curr\xedculo",name:"file",register:c,errors:r,setFile:x,file:u}),B&&(0,d.jsx)(w,{msg:"Adicione um arquivo v\xe1lido"}),(0,d.jsx)(p.z,{variant:"brandPrimary",full:!0,type:"submit",disabled:s,children:"Enviar"})]})}var B=c(9590),C=c(114),D=c(2546),E=c(6523),F=c(2420),G=c(9008),H=c.n(G),I=c(6976);function J(){var a=(0,I.ZP)("vagas",function(){return F.L.getSingle("trabalhe_conosco")}).data;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(H(),{children:(0,d.jsx)("title",{children:"Unitapaj\xf3s | Trabalhe Conosco"})}),(0,d.jsx)(C.Z,{title:"Trabalhe Conosco"}),(0,d.jsx)("main",{className:"py-20",children:(0,d.jsx)(B.W,{children:(0,d.jsxs)("div",{className:"flex flex-col lg:grid lg:grid-cols-10 gap-10",children:[(0,d.jsxs)("div",{className:"col-span-5",children:[(0,d.jsx)("div",{className:"text-center lg:text-start mb-5",children:(0,d.jsx)("h2",{className:"mb-2",children:"Trabalhe Conosco"})}),(0,d.jsx)("div",{children:(0,d.jsx)(A,{})})]}),(0,d.jsx)("img",{src:"/img/trabalhe-conosco.png",alt:"",className:"col-span-5 object-cover h-full w-full rounded-md object-center"}),(0,d.jsxs)("div",{className:"col-span-10 overflow-hidden",children:[(0,d.jsx)("div",{children:(0,d.jsxs)("div",{className:"flex md:flex-row flex-col justify-between gap-2 md:gap-5",children:[(0,d.jsx)("div",{className:"text-center lg:text-start mb-2",children:(0,d.jsx)("h2",{children:"Ultimas ofertadas"})}),(0,d.jsxs)("a",{href:"",className:"flex gap-1 items-center",children:[(0,d.jsx)("div",{className:"bg-brand-secondary h-6 w-6 rounded-full flex items-center justify-center",children:(0,d.jsx)("img",{src:"/arrow-icon.png",alt:">",className:"rotate-[90deg] w-[75%] object-contain"})}),(0,d.jsx)("strong",{children:"Ver todas"})]})]})}),(0,d.jsx)("div",{children:(0,d.jsx)(D.tq,{className:"pt-10",loop:!0,autoplay:{delay:3e3,disableOnInteraction:!1},slidesPerView:1,breakpoints:{1:{slidesPerView:1,spaceBetween:16},720:{slidesPerView:2,spaceBetween:16},991:{slidesPerView:3,spaceBetween:16}},pagination:!0,modules:[E.tl],children:a&&a.data.vagas.map(function(a){return(0,d.jsxs)(D.o5,{className:"pb-16",children:[(0,d.jsxs)("div",{className:"bg-white h-60 md:py-3 md:px-8 py-8 px-16 rounded-t-2xl border-b-0 border border-[#353535]",children:[(0,d.jsx)("strong",{className:"text-xl",children:a.titulo}),(0,d.jsxs)("p",{className:"text-xl",children:[a.numero_de_vagas," Vagas"]}),(0,d.jsx)("p",{className:"text-lg sm:text-sm",children:a.descricao_breve&&a.descricao_breve.length>120?a.descricao_breve.slice(0,120)+"...":a.descricao_breve})]}),(0,d.jsxs)("a",{className:"flex cursor-pointer justify-between items-center bg-brand-secondary rounded-b-2xl w-full py-3 px-8",href:a.link_da_vaga.url,target:"_blank",rel:"noreferrer",children:[(0,d.jsx)("h2",{className:"text-white text-lg text-center",children:a.localizacao}),(0,d.jsx)("img",{src:"/img/icons/nextIconWhite.png",alt:""})]})]},a.titulo)})})})]})]})})})]})}},1815:function(a,b,c){"use strict";c.d(b,{P:function(){return f}});var d=c(1955),e=c(6501);function f(a){var b,c;if((null==a?void 0:null===(b=a.response)|| void 0===b?void 0:b.status)===401)return e.ZP.error("Sess\xe3o expirada, fa\xe7a login novamente"),d.Z.remove("token"),window.location.href="/";try{e.ZP.error(null==a?void 0:null===(c=a.response)|| void 0===c?void 0:c.data.message)}catch(f){e.ZP.error("Ocorreu um erro no servidor, tente novamente mais tarde")}}}},function(a){a.O(0,[786,546,286,495,481,774,888,179],function(){var b;return a(a.s=3906)}),_N_E=a.O()}])
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.