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":1163,"name":"Campanha E-commerce","company":227068,"pipe":0,"extradata":{"btnSize":100,"companies":[{"id":"227068","selectedPipe":45401}],"btnPostion":{"x":10,"y":10,"type":"px","placement":"down-rigth"},"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},"show_configs_whats":{"list":[],"type":"all"}},"created_at":"2024-05-23 21:39:56","updated_at":"2024-05-31 20:01:00","image":null,"deleted_at":null,"group":null,"title":"Campanha E-commerce","objective":null,"disabled":0,"token":"d8bb741dfe8fc32c0b363f4639d20970","type_campaign":"default","topics":[{"id":1638,"name":"ecommerce","message":"","campaign_id":1163,"popup_id":null,"last_seller":0,"created_at":"2024-05-31 17:17:47","updated_at":"2024-05-31 17:17:47","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":1639,"name":"Whats","message":"Oi, tudo bem? Gostaria de mais detalhes sobre o produto.","campaign_id":1163,"popup_id":null,"last_seller":0,"created_at":"2024-05-31 17:22:33","updated_at":"2025-03-11 17:23:15","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":227068,"last_seller":0}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0}],"urls":[{"id":13797,"name":"P","urlkey":"P","campaign_id":1163,"created_at":"2024-05-31 17:49:25","updated_at":"2024-05-31 17:49:25","company":null,"url":"P","domain":null,"layout_index":null,"extradata":null},{"id":13798,"name":"","urlkey":"","campaign_id":1163,"created_at":"2024-05-31 17:49:35","updated_at":"2024-05-31 17:49:35","company":null,"url":"","domain":null,"layout_index":null,"extradata":null},{"id":13799,"name":"T","urlkey":"T","campaign_id":1163,"created_at":"2024-05-31 20:20:21","updated_at":"2024-05-31 20:20:21","company":null,"url":"T","domain":null,"layout_index":null,"extradata":null},{"id":13800,"name":"K","urlkey":"K","campaign_id":1163,"created_at":"2024-06-01 01:17:10","updated_at":"2024-06-01 01:17:10","company":null,"url":"K","domain":null,"layout_index":null,"extradata":null},{"id":13801,"name":"B","urlkey":"B","campaign_id":1163,"created_at":"2024-06-01 03:00:08","updated_at":"2024-06-01 03:00:08","company":null,"url":"B","domain":null,"layout_index":null,"extradata":null},{"id":13803,"name":"J","urlkey":"J","campaign_id":1163,"created_at":"2024-06-01 16:38:52","updated_at":"2024-06-01 16:38:52","company":null,"url":"J","domain":null,"layout_index":null,"extradata":null},{"id":13804,"name":"2","urlkey":"2","campaign_id":1163,"created_at":"2024-06-01 17:27:35","updated_at":"2024-06-01 17:27:35","company":null,"url":"2","domain":null,"layout_index":null,"extradata":null},{"id":13805,"name":"S","urlkey":"S","campaign_id":1163,"created_at":"2024-06-01 18:05:01","updated_at":"2024-06-01 18:05:01","company":null,"url":"S","domain":null,"layout_index":null,"extradata":null},{"id":13808,"name":"E","urlkey":"E","campaign_id":1163,"created_at":"2024-06-03 13:13:40","updated_at":"2024-06-03 13:13:40","company":null,"url":"E","domain":null,"layout_index":null,"extradata":null},{"id":13809,"name":"C","urlkey":"C","campaign_id":1163,"created_at":"2024-06-03 13:32:40","updated_at":"2024-06-03 13:32:40","company":null,"url":"C","domain":null,"layout_index":null,"extradata":null},{"id":13810,"name":"g","urlkey":"g","campaign_id":1163,"created_at":"2024-06-03 14:01:58","updated_at":"2024-06-03 14:01:58","company":null,"url":"g","domain":null,"layout_index":null,"extradata":null},{"id":13812,"name":"F","urlkey":"F","campaign_id":1163,"created_at":"2024-06-04 15:54:35","updated_at":"2024-06-04 15:54:35","company":null,"url":"F","domain":null,"layout_index":null,"extradata":null},{"id":13813,"name":"M","urlkey":"M","campaign_id":1163,"created_at":"2024-06-04 16:25:09","updated_at":"2024-06-04 16:25:09","company":null,"url":"M","domain":null,"layout_index":null,"extradata":null},{"id":13814,"name":"R","urlkey":"R","campaign_id":1163,"created_at":"2024-06-04 17:17:09","updated_at":"2024-06-04 17:17:09","company":null,"url":"R","domain":null,"layout_index":null,"extradata":null}],"popups":[],"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/d52e690962667091335f4d9eda15d722/227068/1163/1638'; 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