1import{r as p,j as e}from"./react-B62KX_yh.js";import{au as a,L as m}from"./tanstack-start-N_noiGjL.js";import{D as j,g as w,c as k,d as v,e as S,h as N}from"./dialog-CqkYEGBX.js";import{S as D}from"./switch-4-4CC77J.js";import"./radix-accordion-BojWFHKe.js";import"./radix-dialog-0ISVFfye.js";import"./radix-menu-BWvfNzDR.js";import"./radix-select-CoJcTNwl.js";import"./radix-navigation-menu-BMIVaaWL.js";import"./sonner-Cuj23odt.js";import"./lucide-3XnZ2Rrp.js";import"./tanstack-router-kwsmQtzq.js";import"./tanstack-c3473pde.js";import"./tanstack-query-C282WS1z.js";import"./ui-utils-DwKoTZwY.js";import"./unpic-CvTVdNXZ.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"[email protected]"};var i=new s.Error().stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="c49405dc-a2f7-4118-9aab-7a8d39812d29",s._sentryDebugIdIdentifier="sentry-dbid-c49405dc-a2f7-4118-9aab-7a8d39812d29")}catch{}})();const u=({checked:s,description:i,disabled:r,id:c,onChange:l,title:d})=>{const n=`${c}-label`,o=`${c}-description`;return e.jsxs("div",{className:"flex items-start justify-between gap-6",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("span",{className:"font-bold text-body-sm text-foreground",id:n,children:d}),e.jsx("p",{className:"text-body-xs text-muted-foreground",id:o,children:i})]}),e.jsx(D,{"aria-describedby":o,"aria-labelledby":n,checked:s,className:"cursor-pointer",disabled:r,onCheckedChange:l})]})},O=({onClose:s})=>{const i=a(t=>t.decision),r=a(t=>t.acceptAll),c=a(t=>t.rejectAll),l=a(t=>t.save),d=a(t=>t.openBanner),[n,o]=p.useState(i?.statistics??!1),[h,f]=p.useState(i?.marketing??!1);p.useEffect(()=>{o(i?.statistics??!1),f(i?.marketing??!1)},[i]);const g=()=>{s(),a.getState().decision===null&&d()},x=()=>{r(),s()},y=()=>{c(),s()},b=()=>{l({statistics:n,marketing:h}),s()};return e.jsx(j,{onOpenChange:t=>{t||g()},open:!0,children:e.jsxs(w,{className:"liquid-glass",children:[e.jsxs(k,{children:[e.jsx(v,{children:"Cookie settings"}),e.jsx(S,{children:"Choose which cookies we may use. Essential cookies are always on because the site cannot function without them."})]}),e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsx(u,{checked:!0,description:"Required for the site to work - sign-in, security, and saving your choices on this banner. Always on.",disabled:!0,id:"consent-necessary",title:"Strictly necessary"}),e.jsx(u,{checked:n,description:"Help us understand which pages and features get used so we can improve them. We don't sell this data.",id:"consent-statistics",onChange:o,title:"Statistics"}),e.jsx(u,{checked:h,description:"Let our advertising partners measure the performance of ads we run on other sites and show you more relevant ones.",id:"consent-marketing",onChange:f,title:"Marketing"})]}),e.jsxs(N,{className:"gap-2 sm:justify-between",children:[e.jsx(m,{className:"cursor-pointer",color:"secondary",onClick:y,size:"sm",type:"button",children:"Reject all"}),e.jsxs("div",{className:"flex flex-col-reverse gap-2 sm:flex-row sm:gap-3",children:[e.jsx(m,{className:"cursor-pointer",color:"secondary",onClick:b,size:"sm",type:"button",children:"Save choices"}),e.jsx(m,{className:"cursor-pointer",color:"primary",onClick:x,size:"sm",type:"button",children:"Accept all"})]})]})]})})};export{O as ConsentSettings};
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.