PageSourceSearch

https://ghostii.ai/assets/js/6010.chunk.19c83ec5149943ab1de8.js

js ghostii.ai collected 2026-10-05 15:35:33 UTC 7,301 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkultimate_jekyll=self.webpackChunkultimate_jekyll||[]).push([[6010],{6010(t,e,n){n.r(e),n.d(e,{default:()=>s});const o=[{name:"Black Friday",getCoreDate:t=>{const e=r(t,10,4,4),n=new Date(e);return n.setDate(n.getDate()+1),n}},{name:"Cyber Monday",getCoreDate:t=>{const e=r(t,10,4,4),n=new Date(e);return n.setDate(n.getDate()+4),n}},{name:"Christmas",getCoreDate:t=>new Date(t,11,25)},{name:"Easter",getCoreDate:t=>function(t){const e=t%19,n=Math.floor(t/100),o=t%100,a=Math.floor(n/4),r=n%4,c=Math.floor((n+8)/25),l=(19*e+n-a-Math.floor((n-c+1)/3)+15)%30,i=(32+2*r+2*Math.floor(o/4)-l-o%4)%7,s=Math.floor((e+11*l+22*i)/451),d=Math.floor((l+i-7*s+114)/31)-1;return new Date(t,d,(l+i-7*s+114)%31+1)}(t)}],a=[{name:"Winter",months:[11,0,1],endMonth:1,endDay:28},{name:"Spring",months:[2,3,4],endMonth:4,endDay:31},{name:"Summer",months:[5,6,7],endMonth:7,endDay:31},{name:"Fall",months:[8,9,10],endMonth:10,endDay:30}];function r(t,e,n,o){let a=o-new Date(t,e,1).getDay();return a<0&&(a+=7),new Date(t,e,1+a+7*(n-1))}function c(t){const e=new Date(t);e.setDate(e.getDate()-7),e.setHours(0,0,0,0);const n=new Date(t);n.setDate(n.getDate()+3),n.setHours(23,59,59,999);const o=new Date(t);return o.setHours(23,59,59,999),{promoStart:e,coreDate:new Date(t),coreDateEnd:o,promoEnd:n}}function l(t=new Date){const e=function(t){const e=t.getFullYear(),n=[e-1,e,e+1],a=[];for(const t of n)for(const e of o){const n=c(e.getCoreDate(t));a.push({name:e.name,...n})}return a.sort((t,e)=>t.coreDate-e.coreDate)}(t).filter(e=>t>=e.promoStart&&t<=e.promoEnd);if(e.length>0){let n=null;for(const o of e)if(t<=o.coreDateEnd){n=o;break}return n||(n=e[e.length-1]),{saleName:`${n.name} Sale`,endDate:n.promoEnd,coreDate:n.coreDate,type:"holiday"}}const n=function(t){const e=t.getMonth(),n=a.find(t=>t.months.includes(e));if(!n)return null;const o=t.getFullYear();let r=o;"Winter"===n.name&&e<=1&&(r=o-1);const c=new Date(r,n.months[0],1);let l=o;"Winter"===n.name&&11===n.months[0]&&(l=o+1);const i=new Date(l,n.endMonth,n.endDay,23,59,59),s=(t-c)/(i-c),d=s>=.7;return{name:n.name,progress:s,isEndOfSeason:d,startDate:c,endDate:i}}(t);return n?{saleName:n.isEndOfSeason?`End of ${n.name} Sale`:`${n.name} Sale`,endDate:n.endDate,type:"season"}:{saleName:"Sale",endDate:null,type:"generic"}}var i=n(8129);const s=()=>new Promise(async function(t){return await i.A.dom().ready(),function(){const t=document.querySelectorAll(d.billingRadios),e=document.querySelectorAll(d.amountElements),n=document.querySelectorAll(d.billingInfoElements),o=document.querySelectorAll(d.pricePerUnitElements);console.log("Amount elements found:",e.length),console.log("Billing info elements found:",n.length),console.log("Price per unit elements found:",o.length),t.forEach(t=>{t.addEventListener("change",function(){const t=this.dataset.billing;console.log("Billing type changed to:",t),u(this),function(t){gtag("event","pricing_toggle",{billing_type:t}),fbq("track","ViewContent",{content_name:"Pricing",content_category:t}),ttq.track("ViewContent",{content_id:"pricing-page",content_type:"product",content_name:"Pricing Toggle"})}(t),function(t,e,n,o){e.forEach(e=>{const n="monthly"===t?e.dataset.monthly:e.dataset.annually;console.log(`Updating price from ${e.textContent} to ${n} (${t})`),console.log("Monthly value:",e.dataset.monthly,"Annual value:",e.dataset.annually),e.textContent=n}),n.forEach(e=>{const n="monthly"===t?e.dataset.monthly:e.dataset.annually;e.textContent=n}),o.forEach(e=>{const n="monthly"===t?e.dataset.monthly:e.dataset.annually;e.textContent=n})}(t,e,n,o)})});const a=document.querySelector(`${d.billingRadios}:checked`);a&&u(a)}(),document.querySelectorAll("button[data-plan-id]").forEach(t=>{t.addEventListener("click",function(){!function(t){const e=t.dataset.planId,n=document.querySelector(`${d.billingRadios}:checked`)?.dataset.billing||"monthly";if(!e)return void i.A.sentry().captureException(new Error("Plan ID missing from button"));const o=t.closest(".card"),a=o?.querySelector(".h3, .h2, .card-title"),r=a?.textContent||e,c=o?.querySelector(".amount"),l=c?parseFloat(c.textContent):0;if(function(t,e,n,o){gtag("event","add_to_cart",{currency:"USD",value:n,items:[{item_id:t,item_name:e,item_category:"subscription",item_variant:o,price:n,quantity:1}]}),fbq("track","AddToCart",{content_ids:[t],content_name:e,content_type:"product",currency:"USD",value:n}),ttq.track("AddToCart",{content_id:t,content_type:"product",content_name:e,price:n,quantity:1,currency:"USD",value:n})}(e,r,l,n),console.log(`Added to cart: ${e} (${n} frequency) - $${l}`),"enterprise"===e)return gtag("event","contact_enterprise",{from_page:"pricing"}),fbq("track","Contact",{content_name:"Enterprise Plan"}),ttq.track("Contact",{content_id:"enterprise-plan",content_type:"product",content_name:"Enterprise Plan"}),void(window.location.href="/contact");const s=new URL("/payment/checkout",window.location.origin);s.searchParams.set("product",e),"basic"!==e&&s.searchParams.set("frequency",n),window.location.href=s.toString()}(this)})}),i.A.auth().listen({once:!0},t=>{const e=i.A.auth().resolveSubscription(t.account);if(!e.active)return;const n=document.querySelector(`button[data-plan-id="${e.plan}"]`);n&&(n.disabled=!0,n.textContent="Current Plan",n.classList.remove("btn-primary","btn-gradient-rainbow","gradient-animated"),n.classList.add("btn-adaptive")),document.querySelectorAll("button[data-plan-id]").forEach(t=>{t.dataset.planId!==e.plan&&"basic"!==t.dataset.planId&&"enterprise"!==t.dataset.planId&&(t.textContent="Switch to This Plan")})}),setTimeout(function t(){const e=document.querySelector("nav");e&&e.matches(":hover")?setTimeout(t,1e3):m()},1e3),t()});n.dn(s);const d={billingRadios:'input[name="billing"]',amountElements:".amount",billingInfoElements:".billing-info",pricePerUnitElements:".price-per-unit",planButtons:".btn-primary",cardTitle:".card-title"};function u(t){const e=t.closest(".btn-group, .btn-group-toggle");if(!e)return;const n=e.querySelectorAll("label.btn");console.log("Toggle group found:",e),console.log("All buttons found:",n.length),console.log("Active radio:",t),n.forEac
1h(e=>{e.classList.remove("btn-primary","btn-outline-adaptive");const n=e.getAttribute("for"),o=n&&n===t.id;console.log("Button for:",n,"Radio id:",t.id,"Is active:",o),o?e.classList.add("btn-primary"):e.classList.add("btn-outline-adaptive")})}function m(){const t=document.getElementById("pricing-promo-countdown"),e=document.getElementById("pricing-promo-text");if(!t||!e)return;const{saleName:n}=l();e.textContent=n;const o=1728e5,a=Math.floor(Date.now()/o)*o+o;function r(){const e=new Date,n=a-e.getTime();if(n<=0)return void(t.textContent="0d : 00h : 00m : 00s");const o=Math.floor(n/864e5),r=String(Math.floor(n%864e5/36e5)).padStart(2,"0"),c=String(Math.floor(n%36e5/6e4)).padStart(2,"0"),l=String(Math.floor(n%6e4/1e3)).padStart(2,"0");t.textContent=`${o}d : ${r}h : ${c}m : ${l}s`}r(),setInterval(r,1e3),function(){const t=document.getElementById("pricing-promo-banner"),e=document.querySelector(".navbar-wrapper"),n=document.querySelector("main > section:first-of-type");if(!t||!e)return;t.removeAttribute("hidden");const o=t.offsetHeight-10;if(e.style.marginTop=`${o}px`,n){const t=parseFloat(getComputedStyle(n).paddingTop);n.style.paddingTop=`${t+o}px`}}()}}}]);

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.