PageSourceSearch

https://exame.com/_next/static/chunks/8754.5f2637fce5a9cdd1.js

js exame.com collected 2026-09-24 07:19:07 UTC 5,057 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8754],{8754:function(e,a,t){t.r(a),t.d(a,{default:function(){return f}});var o=t(57437),n=t(64131),r=t(30166),l=t(2265),i=t(16682),s=t.n(i),c=t(7261),d=t(14760),m=t(75705),u=t(84591),p=t(35551),_=t(19595),b=t(26142),g=t(46232);let h=(0,r.default)(()=>t.e(8759).then(t.bind(t,10099)),{loadableGenerated:{webpack:()=>[10099]},ssr:!0}),v=[{label:"Nome",id:"nome",type:"text",value:""},{label:"E-mail",id:"email",type:"email",value:""},{label:"Telefone",id:"telefone",type:"tel",value:""},{label:"CPF",id:"cpf",type:"text",value:""},{label:"Cargo",id:"cargo",type:"text",value:""},{label:"Empresa",id:"empresa",type:"text",value:""}];function f(e){let{onClickDownloadModal:a,currentDownloadFile:t,eventName:r="exmEvent"}=e,[i,f]=(0,l.useState)(v),[x,w]=(0,l.useState)(!1),k="nova"===n.Z.get("teste_ab"),{secondDownloadModalData:y,onClickSecondDownloadModal:Z,openSecondDownloadModal:C,setOpenSecondDownloadModal:j}=(0,p.Z)(""),N=e=>{let{name:a,value:t}=e.currentTarget;f(i.map(e=>e.id===a?{...e,value:t}:e))},M=async e=>{e.preventDefault(),w(!0);try{let a=e.target,o=new FormData(a);if(await (0,b.Mt)(o)){if("exmEvent"===r){c.Am.success("Dados cadastrados com sucesso.",{position:"bottom-right",autoClose:1500}),f(v),(0,g.Z)({event:"section_button_clicked",section_name:"neex_ranking_cta_download_subscription"}),(0,_.qQ)("cta-download-subscription-ranking","true"),setTimeout(()=>{window.open(t,"_blank")},1500);return}"mm"===r&&(j(!0),f(v),(0,g.Z)({event:"section_button_clicked",section_name:"mm_home_magazine_cta_download_subscription"}),(0,_.qQ)("cta-download-subscription-mm","true"),setTimeout(()=>{window.open(t,"_blank")},2500));return}c.Am.error("Um erro foi encontrado, tente novamente.",{position:"bottom-right",autoClose:1500})}catch(e){throw console.error("\uD83D\uDE80 ~ file: Newsletter.tsx:56 ~ onSubmitFormNewsletter ~ error:",e),Error("Um erro foi encontrado, tente novamente.")}finally{w(!1)}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(u.Z,{as:"h2",className:"headline-small text-center dark:text-colors-dark-text",children:"Preencha seus dados para finalizar o download"}),(0,o.jsxs)("form",{className:"my-4 flex flex-col gap-4",onSubmit:M,children:[i.map(e=>"phone"!==e.id||k?"cpf"===e.id?(0,o.jsx)(s(),{mask:"999.999.999-99",value:e.value,onChange:N,children:(0,o.jsx)(m.ZP,{label:e.label,name:e.id,type:e.type,error:!1,errorMessage:"Mensagem de erro"})},e.id):"telefone"===e.id?(0,o.jsx)(s(),{mask:"(99) 99999-9999",value:e.value,onChange:N,children:(0,o.jsx)(m.ZP,{label:e.label,name:e.id,type:e.type,error:!1,errorMessage:"Mensagem de erro"})},e.id):(0,o.jsx)(m.ZP,{label:e.label,name:e.id,type:e.type,error:!1,errorMessage:"Mensagem de erro",value:e.value,onChange:N},e.id):null),(0,o.jsx)(u.Z,{className:"body-small dark:text-colors-dark-text",children:"“Ao compartilhar seus dados, voc\xea poder\xe1 receber comunica\xe7\xf5es do BTG Pactual e da Exame. O BTG Pactual e a Exame poder\xe3o compartilhar e tratar seus dados pessoais para operacionalizar o oferecimento de benef\xedcios”."}),(0,o.jsxs)("div",{className:"mt-6 flex gap-6",children:[(0,o.jsx)(d.Z,{onClick:a,className:"w-full",type:"tertiary",children:"Cancelar"}),(0,o.jsx)(d.Z,{className:"w-full",type:"primary",htmlType:"submit",disabled:!1,children:x?"Enviando...":"Download"})]})]})]}),(0,o.jsx)(h,{description:y.description,onClickModal:Z,openModal:C,title:y.title,trackingName:y.trackingName,url:y.url})]})}},35551:function(e,a,t){t.d(a,{Z:function(){return i}});var o=t(2265),n=t(19595),r=t(46232),l=t(26621);function i(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mm_home",[t,i]=(0,o.useState)(!1),[s,c]=(0,o.useState)(!1),[d,m]=(0,o.useState)(!1),{setIsCopied:u}=(0,l.Z)(),p=(0,n.fp)("cta-download-subscription-mm");return{onClickDownloadModal:()=>{if(p){(0,r.Z)({event:"section_button_clicked",section_name:"".concat(a,"_cta_download_magazine")}),window.open(e,"_blank");return}(0,r.Z)({event:"section_button_clicked",section_name:"".concat(a,"_modal_download_magazine")}),i(e=>!e)},onClickSecondDownloadModal:()=>{(0,r.Z)({event:"section_button_clicked",section_name:"".concat(a,"_magazine_downloading_modal")}),c(e=>!e)},onClickShareModal:()=>{(0,r.Z)({event:"section_button_clicked",section_name:"".concat(a,"_modal_share_magazine")}),m(e=>!e),u(!1)},openDownloadModal:t,openSecondDownloadModal:s,openShareModal:d,secondDownloadModalData:{title:"Download sendo processado",description:"Em instantes voc\xea ter\xe1 acesso a sua revista digital, aproveite esse momento e compartilhe com algu\xe9m do seu interesse.",slug:"mm",trackingName:"mm_home_magazine_downloading_modal",url:"".concat("https://exame.com","/mm/#revista")},setOpenSecondDownloadModal:c}}},26621:function(e,a,t){t.d(a,{Z:function(){return n}});var o=t(2265);function n(){let[e,a]=(0,o.useState)(!1);return{copyToClipboard:async e=>{try{await navigator.clipboard.writeText(e),a(!0)}catch(e){console.error("Failed to copy: ",e)}},isCopied:e,setIsCopied:a}}}}]);

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.