PageSourceSearch

https://www.stenchill.com/en/chunk-DAnwUYd_.js

js stenchill.com collected 2026-10-07 06:16:45 UTC 1,592 bytes, 1 lines download raw bytes

1import{Bt as To,Fn as cn,It as Se,Kr as po,Tr as m,Vt as U,Z as Jo,fn as Ze,hn as Zz,lt as MC,ur as hu,y as DW}from"./chunk-DrapeGWe.js";var g=`stenchill_banners_dismissed`;var w=class n{http=m(MC);locale=m(po);platformId=m(Jo);document=m(U);request=m(Zz,{optional:!0});activeBanners=Ze([]);dismissedIds=Ze(this.loadDismissed());reviewDrawerRequest=Ze(0);helpDrawerRequest=Ze(0);visibleBanners=cn(()=>this.activeBanners().filter(e=>!this.dismissedIds().has(e.id)));requestReviewDrawer(){this.reviewDrawerRequest.update(e=>e+1)}requestHelpDrawer(){this.helpDrawerRequest.update(e=>e+1)}loadActive(){let e=this.locale||`fr`;this.http.get(`/api/stencil/banners/active?lang=${e}`).pipe(hu(()=>To([]))).subscribe(r=>this.activeBanners.set(r))}dismiss(e){this.dismissedIds.update(r=>{let s=new Set(r);return s.add(e),this.persistDismissed(s),s})}loadDismissed(){let e=this.readCookieHeader();return this.parseCookie(e)}readCookieHeader(){if(DW(this.platformId))return this.document.cookie||``;let e=this.request;return e?.headers?typeof e.headers.get==`function`?e.headers.get(`cookie`)??``:e.headers.cookie??``:``}parseCookie(e){let r=new RegExp(`(?:^|; )${g}=([^;]*)`).exec(e);if(!r)return new Set;try{let D=decodeURIComponent(r[1]).split(`,`).map(a=>Number.parseInt(a,10)).filter(a=>Number.isFinite(a));return new Set(D)}catch{return new Set}}persistDismissed(e){if(!DW(this.platformId))return;let r=encodeURIComponent([...e].join(`,`));this.document.cookie=`${g}=${r}; Path=/; SameSite=Lax`}static ɵfac=function(r){return new(r||n)};static ɵprov=Se({token:n,factory:n.ɵfac})};export{w as t};

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.