(function(){function b(d,e,g){function a(j,i){if(!e[j]){if(!d[j]){var f="function"==typeof require&&require;if(!i&&f)return f(j,!0);if(h)return h(j,!0);var c=new Error("Cannot find module '"+j+"'");throw c.code="MODULE_NOT_FOUND",c}var k=e[j]={exports:{}};d[j][0].call(k.exports,function(b){var c=d[j][1][b];return a(c||b)},k,k.exports,b,d,e,g)}return e[j].exports}for(var h="function"==typeof require&&require,c=0;c<g.length;c++)a(g[c]);return a}return b})()({1:[function(a){const{consentManager:b,segment:c}=a("./snippets");// Default config values
window.SEGMENT_LOADED_EVENT=window.SEGMENT_LOADED_EVENT||"TrackingEnabled",window.COOKIE_BANNER_LOADED_EVENT=window.COOKIE_BANNER_LOADED_EVENT||"cookieBannerLoaded",window.SEGMENT_MANAGER_LOADED_EVENT=window.SEGMENT_MANAGER_LOADED_EVENT||"segmentManagerLoaded",window.CONSENT_COOKIE_NAME=window.CONSENT_COOKIE_NAME||"cookieBannerInteraction",window.COOKIE_BTNS_CUSTOM=window.COOKIE_BTNS_CUSTOM||"btn-customize-tools",window.CONSENT_COOKIE_EXPIRATION_DAYS=window.CONSENT_COOKIE_EXPIRATION_DAYS||365,window.SEGMENT_MANAGER_SCRIPT_URL=window.SEGMENT_MANAGER_SCRIPT_URL||"https://unpkg.com/@segment/consent-manager@5.0.0/standalone/consent-manager.js",window.CONSENT_MODIFIED=window.CONSENT_MODIFIED||{},window.TRACKING_DEFAULT_DESTINATION_BEHAVIOR=window.TRACKING_DEFAULT_DESTINATION_BEHAVIOR||"imply",window.TRACKING_FUNCTIONAL_TOOLS=window.TRACKING_FUNCTIONAL_TOOLS||["Google Analytics","Google Analytics 4 Web","Google Analytics 4","Mixpanel (Actions)","Mixpanel","HubSpot","Hotjar","Google Tag Manager","Actions Amplitude","Amplitude","Indicative"],window.TRACKING_ADVERTISING_TOOLS=window.TRACKING_ADVERTISING_TOOLS||["Facebook Pixel","Google AdWords New","Linkedin Insight Tag"],window.PRIVACY_POLICY_URL=window.PRIVACY_POLICY_URL||"https://www.betrybe.com/politica-de-privacidade",window.COOKIE_NOTICE_VIEWED=window.COOKIE_NOTICE_VIEWED||"CookieNoticeViewed",window.COOKIES_PREFERENCES_ACCEPTED=window.COOKIES_PREFERENCES_ACCEPTED||"CookiesPreferencesAccepted",window.COOKIES_PREFERENCES_CUSTOMIZED=window.COOKIES_PREFERENCES_CUSTOMIZED||"CookiesPreferencesCustomized",window.UTM_CAPTURE_DONE_EVENT=window.UTM_CAPTURE_DONE_EVENT||"UtmCaptureDone",window.PAGE_VIEW_TYPE=window.PAGE_VIEW_TYPE||"default",window.CONSENT_MANAGER_CSS=`<style>#consent-manager-base{display:none}#consent-manager-overlay{position:fixed;inset:0;width:100%;height:100vh;z-index:999999!important;display:none;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;background:rgba(67 90 111 69.8%)}#consent-manager{color:rgb(67 90 111);display:flex;flex-direction:column;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);width:750px;margin:8px;background:rgb(255 255 255);border-radius:2px;animation:.2s cubic-bezier(0,0,.2,1) 0s 1 normal both running animation-1wg6zz4;z-index:5001;font-family:Verdana,Arial,Helvetica,Tahoma,sans-serif;border:1px solid #ddd;padding:10px}#consent-manager-title{width:100%}#consent-manager-title #title{font-size:18px;font-weight:600;color:rgb(31 65 96);margin:0;padding:0 10px;line-height:60px}#consent-manager-table table{width:100%;border-collapse:collapse}#consent-manager-table td,#consent-manager-table th{border:1px solid rgba(67 90 111 11.4%);padding:8px 12px;color:rgb(31 65 96)}#consent-manager-table td{text-align:left;font-size:14px;padding:20px}.cookie-banner-text p{margin:0}#consent-manager-table p{margin:0;padding:10px}#consent-manager-table td input{display:block;margin:0 auto}#consent-manager-table th{font-size:16px;background-color:rgb(247 248 250);text-align:left}#consent-manager-category{width:120px}#consent-manager-permissions{width:70px}.cookie-banner-buttons{display:flex;flex-direction:column;width:100%;justify-content:space-around;align-items:center}.cookie-banner-buttons button{display:inline-block;width:90%;font-family:Verdana,Arial,Helvetica,Tahoma,sans-serif;text-decoration:none;text-align:center;font-size:12px;cursor:pointer;font-weight:400;line-height:1.5rem;border-radius:.25rem;border-style:solid;border-width:.125rem;padding:.5rem 2rem;margin:5px 0}.cookie-banner-buttons button.btn-primary{border-color:transparent;background-color:#003be5;color:#fff}.cookie-banner-buttons button.btn-tertiary{background-color:#fff;color:#003be5;border:2px solid #003be5}.cookie-banner-buttons button.btn-tertiary:hover{border-color:transparent;background-color:#c7dfff}.cookie-banner-buttons button.btn-primary:hover{background-color:#002799}#consent-manager-controls{border-top:1px solid #ddd;width:100%;height:60px;text-align:right}#consent-manager-save{margin:10px 0}#cookie-banner-section{background:#fff;box-shadow:0 2px 4px 0 rgba(0 0 0 40%);border:1px solid #478f44;border-radius:8px;bottom:16px;display:none;font-family:Verdana,Arial,Helvetica,Tahoma,sans-serif;position:fixed;margin:auto;left:16px;right:16px;width:90%;z-index:999999!important}.cookie-banner{max-width:100%;margin:10px auto;display:grid;grid-template-columns:1fr 200px;align-items:center;padding:0 5px}.cookie-banner-text{color:#4a5568;font-size:12px;line-height:16px;padding:8px}.cookie-banner-text a{text-decoration:underline;color:#2fc18c}@media (width <= 991px){.cookie-banner-text{text-align:left;margin:0 auto;padding:0 10px}.cookie-banner-buttons button{width:194px}}@media (width <= 768px){.cookie-banner{display:flex;flex-wrap:wrap}.btn{max-width:650px}#consent-manager-controls{text-align:center}.cookie-banner-buttons{flex-direction:row-reverse;padding:5px 0}.cookie-banner-buttons button{width:100%;margin:0 5px;line-height:1rem;padding-left:0;padding-right:0;font-size:12px}#consent-manager-controls button{width:100%}.cookie-banner-buttons,.cookie-banner-text{max-width:100%}#consent-manager-save{margin:10px 0}.cookie-banner-text{padding:5px 10px 0;font-size:12px}}@media (width <= 479px){#consent-manager-title h2{line-height:22px}#consent-manager-purpose,.purpose{display:none}}</style>`,window.CONSENT_MANAGER_HTML=`<div id=consent-manager-overlay><div id=consent-manager><form action=# id=consent-manager-form><div id=consent-manager-title><span id=title>Preferências de coleta de dados</span></div><div id=consent-manager-table><p>Defina seu consentimento para cada categoria abaixo:<table><thead><tr><th scope=col id=consent-manager-category>Categoria<th scope=col id=consent-manager-purpose>Propósito<th scope=col id=consent-manager-permissions>Permitir<tbody><tr><td>Funcionais<td class=purpose>Utilizados para análise estatística e de comportamento.<td><input id=functional-check type=checkbox checked><tr><td>Publicidade<td class=purpose>Utilizados para fins publicitários.<td><input id=advertising-check type=checkbox checked><tr><td>Essenciais<td class=purpose>Cookies essenciais para o funcionamento do site. Podem ser desativados através do navegador.<td><input id=essential-check type=checkbox disabled checked></table></div><div id=consent-manager-controls><button type=submit class="btn btn-primary btn-base" id=consent-manager-save>Salvar</button></div></form></div></div><div id=cookie-banner-section><div class=cookie-banner><div class=cookie-banner-text><p>Nós utilizamos cookies para memorizar suas preferências, além de enviar ofertas com base na sua navegação em nosso site. Essa prática pode incluir o compartilhamento de seus dados com terceiros. Leia mais em nossa&nbsp;<a id=privacy-policy-url target=_blank href=#>Política de Privacidade</a>).</div><div class=cookie-banner-buttons><button type=button class="btn btn-primary btn-base" id=allow-all-tools>Entendi</button><button type=button class="btn btn-tertiary btn-base" id=customize-tools style=display:none>Personalizar</button></div></div></div>`,window.BTN_ALLOW_ALL=window.BTN_ALLOW_ALL||"allow-all-tools",window.BTN_CUSTOMIZE=window.BTN_CUSTOMIZE||"customize-tools",window.BTN_SAVE=window.BTN_SAVE||"consent-manager-save",window.LINK_PRIVACY_POLICY=window.LINK_PRIVACY_POLICY||"privacy-policy-url",window.CHECK_FUNCTIONAL=window.CHECK_FUNCTIONAL||"functional-check",window.CHECK_ADVERTISING=window.CHECK_ADVERTISING||"advertising-check";const d=(a,b,c=!0)=>{if(a&&b){const d=Array.isArray(a)?a:[a];try{for(let a=0;a<d.length;a+=1){const e=document.getElementById(d[a]);e.addEventListener("click",a=>{c&&a.preventDefault(),b(a)},!1)}}catch(a){throw new Error(a)}}},e=(a,b)=>{const c=document.getElementById(a);c.style.display=b},f=({target:a},b=!0)=>{window.CONSENT_MODIFIED[a.id]=b},g=()=>{const a=window.CONSENT_COOKIE_NAME,b=window.CONSENT_COOKIE_EXPIRATION_DAYS,c=new Date(Date.now()+1e3*(60*(60*(24*b)))),d=`expires=${c.toGMTString()}`;[".betrybe.com",".betrybe.dev",".betrybe.app",".trybe.com.br","betrybe.lpages.co"].forEach(b=>{window.document.cookie=`${a}=true; ${d}; domain=${b}; path=/`})},h=()=>{[window.location.href]=window.location.href.split("#")},i=(a,b)=>{const c=window.consentManager.preferences.loadPreferences(),d={customPreferences:{Funcionais:a,Publicidade:b},destinationPreferences:{}},e=window.TRACKING_FUNCTIONAL_TOOLS,f=window.TRACKING_ADVERTISING_TOOLS;if(c.customPreferences.Funcionais!==a)for(let b=0;b<e.length;b+=1){const c=e[b];d.destinationPreferences[c]=a}if(c.customPreferences.Publicidade!==b)for(let a=0;a<f.length;a+=1){const c=f[a];d.destinationPreferences[c]=b}window.consentManager.preferences.savePreferences(d),g("Customized"),h()},j=()=>{const a=window.CONSENT_MODIFIED[window.CHECK_FUNCTIONAL],b=window.CONSENT_MODIFIED[window.CHECK_ADVERTISING];if(!a&&!b)return e("consent-manager-overlay","none"),e("cookie-banner-section","none"),void g("Customized");const c=window.document.getElementById(window.CHECK_FUNCTIONAL).checked,d=window.document.getElementById(window.CHECK_ADVERTISING).checked;i(c,d)},k=a=>{const b=window.document.cookie.match(new RegExp(`(^| )${a}=([^;]+)`));return b&&2<b.length?b[2]:null},l=()=>{const a=k(window.CONSENT_COOKIE_NAME);if(a){const b=window.document.getElementById(window.CHECK_FUNCTIONAL),c=window.document.getElementById(window.CHECK_ADVERTISING);b.checked=0<a.split("=")[1].indexOf("functionals:true"),c.checked=0<a.split("=")[1].indexOf("advertising:true")}},m=()=>{window.document.dispatchEvent(new Event(window.COOKIES_PREFERENCES_CUSTOMIZED)),l(),e("cookie-banner-section","none"),e("consent-manager-overlay","flex"),d([window.CHECK_FUNCTIONAL,window.CHECK_ADVERTISING],f,!1),d(window.BTN_SAVE,j)},n=()=>{e("cookie-banner-section","none"),g("AllowedAll"),window.document.dispatchEvent(new Event(window.COOKIES_PREFERENCES_ACCEPTED))},o=()=>{const a=k(window.CONSENT_COOKIE_NAME);return a&&"true"===a},p=()=>{const a=document.getElementById(window.LINK_PRIVACY_POLICY);a.href=window.PRIVACY_POLICY_URL},q=()=>{window.document.querySelector("head").insertAdjacentHTML("beforeend",window.CONSENT_MANAGER_CSS),window.document.querySelector("body").insertAdjacentHTML("afterbegin",window.CONSENT_MANAGER_HTML),window.document.dispatchEvent(new Event(window.COOKIE_BANNER_LOADED_EVENT))},r=()=>{let a=window.COOKIE_BTNS_CUSTOM;a=Array.isArray(a)?a:[a];for(let b=0;b<a.length;b+=1){const c=window.document.getElementById(a[b]);c&&c.addEventListener("click",m,!1)}const b=window.document.getElementsByTagName("a");for(let a=0;a<b.length;a+=1)0<b[a].href.indexOf("#config-consent")&&b[a].addEventListener("click",m,!1)};window.document.addEventListener(window.SEGMENT_LOADED_EVENT,()=>{setTimeout(()=>{o()||(e("cookie-banner-section","block"),d(window.BTN_ALLOW_ALL,n),d(window.BTN_CUSTOMIZE,m),window.document.dispatchEvent(new Event(window.COOKIE_NOTICE_VIEWED)),p())},5e3)},!1),window.addEventListener("load",()=>{const a={Funcionais:{purpose:"Utilizados para an\xE1lise estat\xEDstica e de comportamento.",integrations:window.TRACKING_FUNCTIONAL_TOOLS},Publicidade:{purpose:"Utilizados para fins publicit\xE1rios.",integrations:window.TRACKING_ADVERTISING_TOOLS}};window.consentManagerConfig=()=>({container:"#consent-manager-base",writeKey:window.SEGMENT_WRITE_KEY,preferencesDialogTitle:"Lorem",preferencesDialogContent:"Lorem",cancelDialogTitle:"Lorem",cancelDialogContent:"Lorem",bannerContent:"Lorem",initialPreferences:{Funcionais:!0,Publicidade:!0},customCategories:a,defaultDestinationBehavior:window.TRACKING_DEFAULT_DESTINATION_BEHAVIOR}),window.document.querySelector("body").insertAdjacentHTML("afterbegin","<div id=\"consent-manager-base\"></div>"),q(),r(),window.document.addEventListener(window.SEGMENT_MANAGER_LOADED_EVENT,c,!1),b(window.SEGMENT_MANAGER_SCRIPT_URL)},!1)},{"./snippets":2}],2:[function(a,b){/*eslint-disable */b.exports={async waitForSegment(){return new Promise(a=>{const b=setInterval(()=>{"undefined"==typeof window.analytics||!0!==window.analytics.initialized||(clearInterval(b),a())},500)})},consentManager(a){!function(){const b=new XMLHttpRequest;b.open("GET",a,!0),b.onload=()=>{if(200<=b.status&&400>b.status){let a=document.createElement("script");a.setAttribute("type","text/javascript"),a.innerHTML=b.responseText,window.document.querySelector("head").appendChild(a),window.document.dispatchEvent(new Event(window.SEGMENT_MANAGER_LOADED_EVENT))}},b.send()}()},segment(){!function(){var a=window.analytics=window.analytics||[];if(!a.initialize)if(a.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{a.invoked=!0,a.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware"],a.factory=function(b){return function(){var c=Array.prototype.slice.call(arguments);return c.unshift(b),a.push(c),a}};for(var c,d=0;d<a.methods.length;d++)c=a.methods[d],a[c]=a.factory(c);a.load=function(b,c){var d=document.createElement("script");d.type="text/javascript",d.async=!0,d.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+b+"/analytics.min.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(d,e),a._loadOptions=c,window.document.dispatchEvent(new Event(window.SEGMENT_LOADED_EVENT))},a.SNIPPET_VERSION="4.1.0",a.ready(function(){"function"==typeof window.ga&&(ga("require","linker"),ga("linker:autoLink",["app.betrybe.com","www.betrybe.com","blog.betrybe.com","be.trybe.com.br","trybe.com.br"]))}),"default"===window.PAGE_VIEW_TYPE?a.page():b.exports.waitForSegment().then(()=>{var a=function(){window.analytics.page({object:window.attributionCookies})};window.attributionCookies?a():window.document.addEventListener(window.UTM_CAPTURE_DONE_EVENT,a)})}}()}}},{}]},{},[1]);