1var c=Object.defineProperty;var u=(s,e,t)=>e in s?c(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var o=(s,e,t)=>u(s,typeof e!="symbol"?e+"":e,t);import{C as d,u as h,i as C}from"../application.3a13dd1a.js";class l extends d{denyAll(){this.updateConsent(this.getChoices(),{denyAll:!0})}allowAll(){this.updateConsent(this.getChoices({defaultValue:!0}),{allowAll:!0})}getChoices({defaultValue:e=!1,overrides:t={}}={}){return this.cookieCategories.reduce((i,a)=>({...i,[a]:e,...t}),{})}save(e){e.preventDefault();const t=this.choiceTargets.reduce((i,a)=>({...i,[a.getAttribute("name")]:!!a.checked}),{});this.updateConsent(this.getChoices({overrides:t}))}updateConsent(e,{denyAll:t=!1,allowAll:i=!1}={}){h(e),C.trackEvent("updateConsent",{denyAll:t,allowAll:i,...Object.entries(e).reduce((a,[r,n])=>({...a,[`${r}Consent`]:n}),{})})}get cookieCategories(){return this.cookieCategoriesValue.split(/\s*,\s*/)}}o(l,"targets",["choice"]),o(l,"values",{cookieCategories:String});export{l as default};
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.