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":829,"name":"Ecommerce - Atacado","company":130313,"pipe":0,"extradata":{"btnSize":100,"companies":[{"id":"130313","selectedPipe":37610}],"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":true,"required":false}},"show_configs_whats":{"list":[],"type":"all","triggers":[]}},"created_at":"2023-05-15 13:54:04","updated_at":"2023-05-16 19:31:28","image":null,"deleted_at":null,"group":null,"title":"Inca Aromas - Atacado","objective":null,"disabled":0,"token":"e8939cf35fd6105417a3ce66a2f9bc58","type_campaign":"default","topics":[{"id":1213,"name":"ecommerce","message":"","campaign_id":829,"popup_id":null,"last_seller":0,"created_at":"2023-05-15 13:57:25","updated_at":"2023-05-15 13:57:25","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":1220,"name":"Clientes Loja de Atacado","message":"","campaign_id":829,"popup_id":null,"last_seller":0,"created_at":"2023-05-16 19:30:26","updated_at":"2023-06-14 14:28:10","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":130313,"last_seller":0}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0},{"id":1260,"name":"Whats","message":"","campaign_id":829,"popup_id":null,"last_seller":0,"created_at":"2023-06-08 11:36:06","updated_at":"2023-10-25 16:07:12","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":130313,"last_seller":0}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0}],"urls":[{"id":13155,"name":"O","urlkey":"O","campaign_id":829,"created_at":"2023-05-15 14:35:57","updated_at":"2023-05-15 14:35:57","company":null,"url":"O","domain":null,"layout_index":null,"extradata":null},{"id":13160,"name":"s","urlkey":"s","campaign_id":829,"created_at":"2023-05-16 18:14:17","updated_at":"2023-05-16 18:14:17","company":null,"url":"s","domain":null,"layout_index":null,"extradata":null},{"id":13162,"name":"M","urlkey":"M","campaign_id":829,"created_at":"2023-05-16 19:34:41","updated_at":"2023-05-16 19:34:41","company":null,"url":"M","domain":null,"layout_index":null,"extradata":null},{"id":13168,"name":"P","urlkey":"P","campaign_id":829,"created_at":"2023-05-17 13:26:17","updated_at":"2023-05-17 13:26:17","company":null,"url":"P","domain":null,"layout_index":null,"extradata":null},{"id":13183,"name":"E","urlkey":"E","campaign_id":829,"created_at":"2023-05-18 16:20:21","updated_at":"2023-05-18 16:20:21","company":null,"url":"E","domain":null,"layout_index":null,"extradata":null},{"id":13198,"name":"I","urlkey":"I","campaign_id":829,"created_at":"2023-05-24 18:22:24","updated_at":"2023-05-24 18:22:24","company":null,"url":"I","domain":null,"layout_index":null,"extradata":null},{"id":13199,"name":"","urlkey":"","campaign_id":829,"created_at":"2023-05-24 18:23:08","updated_at":"2023-05-24 18:23:08","company":null,"url":"","domain":null,"layout_index":null,"extradata":null},{"id":13228,"name":"C","urlkey":"C","campaign_id":829,"created_at":"2023-06-02 04:45:53","updated_at":"2023-06-02 04:45:53","company":null,"url":"C","domain":null,"layout_index":null,"extradata":null},{"id":13248,"name":"A","urlkey":"A","campaign_id":829,"created_at":"2023-06-08 03:36:35","updated_at":"2023-06-08 03:36:35","company":null,"url":"A","domain":null,"layout_index":null,"extradata":null},{"id":13333,"name":"F","urlkey":"F","campaign_id":829,"created_at":"2023-07-13 20:54:02","updated_at":"2023-07-13 20:54:02","company":null,"url":"F","domain":null,"layout_index":null,"extradata":null}],"popups":[{"id":463,"name":"primeira compra","type":"","show_type":"simple_count","company_id":130313,"topic_id":0,"campaign_id":829,"pipe_id":0,"configs":{"cupom1":{"porcent":true,"cupomActive":false,"cupomCode":"Primeiracompra","cupomDiscount":"15","rodape":"Valida somente para primeira compra","color":"#5c3e22","color2":"#f2f2f2","fields":{"name":true,"email":true,"telephone":true,"termOfUse":true,"place":false},"position":{"x":20,"y":20},"error":null,"iconColor":"black","isCenter":true,"model":"with_img","forOldClients":false,"imageSize":70,"image_name":"imgpopup-463-1.jpeg","buttomTextColor":"#181616"},"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":"configs","list":["https:\/\/atacado.incaaromas.com\/seja-revendedor\/","https:\/\/atacado.incaaromas.com\/"],"triggers":[],"start_type":"insta","url_type":"full_links"}},"script":null,"able":1,"created_at":"2023-05-15 13:58:58","updated_at":"2024-04-09 20:38:49","deleted_at":null,"optins":[{"id":472,"campaign_id":null,"company_id":130313,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_463","required":0}]},"label":"Aceito a pol\u00edtica de privacidade","visible":1,"required":0,"created_at":"2023-04-12 18:49:47","updated_at":"2023-05-15 14:25:04"},{"id":473,"campaign_id":null,"company_id":130313,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_463","required":0}]},"label":"Aceito receber contato de consultoria de vendas especializada","visible":1,"required":0,"created_at":"2023-04-12 18:49:47","updated_at":"2023-05-15 14:25:05"},{"id":474,"campaign_id":null,"company_id":130313,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_463","required":0}]},"label":"Aceito receber promo\u00e7\u00f5es por e-mail","visible":1,"required":0,"created_at":"2023-04-12 18:49:47","updated_at":"2023-05-15 14:25:06"},{"id":475,"campaign_id":null,"company_id":130313,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_463","required":0}]},"label":"Aceito receber lan\u00e7amentos por e-mail \/ WhatsApp","visible":1,"required":0,"created_at":"2023-04-12 18:49:47","updated_at":"2023-05-15 14:25:06"},{"id":744,"campaign_id":null,"company_id":130313,"popup_id":null,"extradata":{"ables":[]},"label":"ERP","visible":1,"required":0,"created_at":"2023-09-15 03:15:25","updated_at":"2023-09-15 03:15:25"}]}],"fields":[]};window.hoopcompany_trackPlatform = 'woocommerce'; 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/woocommerce/8e7518fb46b92bfe8813927552236e2f/130313/829/1213'; 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