PageSourceSearch

https://www.casualstem.com/assets/useCookies-DFpesh5i.js

js casualstem.com collected 2026-10-04 23:47:03 UTC 1,836 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="85a9cf22-2fee-5ece-933b-48601ad41f62")}catch(e){}}();
3import{a as e}from"./jsx-runtime-CMgEUHpv.js";import{V as t}from"./dist-CAHjj65Z.js";import{O as n}from"./components-B8bHjdou.js";import{n as r}from"./useBoostAffiliate-BpQKdrbe.js";var i=e(t(),1),a=`active_upgrade_2`,o=[`popup_closed`,`email_capture_disabled`,a,`language`,`visit_token`,`referral_id`,`form_preview_banner_disabled`,`last_resource_guid`,`admin_logged_in`,`notifications_read`,`beehiiv_honey`,r],s={popup_closed:{name:`popup_closed`,value:`true`,days:4},email_capture_disabled:{name:`email_capture_disabled`,value:`true`,days:30},[a]:{name:a,value:`true`,days:30}},c=({initialCookies:e})=>{let[t]=n(),[r,a]=(0,i.useState)({}),[c,l]=(0,i.useState)(!1),[u,d]=(0,i.useState)({}),f=()=>{let e=document.cookie.split(`; `),t={};for(let n of e){let[e,r]=n.split(`=`),i=e||r,a=o.includes(e);i&&a&&(t[e]=decodeURIComponent(r))}return t},p=({name:e,value:t,days:n})=>{let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3),document.cookie=`${e}=${encodeURIComponent(t)};expires=${r.toUTCString()};path=/`,u[e]=t,d({...u})},m=e=>{document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`;let t={...u};delete t?.[e],d({...t}),a(t=>{let n={...t};return delete n[e],n})};return(0,i.useEffect)(()=>{a(f());for(let[t,n]of Object.entries(e)){let e=s[t];n&&e&&p(e)}let n=t.get(`ref`);n&&p({name:`referral_id`,value:n,days:30}),l(!0)},[]),{setCookie:p,cookies:{...r,...u},cookiesSet:c,removeCookie:m}};export{c as n,a as t};
4//# sourceMappingURL=useCookies-DFpesh5i.js.map
5//# debugId=85a9cf22-2fee-5ece-933b-48601ad41f62

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.