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":769,"name":"Default Campaign","company":89656,"pipe":0,"extradata":{"btnSize":100,"companies":[{"id":"89656","selectedPipe":35266}],"fontColor":"#ffffff","btnPostion":{"x":"10","y":"40","type":"px","placement":"down-rigth"},"textHeader":null,"basicFields":{"name":{"able":true,"required":true},"email":{"able":true,"required":true},"place":{"able":false,"required":false},"whats":{"able":true,"required":true},"plugin":true,"termOfUse":{"able":false,"required":false},"disableForm":true},"buttonColor":"#3d5d3c","show_configs_whats":{"list":[],"type":"all","triggers":[]}},"created_at":"2023-02-24 14:30:40","updated_at":"2024-02-27 17:23:57","image":null,"deleted_at":null,"group":null,"title":"Biotipo","objective":null,"disabled":0,"token":"9eac7e52a86c946d166337538b16adbf","type_campaign":"default","topics":[{"id":1096,"name":"ecommerce","message":"","campaign_id":769,"popup_id":null,"last_seller":0,"created_at":"2023-02-24 18:03:46","updated_at":"2024-04-27 00:19:24","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":89656,"last_seller":0}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0},{"id":1097,"name":"Produtos","message":"Produtos I Ol\u00e1, me chamo","campaign_id":769,"popup_id":null,"last_seller":0,"created_at":"2023-02-24 18:06:39","updated_at":"2024-04-27 04:13:51","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":89656,"last_seller":2}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0},{"id":1100,"name":"Receitas","message":"Receitas I Ol\u00e1, me chamo","campaign_id":769,"popup_id":null,"last_seller":0,"created_at":"2023-02-27 20:40:17","updated_at":"2024-02-27 18:11:56","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":89656,"last_seller":0}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0}],"urls":[{"id":13014,"name":"B","urlkey":"B","campaign_id":769,"created_at":"2023-02-24 18:06:21","updated_at":"2023-02-24 18:06:21","company":null,"url":"B","domain":null,"layout_index":null,"extradata":null},{"id":13016,"name":"c","urlkey":"c","campaign_id":769,"created_at":"2023-02-27 19:41:58","updated_at":"2023-02-27 19:41:58","company":null,"url":"c","domain":null,"layout_index":null,"extradata":null},{"id":13017,"name":"O","urlkey":"O","campaign_id":769,"created_at":"2023-02-27 20:34:41","updated_at":"2023-02-27 20:34:41","company":null,"url":"O","domain":null,"layout_index":null,"extradata":null},{"id":13018,"name":"S","urlkey":"S","campaign_id":769,"created_at":"2023-02-27 22:33:14","updated_at":"2023-02-27 22:33:14","company":null,"url":"S","domain":null,"layout_index":null,"extradata":null},{"id":13019,"name":"P","urlkey":"P","campaign_id":769,"created_at":"2023-02-27 23:27:13","updated_at":"2023-02-27 23:27:13","company":null,"url":"P","domain":null,"layout_index":null,"extradata":null},{"id":13020,"name":"","urlkey":"","campaign_id":769,"created_at":"2023-02-28 00:57:46","updated_at":"2023-02-28 00:57:46","company":null,"url":"","domain":null,"layout_index":null,"extradata":null},{"id":13021,"name":"H","urlkey":"H","campaign_id":769,"created_at":"2023-02-28 02:12:05","updated_at":"2023-02-28 02:12:05","company":null,"url":"H","domain":null,"layout_index":null,"extradata":null},{"id":13022,"name":"v","urlkey":"v","campaign_id":769,"created_at":"2023-02-28 10:49:39","updated_at":"2023-02-28 10:49:39","company":null,"url":"v","domain":null,"layout_index":null,"extradata":null},{"id":13023,"name":"T","urlkey":"T","campaign_id":769,"created_at":"2023-02-28 11:21:32","updated_at":"2023-02-28 11:21:32","company":null,"url":"T","domain":null,"layout_index":null,"extradata":null},{"id":13024,"name":"F","urlkey":"F","campaign_id":769,"created_at":"2023-02-28 16:00:20","updated_at":"2023-02-28 16:00:20","company":null,"url":"F","domain":null,"layout_index":null,"extradata":null},{"id":13025,"name":"E","urlkey":"E","campaign_id":769,"created_at":"2023-02-28 16:02:14","updated_at":"2023-02-28 16:02:14","company":null,"url":"E","domain":null,"layout_index":null,"extradata":null},{"id":13027,"name":"M","urlkey":"M","campaign_id":769,"created_at":"2023-03-01 03:32:59","updated_at":"2023-03-01 03:32:59","company":null,"url":"M","domain":null,"layout_index":null,"extradata":null},{"id":13028,"name":"I","urlkey":"I","campaign_id":769,"created_at":"2023-03-01 12:28:43","updated_at":"2023-03-01 12:28:43","company":null,"url":"I","domain":null,"layout_index":null,"extradata":null},{"id":13029,"name":"L","urlkey":"L","campaign_id":769,"created_at":"2023-03-01 21:51:06","updated_at":"2023-03-01 21:51:06","company":null,"url":"L","domain":null,"layout_index":null,"extradata":null},{"id":13030,"name":"r","urlkey":"r","campaign_id":769,"created_at":"2023-03-01 22:47:52","updated_at":"2023-03-01 22:47:52","company":null,"url":"r","domain":null,"layout_index":null,"extradata":null},{"id":13031,"name":"D","urlkey":"D","campaign_id":769,"created_at":"2023-03-02 10:16:04","updated_at":"2023-03-02 10:16:04","company":null,"url":"D","domain":null,"layout_index":null,"extradata":null},{"id":13032,"name":"N","urlkey":"N","campaign_id":769,"created_at":"2023-03-03 13:31:45","updated_at":"2023-03-03 13:31:45","company":null,"url":"N","domain":null,"layout_index":null,"extradata":null},{"id":13034,"name":"U","urlkey":"U","campaign_id":769,"created_at":"2023-03-05 23:17:55","updated_at":"2023-03-05 23:17:55","company":null,"url":"U","domain":null,"layout_index":null,"extradata":null},{"id":13035,"name":"Q","urlkey":"Q","campaign_id":769,"created_at":"2023-03-07 15:47:44","updated_at":"2023-03-07 15:47:44","company":null,"url":"Q","domain":null,"layout_index":null,"extradata":null},{"id":13040,"name":"A","urlkey":"A","campaign_id":769,"created_at":"2023-03-14 13:26:51","updated_at":"2023-03-14 13:26:51","company":null,"url":"A","domain":null,"layout_index":null,"extradata":null},{"id":13042,"name":"K","urlkey":"K","campaign_id":769,"created_at":"2023-03-16 10:41:36","updated_at":"2023-03-16 10:41:36","company":null,"url":"K","domain":null,"layout_index":null,"extradata":null},{"id":13048,"name":"G","urlkey":"G","campaign_id":769,"created_at":"2023-03-20 11:34:42","updated_at":"2023-03-20 11:34:42","company":null,"url":"G","domain":null,"layout_index":null,"extradata":null},{"id":13098,"name":"5","urlkey":"5","campaign_id":769,"created_at":"2023-04-20 10:51:47","updated_at":"2023-04-20 10:51:47","company":null,"url":"5","domain":null,"layout_index":null,"extradata":null},{"id":13264,"name":"X","urlkey":"X","campaign_id":769,"created_at":"2023-06-14 10:31:54","updated_at":"2023-06-14 10:31:54","company":null,"url":"X","domain":null,"layout_index":null,"extradata":null},{"id":13297,"name":"Z","urlkey":"Z","campaign_id":769,"created_at":"2023-06-25 11:16:20","updated_at":"2023-06-25 11:16:20","company":null,"url":"Z","domain":null,"layout_index":null,"extradata":null},{"id":13472,"name":"%","urlkey":"%","campaign_id":769,"created_at":"2023-09-29 22:19:25","updated_at":"2023-09-29 22:19:25","company":null,"url":"%","domain":null,"layout_index":null,"extradata":null}],"popups":[{"id":144,"name":"Geral","type":"","show_type":"simple_count","company_id":89656,"topic_id":0,"campaign_id":769,"pipe_id":0,"configs":{"cupom1":{"porcent":true,"cupomActive":false,"cupomCode":"GANHEI25","cupomDiscount":"25","rodape":"Valida somente para primeira compra e acima de R$199. N\u00e3o acumulativa com outras promo\u00e7\u00f5es. Desconto total de at\u00e9 25%, contando com os descontos j\u00e1 aplicados nos produtos. V\u00e1lido para produtos selecionados.","color":"#2c522b","color2":"#ffffff","fields":{"name":true,"email":true,"telephone":true,"termOfUse":true,"place":false},"position":{"x":"20","y":20},"error":null,"iconColor":false,"isCenter":true,"model":"with_img","forOldClients":false,"image_name":"imgpopup-144-1.png","imageSize":"113","buttomTextColor":"#440f2c"},"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},"show_configs":{"type":"all","list":[],"triggers":[],"start_type":"reload","isOneView":true},"lp_id":222},"script":null,"able":1,"created_at":"2023-02-27 19:06:13","updated_at":"2024-02-27 18:19:52","deleted_at":null,"optins":[{"id":416,"campaign_id":null,"company_id":89656,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_144","required":0},{"visible":1,"able_key":"campaign_773","required":0}]},"label":"Aceito a pol\u00edtica de privacidade","visible":1,"required":0,"created_at":"2023-01-13 18:04:34","updated_at":"2023-03-10 16:15:44"},{"id":417,"campaign_id":null,"company_id":89656,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_144","required":0},{"visible":1,"able_key":"campaign_773","required":0}]},"label":"Aceito receber contato de consultoria de vendas especializada","visible":1,"required":0,"created_at":"2023-01-13 18:04:34","updated_at":"2023-03-10 16:15:44"},{"id":418,"campaign_id":null,"company_id":89656,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_144","required":0},{"visible":1,"able_key":"campaign_773","required":0}]},"label":"Aceito receber promo\u00e7\u00f5es por e-mail","visible":1,"required":0,"created_at":"2023-01-13 18:04:34","updated_at":"2023-03-10 16:15:44"},{"id":419,"campaign_id":null,"company_id":89656,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_144","required":0},{"visible":1,"able_key":"campaign_773","required":0}]},"label":"Aceito receber lan\u00e7amentos por e-mail \/ WhatsApp","visible":1,"required":0,"created_at":"2023-01-13 18:04:34","updated_at":"2023-03-10 16:15:45"}]}],"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/069d86f592f0976a11e170c451dfdb8a/89656/769/1096'; 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