PageSourceSearch

https://api2cart.com/wp-content/themes/a2c-amp/js/signup-ref.min.js

js api2cart.com collected 2026-09-24 17:19:50 UTC 3,226 bytes, 1 lines download raw bytes

1!function(){"use strict";var e=["app.api2cart.com","app.api2cart.local.com"],t="#sign-up",r="ref_btn",n="_A2C_SIGNUP_BTN_REF",a=30,i=["standard","dedicated","premium","enterprise"],o=["HEADER","FOOTER","NAV","MAIN","ASIDE","SECTION"];function l(e){return(e||"").replace(/\s+/g," ").trim()}function c(e){var t=e.querySelector(".plan-title, .title-plan-bold, .title-plans, h2, h3, h4");if(t){var r=l(t.textContent);if(r)return r}for(var n=0;n<i.length;n++)if(e.classList.contains(i[n]))return i[n];return"plan"}function u(e){var t=e.closest?e.closest(".pricing-plan, .plan"):null;if(t)return"pricing-plan | "+c(t);var r=e.closest?e.closest("th, td"):null;if(r)return"pricing-table | "+c(r);var n=function(e){return e.closest?e.closest('.menu-header, nav, ul.menu, [id*="menu"]')?"menu":e.closest("header, .header, .header-new")?"hero":e.closest("footer, .footer")?"footer":"":""}(e),a="menu"===n?"":function(e){for(var t=e;t&&t!==document.body&&1===t.nodeType;){var r=t.querySelectorAll?t.querySelectorAll("h1, h2, h3, h4"):[];if(r.length){for(var n=null,a=0;a<r.length;a++)r[a].compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING&&(n=r[a]);n||(n=r[0]);var i=l(n.textContent);if(i)return i}t=t.parentNode}return""}(e);if(n&&a)return n+" | "+a;if(n)return n;if(a)return"section | "+a;for(var i=e;i&&i!==document.body&&1===i.nodeType;){if(-1!==o.indexOf(i.tagName))return i.tagName.toLowerCase();if(i.id)return i.id;var u=i.getAttribute&&i.getAttribute("data-section");if(u)return u;i=i.parentNode}return"page"}function s(e,t){var r=new Date;r.setTime(r.getTime()+86400*a*1e3);var n,i="https:"===window.location.protocol?"; secure":"";document.cookie=e+"="+t+"; expires="+r.toUTCString()+"; path=/; domain="+((n=window.location.hostname.split(".")).length<2?window.location.hostname:"."+n.slice(-2).join("."))+"; samesite=lax"+i}function f(e){var t,r={page:window.location.pathname.replace(/^\/(.*)/,"$1")||"homepage",path:u(e),label:function(e){if(!e)return"";var t=(e.textContent||"").replace(/\s+/g," ").trim();return t||(e.getAttribute("aria-label")||e.getAttribute("title")||(e.querySelector&&e.querySelector("img")?e.querySelector("img").getAttribute("alt"):"")||"").trim()}(e),xpath:function(e){if(!e||1!==e.nodeType)return"";for(var t=[],r=e;r&&1===r.nodeType;){for(var n=r.tagName.toLowerCase(),a=1,i=!1,o=r.previousElementSibling;o;)o.tagName===r.tagName&&a++,o=o.previousElementSibling;if(a>1)i=!0;else for(o=r.nextElementSibling;o;){if(o.tagName===r.tagName){i=!0;break}o=o.nextElementSibling}t.unshift(i?n+"["+a+"]":n),r=r.parentNode}return"/"+t.join("/")}(e)};return t=JSON.stringify(r),btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}document.addEventListener("click",function(a){var i=a.target,o=i&&i.closest?i.closest("a[href]"):null;if(o&&function(r){var n,a=r.getAttribute("href");if(!a||-1===a.indexOf(t))return!1;try{n=new URL(r.href,window.location.href)}catch(e){return!1}return-1!==e.indexOf(n.hostname)&&-1!==n.hash.indexOf(t)}(o)){var l=f(o);try{var c=new URL(o.href,window.location.href);c.searchParams.set(r,l),o.setAttribute("href",c.toString())}catch(e){}s(n,l)}},!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.