1"use strict";(self.webpackChunktrux_common=self.webpackChunktrux_common||[]).push([[5496],{35496:function(e,t,s){s.r(t);var o=s(52891);t.default=class extends o.xI{storageKey="popupClosed";static values={mode:String,storage:String,timeout:Number};connect(){super.connect();if(!this.getStorage().getItem(this.storageKey)){const e=()=>this.element.style.display=null;switch(this.modeValue){case"on_load":e();break;case"timer":setTimeout(e,1e3*this.timeoutValue);break;case"inactivity":this.startInactiveTimer(e)}}}close(){this.element.style.display="none",this.getStorage().setItem(this.storageKey,"true")}startInactiveTimer(e){const t=["mousemove","scroll","keypress"];let s;const o=()=>{e(),t.forEach(e=>{window.removeEventListener(e,i)}),clearTimeout(s)},i=()=>{clearTimeout(s),s=setTimeout(o,1e3*this.timeoutValue)};t.forEach(e=>{window.addEventListener(e,i)}),i()}getStorage(){return"local"===this.storageKey?window.localStorage:window.sessionStorage}}}}]);
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.