((doc, tags) => { const currentTag = tags; currentTag.forEach((tag) => { const { type } = tag; if (type === 'script') { scriptBuilder(doc, tag); } if (type === 'img') { imgBuilder(doc, tag); } if (type === 'iframe') { iframeBuilder(doc, tag); } }); function scriptBuilder(doc, tag) { const { url, type, async, content, id } = tag; const element = doc.createElement(type); if (url) { element.src = url; } if (async) { element.async = async; } if (content) { element.innerHTML = content; } if (id) { element.id = id; } doc.body.insertAdjacentElement('beforeend', element); } function imgBuilder(doc, tag) { const { url, width, height } = tag; const element = doc.createElement(tag.type); element.src = url; element.width = width; element.height = height; element.style.display = 'none'; doc.body.insertAdjacentElement('beforeend', element); } function iframeBuilder(doc, tag) { const { url, sandbox, referrerpolicy, width, height } = tag; const element = doc.createElement(tag.type); element.src = url; if (sandbox.length > 0) { element.sandbox.add(...sandbox); } element.referrerPolicy = referrerpolicy; element.width = width; element.height = height; element.style.display = 'none'; } })(document,[{"type":"script","async":true,"content":"(function(d,s,p,a,m,t,r){ r='&enc='+encodeURIComponent(a.location.href); m = d.createElement(s); m.async = 1; m.src = p + new Date().getTime()+r; t = d.getElementsByTagName(s)[0]; t.parentNode.insertBefore(m, t); })(document,'script','//cdn.dsspn.com/trk/v1.1/pixel.min.js?c=4d80734c-dd66-4fb6-aab8-497474c1e622&e=0&n=Plie_BR&cb=',window);"},{"type":"script","async":true,"content":"(function(){ var a = document.createElement('script'); a.type = 'text/javascript'; a.async = true; a.src = 'https://pixel.adfyier.com/merchant.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(a, s); })();"},{"type":"script","async":true,"content":"window.CLIENT_TOKEN = '22022024035237ZTT'; var s = document.createElement('script'); s.setAttribute('src', \"https://ca.enviou.com.br/js/ca-roundler.js\"); document.body.appendChild(s);"}]);