PageSourceSearch

https://www.smartsheet.com/sites/default/files/js/js_p0bOHtxv1rrOU…2EXGpdYWa77I8_2TPwvFtS1w_dANNlljluOwf8nLNcM

js smartsheet.com collected 2026-10-01 06:49:18 UTC 7,563 bytes, 6 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2var Smartsheet=Smartsheet||{};(function(){let addReadOnlyCookies=function(Smartsheet){Smartsheet.Cookies=function(cookieString){this.existing=cookieString;};Smartsheet.Cookies.prototype.get=function(key,urldecode){urldecode=(typeof urldecode==='undefined'?true:urldecode);var existing=this.existing;var value='';var cookies=existing.split(';');for(var i=0;i<cookies.length;i++){var cookie=cookies[i].trim();if(cookie.indexOf(key)===0&&cookie.length>(key+'=').length)value=cookie;}if(value){value=value.substring((key+'=').length);if(urldecode)try{value=decodeURIComponent(value);}catch(e){value='';}}return value;};};(function(){if(typeof module!=='undefined')module.exports=function(Smartsheet){addReadOnlyCookies(Smartsheet);return Smartsheet.Cookies;};else addReadOnlyCookies(Smartsheet);})();})();;
3var Smartsheet=Smartsheet||{};(function(){var addCookies=function(Smartsheet,window){Smartsheet.Cookies.prototype.set=function(key,value,expiration,domain,urlencode){document.cookie=this.getSetterString(key,value,expiration,domain,urlencode);this.existing=document.cookie;};Smartsheet.Cookies.prototype.getSetterString=function(key,value,expiration,domain,urlencode,sameSite){urlencode=(typeof urlencode==='undefined'?true:urlencode);if(!expiration)expiration=new Date('Tue, 19 Jan 2038 03:14:07 UTC');if(!domain){var domain_parts=window.location.hostname.split('.');domain_parts.shift();domain=domain_parts.join('.');}var str=key+'=';str=str+(urlencode?encodeURIComponent(value):value);str=str+';domain='+domain+';path=/;expires='+expiration.toUTCString();if(typeof sameSite==='undefined')sameSite='Lax';str=str+';SameSite='+sameSite;return str;};};(function(){if(typeof module!=='undefined')module.exports=function(Smartsheet,window){Smartsheet.Cookies=require('./cookie-read-only.js')(Smartsheet);addCookies(Smartsheet,window);return Smartsheet.Cookies;};else addCookies(Smartsheet,window);})();})();;
4var Smartsheet=Smartsheet||{};(function(){Smartsheet.Privacy=function(){this.scripts={};this.consentListeners=[];this.consent={};};Smartsheet.Privacy.getInstance=function(){if(typeof Smartsheet.Privacy._instance==='undefined')Smartsheet.Privacy._instance=new Smartsheet.Privacy();return Smartsheet.Privacy._instance;};Smartsheet.Privacy.prototype.addConsentListener=function(listener){if(Object.keys(this.consent).length===0)this.consentListeners.push(listener);else{listener(this.consent);this.consentListeners.push(listener);}};Smartsheet.Privacy.prototype.consentDataListener=function(c){if(c&&c.purposes){this.consent=c.purposes;for(var i=0;i<this.consentListeners.length;i++)this.consentListeners[i](this.consent);}};})();(function(){var cookieManager=new Smartsheet.Cookies(document.cookie);var privacyAPI=Smartsheet.Privacy.getInstance(cookieManager);if(typeof window.semaphore!=='undefined')window.semaphore.push(['onConsent',privacyAPI.consentDataListener.bind(privacyAPI)]);})();;
5var Smartsheet=Smartsheet||{};(function(){var addtinfo=function(Smartsheet){Smartsheet.InfoCookie=function(cookieManager,localStorage,referrer,currentPath,queryString,userAgent){this.cookieManager=cookieManager;this.storage=localStorage;this.referrer=referrer;this.currentPath=currentPath;this.queryString=queryString;this.userAgent=userAgent;};Smartsheet.InfoCookie.prototype.split=function(str){var entries={};var regex=/^(%(25){0,}(3F)?|\?+)/;var contents=str.split('&');for(i=0;i<contents.length;i++){var entry=contents[i].split('=');if(entry[0]!==''){let key=entry[0].replace(regex,'');entries[key]=decodeURIComponent(entry[1]);}}return entries;};Smartsheet.InfoCookie.prototype.getExistingEntries=function(){var cookieVals=this.split(this.cookieManager.get('tinfo')??'');var storageVals=this.split(this.storage.getItem('tinfo')??'');return this.addNewEntries(storageVals,cookieVals);};Smartsheet.InfoCookie.prototype.getEntries=function(){var entries=this.getExistingEntries();if(Object.keys(entries).length===0){entries.r=this.referrer;entries.slp=this.currentPath.replace(/^\//,'')||"/";}entries.UA=this.userAgent;var newEntries={};if(this.queryString){var query=this.queryString.replace(/^\?/,'');newEntries=this.split(query);}entries=this.addNewEntries(entries,newEntries);return entries;};Smartsheet.InfoCookie.prototype.addNewEntries=function(existing,additional){var existingKeys=Object.keys(existing);var additionalKeys=Object.keys(additional);var i,key;for(i=0;i<additionalKeys.length;i++){key=additionalKeys[i];if(!(key in existing))existing[key]=additional[key];}return existing;};Smartsheet.InfoCookie.prototype.stringify=function(entries){var key,value;var str='';for(key in entries)if(entries.hasOwnProperty(key)&&key)str+=encodeURIComponent(key)+'='+encodeURIComponent(entries[key])+'&';str=str.replace(/&$/,'');return str;};Smartsheet.InfoCookie.prototype.getStorageString=function(){let entries=this.getEntries();return this.stringify(entries);};Smartsheet.InfoCookie.prototype.getCookie=function(){var expires=new Date().getTime()+(86400000*30);var entries={'localStorage':true};return this.cookieManager.getSetterString('tinfo',this.stringify(entries),new Date(expires),'.smartsheet.com',true);};Smartsheet.InfoCookie.prototype.consentDataHandler=function(consentData){if(consentData.targeted_advertising){this.storage.setItem('tinfo',this.get
5StorageString());document.cookie=this.getCookie();}};};(function(){if(typeof module!=='undefined')module.exports=function(Smartsheet,window){Smartsheet.Cookies=require('./cookie-write.js')(Smartsheet,window);addtinfo(Smartsheet);return Smartsheet.InfoCookie;};else{addtinfo(Smartsheet);var privacyApi=Smartsheet.Privacy.getInstance();var cookieManager=new Smartsheet.Cookies(document.cookie);var infoCookie=new Smartsheet.InfoCookie(cookieManager,localStorage,document.referrer,document.location.pathname,document.location.search,navigator.userAgent);privacyApi.addConsentListener(infoCookie.consentDataHandler.bind(infoCookie));}})();})();;
6var Smartsheet=Smartsheet||{};(function(window,document,Smartsheet){Smartsheet.Optimizely={};Smartsheet.Optimizely.getOptimizelyVisitorId=function(storage){var key,matches;var re=new RegExp('optimizely_data\\$\\$(.+)\\$\\$(.+)\\$\\$event_queue');for(key in storage)if(key&&(matches=key.match(re))&&matches[1])return matches[1];return false;};Smartsheet.Optimizely.allowCommunication=function(consentData){if(!consentData.targeted_advertising)return;window.optimizely=window.optimizely||[];window.optimizely.push({type:"sendEvents"});};Smartsheet.Optimizely.saveUserId=function(consentData){if(!consentData.targeted_advertising)return;var cookieAPI=new Smartsheet.Cookies(document.cookie);var user_id=cookieAPI.get('user_id')||'not found';var plan_type=cookieAPI.get('plan_type')||'not found';var org_id=cookieAPI.get('org_id')||'not found';window.optimizely=window.optimizely||[];window["optimizely"].push({"type":"user","attributes":{"user_id":user_id,"plan_type":plan_type,"org_id":org_id}});};Smartsheet.Optimizely.setVisitorIdCookie=function(consentData){if(consentData.targeted_advertising){var id=Smartsheet.Optimizely.getOptimizelyVisitorId(window.localStorage);if(id){var cookieAPI=new Smartsheet.Cookies(document.cookie);cookieAPI.set('optimizelyVisitorId',id,null,'smartsheet.com');}}};var privacyApi=Smartsheet.Privacy.getInstance();privacyApi.addConsentListener(Smartsheet.Optimizely.allowCommunication);privacyApi.addConsentListener(Smartsheet.Optimizely.setVisitorIdCookie);privacyApi.addConsentListener(Smartsheet.Optimizely.saveUserId);})(window,document,Smartsheet);;

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.