PageSourceSearch

https://getambassador.com/hubfs/hub_generated/template_assets/1/32…/1782829180534/template_main.min.js

js getambassador.com collected 2026-10-02 02:38:59 UTC 12,943 bytes, 2 lines download raw bytes

1!function(){var callback,nav=document.querySelector(".header__navigation"),langSwitcher=document.querySelector(".header__language-switcher"),search=document.querySelector(".header__search"),allToggles=document.querySelectorAll(".header--toggle"),navToggle=document.querySelector(".header__navigation--toggle"),langToggle=document.querySelector(".header__language-switcher--toggle"),searchToggle=document.querySelector(".header__search--toggle"),closeToggle=document.querySelector(".header__close--toggle"),allElements=document.querySelectorAll(".header--element, .header--toggle"),emailGlobalUnsub=document.querySelector('input[name="globalunsub"]');function toggleNav(){allToggles.forEach(function(toggle){toggle.classList.toggle("hide")}),nav.classList.toggle("open"),navToggle.classList.toggle("open"),closeToggle.classList.toggle("show")}function toggleLang(){allToggles.forEach(function(toggle){toggle.classList.toggle("hide")}),langSwitcher.classList.toggle("open"),langToggle.classList.toggle("open"),closeToggle.classList.toggle("show")}function toggleSearch(){allToggles.forEach(function(toggle){toggle.classList.toggle("hide")}),search.classList.toggle("open"),searchToggle.classList.toggle("open"),closeToggle.classList.toggle("show")}function closeAll(){allElements.forEach(function(element){element.classList.remove("hide","open")}),closeToggle.classList.remove("show")}function toggleDisabled(){document.querySelectorAll("#email-prefs-form .item").forEach(function(item){var emailSubItemInput=item.querySelector("input");emailGlobalUnsub.checked?(item.classList.add("disabled"),emailSubItemInput.setAttribute("disabled","disabled"),emailSubItemInput.checked=!1):(item.classList.remove("disabled"),emailSubItemInput.removeAttribute("disabled"))})}callback=function(){document.body&&(langSwitcher&&langToggle.addEventListener("click",toggleLang),navToggle&&navToggle.addEventListener("click",toggleNav),searchToggle&&searchToggle.addEventListener("click",toggleSearch),closeToggle&&closeToggle.addEventListener("click",closeAll),emailGlobalUnsub&&emailGlobalUnsub.addEventListener("change",toggleDisabled))},["interactive","complete"].indexOf(document.readyState)>=0?callback():document.addEventListener("DOMContentLoaded",callback)}(),function(){var style=document.createElement("style");function init(){if(window.IntersectionObserver){var io=new IntersectionObserver(function(entries){entries.forEach(function(entry){entry.isIntersecting&&(entry.target.classList.add("in-view"),io.unobserve(entry.target))})},{threshold:.1});document.querySelectorAll(".engine-card, .proof-card, .feature-pill, .section-h2, .section-sub, .hiro-h3, .hiro-p, .cta-h2, .cta-sub").forEach(function(el,i){el.classList.add("scroll-reveal"),el.style.transitionDelay=i%4*.08+"s"}),document.querySelectorAll(".scroll-reveal").forEach(function(el){io.observe(el)})}}style.textContent=[".scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }",".scroll-reveal.in-view { opacity: 1; transform: translateY(0); }"].join(""),document.head.appendChild(style),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",init):init()}(),function(){var toggle=document.getElementById("ambNavToggle"),menu=document.getElementById("ambNavMenu");toggle&&menu&&toggle.addEventListener("click",function(){var isOpen=menu.classList.toggle("open");toggle.setAttribute("aria-expanded",isOpen?"true":"false")})}(),function(){var drops=document.querySelectorAll(".menu__item--drop");function closeAll(){drops.forEach(function(d){d.classList.remove("open");var btn=d.querySelector(".menu__toggle");btn&&btn.setAttribute("aria-expanded","false")})}drops.length&&(drops.forEach(function(item){var btn=item.querySelector(".menu__toggle");btn&&btn.addEventListener("click",function(e){e.stopPropagation();var isOpen=item.classList.contains("open");drops.forEach(function(other){if(other!==item){other.classList.remove("open");var otherBtn=other.querySelector(".menu__toggle");otherBtn&&otherBtn.setAttribute("aria-expanded","false")}}),item.classList.toggle("open",!isOpen),btn.setAttribute("aria-expanded",isOpen?"false":"true")})}),document.addEventListener("click",function(e){e.target.closest(".menu__item--drop")||closeAll()}),document.addEventListener("keydown",function(e){if("Escape"===e.key){var openItem=document.querySelector(".menu__item--drop.open");if(openItem){closeAll();var btn=openItem.querySelector(".menu__toggle");btn&&btn.focus()}}}))}(),function(){var canvas=document.getElementById("orbitalCanvas");if(canvas&&!(window.innerWidth<1024)){var W,H,cx,cy,ORBIT_R,CENTER_R,ctx=canvas.getContext("2d"),t=0;syncCanvasSize(),window.addEventListener("resize",syncCanvasSize,{passive:!0});var engines=[{name:"Referral",color:"#3B82F6",angle:0},{name:"Loyalty",color:"#60A5FA",angle:Math.PI/3},{name:"Advocacy",color:"#818CF8",angle:2*Math.PI/3},{name:"Affiliate",color:"#3B82F6",angle:Math.PI},{name:"Retention",color:"#60A5FA",angle:4*Math.PI/3},{name:"Expansion",color:"#818CF8",angle:5*Math.PI/3}],pulses=[];setInterval(function(){var src=Math.floor(6*Math.random()),dst=Math.floor(5*Math.random());dst>=src&&dst++,pulses.push({src:src,dst:dst,progress:0,speed:.008+.006*Math.random()})},900),function frame(){if(syncCanvasSize(),W&&H){ctx.clearRect(0,0,W,H),t+=.012;var positions=engines.map(function(_,i){return idx=i,time=t,wobble=6*Math.sin(.4*time+1.1*idx),a=engines[idx].angle+time*(.08+.004*idx),{x:cx+Math.cos(a)*(ORBIT_R+wobble),y:cy+Math.sin(a)*(ORBIT_R+wobble)};var idx,time,wobble,a});!function(positions,time){for(var i=0;i<positions.length;i++)for(var j=i+1;j<positions.length;j++)if(!(Math.abs(i-j)>1)||0===i&&5===j){var alpha=.07*(.5*Math.sin(.5*time+i+j)+.5);ctx.save(),ctx.strokeStyle="#3B82F6",ctx.lineWidth=.8,ctx.globalAlpha=alpha,ctx.beginPath(),ctx.moveTo(positions[i].x,positions[i].y),ctx.lineTo(positions[j].x,positions[j].y),ctx.stroke(),ctx.restore(
1)}}(positions,t),function(time){var pulse=.05*Math.sin(.9*time)+1,breath=.08*Math.sin(1.3*time)+1;[80,55,36].forEach(function(r,i){var alpha=[.03,.055,.09][i]+.015*Math.sin(.7*time+i),g=ctx.createRadialGradient(cx,cy,0,cx,cy,r);g.addColorStop(0,"rgba(124,58,237,"+alpha+")"),g.addColorStop(1,"rgba(124,58,237,0)"),ctx.fillStyle=g,ctx.beginPath(),ctx.arc(cx,cy,r,0,2*Math.PI),ctx.fill()});var SPOKE_R=52*pulse,outerNodes=[-Math.PI/2,-Math.PI/2+2*Math.PI/3,-Math.PI/2+4*Math.PI/3].map(function(a){return{x:cx+Math.cos(a)*SPOKE_R,y:cy+Math.sin(a)*SPOKE_R}});outerNodes.forEach(function(n,i){var spokeAlpha=.5+.12*Math.sin(.8*time+1.1*i);ctx.save(),ctx.strokeStyle="#7C3AED",ctx.lineWidth=1.2,ctx.globalAlpha=spokeAlpha,ctx.lineCap="round",ctx.beginPath(),ctx.moveTo(cx,cy),ctx.lineTo(n.x,n.y),ctx.stroke(),ctx.restore()}),outerNodes.forEach(function(n,i){var nb=.12*Math.sin(1.1*time+1.3*i)+1,ng=ctx.createRadialGradient(n.x,n.y,0,n.x,n.y,14);ng.addColorStop(0,"rgba(59,130,246,0.35)"),ng.addColorStop(1,"rgba(59,130,246,0)"),ctx.fillStyle=ng,ctx.beginPath(),ctx.arc(n.x,n.y,14,0,2*Math.PI),ctx.fill(),ctx.fillStyle="#3B82F6",ctx.beginPath(),ctx.arc(n.x,n.y,5.5*nb,0,2*Math.PI),ctx.fill(),ctx.fillStyle="rgba(255,255,255,0.55)",ctx.beginPath(),ctx.arc(n.x-1.2,n.y-1.2,1.8,0,2*Math.PI),ctx.fill()});var HR=CENTER_R*pulse,cycle=performance.now()/1e3%3/3,flash=Math.pow(Math.sin(cycle*Math.PI),2.5),flashR=HR*(.36+.04*breath)*(1+.55*flash),baseC=[196,181,253],flashC=[238,233,255],rc=Math.round(baseC[0]+(flashC[0]-baseC[0])*flash),gc=Math.round(baseC[1]+(flashC[1]-baseC[1])*flash),bc=Math.round(baseC[2]+(flashC[2]-baseC[2])*flash),coreAlpha=.85+.15*flash,halo=ctx.createRadialGradient(cx,cy,.5*HR,cx,cy,2.2*HR);halo.addColorStop(0,"rgba(124,58,237,0.18)"),halo.addColorStop(.5,"rgba(124,58,237,0.06)"),halo.addColorStop(1,"rgba(124,58,237,0)"),ctx.fillStyle=halo,ctx.beginPath(),ctx.arc(cx,cy,2.2*HR,0,2*Math.PI),ctx.fill(),ctx.fillStyle="#7C3AED",ctx.beginPath(),ctx.arc(cx,cy,HR,0,2*Math.PI),ctx.fill();var inner=ctx.createRadialGradient(cx-.2*HR,cy-.2*HR,0,cx,cy,HR);if(inner.addColorStop(0,"rgba(196,181,253,0.45)"),inner.addColorStop(.5,"rgba(124,58,237,0)"),inner.addColorStop(1,"rgba(80,20,180,0.3)"),ctx.fillStyle=inner,ctx.beginPath(),ctx.arc(cx,cy,HR,0,2*Math.PI),ctx.fill(),flash>.05&&(ctx.save(),ctx.strokeStyle="rgba("+rc+","+gc+","+bc+","+.35*flash+")",ctx.lineWidth=1.2+1.2*flash,ctx.shadowColor="rgba(196,181,253,"+.6*flash+")",ctx.shadowBlur=8,ctx.beginPath(),ctx.arc(cx,cy,HR*(1+1.8*flash),0,2*Math.PI),ctx.stroke(),ctx.restore(),ctx.save(),ctx.strokeStyle="rgba(196,181,253,"+.2*flash+")",ctx.lineWidth=.8,ctx.beginPath(),ctx.arc(cx,cy,HR*(.85+1.3*flash),0,2*Math.PI),ctx.stroke(),ctx.restore()),flash>.1){var bloom=ctx.createRadialGradient(cx,cy,0,cx,cy,1.8*HR*(1+.5*flash));bloom.addColorStop(0,"rgba("+rc+","+gc+","+bc+","+.18*flash+")"),bloom.addColorStop(.5,"rgba(196,181,253,"+.06*flash+")"),bloom.addColorStop(1,"rgba(196,181,253,0)"),ctx.fillStyle=bloom,ctx.beginPath(),ctx.arc(cx,cy,2.5*HR,0,2*Math.PI),ctx.fill()}ctx.save(),ctx.shadowColor="rgba("+rc+","+gc+","+bc+","+(.4+.5*flash)+")",ctx.shadowBlur=6+14*flash,ctx.fillStyle="rgba("+rc+","+gc+","+bc+","+coreAlpha+")",ctx.beginPath(),ctx.arc(cx,cy,flashR,0,2*Math.PI),ctx.fill(),ctx.restore(),ctx.fillStyle="rgba(255,255,255,"+(.45+.4*flash)+")",ctx.globalAlpha=.5+.4*flash,ctx.beginPath(),ctx.arc(cx-.32*flashR,cy-.32*flashR,.38*flashR,0,2*Math.PI),ctx.fill(),ctx.globalAlpha=1}(t),positions.forEach(function(pos,i){!function(pos,eng,time,idx){ctx.save(),ctx.strokeStyle=eng.color,ctx.lineWidth=.5,ctx.globalAlpha=.06,ctx.setLineDash([4,8]),ctx.beginPath(),ctx.arc(cx,cy,ORBIT_R,0,2*Math.PI),ctx.stroke(),ctx.setLineDash([]),ctx.restore();var g=ctx.createRadialGradient(pos.x,pos.y,0,pos.x,pos.y,28);g.addColorStop(0,eng.color+"40"),g.addColorStop(1,eng.color+"00"),ctx.fillStyle=g,ctx.beginPath(),ctx.arc(pos.x,pos.y,28,0,2*Math.PI),ctx.fill();var nb=.1*Math.sin(1.2*time+.8*idx)+1;ctx.fillStyle=eng.color,ctx.beginPath(),ctx.arc(pos.x,pos.y,9*nb,0,2*Math.PI),ctx.fill(),ctx.fillStyle="#fff",ctx.globalAlpha=.7,ctx.beginPath(),ctx.arc(pos.x,pos.y,3.5,0,2*Math.PI),ctx.fill(),ctx.globalAlpha=1,ctx.save(),ctx.font='500 30px "DM Sans", sans-serif',ctx.fillStyle=eng.color,ctx.globalAlpha=.82,ctx.textAlign="center";var angle=Math.atan2(pos.y-cy,pos.x-cx);ctx.fillText(eng.name,pos.x+36*Math.cos(angle),pos.y+36*Math.sin(angle)+8),ctx.restore(
1)}(pos,engines[i],t,i)}),function(positions){(pulses=pulses.filter(function(p){return p.progress<1})).forEach(function(p){p.progress+=p.speed;var src=positions[p.src],dst=positions[p.dst],isInbound=p.progress<.5,segProgress=isInbound?2*p.progress:2*(p.progress-.5),fromX=isInbound?src.x:cx,fromY=isInbound?src.y:cy,toX=isInbound?cx:dst.x,toY=isInbound?cy:dst.y,headX=fromX+(toX-fromX)*segProgress,headY=fromY+(toY-fromY)*segProgress,tailT=Math.max(0,segProgress-.32),tailX=fromX+(toX-fromX)*tailT,tailY=fromY+(toY-fromY)*tailT,glowColor=isInbound?"rgba(59,130,246,":"rgba(196,181,253,",coreColor=isInbound?"rgba(147,210,255,1)":"rgba(255,240,255,1)";ctx.save();var g1=ctx.createLinearGradient(tailX,tailY,headX,headY);g1.addColorStop(0,glowColor+"0)"),g1.addColorStop(.4,glowColor+"0.04)"),g1.addColorStop(1,glowColor+"0.22)"),ctx.strokeStyle=g1,ctx.lineWidth=6,ctx.lineCap="round",ctx.beginPath(),ctx.moveTo(tailX,tailY),ctx.lineTo(headX,headY),ctx.stroke();var g2=ctx.createLinearGradient(tailX,tailY,headX,headY);g2.addColorStop(0,glowColor+"0)"),g2.addColorStop(.5,glowColor+"0.15)"),g2.addColorStop(1,glowColor+"0.7)"),ctx.strokeStyle=g2,ctx.lineWidth=2.5,ctx.beginPath(),ctx.moveTo(tailX,tailY),ctx.lineTo(headX,headY),ctx.stroke();var g3=ctx.createLinearGradient(tailX,tailY,headX,headY);g3.addColorStop(0,"rgba(255,255,255,0)"),g3.addColorStop(.6,"rgba(255,255,255,0.3)"),g3.addColorStop(1,"rgba(255,255,255,0.95)"),ctx.strokeStyle=g3,ctx.lineWidth=1,ctx.beginPath(),ctx.moveTo(tailX,tailY),ctx.lineTo(headX,headY),ctx.stroke();var flare=ctx.createRadialGradient(headX,headY,0,headX,headY,10);flare.addColorStop(0,coreColor),flare.addColorStop(.2,glowColor+"0.8)"),flare.addColorStop(.6,glowColor+"0.2)"),flare.addColorStop(1,glowColor+"0)"),ctx.fillStyle=flare,ctx.beginPath(),ctx.arc(headX,headY,10,0,2*Math.PI),ctx.fill(),ctx.fillStyle=coreColor,ctx.globalAlpha=.9,ctx.beginPath(),ctx.arc(headX,headY,2,0,2*Math.PI),ctx.fill(),ctx.globalAlpha=1,ctx.restore()})}(positions),requestAnimationFrame(frame)}else requestAnimationFrame(frame)}()}function syncCanvasSize(){var dpr=window.devicePixelRatio||1,rect=canvas.getBoundingClientRect(),dw=Math.round(rect.width),dh=Math.round(rect.height);if(dw&&dh){var nw=Math.round(dw*dpr),nh=Math.round(dh*dpr);canvas.width===nw&&canvas.height===nh||(canvas.width=nw,canvas.height=nh,W=canvas.width,H=canvas.height,cx=W/2,cy=H/2,ORBIT_R=.285*Math.min(W,H),CENTER_R=.027*Math.min(W,H))}}}();
2//# sourceURL=https://244219189.fs1.hubspotusercontent-na2.net/hubfs/244219189/hub_generated/template_assets/1/321618468555/1782829180534/template_main.js

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.