1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[46777],{42646:(t,e,n)=>{n.d(e,{$m:()=>r,Vo:()=>u});let i={tool_email_capture:1,signup_complete:5,source_connected:15,first_publish:25,purchase_creator:49,purchase_starter:99,purchase_pro:299,purchase_founding:39,purchase_agency:799},a={signup_complete:"oAUqCPewubMcEI-pnuFD",purchase_creator:"umC3CPqwubMcEI-pnuFD",purchase_starter:"BIySCP2wubMcEI-pnuFD",purchase_pro:"oBQvCPixubMcEI-pnuFD",purchase_founding:"og8DCPuxubMcEI-pnuFD",purchase_agency:"VDKFCP6xubMcEI-pnuFD"},o="AW-18189096079";function r(t,e={}){if("function"!=typeof window.gtag)return;let n=e.value??i[t];window.gtag("event",t,{currency:"USD",value:n,...e});let c=a[t];if(c&&o){let t={send_to:`${o}/${c}`,value:n,currency:"USD"};e.transaction_id&&(t.transaction_id=e.transaction_id),window.gtag("event","conversion",t)}}let c=["gclid","utm_source","utm_medium","utm_campaign","utm_content","utm_term"];function u(){let t=new URLSearchParams(window.location.search);for(let e of c){let n=t.get(e);if(n)try{sessionStorage.setItem("kontent_attr_"+e,n)}catch{}}}},46777:(t,e,n)=>{n.r(e),n.d(e,{getVisitorIdForSignup:()=>l,installCtaClickListener:()=>C,installOutboundLinkListener:()=>M,installPageDwellListener:()=>L,installScrollDepthListener:()=>E,trackActivatedOnce:()=>D,trackCtaClick:()=>v,trackEvent:()=>d,trackMilestone:()=>S,trackOnboardingStepCompleted:()=>h,trackOnboardingStepViewed:()=>f,trackOptIn:()=>m,trackPageView:()=>s,trackPayFirstSignupAdsOnly:()=>g,trackScrollDepth:()=>b,trackSignupComplete:()=>p,trackSignupCompleteAdsOnly:()=>_,trackVideoMilestone:()=>k,trackVideoTotal:()=>y});var i=n(42646);let a="kontent_vid",o="kontent_sid",r="kontent_sid_ts";function c(){return"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"v-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function u(){let t=function(t){if("u"<typeof document)return null;let e=document.cookie.match(RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null}(a);return t||!function(t,e,n=365){if("u"<typeof document)return;let i=new Date(Date.now()+24*n*36e5).toUTCString();document.cookie=t+"="+encodeURIComponent(e)+"; expires="+i+"; path=/; SameSite=Lax; Secure"}(a,t=c()),t}function l(){return u()}async function d(t,e={}){let n,i=e.path??window.location.pathname;if("onboarding_step_viewed"!==t&&"onboarding_step_completed"!==t&&((n=(i||"/").split("?")[0]).startsWith("/api/")||n.startsWith("/_next/")||n.startsWith("/admin")||n.startsWith("/signin")))return;let a=window.location.hostname;if("localhost"===a||"127.0.0.1"===a||a.endsWith(".local"))return;let l={visitor_id:u(),session_id:function(){if("u"<typeof sessionStorage)return c();let t=Date.now(),e=Number(sessionStorage.getItem(r)||"0"),n=sessionStorage.getItem(o);return(!n||t-e>18e5)&&(n=c(),sessionStorage.setItem(o,n)),sessionStorage.setItem(r,String(t)),n}(),event_type:t,path:i,referrer:document.referrer||null,...function(){try{let t=new URL(window.location.href).searchParams;return{utm_source:t.get("utm_source"),utm_medium:t.get("utm_medium"),utm_campaign:t.get("utm_campaign"),utm_term:t.get("utm_term"),utm_content:t.get("utm_content"),gclid:t.get("gclid"),fbclid:t.get("fbclid")}}catch{return{utm_source:null,utm_medium:null,utm_campaign:null,utm_term:null,utm_content:null,gclid:null,fbclid:null}}}(),metadata:e.metadata??null,user_id:e.userId??null};try{let t=JSON.stringify(l);if(navigator.sendBeacon){let e=new Blob([t],{type:"application/json"});if(navigator.sendBeacon("/api/track",e))return}await fetch("/api/track",{method:"POST",headers:{"content-type":"application/json"},body:t,keepalive:!0})}catch{}}function s(t){d("page_view",{path:t})}function m(t){d("opt_in",{metadata:t})}function p(t,e){d("signup_complete",{userId:t,metadata:e}),(0,i.$m)("signup_complete",{transaction_id:t})}function _(t){(0,i.$m)("signup_complete",{transaction_id:t})}function g(t){(0,i.$m)("signup_complete",{transaction_id:t})}function h(t,e,n){return(d("onboarding_step_completed",{metadata:{...e||{},step:t},userId:n}),e?.failed===!0)?Promise.resolve():w(t)}function f(t,e,n){!Number.isInteger(t)||t<1||t>4||d("onboarding_step_viewed",{metadata:{...e||{},step:t},userId:n})}async function w(t){if(Number.isInteger(t)&&!(t<1)&&!(t>4))try{let{createClient:e}=await Promise.all([n.e(25730),n.e(35536),n.e(16385)]).then(n.bind(n,16385)),i=e(),{data:{user:a}}=await i.auth.getUser();if(!a?.id)return;await i.from("profiles").update({onboarding_step_completed:t}).eq("id",a.id).lt("onboarding_step_completed",t)}catch(t){console.warn("[onboarding] step persist failed",t)}}function v(t,e){t&&d("cta_click",{metadata:{...e||{},cta_id:t}})}function b(t){d("scroll_depth",{metadata:{percent:t}})}function k(t,e){d("video_progress",{metadata:{kind:"milestone",milestone:t,video_id:e.video_id,current_seconds:Math.round(e.current_seconds),duration_seconds:Math.round(e.duration_seconds)}})}function y(t){d("video_progress",{metadata:{kind:"total",video_id:t.video_id,watched_seconds:Math.round(t.watched_seconds),duration_seconds:Math.round(t.duration_seconds)}})}function S(t,e,i){t&&(async()=>{let a=i;if(!a)try{let{createClient:t}=await Promise.all([n.e(25730),n.e(35536),n.e(16385)]).then(n.bind(n,16385)),e=t(),{data:{user:i}}=await e.auth.getUser();a=i?.id}catch{}await d("milestone",{metadata:{...e||{},key:t},userId:a})})()}let I="kontent_activated_fired";function D(t){if(t){try{if(localStorage.getItem(I)===t)return;localStorage.setItem(I,t)}catch{}d("activated",{userId:t,metadata:{path:"/dashboard"}})}}function C(){if("u"<typeof document)return()=>void 0;let t=t=>{let e=t.target;if(!e)return;let n=e.closest("[data-cta-id]");if(!n)return;let i=n.getAttribute("data-cta-id")||"";i&&v(i,{label:n.getAttribute("data-cta-label")||n.textContent?.trim().slice(0,80)||null,path:window.location.pathname})};return document.addEventListener("click",t,{capture:!0}),()=>document.removeEventListener("click",t,{capture:!0})}function E(){let t=new Set,e=window.location.pathname,n=[25,50,75,100],i=()=>{window.location.pathname!==e&&(e=window.location.pathname,t=new Set);let i=document.documentElement,a=window.scrollY||i.scrollTop||0,o=window.innerHeight||i.clientHeight||0,r=Math.max(i.scrollHeight,i.offsetHeight,document.body.scrollHeight),c=Math.max(1,r-o),u=r<=o+1?100:Math.min(100,Math.round(a/c*100));for(let e of n)u>=e&&!t.has(e)&&(t.add(e),b(e))},a=!1,o=()=>{a||(a=!0,requestAnimationFrame(()=>{a=!1,i()}))};return window.addEventListener("scroll",o,{passive:!0}),i(),()=>window.removeEventListener("scroll",o)}function L(){let t=0,e="visible"===document.visibilityState?Date.now():null,n=window.location.pathname,i=()=>{null!=e&&(t+=Math.max(0,Date.now()-e),e=null);let i=Math.round(t);if(t=0,i<1e3){n=window.location.pathname;return}d("page_dwell",{path:n,metadata:{dwell_ms:i}}),n=window.location.pathname},a=()=>
1{"hidden"===document.visibilityState?i():null==e&&(e=Date.now())},o=()=>{i()};return document.addEventListener("visibilitychange",a),window.addEventListener("pagehide",o),()=>{document.removeEventListener("visibilitychange",a),window.removeEventListener("pagehide",o)}}function M(){if("u"<typeof document)return()=>void 0;let t=t=>{let e,n=t.target;if(!n)return;let i=n.closest("a");if(!i)return;let a=i.getAttribute("href");if(a&&/^https?:\/\//i.test(a)){try{e=new URL(a)}catch{return}e.hostname===window.location.hostname||i.closest("[data-cta-id]")||d("cta_click",{metadata:{cta_id:"outbound",outbound:!0,href:e.href.slice(0,512),outbound_host:e.hostname,label:i.textContent?.trim().slice(0,80)||null,path:window.location.pathname}})}};return document.addEventListener("click",t,{capture:!0}),()=>document.removeEventListener("click",t,{capture:!0})}}}]);
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.