PageSourceSearch

https://www.loctiteproducts.com/etc.clientlibs/heliux/clientlibs/c…-55643f3c2494851e06ddb8fd831db430-lc.min.js

js loctiteproducts.com collected 2026-09-24 19:19:53 UTC 3,130 bytes, 1 lines download raw bytes

1"use strict";(self.heliuxModules=self.heliuxModules||[]).push([[9397],{11896(t,e,n){n.d(e,{f:()=>k});var r=n(23029),u=n(49530),i=n(50388),o=n(53954),s=n(90991),a=n(85501),h=(n(74423),n(16045)),c=n(63645);function l(t,e,n){return e=(0,o.A)(e),(0,i.A)(t,f()?Reflect.construct(e,n||[],(0,o.A)(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function _(t,e,n,r){var u=(0,s.A)((0,o.A)(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof u?function(t){return u.apply(n,t)}:u}let k=function(t){function e(t){var n;(0,r.A)(this,e);const u=e.setAuth(t);return(n=l(this,e,[{...t,...u}])).maxRetries=t.maxRetries??2,n.retryOnStatuses=t.retryOn||[401,403],n.__updateToken().then(()=>n.logger.info("Token updates done.")),n}return(0,a.A)(e,t),(0,u.A)(e,[{key:"name",get:function(){return"FetchSDK"}},{key:"CIAM",get:function(){return(0,c.y7)()}},{key:"isUserLoggedIn",value:function(){return this.CIAM&&this.CIAM.signedIn}},{key:"__updateToken",value:async function(){const t=await(0,c.t6)();if(!t)return null;if(!t.isReady)return this.CIAM.onReady(12e4).then(()=>this.__getCachedToken()).then(t=>this.__validateToken({token:t})),null;const e=await this.__getCachedToken();return this.__validateToken({token:e})}},{key:"__validateToken",value:async function(t){return this.CIAM?.token&&this.CIAM?.token!==this.auth?.token&&(this.logger.log("__validateToken: Take token from CIAM.token for request auth of",this.name),this.auth=this.__getAuth(this.CIAM.token)),_(e,"__validateToken",this,3)([t])}},{key:"__getCachedToken",value:function(){return this.CIAM&&this.CIAM.isInit?this.CIAM.getCachedToken():null}},{key:"__getRefreshedToken",value:async function(){return await(0,c.t6)()?this.CIAM.getRefreshedToken():null}},{key:"__getToken",value:async function(){const t=this.auth?this.auth.token:null;return t?_(e,"__getToken",this,3)([t]):this.__getCachedToken()}},{key:"retryOn",value:function({status:t}={}){return!!t&&this.retryOnStatuses.includes(t)}},{key:"__updateAuthOptions",value:function(t,e={}){if(!t)return e;const n=e.headers||{},r=(n.Authorization||"").split(" "),u=2===r.length?r[0]:"Bearer";return{...e,headers:{...n,Authorization:`${u} ${t}`}}}},{key:"__refreshAuthOptions",value:async function(t){const e=await this.__getRefreshedToken();return this.__updateAuthOptions(e,t)}},{key:"__fetchRetry",value:async function(t,e,n=0){let r,u;try{r=await fetch(t,e)}catch(t){u=t,this.logger.error("Fetch error, count:",n,t)}if(this.logger.info("Fetch response:",{retryCount:n,maxRetries:this.maxRetries,url:t,status:r?r.status:"unknown"}),n<this.maxRetries&&this.retryOn(r)){if(1===n){const r=await this.__refreshAuthOptions(e);return this.__fetchRetry(t,r,n+1)}return this.__fetchRetry(t,e,n+1)}if(u||!r)throw new Error(u);return r}},{key:"__fetch",value:async function(t,e){return this.CIAM?this.__fetchRetry(t,e,0):(this.logger.warn("CIAM is not enabled"),null)}}],[{key:"setAuth",value:function(t={}){const e=(0,c.y7)();if(!e)return{};const{auth:n}=t;return{...!n&&e.token&&{auth:e.token}}}}])}(h.$)}}]);

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.