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":872,"name":"E-Commerce","company":148134,"pipe":0,"extradata":{"btnSize":"100","companies":[{"id":"148134","selectedPipe":38226}],"fontColor":"#f5f5f5","btnPostion":{"x":"10","y":"10","type":"px","placement":"down-rigth"},"textHeader":null,"basicFields":{"name":{"able":true,"required":true},"email":{"able":false,"required":false},"place":{"able":false,"required":false},"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":"2023-06-15 19:56:38","updated_at":"2024-01-18 13:44:29","image":null,"deleted_at":null,"group":null,"title":"E-Commerce","objective":null,"disabled":0,"token":"853ba64991e73d5bd3f4f1d2cc9ddae0","type_campaign":"default","topics":[{"id":1273,"name":"ecommerce","message":"","campaign_id":872,"popup_id":null,"last_seller":0,"created_at":"2023-06-15 20:10:09","updated_at":"2023-06-15 20:10:09","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":1301,"name":"Whats","message":"Ol\u00e1, me chamo","campaign_id":872,"popup_id":null,"last_seller":0,"created_at":"2023-06-28 19:49:37","updated_at":"2024-04-27 11:10:19","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":148134,"last_seller":0}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0}],"urls":[{"id":13276,"name":"K","urlkey":"K","campaign_id":872,"created_at":"2023-06-19 17:25:33","updated_at":"2023-06-19 17:25:33","company":null,"url":"K","domain":null,"layout_index":null,"extradata":null},{"id":13304,"name":"M","urlkey":"M","campaign_id":872,"created_at":"2023-06-27 16:49:32","updated_at":"2023-06-27 16:49:32","company":null,"url":"M","domain":null,"layout_index":null,"extradata":null},{"id":13305,"name":"B","urlkey":"B","campaign_id":872,"created_at":"2023-06-27 17:07:27","updated_at":"2023-06-27 17:07:27","company":null,"url":"B","domain":null,"layout_index":null,"extradata":null},{"id":13306,"name":"N","urlkey":"N","campaign_id":872,"created_at":"2023-06-27 19:24:40","updated_at":"2023-06-27 19:24:40","company":null,"url":"N","domain":null,"layout_index":null,"extradata":null},{"id":13307,"name":"C","urlkey":"C","campaign_id":872,"created_at":"2023-06-27 20:51:40","updated_at":"2023-06-27 20:51:40","company":null,"url":"C","domain":null,"layout_index":null,"extradata":null},{"id":13308,"name":"D","urlkey":"D","campaign_id":872,"created_at":"2023-06-28 00:43:35","updated_at":"2023-06-28 00:43:35","company":null,"url":"D","domain":null,"layout_index":null,"extradata":null},{"id":13309,"name":"P","urlkey":"P","campaign_id":872,"created_at":"2023-06-28 11:13:37","updated_at":"2023-06-28 11:13:37","company":null,"url":"P","domain":null,"layout_index":null,"extradata":null},{"id":13315,"name":"T","urlkey":"T","campaign_id":872,"created_at":"2023-06-28 20:54:48","updated_at":"2023-06-28 20:54:48","company":null,"url":"T","domain":null,"layout_index":null,"extradata":null},{"id":13316,"name":"G","urlkey":"G","campaign_id":872,"created_at":"2023-06-28 22:25:59","updated_at":"2023-06-28 22:25:59","company":null,"url":"G","domain":null,"layout_index":null,"extradata":null},{"id":13317,"name":"h","urlkey":"h","campaign_id":872,"created_at":"2023-06-30 10:50:56","updated_at":"2023-06-30 10:50:56","company":null,"url":"h","domain":null,"layout_index":null,"extradata":null},{"id":13319,"name":"V","urlkey":"V","campaign_id":872,"created_at":"2023-07-01 00:04:13","updated_at":"2023-07-01 00:04:13","company":null,"url":"V","domain":null,"layout_index":null,"extradata":null},{"id":13352,"name":"Q","urlkey":"Q","campaign_id":872,"created_at":"2023-07-21 02:09:01","updated_at":"2023-07-21 02:09:01","company":null,"url":"Q","domain":null,"layout_index":null,"extradata":null},{"id":13355,"name":"O","urlkey":"O","campaign_id":872,"created_at":"2023-07-25 01:27:50","updated_at":"2023-07-25 01:27:50","company":null,"url":"O","domain":null,"layout_index":null,"extradata":null},{"id":13441,"name":"f","urlkey":"f","campaign_id":872,"created_at":"2023-09-11 14:46:23","updated_at":"2023-09-11 14:46:23","company":null,"url":"f","domain":null,"layout_index":null,"extradata":null},{"id":13443,"name":"","urlkey":"","campaign_id":872,"created_at":"2023-09-13 15:22:36","updated_at":"2023-09-13 15:22:36","company":null,"url":"","domain":null,"layout_index":null,"extradata":null},{"id":13476,"name":"I","urlkey":"I","campaign_id":872,"created_at":"2023-10-03 22:18:49","updated_at":"2023-10-03 22:18:49","company":null,"url":"I","domain":null,"layout_index":null,"extradata":null},{"id":13483,"name":"A","urlkey":"A","campaign_id":872,"created_at":"2023-10-16 13:07:32","updated_at":"2023-10-16 13:07:32","company":null,"url":"A","domain":null,"layout_index":null,"extradata":null},{"id":13516,"name":"S","urlkey":"S","campaign_id":872,"created_at":"2023-11-09 19:33:50","updated_at":"2023-11-09 19:33:50","company":null,"url":"S","domain":null,"layout_index":null,"extradata":null},{"id":13519,"name":"E","urlkey":"E","campaign_id":872,"created_at":"2023-11-12 16:36:57","updated_at":"2023-11-12 16:36:57","company":null,"url":"E","domain":null,"layout_index":null,"extradata":null},{"id":13712,"name":"U","urlkey":"U","campaign_id":872,"created_at":"2024-02-18 12:14:19","updated_at":"2024-02-18 12:14:19","company":null,"url":"U","domain":null,"layout_index":null,"extradata":null},{"id":13713,"name":"Y","urlkey":"Y","campaign_id":872,"created_at":"2024-02-21 00:28:20","updated_at":"2024-02-21 00:28:20","company":null,"url":"Y","domain":null,"layout_index":null,"extradata":null}],"popups":[{"id":477,"name":"Padr\u00e3o - Home Geral","type":"","show_type":"simple_count","company_id":148134,"topic_id":0,"campaign_id":872,"pipe_id":0,"configs":{"cupom1":{"porcent":true,"cupomActive":false,"cupomCode":"10DESC","cupomDiscount":"10","rodape":"Valida somente para primeira compra","color":"#dde1ff","color2":"#cf6780","fields":{"name":true,"email":true,"telephone":true,"termOfUse":true,"place":false},"position":{"x":20,"y":20},"error":null,"iconColor":true,"isCenter":true,"model":"with_img","forOldClients":false,"imageSize":70,"image_name":"imgpopup-477-1.png","buttomTextColor":"#f3f2f2"},"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":[],"triggers":[],"url_type":"full_links","start_type":"insta"},"lp_id":253},"script":null,"able":1,"created_at":"2023-06-19 17:23:27","updated_at":"2024-04-25 20:50:50","deleted_at":null,"optins":[{"id":525,"campaign_id":null,"company_id":148134,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"campaign_876","required":1},{"visible":1,"able_key":"popup_477","required":1}]},"label":"(Necess\u00e1rio) Aceito a pol\u00edtica de privacidade","visible":1,"required":0,"created_at":"2023-06-19 18:53:26","updated_at":"2023-06-20 18:35:04"},{"id":526,"campaign_id":null,"company_id":148134,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"campaign_876","required":0},{"visible":1,"able_key":"popup_477","required":0}]},"label":"Aceito receber contato de consultoria de vendas especializada","visible":1,"required":0,"created_at":"2023-06-19 18:53:33","updated_at":"2023-06-20 18:35:05"},{"id":527,"campaign_id":null,"company_id":148134,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"campaign_876","required":0},{"visible":1,"able_key":"popup_477","required":0}]},"label":"Aceito receber promo\u00e7\u00f5es por e-mail","visible":1,"required":0,"created_at":"2023-06-19 18:53:37","updated_at":"2023-06-20 18:35:03"},{"id":528,"campaign_id":null,"company_id":148134,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"campaign_876","required":0},{"visible":1,"able_key":"popup_477","required":0}]},"label":"Aceito receber lan\u00e7amentos por e-mail \/ WhatsApp","visible":1,"required":0,"created_at":"2023-06-19 18:53:42","updated_at":"2023-06-20 18:35:06"},{"id":730,"campaign_id":null,"company_id":148134,"popup_id":null,"extradata":{"ables":[]},"label":"ERP","visible":1,"required":0,"created_at":"2023-09-15 00:00:49","updated_at":"2023-09-15 00:00:49"}]}],"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/867ffc9bd347c2d0a97372237407f72d/148134/872/1273'; 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