PageSourceSearch

https://www.sleepnumber.com/build/assets/consent-BU_wfrUD.js

js sleepnumber.com collected 2026-10-01 10:28:51 UTC 1,590 bytes, 2 lines download raw bytes

1import{G as e,K as t,Y as n}from"./string-C5fLiEhb.js";import{n as r}from"./url-oFviDeGj.js";import{s as i}from"./Html-BylF1A06.js";import{t as a}from"./hub-CQbyO_3k.js";var o=[`CA`],s=[...o,`CO`,`PA`],c=365,l=[`sleepnumber.com`,`sleepnumber.test`],u=i.enumValues.map(e=>e.id),d=[i.FUNCTIONAL_NECESSARY.id];function f(e){return!!e&&o.includes(e)}function p(e){return!!e&&s.includes(e)}function m(e){return r(`testConsentState`)?.toUpperCase()||e?.toUpperCase()}function h(e){return`groups=${u.map(t=>`${t}:${+!!e.includes(t)}`).join(`,`)}`}function g(e){let t=new URLSearchParams(e).get(`groups`);if(!t)return;let n=t.split(`,`).map(e=>e.split(`:`)).filter(([,e])=>e===`1`).map(([e])=>e);return u.filter(e=>n.includes(e))}function _(e){return[...new URLSearchParams(e).keys()].some(e=>e!==`groups`)}function v(){let e=n.get(t.consent.name);if(e)return g(e)}function y(t){e.OnetrustActiveGroups=`,${t.join(`,`)},`,a.pub(a.topics.CONSENT_UPDATED,t)}function b(){let t=e.location?.hostname??``;return l.find(e=>t===e||t.endsWith(`.${e}`))}function x(e){n.set(t.consent.name,h(e),{expires:c,domain:b()})}function S(e){x(e),y(e)}function C(e){let r=n.get(t.consent.name),i=r?g(r):void 0;if(r&&i){_(r)?S(i):y(i);return}if(f(m(e))){y(d);return}S(u)}function w(){n.set(t.privacy_notice.name,`1`,{expires:c,domain:b()})}function T(e){let r=m(e);return p(r)?f(r)?!v():!n.get(t.privacy_notice.name):!1}function E(){a.pub(a.topics.PRIVACY_BANNER)}function D(){return{grantConsent:()=>S(u),declineConsent:()=>S(d)}}export{D as a,E as i,C as n,w as r,T as t};
2//# sourceMappingURL=consent-BU_wfrUD.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.