1import{Da as r,Ha as a,X as s,ba as i,md as n}from"./chunk-5SAOKRHL.js";var f=(()=>{class e{constructor(){this.platformId=i(a),this.KEY="sc-cookies-consent",this.LEGACY_KEY="softcollie-cookies-accepted",this.status=r("unknown"),this.bannerHandledByTemplate=r(!1),n(this.platformId)&&this.status.set(this.readInitial())}grant(){this.persist("granted"),this.status.set("granted")}deny(){this.persist("denied"),this.status.set("denied")}markHandledByTemplate(){this.bannerHandledByTemplate.set(!0)}readInitial(){try{let t=localStorage.getItem(this.KEY);if(t==="granted"||t==="denied")return t;if(localStorage.getItem(this.LEGACY_KEY)==="true")return this.persist("granted"),"granted"}catch{}return"unknown"}persist(t){try{localStorage.setItem(this.KEY,t),t==="granted"&&localStorage.setItem(this.LEGACY_KEY,"true")}catch{}}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=s({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{f as a};
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.