var SlickstreamPricingCalculator=function(n){"use strict";class e extends HTMLElement{constructor(){super(),this.minimumCost=Math.round(10),this.root=this.attachShadow({mode:"open"}),this.root.innerHTML='\n \n
\n
10k page views per month
\n \n
\n
\n
\n

Engagement Suite

\n
\n $\n \n /mo\n
\n
\n
10k page views
\n
\n
\n / 1000 page views\n
\n
\n
\n
\n
    \n
  • Responsive Search
  • \n
  • Filmstrips
  • \n
  • User Favorites
  • \n
  • Games
  • \n
  • Analytics
  • \n
\n
\n
\n
\n
\n '}connectedCallback(){this.adjustRate();this.$("slider").addEventListener("input",()=>this.adjustRate())}$(n){return this.root.querySelector("#"+n)}pageViewsBySliderValue(n){const e=Math.log(1e4)+(Math.log(50000001)-Math.log(1e4))*n;let i=Math.floor(Math.pow(Math.E,e));return i=i<1e6?1e3*Math.floor(i/1e3):1e5*Math.floor(i/1e5),i}adjustRate(){const n=this.$("slider");if(n){const e=+n.value,i=this.pageViewsBySliderValue(e),t=Math.max(this.minimumCost,Math.round(i/1e3*12.5/100));this.$("monthlyCost").textContent=""+t;const a=this.$("rate1"),r=this.$("rate2"),o=this.$("rate2Strong");a.textContent=`($${this.minimumCost} minimum)`,o.textContent="$"+.125.toFixed(3),t<=this.minimumCost?(a.classList.remove("hidden"),r.classList.add("hidden")):(a.classList.add("hidden"),r.classList.remove("hidden"));const l=this.$("pageViewsLabel"),s=this.$("pageViewsLabel2");i<1e6?(l.textContent=Math.floor(i/1e3)+"k",s.textContent=Math.floor(i/1e3)+"k"):(l.textContent=(i/1e6).toFixed(1)+"M",s.textContent=(i/1e6).toFixed(1)+"M")}}}return customElements.define("pricing-calculator",e),n.PricingCalculator=e,Object.defineProperty(n,"__esModule",{value:!0}),n}({});