1import{c as g,i as b,d as v}from"./attribution.BwVQjnXq.js";import{p as k}from"./data-layer.DhidTIaT.js";function y(t,c){if(t.__dashWebsiteTracking)return;t.__dashWebsiteTracking=!0;const n=t.document;let i;try{i=t.sessionStorage}catch{}const u=g(i);let p;try{p=i?.getItem("dash_explicit_platform")}catch{}const d=()=>["pt","es","fr"].includes(t.location.pathname.split("/")[1])?t.location.pathname.split("/")[1]:"en",f=a=>{const e=a?.dataset.platformIntent,r=n.querySelector("[data-platform-route-preference]")?.dataset.platformRoutePreference;for(const[s,o]of[[e,"cta"],[r,"page"],[p,"selection"]])if(["slack","teams"].includes(s))return{platform_intent:s,platform_intent_source:o};return{platform_intent:"unspecified",platform_intent_source:"unspecified"}},m=(a,e)=>{const r=v(a.href,t.location.href,e.latest,d(),c.environment);if(!r)return!1;const s=new URL(r);if(a.hasAttribute("data-signup-cta")){const o=f(a).platform_intent;o==="unspecified"?s.searchParams.delete("platform_intent"):s.searchParams.set("platform_intent",o)}return a.href=s.href,!0},l=()=>{const a=u.capture(t.location.href,n.referrer);n.querySelectorAll("a[href]").forEach(e=>m(e,a))},h=a=>{if(a.type==="auxclick"?a.button!==1:a.button!==0)return;const e=a.target?.closest?.("a[href]");if(!e)return;const r=u.capture(t.location.href,n.referrer);if(!m(e,r)||!e.hasAttribute("data-signup-cta")||!b(c.enabled,t.location.hostname,c.environment))return;const s={event_id:t.crypto.randomUUID(),page_path:t.location.pathname,locale:d(),...f(e),cta_id:e.dataset.signupCta,cta_location:e.dataset.ctaLocation};for(const[o,_]of Object.entries(r.latest))o.startsWith("utm_")&&_.length<=100&&(s[o]=_);try{k(t,"dash_signup_started",s)}catch{}if(c.hubspotSignupEvent==="pe45167024_dash_signup_started"&&(!t.dashHubspotOwnership||t.dashHubspotOwnership.canTrack()))try{(t._hsq||=[]).push(["trackCustomBehavioralEvent",{name:c.hubspotSignupEvent,properties:s}])}catch{}if(c.environment!=="staging")try{t.oaiq?.("measure","custom",{type:"custom"},{custom_event_name:"signup_started",event_id:s.event_id})}catch{}};n.addEventListener("click",h,!0),n.addEventListener("auxclick",h,!0),n.addEventListener("click",a=>{const e=a.target?.closest?.("[data-platform-tab], [data-pricing-platform-option], [data-use-case-platform-tab]"),r=e?.dataset.platformTab||e?.dataset.pricingPlatformOption||e?.dataset.useCasePlatformTab;if(["slack","teams"].includes(r)){p=r;try{i?.setItem("dash_explicit_platform",r)}catch{}l()}}),n.addEventListener("astro:page-load",l),n.readyState==="loading"?n.addEventListener("DOMContentLoaded",l,{once:!0}):l()}y(window,{enabled:!0,hubspotSignupEvent:"pe45167024_dash_signup_started"});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.