window.hoopcompany_leadform = new Object; window.hoopcompany_leadform.topic_id = ''; window.hoopcompany_leadform.page_url = window.location.href; window.hoopcompany_leadform.page_name = document.title; window.getCookie=function(cname) { var name = cname + '='; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ''; }; window.setCookie=function(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = "expires=" + d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } window.addEventListener('message', function(event) { if(event.data=='setClient'){ window.setCookie('hoopCliente',1,90); } }); window.hoopcompany_campaign = new Object; window.hoopcompany_campaign = {"id":1158,"name":"Campanha E-commerce","company":225160,"pipe":0,"extradata":{"btnSize":"66","companies":[{"id":225160,"selectedPipe":45341}],"fontColor":"#f5f5f5","btnPostion":{"x":"2","y":"245","type":"placement","placement":"down-right"},"textHeader":null,"basicFields":{"name":{"able":true,"required":true},"email":{"able":true,"required":true},"place":{"able":true,"required":true},"whats":{"able":true,"required":true},"plugin":true,"termOfUse":{"able":false,"required":false},"disableForm":true},"buttonColor":"#95989A","show_configs_whats":{"list":[],"type":"all","triggers":[],"isOneView":true,"start_type":"insta"}},"created_at":"2024-05-18 13:26:52","updated_at":"2024-05-31 18:23:47","image":null,"deleted_at":null,"group":null,"title":"Campanha E-commerce","objective":null,"disabled":0,"token":"9aa77d45d4ccc4c85c529e0ad56212f9","type_campaign":"default","topics":[{"id":1628,"name":"ecommerce","message":"","campaign_id":1158,"popup_id":null,"last_seller":0,"created_at":"2024-05-18 13:26:52","updated_at":"2024-05-18 13:26:52","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":null,"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0},{"id":1640,"name":"Whats","message":"Ol\u00e1! Preciso de ajuda.","campaign_id":1158,"popup_id":null,"last_seller":0,"created_at":"2024-05-31 18:03:25","updated_at":"2025-03-06 17:59:47","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":225160,"last_seller":0}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0}],"urls":[{"id":13768,"name":"T","urlkey":"T","campaign_id":1158,"created_at":"2024-05-21 14:11:58","updated_at":"2024-05-21 14:11:58","company":null,"url":"T","domain":null,"layout_index":null,"extradata":null},{"id":13769,"name":"L","urlkey":"L","campaign_id":1158,"created_at":"2024-05-22 19:42:35","updated_at":"2024-05-22 19:42:35","company":null,"url":"L","domain":null,"layout_index":null,"extradata":null},{"id":13771,"name":"D","urlkey":"D","campaign_id":1158,"created_at":"2024-05-22 20:26:04","updated_at":"2024-05-22 20:26:04","company":null,"url":"D","domain":null,"layout_index":null,"extradata":null},{"id":13772,"name":"P","urlkey":"P","campaign_id":1158,"created_at":"2024-05-23 04:06:47","updated_at":"2024-05-23 04:06:47","company":null,"url":"P","domain":null,"layout_index":null,"extradata":null},{"id":13777,"name":"V","urlkey":"V","campaign_id":1158,"created_at":"2024-05-23 22:29:40","updated_at":"2024-05-23 22:29:40","company":null,"url":"V","domain":null,"layout_index":null,"extradata":null},{"id":13790,"name":"A","urlkey":"A","campaign_id":1158,"created_at":"2024-05-27 14:48:41","updated_at":"2024-05-27 14:48:41","company":null,"url":"A","domain":null,"layout_index":null,"extradata":null},{"id":13791,"name":"C","urlkey":"C","campaign_id":1158,"created_at":"2024-05-27 19:01:17","updated_at":"2024-05-27 19:01:17","company":null,"url":"C","domain":null,"layout_index":null,"extradata":null},{"id":13802,"name":"","urlkey":"","campaign_id":1158,"created_at":"2024-06-01 13:12:49","updated_at":"2024-06-01 13:12:49","company":null,"url":"","domain":null,"layout_index":null,"extradata":null},{"id":13806,"name":"S","urlkey":"S","campaign_id":1158,"created_at":"2024-06-01 18:27:42","updated_at":"2024-06-01 18:27:42","company":null,"url":"S","domain":null,"layout_index":null,"extradata":null},{"id":13811,"name":"N","urlkey":"N","campaign_id":1158,"created_at":"2024-06-03 16:06:58","updated_at":"2024-06-03 16:06:58","company":null,"url":"N","domain":null,"layout_index":null,"extradata":null},{"id":13815,"name":"F","urlkey":"F","campaign_id":1158,"created_at":"2024-06-05 19:33:55","updated_at":"2024-06-05 19:33:55","company":null,"url":"F","domain":null,"layout_index":null,"extradata":null}],"popups":[{"id":10006,"name":"Primeira compra","type":"","show_type":"popup","company_id":225160,"topic_id":0,"campaign_id":1158,"pipe_id":0,"configs":{"cupom1":{"porcent":true,"cupomActive":false,"cupomCode":"DECO10","cupomDiscount":"10","rodape":null,"color":"#f5ebe0","color2":"#826053","fields":{"name":true,"email":true,"telephone":true,"termOfUse":false,"place":false},"position":{"x":20,"y":20},"error":null,"iconColor":"black","isCenter":true,"model":"with_img","forOldClients":false,"imageSize":"80","buttomBorderColor":"#f5ebe0","buttomTextColor":"#f5ebe0","image_name":"imgpopup-10006-1.jpeg","btnText":"Quero cupom!","thankText":"Parab\u00e9ns, seu cupom de desconto \u00e9 DECO10 insira no campo de cupons ao final da compra!"},"cupom2":{"porcent":true,"cupomActive":false,"cupomCode":null,"cupomDiscount":null,"rodape":"Valida somente para primeira compra","color":"#0f4c81","color2":"#ffffff","fields":{"name":true,"email":true,"telephone":true,"termOfUse":false,"place":false},"position":{"x":20,"y":20},"error":null,"iconColor":"black","isCenter":true,"model":"without_img","forOldClients":false,"imageSize":70},"show_configs":{"type":"all","list":["testehoop"],"triggers":[],"start_type":"insta","url_type":"words","isOneView":true},"lp_id":297},"script":null,"able":1,"created_at":"2024-05-22 00:59:16","updated_at":"2025-03-07 13:27:20","deleted_at":null,"optins":[{"id":846,"campaign_id":null,"company_id":225160,"popup_id":null,"extradata":{"ables":[{"visible":0,"able_key":"popup_10006","required":0}]},"label":"ERP","visible":1,"required":0,"created_at":"2024-05-17 20:46:03","updated_at":"2024-05-22 14:32:17"}]}],"fields":[]};window.hoopcompany_trackPlatform = 'tray'; var tid = setInterval( function () { if ( document.readyState !== 'complete' ) return; clearInterval( tid ); if(window.hoopcompany_trackPlatform != 'tray'){ (function(document, tag) { var scriptTag = document.createElement(tag); firstScriptTag = document.getElementsByTagName(tag)[0]; scriptTag.setAttribute('type', 'text/javascript'); scriptTag.setAttribute('charset', 'UTF-8'); scriptTag.src = '//d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js'; scriptTag.id = 'bugsnag'; firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag); }(document, 'script')); document.getElementById('bugsnag').addEventListener('load', function() { (function(document, tag) { var scriptTag = document.createElement(tag); firstScriptTag = document.getElementsByTagName(tag)[0]; scriptTag.setAttribute('type', 'text/javascript'); scriptTag.src = 'https://hoopdecor.com/hoopcompany_ecommerce/tray/09fd29d025dcbcc03c6116322cc2e685/225160/1158/1628'; firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag); }(document, 'script')); }); } if (window.hoopcompany_campaign.extradata.show_configs_whats) { if (window.hoopcompany_campaign.extradata.show_configs_whats.type == 'all') { window.show_whats = 1; window.hoopcompany_campaign.extradata.show_configs_whats.list.forEach(function(url) { if (window.location.href.includes(url)) { window.show_whats = 0; } }); } else { window.show_whats = 0; window.hoopcompany_campaign.extradata.show_configs_whats.list.forEach(function(url) { if (window.location.href.includes(url)) { window.show_whats = 1; } }); } } else { window.show_whats = 0; } var verifyTriggers=function(popup){ //verifica gatilhos if(window.hoop_popup && popup.configs.show_configs.triggers &&popup.configs.show_configs.triggers.length && window.getCookie('hoop_popup_id')!=popup.id){ for(var i=0;i