PageSourceSearch

https://www.clickview.net/scripts/BFXddaSP.chunk.js

js clickview.net collected 2026-10-09 21:45:00 UTC 2,586 bytes, 2 lines download raw bytes

1import{t as e}from"./BYSskNbK.chunk.js";var t=`r`,n=`cv:r`,r=`cv:r:e`,i=`referrer`,a=`cv:originalReferrer`,o=28800,s=[`internalReferrer`],c={getDecodedAttributionData(){let t=e.cacheGet(n);return t&&Object.keys(t).length>0?t:l()?.decoded},getEncodedAttributionData(){let t=e.cacheGet(r);return t?.length?t:l().encoded},getProfileId(){return c.getDecodedAttributionData()?.profileId??null},setAttributionData(e){e&&h(m(e),e)},decodeRValue(e){if(e)try{let t=atob(e),n=JSON.parse(t);if(!d(n))throw Error(`Decoded R value is invalid: ${JSON.stringify(n)}`);return n}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}};function l(){let t=e.cacheGet(n),i=e.cacheGet(r);return d(t)?{encoded:i,decoded:t}:u()}function u(){e.cacheRemove(n),e.cacheRemove(r);let t=p(),i=c.decodeRValue(t);if(i)return h(t,i),{decoded:i,encoded:t};let a={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:f()},o=m(a);return h(o,a),{decoded:a,encoded:o}}function d(e){return!e||typeof e!=`object`||Object.keys(e).length<s.length?!1:s.every(t=>typeof e[t]==`string`)}function f(){let t=e.cacheGet(a);if(t&&typeof t==`string`)return t;let n=document.referrer??``;if(window.URLSearchParams){let e=new URLSearchParams(window.location.search),t=e.has(i)&&e.get(i);e.has(i)&&e.get(i)&&(n=t)}return n&&e.cacheSet(a,n,o),n}function p(){if(!window.URLSearchParams)return;let e=new URLSearchParams(window.location.search);if(e.has(t))return e.get(t)}function m(e){if(d(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function h(t,i){try{e.cacheSet(n,i,o),e.cacheSet(r,t,o)}catch{console.error(`Could not store attribution data in session storage`)}}var g=28800,_=`cv:utmparams`,v=[[`source`,`utm_source`],[`medium`,`utm_medium`],[`campaign`,`utm_campaign`],[`term`,`utm_term`],[`content`,`utm_content`]],y=v.reduce((e,[t])=>({...e,[t]:t}),{}),b={getUtmParameters(){if(!window.URLSearchParams)return null;let e=new URLSearchParams(window.location.search),t={};return v.forEach(([n,r])=>{e.has(r)&&(t[n]=e.get(r))}),x(t)},setUtmParameters(e){if(!e)return;let t={};return Object.keys(e).forEach(n=>{y[n]&&(t[n]=e[n])}),x(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;let e=new URLSearchParams,t=b.getUtmParameters();return t?(v.forEach(([n,r])=>{t[n]&&e.set(r,t[n])}),e):null}};function x(t){if(Object.keys(t).length)return e.cacheSet(_,t,g),t;let n=e.cacheGet(_);return n&&typeof n==`object`&&Object.keys(n).length?n:null}export{c as n,b as t};
2//# sourceMappingURL=BFXddaSP.chunk.js.map

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.