/* eslint-disable no-undef */ /* eslint-disable no-useless-escape */ /* eslint-disable no-unused-vars */ function inject_link_defined_by_rendertarget(props) { if ( props.rendertarget === undefined || props.rendertarget === null || typeof props.rendertarget !== 'object' ) { return; } let position = 'after'; if ( props.rendertarget.position !== undefined && props.rendertarget.position !== null ) { position = props.rendertarget.position; } let domrendertarget = null; if ( props.rendertarget.domselector === undefined || props.rendertarget.domselector === null ) { return; } else { let refelement = null; if (props.rendertarget.domselector.startsWith('#')) { refelement = document.getElementById( props.rendertarget.domselector.substring( 1, props.rendertarget.domselector.length ) ); } else { let query = document.querySelectorAll(props.rendertarget.domselector); if (query.length === 0) { return; } if (query.length === 1) { refelement = query[0]; } else { if ( props.rendertarget.maxdeep === undefined || props.rendertarget.maxdeep > query.length ) { refelement = query.pop(); } else { for (let i = 0; i < query.length; i++) { if (i === props.rendertarget.maxdeep - 1) { refelement = query[i]; break; } } } } } //console.log(refelement); if (refelement === null) { return; } else { domrendertarget = refelement; } } if (domrendertarget !== null && domrendertarget !== undefined) { let wrapper = document.createElement('p'); let strong = document.createElement('strong'); let a = document.createElement('a'); a.appendChild(document.createTextNode(props.text)); if (props.target !== undefined && props.target !== null) a.target = props.target; if (props.rel !== undefined && props.rel !== null) a.rel = props.rel; if (props.href !== undefined && props.href !== null) a.href = props.href; strong.appendChild(a); wrapper.appendChild(strong); if (position === 'after') { domrendertarget.after(wrapper); } if (position === 'in') { domrendertarget.appendChild(wrapper); } if (position === 'before') { domrendertarget.before(wrapper); } } } inject_link_defined_by_rendertarget({"rendertarget":{"domselector":"div.content-section.content > p","maxdeep":2},"tag":"fintrender_aula01-a","target":"_blank","text":"+ O gestor de fundo global de criptoativos Gustavo Cunha explica como diversificar seus investimento em ativos de alto risco, em 2022","href":"https://aulainaugural-a.fintrender.com.br/?utm_source=ISTOEDINHEIRO&utm_medium=link_dinamico_versao-a&utm_campaign=aula_inaugural_display&utm_term=MADNET_FOONE_FINTRENDER_AULA01","click_redirect_base_url":"https://nave.foone.com.br/gateway/click/","campaign":"istoedinheiro-links-fintrender","source":"eef0ff46-01e5-11ec-acda-53613212d6c6","uuid":"45354deb-4c56-417b-ba19-3e63472f7ece","public":"{\"iframe_domain\":\"https://nave.foone.com.br\"}"});/* eslint-disable no-undef */ /* eslint-disable no-useless-escape */ /* eslint-disable no-unused-vars */ function istoedinheiro_inject_newsletter_after_rendertarget(props) { if (Cookies.get(props.campain + '_' + props.tag) === undefined) { var urlParams = new URLSearchParams(window.location.search); var shownewsletter = true; if (urlParams.get('shownewsletter') === 'true') { shownewsletter = true; } var nvdiv = document.querySelector('article > div.content-section.content'); if (nvdiv !== null && shownewsletter) { var nvawrap = document.createElement('div'); nvawrap.innerHTML = props.statictemplate .replace(RegExp('{{formid}}', 'g'), props.tag) .replace(RegExp('{{title}}', 'g'), props.title); //nvdiv.parentNode.insertBefore(nvawrap, nvdiv); nvdiv.parentNode.insertBefore(nvawrap, nvdiv.nextSibling); var form = document.getElementById(props.tag + '-form'); form.onsubmit = function () { let targeturl = props.endpoint + '?nome=' + encodeURI(document.getElementById(props.tag + '-nome').value) + '&email=' + encodeURI(document.getElementById(props.tag + '-email').value) + '&kp=' + encodeURI(Cookies.get('nvUUID')) + '&'; for (let k in props.arguments) { if (props.arguments[k] !== null && props.arguments[k] !== '') { targeturl += '&' + k + '=' + encodeURI(props.arguments[k]); } } //console.log(targeturl); function httpGetAsync(theUrl, callback) { var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 4 && xmlHttp.status == 200) callback(xmlHttp.responseText); }; xmlHttp.open('GET', theUrl, true); // true for asynchronous //xmlHttp.withCredentials = 'true'; xmlHttp.send(null); } httpGetAsync(targeturl, function () { Cookies.set(props.campain + '_' + props.tag, { expires: 365, path: '/', }); document.getElementById(props.tag + '-boxcontainer').innerHTML = '

Inscrição realizada com sucesso.

'; setTimeout(function () { nvawrap.classList.add('newsletterboxhidefadeout'); }, 2000); }); return false; }; } } } istoedinheiro_inject_newsletter_after_rendertarget({"rendertarget":"82153fa3-a4d8-4689-9bc9-84f62ce60def","tag":"default-newsletter","title":"Quer receber noticias da ISTOÉ Dinheiro no seu e-mail? Inscreva-se na newsletter!","endpoint":"https://nave.foone.com.br/marca_usuario_produto_parceiro.php","listendpoint":"http://adm.camlp.toing.com/listMail/gerarCsvEmail.php?editorial=&envia_email_portal=on&envia_email_parceiro=on&download=1&dt_inicio=2021-08-23&dt_fim={{dt_fim}}&portal={{portal}}&id_parceiro={{id_parceiro}}&produto={{produto}}","fromname":"\"Newsletter ISTOÉ Dinheiro\" \n\n#{{formid}} *,::after,::before{box-sizing:border-box;}\n#{{formid}} h1{margin-top:0;margin-bottom:.5rem;}\n#{{formid}} a{color:#007bff;text-decoration:none;background-color:transparent;}\n#{{formid}} a:hover{color:#0056b3;text-decoration:underline;}\n#{{formid}} img{vertical-align:middle;border-style:none;}\n#{{formid}} label{display:inline-block;margin-bottom:.5rem;}\n#{{formid}} button{border-radius:0;}\n#{{formid}} button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color;}\n#{{formid}} button,input{margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}\n#{{formid}} button,input{overflow:visible;}\n#{{formid}} button{text-transform:none;}\n#{{formid}} button{-webkit-appearance:button;}\n#{{formid}} button::-moz-focus-inner{padding:0;border-style:none;}\n#{{formid}} input[type=checkbox]{box-sizing:border-box;padding:0;}\n#{{formid}} h1{margin-bottom:.5rem;font-weight:500;line-height:1.2;}\n#{{formid}} h1{font-size:2.5rem;}\n#{{formid}} .container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto;}\n@media (min-width:576px){\n #{{formid}} .container{max-width:540px;}\n}\n@media (min-width:768px){\n #{{formid}} .container{max-width:720px;}\n}\n@media (min-width:992px){\n #{{formid}} .container{max-width:960px;}\n}\n@media (min-width:1200px){\n #{{formid}} .container{max-width:1140px;}\n}\n#{{formid}} .col-md-12{position:relative;width:100%;padding-right:15px;padding-left:15px;}\n@media (min-width:768px){\n #{{formid}} .col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;}\n}\n#{{formid}} .col-md-6{position:relative;width:100%;padding-right:15px;padding-left:15px;}\n@media (min-width:768px){\n #{{formid}} .col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%;}\n}\n#{{formid}} .form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;}\n@media (prefers-reduced-motion:reduce){\n #{{formid}} .form-control{transition:none;}\n}\n#{{formid}} .form-control::-ms-expand{background-color:transparent;border:0;}\n#{{formid}} .form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057;}\n#{{formid}} .form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25);}\n#{{formid}} .form-control::-webkit-input-placeholder{color:#6c757d;opacity:1;}\n#{{formid}} .form-control::-moz-placeholder{color:#6c757d;opacity:1;}\n#{{formid}} .form-control:-ms-input-placeholder{color:#6c757d;opacity:1;}\n#{{formid}} .form-control::-ms-input-placeholder{color:#6c757d;opacity:1;}\n#{{formid}} .form-control::placeholder{color:#6c757d;opacity:1;}\n#{{formid}} .form-control:disabled{background-color:#e9ecef;opacity:1;}\n#{{formid}} .form-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-5px;margin-left:-5px;}\n#{{formid}} .form-row>[class*=col-]{padding-right:5px;padding-left:5px;}\n#{{formid}} .custom-control{position:relative;z-index:1;display:block;min-height:1.5rem;padding-left:1.5rem;-webkit-print-color-adjust:exact;color-adjust:exact;}\n#{{formid}} .custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.25rem;opacity:0;}\n#{{formid}} .custom-control-input:checked~.custom-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff;}\n#{{formid}} .custom-control-input:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(0,123,255,.25);}\n#{{formid}} .custom-control-input:disabled~.custom-control-label{color:#6c757d;}\n#{{formid}} .custom-control-input:disabled~.custom-control-label::before{background-color:#e9ecef;}\n#{{formid}} .custom-control-label{position:relative;margin-bottom:0;vertical-align:top;}\n#{{formid}} .custom-control-label::before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:\"\";background-color:#fff;border:#adb5bd solid 1px;}\n#{{formid}} .custom-control-label::after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:\"\";background:no-repeat 50%/50% 50%;}\n#{{formid}} .custom-checkbox .custom-control-label::before{border-radius:.25rem;}\n#{{formid}} .custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5);}\n#{{formid}} .custom-control-label::before{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;}\n@media (prefers-reduced-motion:reduce){\n #{{formid}} .custom-control-label::before{transition:none;}\n}\n#{{formid}} .border-0{border:0!important;}\n#{{formid}} .rounded{border-radius:.25rem!important;}\n#{{formid}} .d-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important;}\n#{{formid}} .ml-1{margin-left:.25rem!important;}\n#{{formid}} .my-4{margin-top:1.5rem!important;}\n#{{formid}} .my-4{margin-bottom:1.5rem!important;}\n#{{formid}} .text-center{text-align:center!important;}\n@media print{\n #{{formid}} *,::after,::before{text-shadow:none!important;box-shadow:none!important;}\n#{{formid}} a:not(.btn){text-decoration:underline;}\n#{{formid}} img{page-break-inside:avoid;}\n#{{formid}} .container{min-width:992px!important;}\n}\n#{{formid}} {font-family:'Open Sans', sans-serif;font-weight:normal;text-align:center;}\n#{{formid}} .title-box{font-size:22px;font-family:'Open Sans', sans-serif;font-weight:normal;margin:10px;text-align:center;}\n#{{formid}} .rounded{background-color:rgb(0, 0, 0);}\n#{{formid}} .box-checkbox .custom-checkbox{margin:10px 70px 20px;}\n#{{formid}}.box{max-width:720px;width:100%;background:#fff;border-top:5px solid rgb(0, 0, 0);display:flex;justify-content:center;}\n#{{formid}}.box{border:1px solid rgb(0, 0, 0);border-top-width: 4px;}\n.newsletterboxhidefadeout {\n\tdisplay: none;\n\theight: 0;\n \topacity: 0;\n\toverflow: hidden;\n\ttransition: height 350ms ease-in-out, opacity 750ms ease-in-out;\n}\n\n
\n
\n

\n {{title}}\n

\n
\n
\n \n
\n
\n \n
\n
\n \n \n
\n
\n
\n
\n \n \n
\n
\n
\n
\n
\n
"});