PageSourceSearch

https://secure.banquedeluxembourg.com/chunk-QDIY6MA6.js

js banquedeluxembourg.com collected 2026-10-02 11:28:44 UTC 10,798 bytes, 2 lines download raw bytes

1import{D as v,I as C,v as j}from"./chunk-FNOROUKX.js";import{A as k,Ab as f,Ca as r,Da as p,E as H,F as O,Sa as V,a as N,ba as R,ia as h,ja as c,ma as o}from"./chunk-WO7VCCB3.js";var I=class{constructor(i,t){this.source=i,i.initialize&&i.initialize(t)}subscribe(i){this.sub=this.source.onInterrupt.subscribe(i)}unsubscribe(){this.sub.unsubscribe(),this.sub=null}resume(){this.source.attach()}pause(){this.source.detach()}},d=class{constructor(){this.idValue=new Date,this.idlingValue=!1}id(i){if(i!==void 0){if(!i)throw new Error("A value must be specified for the ID.");this.idValue=i}return this.idValue}idling(i){return i!==void 0&&(this.idlingValue=i),this.idlingValue}now(){return new Date}isExpired(){let i=this.last();return i!=null&&i<=this.now()}},y=class{constructor(){this.storageMap={}}get length(){return Object.keys(this.storageMap).length}clear(){this.storageMap={}}getItem(i){return typeof this.storageMap[i]<"u"?this.storageMap[i]:null}key(i){return Object.keys(this.storageMap)[i]||null}removeItem(i){this.storageMap[i]=void 0}setItem(i,t){this.storageMap[i]=t}},F=(()=>{class e{constructor(){this.storage=this.getStorage()}getStorage(){try{let t=localStorage;return t.setItem("ng2IdleStorage",""),t.removeItem("ng2IdleStorage"),t}catch(t){return new y}}getItem(t){return this.storage.getItem("ng2Idle."+t)}removeItem(t){this.storage.removeItem("ng2Idle."+t)}setItem(t,s){this.storage.setItem("ng2Idle."+t,s)}_wrapped(){return this.storage}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),w=(()=>{class e extends d{constructor(t){super(),this.localStorage=t,this.idleName="main"}last(t){return t!==void 0&&this.setExpiry(t),this.getExpiry()}idling(t){return t!==void 0&&this.setIdling(t),this.getIdling()}getIdleName(){return this.idleName}setIdleName(t){t&&(this.idleName=t)}getExpiry(){let t=this.localStorage.getItem(this.idleName+".expiry");return t?new Date(parseInt(t,10)):null}setExpiry(t){t?this.localStorage.setItem(this.idleName+".expiry",t.getTime().toString()):this.localStorage.removeItem(this.idleName+".expiry")}getIdling(){let t=this.localStorage.getItem(this.idleName+".idling");return t?t==="true":!1}setIdling(t){t?this.localStorage.setItem(this.idleName+".idling",t.toString()):this.localStorage.setItem(this.idleName+".idling","false")}static{this.\u0275fac=function(s){return new(s||e)(o(F))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),u=class{},g=(function(e){return e[e.disabled=0]="disabled",e[e.idle=1]="idle",e[e.notIdle=2]="notIdle",e})(g||{}),P=(()=>{class e{constructor(t,s,n,a){this.expiry=t,this.zone=s,this.platformId=a,this.idle=1200,this.timeoutVal=30,this.autoResume=g.idle,this.interrupts=new Array,this.running=!1,this.keepaliveEnabled=!1,this.onIdleStart=new r,this.onIdleEnd=new r,this.onTimeoutWarning=new r,this.onTimeout=new r,this.onInterrupt=new r,n&&(this.keepaliveSvc=n,this.keepaliveEnabled=!0),this.setIdling(!1)}setIdleName(t){if(this.expiry instanceof w)this.expiry.setIdleName(t);else throw new Error("Cannot set expiry key name because no LocalStorageExpiry has been provided.")}getKeepaliveEnabled(){return this.keepaliveEnabled}setKeepaliveEnabled(t){if(!this.keepaliveSvc)throw new Error("Cannot enable keepalive integration because no KeepaliveSvc has been provided.");return this.keepaliveEnabled=t}getTimeout(){return this.timeoutVal}setTimeout(t){if(t===!1)this.timeoutVal=0;else if(typeof t=="number"&&t>=0)this.timeoutVal=t;else throw new Error("'seconds' can only be 'false' or a positive number.");return this.timeoutVal}getIdle(){return this.idle}setIdle(t){if(t<=0)throw new Error("'seconds' must be greater zero");return this.idle=t}getAutoResume(){return this.autoResume}setAutoResume(t){return this.autoResume=t}setInterrupts(t){this.clearInterrupts();let s=this;for(let n of t){let a={platformId:this.platformId},l=new I(n,a);l.subscribe(M=>{s.interrupt(M.force,M.innerArgs)}),this.interrupts.push(l)}return this.interrupts}getInterrupts(){return this.interrupts}clearInterrupts(){for(let t of this.interrupts)t.pause(),t.unsubscribe();this.interrupts.length=0}isRunning(){return this.running}isIdling(){return this.idling}watch(t){this.safeClearInterval("idleHandle"),this.safeClearInterval("timeoutHandle");let s=this.timeoutVal?this.timeoutVal:0;if(!t){let a=new Date(this.expiry.now().getTime()+(this.idle+s)*1e3);this.expiry.last(a)}this.idling&&this.toggleState(),this.running||(this.startKeepalive(),this.toggleInterrupts(!0)),this.running=!0;let n=()=>{this.zone.run(()=>{this.getExpiryDiff(s)>0?(this.safeClearInterval("idleHandle"),this.setIdleIntervalOutsideOfZone(n,1e3)):this.toggleState()})};this.setIdleIntervalOutsideOfZone(n,1e3)}setIdleIntervalOutsideOfZone(t,s){this.zone.runOutsideAngular(()=>{this.idleHandle=setInterval(t,s)})}stop(){this.stopKeepalive(),this.toggleInterrupts(!1),this.safeClearInterval("idleHandle"),this.safeClearInterval("timeoutHandle"),this.setIdling(!1),this.running=!1,this.expiry.last(null)}timeout(){this.stopKeepalive(),this.toggleInterrupts(!1),this.safeClearInterval("idleHandle"),this.safeClearInterval("timeoutHandle"),this.setIdling(!0),this.running=!1,this.countdown=0,this.onTimeout.emit(null)}interrupt(t,s){if(this.running){if(this.timeoutVal&&this.expiry.isExpired()){this.timeout();return}this.onInterrupt.emit(s),(t===!0||this.autoResume===g.idle||this.autoResume===g.notIdle&&!this.expiry.idling())&&this.watch(t)}}setIdling(t){this.idling=t,this.expiry.idling(t)}toggleState(){this.setIdling(!this.idling),this.idling?(this.onIdleStart.emit(null),this.stopKeepalive(),this.timeoutVal>0&&(this.countdown=this.timeoutVal,this.doCountdown(),this.setTimeoutIntervalOutsideZone(()=>{this.doCountdownInZone()},1e3))):(this.toggleInterrupts(!0),this.onIdleEnd.emit(null),this.startKeepalive()),this.safeClearInterval("idleHandle")}setTimeoutIntervalOutsideZone(t,s){this.zone.runOutsideAngular(()=>{this.timeoutHandle=setInterval(()=>{t()},s)})}toggleInterrupts(t){for(let s of this.interrupts)t?s.resume():s.pause()}getExpiryDiff(t){let s=this.expiry.now();
1return(this.expiry.last()||s).getTime()-s.getTime()-t*1e3}doCountdownInZone(){this.zone.run(()=>{this.doCountdown()})}doCountdown(){let t=this.getExpiryDiff(this.timeoutVal);if(t>0){this.safeClearInterval("timeoutHandle"),this.interrupt(!0);return}if(!this.idling)return;if(this.countdown<=0){this.timeout();return}this.onTimeoutWarning.emit(this.countdown);let s=(this.timeoutVal-1)*1e3+t;this.countdown=Math.round(s/1e3)}safeClearInterval(t){let s=this[t];s!==null&&typeof s<"u"&&(clearInterval(this[t]),this[t]=null)}startKeepalive(){!this.keepaliveSvc||!this.keepaliveEnabled||(this.running&&this.keepaliveSvc.ping(),this.keepaliveSvc.start())}stopKeepalive(){!this.keepaliveSvc||!this.keepaliveEnabled||this.keepaliveSvc.stop()}ngOnDestroy(){this.stop(),this.clearInterrupts()}static{this.\u0275fac=function(s){return new(s||e)(o(d),o(p),o(u,8),o(V,8))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})(),b=class{constructor(i,t,s=!1){this.source=i,this.innerArgs=t,this.force=s}},E=class{constructor(i,t){this.attachFn=i,this.detachFn=t,this.isAttached=!1,this.onInterrupt=new r}attach(){if(Zone.current.get("isAngularZone")===!0){Zone.current.parent.run(()=>this.attach());return}!this.isAttached&&this.attachFn&&this.attachFn(this),this.isAttached=!0}detach(){this.isAttached&&this.detachFn&&this.detachFn(this),this.isAttached=!1}},T=500,m=class extends E{constructor(i,t,s){super(null,null),this.target=i,this.events=t,this.opts=s,this.eventSubscription=new N,typeof this.opts=="number"&&(this.opts={throttleDelay:this.opts,passive:!1}),this.opts=this.opts||{passive:!1,throttleDelay:T},(this.opts.throttleDelay===void 0||this.opts.throttleDelay===null)&&(this.opts.throttleDelay=T),this.throttleDelay=this.opts.throttleDelay,this.passive=!!this.opts.passive}initialize(i){if(i?.platformId&&j(i.platformId))return;let t=typeof this.target=="function"?this.target():this.target,s=this.passive?{passive:!0}:null,n=this.events.split(" ").map(l=>k(t,l,s));this.eventSrc=H(...n),this.eventSrc=this.eventSrc.pipe(O(l=>!this.filterEvent(l))),this.throttleDelay>0&&(this.eventSrc=this.eventSrc.pipe(R(this.throttleDelay)));let a=l=>this.onInterrupt.emit(new b(this,l));this.attachFn=()=>this.eventSubscription=this.eventSrc.subscribe(a),this.detachFn=()=>this.eventSubscription.unsubscribe()}filterEvent(i){return!1}get options(){return{passive:this.passive,throttleDelay:this.throttleDelay}}},x=class extends m{constructor(i,t){super(()=>document.documentElement,i,t)}filterEvent(i){return!!(i.type==="mousemove"&&(i.originalEvent&&i.originalEvent.movementX===0&&i.originalEvent.movementY===0||i.movementX!==void 0&&!i.movementX||!i.movementY))}},D=class extends m{constructor(i,t){super(()=>window,i,t)}},S=class extends D{constructor(i=500){super("storage",i)}filterEvent(i){return!(i.key&&i.key.indexOf("ng2Idle.")>=0&&i.key.indexOf(".expiry")>=0)}};var z=(()=>{class e{static forRoot(){return{ngModule:e,providers:[w,{provide:d,useExisting:w},P]}}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=f({type:e})}static{this.\u0275inj=c({providers:[F]})}}return e})();function A(e){return[new x("mousemove keydown DOMMouseScroll mousewheel mousedown touchstart touchmove scroll",e),new S(e)]}var B=A();var Z=(()=>{class e extends u{constructor(t,s){super(),this.http=t,this.zone=s,this.pingInterval=600,this.onPing=new r,this.onPingResponse=new r}request(t){return typeof t=="string"?this.pingRequest=new v("GET",t):t instanceof v?this.pingRequest=t:t===null&&(this.pingRequest=null),this.pingRequest}interval(t){if(!isNaN(t)&&t>0)this.pingInterval=t;else if(!isNaN(t)&&t<=0)throw new Error("Interval value must be greater than zero.");return this.pingInterval}ping(){this.onPing.emit(null),this.pingRequest&&this.http.request(this.pingRequest).subscribe(t=>{this.onPingResponse.emit(t)},t=>{this.onPingResponse.emit(t)})}start(){this.stop(),this.zone.runOutsideAngular(()=>{this.pingHandle=setInterval(()=>{this.zone.run(()=>{this.ping()})},this.pingInterval*1e3)})}stop(){this.hasPingHandle()&&(clearInterval(this.pingHandle),this.pingHandle=null)}ngOnDestroy(){this.stop()}isRunning(){return this.hasPingHandle()}hasPingHandle(){return this.pingHandle!==null&&typeof this.pingHandle<"u"}static{this.\u0275fac=function(s){return new(s||e)(o(C),o(p))}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac})}}return e})();var rt=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Z,{provide:u,useExisting:Z}]}}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=f({type:e})}static{this.\u0275inj=c({imports:[z.forRoot()]})}}return e})();export{P as a,B as b,Z as c,rt as d};
2//# sourceMappingURL=chunk-QDIY6MA6.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.