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":810,"name":"Default Campaign","company":107453,"pipe":0,"extradata":{"btnSize":100,"companies":[{"id":"107453","selectedPipe":36244}],"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-04-27 14:16:34","updated_at":"2023-12-27 18:32:58","image":null,"deleted_at":null,"group":null,"title":"Inca Aromas","objective":null,"disabled":0,"token":"8cff2e90d81a8f410d2409a91b7642d8","type_campaign":"default","topics":[{"id":1170,"name":"ecommerce","message":"","campaign_id":810,"popup_id":null,"last_seller":0,"created_at":"2023-04-27 14:19:28","updated_at":"2023-04-27 14:19:28","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":1216,"name":"Clientes Loja Varejo","message":"","campaign_id":810,"popup_id":null,"last_seller":0,"created_at":"2023-05-16 19:17:24","updated_at":"2024-02-27 16:57:18","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":107453,"last_seller":0}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0}],"urls":[{"id":13107,"name":"P","urlkey":"P","campaign_id":810,"created_at":"2023-04-27 20:05:55","updated_at":"2023-04-27 20:05:55","company":null,"url":"P","domain":null,"layout_index":null,"extradata":null},{"id":13120,"name":"K","urlkey":"K","campaign_id":810,"created_at":"2023-04-29 11:50:55","updated_at":"2023-04-29 11:50:55","company":null,"url":"K","domain":null,"layout_index":null,"extradata":null},{"id":13125,"name":"I","urlkey":"I","campaign_id":810,"created_at":"2023-04-30 22:18:19","updated_at":"2023-04-30 22:18:19","company":null,"url":"I","domain":null,"layout_index":null,"extradata":null},{"id":13126,"name":"M","urlkey":"M","campaign_id":810,"created_at":"2023-05-01 00:41:05","updated_at":"2023-05-01 00:41:05","company":null,"url":"M","domain":null,"layout_index":null,"extradata":null},{"id":13128,"name":"C","urlkey":"C","campaign_id":810,"created_at":"2023-05-01 20:32:48","updated_at":"2023-05-01 20:32:48","company":null,"url":"C","domain":null,"layout_index":null,"extradata":null},{"id":13138,"name":"O","urlkey":"O","campaign_id":810,"created_at":"2023-05-04 18:04:35","updated_at":"2023-05-04 18:04:35","company":null,"url":"O","domain":null,"layout_index":null,"extradata":null},{"id":13159,"name":"A","urlkey":"A","campaign_id":810,"created_at":"2023-05-16 16:41:20","updated_at":"2023-05-16 16:41:20","company":null,"url":"A","domain":null,"layout_index":null,"extradata":null},{"id":13161,"name":"","urlkey":"","campaign_id":810,"created_at":"2023-05-16 19:26:57","updated_at":"2023-05-16 19:26:57","company":null,"url":"","domain":null,"layout_index":null,"extradata":null},{"id":13219,"name":"V","urlkey":"V","campaign_id":810,"created_at":"2023-05-31 20:02:31","updated_at":"2023-05-31 20:02:31","company":null,"url":"V","domain":null,"layout_index":null,"extradata":null},{"id":13223,"name":"F","urlkey":"F","campaign_id":810,"created_at":"2023-06-01 14:27:25","updated_at":"2023-06-01 14:27:25","company":null,"url":"F","domain":null,"layout_index":null,"extradata":null},{"id":13254,"name":"S","urlkey":"S","campaign_id":810,"created_at":"2023-06-11 13:55:20","updated_at":"2023-06-11 13:55:20","company":null,"url":"S","domain":null,"layout_index":null,"extradata":null},{"id":13258,"name":"j","urlkey":"j","campaign_id":810,"created_at":"2023-06-12 20:23:16","updated_at":"2023-06-12 20:23:16","company":null,"url":"j","domain":null,"layout_index":null,"extradata":null},{"id":13266,"name":"r","urlkey":"r","campaign_id":810,"created_at":"2023-06-14 23:10:47","updated_at":"2023-06-14 23:10:47","company":null,"url":"r","domain":null,"layout_index":null,"extradata":null},{"id":13327,"name":"E","urlkey":"E","campaign_id":810,"created_at":"2023-07-09 23:21:17","updated_at":"2023-07-09 23:21:17","company":null,"url":"E","domain":null,"layout_index":null,"extradata":null},{"id":13351,"name":"B","urlkey":"B","campaign_id":810,"created_at":"2023-07-20 23:22:13","updated_at":"2023-07-20 23:22:13","company":null,"url":"B","domain":null,"layout_index":null,"extradata":null},{"id":13437,"name":"3","urlkey":"3","campaign_id":810,"created_at":"2023-09-10 10:44:04","updated_at":"2023-09-10 10:44:04","company":null,"url":"3","domain":null,"layout_index":null,"extradata":null},{"id":13482,"name":"5","urlkey":"5","campaign_id":810,"created_at":"2023-10-14 17:40:22","updated_at":"2023-10-14 17:40:22","company":null,"url":"5","domain":null,"layout_index":null,"extradata":null},{"id":13523,"name":"L","urlkey":"L","campaign_id":810,"created_at":"2023-11-16 13:12:22","updated_at":"2023-11-16 13:12:22","company":null,"url":"L","domain":null,"layout_index":null,"extradata":null},{"id":13665,"name":"%","urlkey":"%","campaign_id":810,"created_at":"2023-12-07 19:04:12","updated_at":"2023-12-07 19:04:12","company":null,"url":"%","domain":null,"layout_index":null,"extradata":null},{"id":13674,"name":"T","urlkey":"T","campaign_id":810,"created_at":"2023-12-13 14:20:52","updated_at":"2023-12-13 14:20:52","company":null,"url":"T","domain":null,"layout_index":null,"extradata":null},{"id":13727,"name":"N","urlkey":"N","campaign_id":810,"created_at":"2024-03-29 21:36:46","updated_at":"2024-03-29 21:36:46","company":null,"url":"N","domain":null,"layout_index":null,"extradata":null}],"popups":[{"id":154,"name":"PrimeiraCompra","type":"","show_type":"simple_count","company_id":107453,"topic_id":0,"campaign_id":810,"pipe_id":0,"configs":{"cupom1":{"porcent":true,"cupomActive":false,"cupomCode":"PrimeiraCompra","cupomDiscount":"20","rodape":"Valido somente para primeira compra e para pedidos direto ao consumidor final","color":"#ca4c1a","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,"imageSize":70,"image_name":"imgpopup-154-1.png","buttomBorderColor":"#fefbfb","buttomTextColor":"#ffffff"},"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":["https:\/\/atacado.incaaromas.com\/seja-revendedor\/","https:\/\/atacado.incaaromas.com\/"],"triggers":[],"start_type":"insta","url_type":"full_links"},"lp_id":239},"script":null,"able":1,"created_at":"2023-04-27 14:23:36","updated_at":"2024-04-09 20:37:22","deleted_at":null,"optins":[{"id":480,"campaign_id":null,"company_id":107453,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_154","required":0},{"visible":1,"able_key":"campaign_832","required":1}]},"label":"Aceito receber contato de consultoria de vendas especializada","visible":1,"required":0,"created_at":"2023-04-27 20:00:43","updated_at":"2023-05-17 12:51:14"},{"id":481,"campaign_id":null,"company_id":107453,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_154","required":0},{"visible":1,"able_key":"campaign_832","required":0}]},"label":"Aceito receber promo\u00e7\u00f5es por e-mail","visible":1,"required":0,"created_at":"2023-04-27 20:00:49","updated_at":"2023-05-17 12:51:14"},{"id":482,"campaign_id":null,"company_id":107453,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_154","required":0},{"visible":1,"able_key":"campaign_832","required":0}]},"label":"Aceito receber lan\u00e7amentos por e-mail \/ WhatsApp","visible":1,"required":0,"created_at":"2023-04-27 20:00:54","updated_at":"2023-05-17 12:51:15"},{"id":483,"campaign_id":null,"company_id":107453,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"popup_154","required":1},{"visible":1,"able_key":"campaign_832","required":0}]},"label":"Aceite da pol\u00edtica de privacidade","visible":1,"required":0,"created_at":"2023-04-27 20:00:58","updated_at":"2023-05-17 12:51:42"},{"id":745,"campaign_id":null,"company_id":107453,"popup_id":null,"extradata":{"ables":[]},"label":"ERP","visible":1,"required":0,"created_at":"2023-09-15 03:15:26","updated_at":"2023-09-15 03:15:26"}]}],"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/c565cf4597c3ae4fbff253592cfb173e/107453/810/1170'; 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