1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4595],{43095:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>_});var n=a(63857),r=a(43081),c=a.n(r),o=a(14232),l=a(75672),s=a(54768),i=a(86611),p=a(22763),m=a(89099),u=a(48230),d=a.n(u),h=a(29264),f=a(34846),x=a(37876);let _=function(){var e,t=(0,f.Bd)("createLink").t,a=(0,m.useRouter)(),r=(0,o.useState)(""),u=r[0],_=r[1],g=(0,o.useState)(""),j=g[0],N=g[1],v=(0,o.useState)(),b=v[0],w=v[1];(0,o.useEffect)(function(){var e=JSON.parse(localStorage.getItem("contate-me-register-link")||"{}");e?(w(e),(new Date().getTime()-e.date)/1e3>120&&localStorage.removeItem("contate-me-register-link")):a.push("/")},[]);var k=(e=(0,n.A)(c().mark(function e(t){var n,r,o;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),n=window.location.href.includes("webapp-rc.contate.me")?"https://rc-account.umbler.com":"https://account.umbler.com",r="email=".concat(encodeURIComponent(j),"&name=").concat(encodeURIComponent(u),"&phone=").concat(encodeURIComponent(b.phone.slice(2))),o=encodeURIComponent(window.location.href),h.A.get("/auth/env/token").then(function(e){if(e.data){var t=e.data;h.A.get("/auth/user?email=".concat(j),{headers:{Authorization:"Bearer ".concat(t)}}).then(function(e){e.data.user?a.replace("".concat(n,"/SignIn?App=ContateMe&").concat(r,"&returnUrl=").concat(o)):a.replace("".concat(n,"/SignUp?App=ContateMe&").concat(r,"&returnUrl=").concat(o))}).catch(function(e){"Usu\xe1rio n\xe3o cadastrado"===e.response.data.message&&a.replace("".concat(n,"/SignUp?App=ContateMe&").concat(r,"&returnUrl=").concat(o))})}});case 5:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)});return(0,x.jsx)(i.W,{title:t("validate_whatsapp_link_title"),children:(0,x.jsxs)(s.UC,{children:[(0,x.jsx)("div",{className:"mx-auto",children:(0,x.jsx)(d(),{href:"/",children:(0,x.jsx)(p.k,{height:54})})}),(0,x.jsx)("h3",{className:"text-white text-center h5 mt-4 pt-2 fs-3",children:(0,x.jsxs)("strong",{children:[t("link_ready_prompt1")," ",(0,x.jsx)("br",{})," ",t("link_ready_prompt2")]})}),(0,x.jsxs)("form",{action:"",className:"p-4",style:{maxWidth:"500px",margin:"0 auto",width:"100%"},onSubmit:k,children:[(0,x.jsxs)(l.q6,{children:[(0,x.jsx)("label",{htmlFor:"name",className:"form-label",children:t("name_label")}),(0,x.jsxs)("div",{className:"input-group",children:[(0,x.jsx)("span",{className:"input-group-addon",children:(0,x.jsx)("i",{className:"far fa-user"})}),(0,x.jsx)("input",{type:"text",required:!0,className:"form-control form-control-lg",id:"name",placeholder:t("name_placeholder"),onChange:function(e){return _(e.target.value)}})]})]}),(0,x.jsxs)(l.q6,{children:[(0,x.jsx)("label",{htmlFor:"email",className:"form-label",children:t("email_label")}),(0,x.jsxs)("div",{className:"input-group",children:[(0,x.jsx)("span",{className:"input-group-addon",children:(0,x.jsx)("i",{className:"far fa-envelope"})}),(0,x.jsx)("input",{type:"email",required:!0,className:"form-control form-control-lg",id:"email",placeholder:t("email_placeholder"),onChange:function(e){return N(e.target.value)}})]})]}),(0,x.jsx)("div",{className:"d-grid mx-auto mt-5 mb-3",children:(0,x.jsx)("button",{className:"btn btn-primary btn-lg",children:t("send_link_button")})}),(0,x.jsxs)("p",{className:"mt-5 mb-0 pb-0 text-center",style:{color:"#6F7380",fontSize:"0.8rem"},children:[t("privacy_policy_text1"),(0,x.jsx)("a",{href:t("privacy_policy_link"),className:"ms-1",children:t("privacy_policy_text2")}),"."]})]})]})})}},90505:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/validar-link-de-whatsapp",function(){return a(43095)}])}},e=>{e.O(0,[8230,2188,4883,636,6593,8792],()=>e(e.s=90505)),_N_E=e.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.