1import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-CXnKph_e.js";import{a as r,n as i,r as a,t as o}from"./measurement-D5CGMPA4.js";var s=e(t(),1),c=n(),l=`biosqueeze:open-cookie-settings`,u=`biosqueeze-cookie-preferences`,d=15552e3;function f(e){let t=navigator.globalPrivacyControl===!0?{...e,analytics:!1,advertisement:!1}:e;return(window._hsp=window._hsp||[]).push([`setHubSpotConsent`,i(window.location.hostname)?t:o]),r(t),t}function p(){try{let e=window.localStorage.getItem(u);if(!e)return null;let t=JSON.parse(e);return!t.expiresAt||t.expiresAt<=Date.now()?(window.localStorage.removeItem(u),null):{analytics:t.analytics===!0,advertisement:t.advertisement===!0,functionality:t.functionality===!0}}catch{return null}}function m(e){try{window.localStorage.setItem(u,JSON.stringify({...e,expiresAt:Date.now()+d*1e3}))}catch{}}function h({category:e,title:t,description:n,expanded:r,preferences:i,onExpand:a,onChange:o}){return(0,c.jsxs)(`div`,{className:`cookie-category`,children:[(0,c.jsxs)(`div`,{className:`cookie-category-row`,children:[(0,c.jsx)(`button`,{type:`button`,"aria-expanded":r===e,onClick:()=>a(e),children:t}),e===`necessary`?(0,c.jsx)(`span`,{children:`Always active`}):(0,c.jsxs)(`label`,{className:`cookie-switch`,children:[(0,c.jsxs)(`span`,{className:`sr-only`,children:[`Allow `,t.toLowerCase(),` cookies`]}),(0,c.jsx)(`input`,{type:`checkbox`,checked:i[e],onChange:t=>o(e,t.target.checked)}),(0,c.jsx)(`span`,{"aria-hidden":`true`})]})]}),r===e&&n&&(0,c.jsx)(`p`,{children:n})]})}function g(){let[e,t]=(0,s.useState)(!1),[n,u]=(0,s.useState)(null),[d,g]=(0,s.useState)(null),[_,v]=(0,s.useState)(o);(0,s.useEffect)(()=>{let e=window._hsp=window._hsp||[];if(r(o),i(window.location.hostname)){let t=!0,n=e=>{t&&r(a(e))},i=()=>e.push([`showBanner`]);if(e.push([`addPrivacyConsentListener`,n]),!document.getElementById(`hs-script-loader`)){let e=document.createElement(`script`);e.id=`hs-script-loader`,e.src=`https://js.hs-scripts.com/20753764.js`,e.async=!0,document.body.appendChild(e)}return window.addEventListener(l,i),()=>{t=!1,window.removeEventListener(l,i)}}let n=p(),s=f(n??o),c=window.setTimeout(()=>{t(!0),v(s),n||u(`banner`)},0),d=()=>u(`settings`);return window.addEventListener(l,d),()=>{window.clearTimeout(c),window.removeEventListener(l,d)}},[]);let y=e=>{let t=f(e);m(t),v(t),u(null)};return!e||n===null?null:n===`banner`?(0,c.jsxs)(`section`,{className:`fallback-cookie-banner`,role:`dialog`,"aria-label":`Cookie banner`,"aria-describedby":`fallback-cookie-wording`,children:[(0,c.jsx)(`button`,{className:`fallback-cookie-close`,type:`button`,"aria-label":`Dismiss cookie banner`,onClick:()=>u(null),children:`Ã`}),(0,c.jsx)(`p`,{children:`BioSqueeze uses cookies to understand website usage, measure marketing performance, and improve your experience. You can accept all cookies or manage your preferences.`}),(0,c.jsx)(`p`,{id:`fallback-cookie-wording`,children:`BioSqueeze uses necessary cookies to operate this website and, with your permission, analytics and marketing cookies to understand site usage, measure campaign performance, and improve our communications. You can accept all cookies, reject non-essential cookies, or manage your preferences. Learn more in our Privacy Policy.`}),(0,c.jsxs)(`div`,{className:`fallback-cookie-actions`,children:[(0,c.jsx)(`button`,{type:`button`,onClick:()=>u(`settings`),children:`Cookies settings`}),(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`button`,{type:`button`,className:`cookie-accept`,onClick:()=>y({analytics:!0,advertisement:!0,functionality:!0}),children:`Accept`}),(0,c.jsx)(`button`,{type:`button`,className:`cookie-reject`,onClick:()=>y(o),children:`Reject non-essential`})]})]})]}):(0,c.jsx)(`div`,{className:`fallback-cookie-overlay`,children:(0,c.jsxs)(`section`,{className:`fallback-cookie-settings`,role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":`fallback-cookie-settings-title`,children:[(0,c.jsx)(`button`,{type:`button`,className:`fallback-cookie-close`,"aria-label":`Close modal`,onClick:()=>u(null),children:`Ã`}
1),(0,c.jsx)(`h2`,{id:`fallback-cookie-settings-title`,children:`About Cookies`}),(0,c.jsx)(`p`,{children:`This site uses cookies. We use cookies mainly to improve and analyze your experience on our websites and for marketing purposes. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change your default settings. Blocking some types of cookies may negatively impact your experience on the site and limit the services we are able to provide.`}),(0,c.jsxs)(`div`,{className:`cookie-category-list`,children:[(0,c.jsx)(h,{category:`necessary`,title:`Necessary`,description:`These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in, or filling in forms. Learn more about necessary cookies.`,expanded:d,preferences:_,onExpand:e=>g(d===e?null:e),onChange:()=>void 0}),(0,c.jsx)(h,{category:`analytics`,title:`Analytics`,description:`These cookies help us to understand how visitors engage with the website. We may use a set of cookies to collect information and report site usage statistics. In addition to reporting site usage statistics, data collected may also be used, together with some of the advertising cookies described, to help show more relevant ads across the web and to measure interactions with the ads we show. Learn more about analytics cookies.`,expanded:d,preferences:_,onExpand:e=>g(d===e?null:e),onChange:(e,t)=>
1v(n=>({...n,[e]:t}))}),(0,c.jsx)(h,{category:`advertisement`,title:`Advertisement`,description:`We use cookies to make our ads more engaging and valuable to site visitors. Some common applications of cookies are to select advertising based on whatâs relevant to a user; to improve reporting on ad campaign performance; and to avoid showing ads the user has already seen. Learn more about advertisement cookies.`,expanded:d,preferences:_,onExpand:e=>g(d===e?null:e),onChange:(e,t)=>v(n=>({...n,[e]:t}))}),(0,c.jsx)(h,{category:`functionality`,title:`Functionality`,expanded:d,preferences:_,onExpand:e=>g(d===e?null:e),onChange:(e,t)=>v(n=>({...n,[e]:t}))})]}),(0,c.jsxs)(`div`,{className:`fallback-settings-actions`,children:[(0,c.jsx)(`button`,{type:`button`,className:`cookie-accept`,onClick:()=>y({analytics:!0,advertisement:!0,functionality:!0}),children:`Accept All`}),(0,c.jsx)(`button`,{type:`button`,className:`cookie-reject`,onClick:()=>y(_),children:`Save settings`})]})]})})}export{g as BioSqueezeConsent};
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.