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":891,"name":"Campanha E-commerce","company":152582,"pipe":0,"extradata":{"btnSize":100,"companies":[{"id":"152582","selectedPipe":38755}],"fontColor":"#f5f5f5","btnPostion":{"x":"20","y":"60","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":false,"termOfUse":{"able":true,"required":false}},"buttonColor":"#95989A","show_configs_whats":{"list":[],"type":"all","triggers":[],"start_type":"insta"}},"created_at":"2023-07-04 17:41:24","updated_at":"2024-01-02 19:57:39","image":null,"deleted_at":null,"group":null,"title":"Squat Beachwear","objective":null,"disabled":0,"token":"8b473e8167369b87c3f626a91243672b","type_campaign":"default","topics":[{"id":1308,"name":"ecommerce","message":"","campaign_id":891,"popup_id":null,"last_seller":0,"created_at":"2023-07-10 19:49:39","updated_at":"2023-07-10 19:49:39","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}],"urls":[{"id":13338,"name":"S","urlkey":"S","campaign_id":891,"created_at":"2023-07-17 18:54:54","updated_at":"2023-07-17 18:54:54","company":null,"url":"S","domain":null,"layout_index":null,"extradata":null},{"id":13339,"name":"B","urlkey":"B","campaign_id":891,"created_at":"2023-07-18 00:10:45","updated_at":"2023-07-18 00:10:45","company":null,"url":"B","domain":null,"layout_index":null,"extradata":null},{"id":13340,"name":"M","urlkey":"M","campaign_id":891,"created_at":"2023-07-18 23:15:25","updated_at":"2023-07-18 23:15:25","company":null,"url":"M","domain":null,"layout_index":null,"extradata":null},{"id":13341,"name":"O","urlkey":"O","campaign_id":891,"created_at":"2023-07-19 00:06:18","updated_at":"2023-07-19 00:06:18","company":null,"url":"O","domain":null,"layout_index":null,"extradata":null},{"id":13345,"name":"","urlkey":"","campaign_id":891,"created_at":"2023-07-20 12:52:50","updated_at":"2023-07-20 12:52:50","company":null,"url":"","domain":null,"layout_index":null,"extradata":null},{"id":13354,"name":"H","urlkey":"H","campaign_id":891,"created_at":"2023-07-23 22:50:45","updated_at":"2023-07-23 22:50:45","company":null,"url":"H","domain":null,"layout_index":null,"extradata":null},{"id":13370,"name":"P","urlkey":"P","campaign_id":891,"created_at":"2023-08-04 00:22:24","updated_at":"2023-08-04 00:22:24","company":null,"url":"P","domain":null,"layout_index":null,"extradata":null},{"id":13375,"name":"T","urlkey":"T","campaign_id":891,"created_at":"2023-08-05 20:51:05","updated_at":"2023-08-05 20:51:05","company":null,"url":"T","domain":null,"layout_index":null,"extradata":null},{"id":13378,"name":"N","urlkey":"N","campaign_id":891,"created_at":"2023-08-07 02:05:05","updated_at":"2023-08-07 02:05:05","company":null,"url":"N","domain":null,"layout_index":null,"extradata":null},{"id":13379,"name":"v","urlkey":"v","campaign_id":891,"created_at":"2023-08-07 03:32:17","updated_at":"2023-08-07 03:32:17","company":null,"url":"v","domain":null,"layout_index":null,"extradata":null},{"id":13387,"name":"C","urlkey":"C","campaign_id":891,"created_at":"2023-08-11 15:54:11","updated_at":"2023-08-11 15:54:11","company":null,"url":"C","domain":null,"layout_index":null,"extradata":null},{"id":13405,"name":"i","urlkey":"i","campaign_id":891,"created_at":"2023-08-23 00:57:26","updated_at":"2023-08-23 00:57:26","company":null,"url":"i","domain":null,"layout_index":null,"extradata":null},{"id":13425,"name":"A","urlkey":"A","campaign_id":891,"created_at":"2023-09-04 02:27:57","updated_at":"2023-09-04 02:27:57","company":null,"url":"A","domain":null,"layout_index":null,"extradata":null},{"id":13456,"name":"D","urlkey":"D","campaign_id":891,"created_at":"2023-09-19 13:22:15","updated_at":"2023-09-19 13:22:15","company":null,"url":"D","domain":null,"layout_index":null,"extradata":null},{"id":13525,"name":"l","urlkey":"l","campaign_id":891,"created_at":"2023-11-26 13:10:28","updated_at":"2023-11-26 13:10:28","company":null,"url":"l","domain":null,"layout_index":null,"extradata":null},{"id":13664,"name":"E","urlkey":"E","campaign_id":891,"created_at":"2023-12-07 18:05:37","updated_at":"2023-12-07 18:05:37","company":null,"url":"E","domain":null,"layout_index":null,"extradata":null},{"id":13675,"name":"F","urlkey":"F","campaign_id":891,"created_at":"2023-12-14 04:19:01","updated_at":"2023-12-14 04:19:01","company":null,"url":"F","domain":null,"layout_index":null,"extradata":null},{"id":13679,"name":"k","urlkey":"k","campaign_id":891,"created_at":"2023-12-22 10:33:19","updated_at":"2023-12-22 10:33:19","company":null,"url":"k","domain":null,"layout_index":null,"extradata":null}],"popups":[],"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/8caf25abea3da1e3939001043e8d2584/152582/891/1308'; 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