PageSourceSearch

https://exame.com/_next/static/chunks/9729.6ca155cc262f6c67.js

js exame.com collected 2026-09-24 07:19:13 UTC 3,007 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9729],{39729:function(e,a,s){s.r(a),s.d(a,{default:function(){return f}});var l=s(57437),r=s(2265),i=s(22744),t=s(7261),o=s(75705),c=s(84591),n=s(26142),d=s(13042),m=s(46232),u=s(59145);let b={email:"",isSubmitting:!1,hasError:!1},h={position:"bottom-right",autoClose:1500};function f(e){let{description:a,onUpdateSurveyAnswerWithEmail:s,subtitle:f,surveyTrackingData:p,title:x}=e,[g,v]=(0,r.useState)(b);(0,r.useEffect)(()=>{(0,m.Z)({event:u.Iy.survey_opened,event_data:u.Iy.lead_thank_you_page,...p})},[p]);let y=(0,r.useCallback)(e=>{v(a=>({...a,...e}))},[]),k=(0,r.useCallback)(e=>{y({email:e,hasError:!!e&&!(0,d.oH)(e)})},[y]),E=(0,r.useCallback)(()=>{t.Am.success("E-mail cadastrado com sucesso.",h),y(b)},[y]),N=(0,r.useCallback)(e=>{console.error("Newsletter Form Error:",e),t.Am.error("Um erro foi encontrado, tente novamente.",h),y({isSubmitting:!1})},[y]),_=(0,r.useCallback)(()=>!!(g.email.trim()&&(0,d.oH)(g.email))||(y({hasError:!0}),!1),[g.email,y]),j=(0,r.useCallback)(async e=>{if(e.preventDefault(),_()&&!g.isSubmitting){y({isSubmitting:!0,hasError:!1}),s(g.email),(0,m.Z)({event:u.Iy.survey_submitted_lead,event_data:u.Iy.lead_thank_you_page,email:g.email,...p});try{let a=new FormData(e.currentTarget);if(await (0,n.Mt)(a))E();else throw Error("Invalid response from Salesforce")}catch(e){N(e)}}},[g.email,g.isSubmitting,_,y,s,p,E,N]),w=g.isSubmitting||!g.email.trim()||g.hasError;return(0,l.jsxs)("div",{className:"flex w-full flex-col bg-colors-background",children:[(0,l.jsxs)("header",{className:"flex flex-col gap-2 border-0 border-b border-solid border-colors-divider pb-4",children:[(0,l.jsx)(i.Tcr,{className:"fill-feedback-success",size:24,"aria-hidden":"true"}),(0,l.jsx)(c.Z,{as:"h2",className:"title-medium",children:x})]}),(0,l.jsxs)("div",{className:"my-7 flex flex-col gap-2",children:[f&&(0,l.jsx)(c.Z,{as:"h3",className:"headline-extra-small",children:f}),a&&(0,l.jsx)(c.Z,{as:"p",className:"body-medium",children:a})]}),(0,l.jsxs)("form",{onSubmit:j,className:"flex w-full gap-4",noValidate:!0,children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(o.ZP,{type:"email",label:"E-mail de contato",name:"email",value:g.email,error:g.hasError,errorMessage:"Por favor, preencha com um email v\xe1lido",onChange:e=>k(e.target.value),disabled:g.isSubmitting,required:!0,"aria-describedby":"email-help-text",autoComplete:"email"})}),(0,l.jsx)("button",{type:"submit",disabled:w,className:"flex h-9 w-[55px] items-center justify-center rounded-full bg-colors-exame transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50","aria-label":g.isSubmitting?"Enviando...":"Enviar email",children:(0,l.jsx)(i.hdK,{className:"fill-colors-background",size:20,"aria-hidden":"true"})})]}),(0,l.jsx)(c.Z,{className:"body-small mt-2 md:w-[400px]",id:"email-help-text",children:"Ao disponibilizar seu contato, voc\xea estar\xe1 apto a participar de futuras pesquisas no site."})]})}}}]);

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.