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":789,"name":"campanha e-commerce","company":115311,"pipe":0,"extradata":{"btnSize":"80","companies":[{"id":"115311","selectedPipe":36860}],"fontColor":"#f5f5f5","btnPostion":{"x":10,"y":10,"type":"placement","placement":"down-right"},"textHeader":null,"basicFields":{"name":{"able":true,"required":true},"email":{"able":false,"required":false},"place":{"able":false,"required":false},"whats":{"able":true,"required":true},"plugin":false,"termOfUse":{"able":true,"required":false}},"buttonColor":"#95989A","show_configs_whats":{"list":[],"type":"all","triggers":[],"start_type":"insta"}},"created_at":"2023-03-27 14:12:07","updated_at":"2024-03-11 11:45:55","image":null,"deleted_at":null,"group":null,"title":"Liz\u00e1li","objective":null,"disabled":0,"token":"b01b1c8e1bba2b0866881841e168de2a","type_campaign":"default","topics":[{"id":1125,"name":"ecommerce","message":"","campaign_id":789,"popup_id":null,"last_seller":0,"created_at":"2023-03-27 14:12:42","updated_at":"2023-03-27 14:12:42","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":1129,"name":"Loja F\u00edsica","message":"","campaign_id":789,"popup_id":null,"last_seller":0,"created_at":"2023-03-30 14:08:38","updated_at":"2023-04-01 12:35:13","new_cliente_redirect":1,"seller_for_client":1,"cliente_redirect":1,"seller_for_new_client":1,"extradata":{"companies":[{"id":115311,"last_seller":0}]},"CTA":1,"redirect_url":null,"model_id":null,"open_form":1,"success_message":null,"clicks":0}],"urls":[{"id":13064,"name":"C","urlkey":"C","campaign_id":789,"created_at":"2023-04-01 12:35:13","updated_at":"2023-04-01 12:35:13","company":null,"url":"C","domain":null,"layout_index":null,"extradata":null},{"id":13073,"name":"A","urlkey":"A","campaign_id":789,"created_at":"2023-04-06 23:17:48","updated_at":"2023-04-06 23:17:48","company":null,"url":"A","domain":null,"layout_index":null,"extradata":null},{"id":13075,"name":"L","urlkey":"L","campaign_id":789,"created_at":"2023-04-07 21:31:01","updated_at":"2023-04-07 21:31:01","company":null,"url":"L","domain":null,"layout_index":null,"extradata":null},{"id":13077,"name":"B","urlkey":"B","campaign_id":789,"created_at":"2023-04-08 14:57:12","updated_at":"2023-04-08 14:57:12","company":null,"url":"B","domain":null,"layout_index":null,"extradata":null},{"id":13078,"name":"T","urlkey":"T","campaign_id":789,"created_at":"2023-04-09 13:08:08","updated_at":"2023-04-09 13:08:08","company":null,"url":"T","domain":null,"layout_index":null,"extradata":null},{"id":13084,"name":"J","urlkey":"J","campaign_id":789,"created_at":"2023-04-12 16:44:14","updated_at":"2023-04-12 16:44:14","company":null,"url":"J","domain":null,"layout_index":null,"extradata":null},{"id":13093,"name":"P","urlkey":"P","campaign_id":789,"created_at":"2023-04-17 13:59:19","updated_at":"2023-04-17 13:59:19","company":null,"url":"P","domain":null,"layout_index":null,"extradata":null},{"id":13100,"name":"u","urlkey":"u","campaign_id":789,"created_at":"2023-04-21 11:15:22","updated_at":"2023-04-21 11:15:22","company":null,"url":"u","domain":null,"layout_index":null,"extradata":null},{"id":13136,"name":"N","urlkey":"N","campaign_id":789,"created_at":"2023-05-04 13:16:57","updated_at":"2023-05-04 13:16:57","company":null,"url":"N","domain":null,"layout_index":null,"extradata":null},{"id":13191,"name":"S","urlkey":"S","campaign_id":789,"created_at":"2023-05-21 00:30:20","updated_at":"2023-05-21 00:30:20","company":null,"url":"S","domain":null,"layout_index":null,"extradata":null},{"id":13205,"name":"v","urlkey":"v","campaign_id":789,"created_at":"2023-05-26 21:40:33","updated_at":"2023-05-26 21:40:33","company":null,"url":"v","domain":null,"layout_index":null,"extradata":null},{"id":13326,"name":"M","urlkey":"M","campaign_id":789,"created_at":"2023-07-06 10:19:06","updated_at":"2023-07-06 10:19:06","company":null,"url":"M","domain":null,"layout_index":null,"extradata":null},{"id":13724,"name":"G","urlkey":"G","campaign_id":789,"created_at":"2024-03-27 20:57:18","updated_at":"2024-03-27 20:57:18","company":null,"url":"G","domain":null,"layout_index":null,"extradata":null}],"popups":[{"id":149,"name":"PRIMEIRA COMPRA","type":"","show_type":"simple_count","company_id":115311,"topic_id":0,"campaign_id":789,"pipe_id":0,"configs":{"cupom1":{"porcent":true,"cupomActive":false,"cupomCode":"LIZALOVER","cupomDiscount":"10","rodape":"Valida somente para primeira compra","color":"#bd0505","color2":"#000000","fields":{"name":true,"email":true,"telephone":true,"termOfUse":true,"place":false},"position":{"x":"0","y":"120"},"error":null,"iconColor":false,"isCenter":true,"model":"without_img","forOldClients":false,"imageSize":70},"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":"insta"},"lp_id":229},"script":null,"able":1,"created_at":"2023-04-06 20:10:02","updated_at":"2024-04-11 13:48:34","deleted_at":null,"optins":[{"id":449,"campaign_id":null,"company_id":115311,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"campaign_796","required":0},{"visible":1,"able_key":"popup_148","required":0},{"visible":1,"able_key":"popup_149","required":0}]},"label":"Aceito a pol\u00edtica de privacidade","visible":1,"required":0,"created_at":"2023-03-08 18:25:49","updated_at":"2023-04-12 19:32:04"},{"id":450,"campaign_id":null,"company_id":115311,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"campaign_796","required":0},{"visible":1,"able_key":"popup_148","required":0},{"visible":1,"able_key":"popup_149","required":0}]},"label":"Aceito receber contato de consultoria de vendas especializada","visible":1,"required":0,"created_at":"2023-03-08 18:25:49","updated_at":"2023-04-12 19:32:04"},{"id":451,"campaign_id":null,"company_id":115311,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"campaign_796","required":0},{"visible":1,"able_key":"popup_148","required":0},{"visible":1,"able_key":"popup_149","required":0}]},"label":"Aceito receber promo\u00e7\u00f5es por e-mail","visible":1,"required":0,"created_at":"2023-03-08 18:25:49","updated_at":"2023-04-12 19:32:05"},{"id":452,"campaign_id":null,"company_id":115311,"popup_id":null,"extradata":{"ables":[{"visible":1,"able_key":"campaign_796","required":0},{"visible":1,"able_key":"popup_148","required":0},{"visible":1,"able_key":"popup_149","required":0}]},"label":"Aceito receber lan\u00e7amentos por e-mail \/ WhatsApp","visible":1,"required":0,"created_at":"2023-03-08 18:25:49","updated_at":"2023-04-12 19:32:05"}]}],"fields":[{"id":971,"campaign_id":789,"company_id":null,"type":1,"label":"Loja F\u00edsica","order":null,"visible":1,"required":1,"created_at":"2023-03-30 14:08:01","updated_at":"2023-03-30 14:08:01","nameId":"loja_f\u00edsica","options":[]}]};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/596640c0ac0e4b3a8be8f3a2e977b748/115311/789/1125'; 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