1import{r as d,U as pe,V as ge,W as B,X as L,Y as ke,Z as F,g as J,a as X,u as G,j as o,d as he,e as K,s as A,$ as Y,m as q,a0 as xe,F as Se,b as j,a1 as ye,a2 as T,i as ve,B as O,T as w,a3 as we,a4 as Ce,z,a5 as be}from"./index-By9BSa7V.js";function $(e){return e.substring(2).toLowerCase()}function Ee(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Pe(e){const{children:t,disableReactTree:i=!1,mouseEvent:n="onClick",onClickAway:l,touchEvent:m="onTouchEnd"}=e,h=d.useRef(!1),f=d.useRef(null),x=d.useRef(!1),g=d.useRef(!1);d.useEffect(()=>(setTimeout(()=>{x.current=!0},0),()=>{x.current=!1}),[]);const r=pe(ge(t),f),a=B(u=>{const k=g.current;g.current=!1;const y=L(f.current);if(!x.current||!f.current||"clientX"in u&&Ee(u,y))return;if(h.current){h.current=!1;return}let s;u.composedPath?s=u.composedPath().includes(f.current):s=!y.documentElement.contains(u.target)||f.current.contains(u.target),!s&&(i||!k)&&l(u)}),C=u=>k=>{g.current=!0;const y=t.props[u];y&&y(k)},E={ref:r};return m!==!1&&(E[m]=C(m)),d.useEffect(()=>{if(m!==!1){const u=$(m),k=L(f.current),y=()=>{h.current=!0};return k.addEventListener(u,a),k.addEventListener("touchmove",y),()=>{k.removeEventListener(u,a),k.removeEventListener("touchmove",y)}}},[a,m]),n!==!1&&(E[n]=C(n)),d.useEffect(()=>{if(n!==!1){const u=$(n),k=L(f.current);return k.addEventListener(u,a),()=>{k.removeEventListener(u,a)}}},[a,n]),d.cloneElement(t,E)}function Re(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:i=!1,onClose:n,open:l,resumeHideDuration:m}=e,h=ke();d.useEffect(()=>{if(!l)return;function s(c){c.defaultPrevented||c.key==="Escape"&&(n==null||n(c,"escapeKeyDown"))}return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}},[l,n]);const f=B((s,c)=>{n==null||n(s,c)}),x=B(s=>{!n||s==null||h.start(s,()=>{f(null,"timeout")})});d.useEffect(()=>(l&&x(t),h.clear),[l,t,x,h]);const g=s=>{n==null||n(s,"clickaway")},r=h.clear,a=d.useCallback(()=>{t!=null&&x(m??t*.5)},[t,m,x]),C=s=>c=>{const p=s.onBlur;p==null||p(c),a()},E=s=>c=>{const p=s.onFocus;p==null||p(c),r()},u=s=>c=>{const p=s.onMouseEnter;p==null||p(c),r()},k=s=>c=>{const p=s.onMouseLeave;p==null||p(c),a()};return d.useEffect(()=>{if(!i&&l)return window.addEventListener("focus",a),window.addEventListener("blur",r),()=>{window.removeEventListener("focus",a),window.removeEventListener("blur",r)}},[i,l,a,r]),{getRootProps:(s={})=>{const c={...F(e),...F(s)};return{role:"presentation",...s,...c,onBlur:C(c),onFocus:E(c),onMouseEnter:u(c),onMouseLeave:k(c)}},onClickAway:g}}function je(e){return J("MuiSnackbarContent",e)}X("MuiSnackbarContent",["root","message","action"]);const Te=e=>{const{classes:t}=e;return K({root:["root"],action:["action"],message:["message"]},je,t)},Ae=A(Y,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(q(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,i=xe(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(i),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:i,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Le=A("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Oe=A("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),ze=d.forwardRef(function(t,i){const n=G({props:t,name:"MuiSnackbarContent"}),{action:l,className:m,message:h,role:f="alert",...x}=n,g=n,r=Te(g);return o.jsxs(Ae,{role:f,square:!0,elevation:6,className:he(r.root,m),ownerState:g,ref:i,...x,children:[o.jsx(Le,{className:r.message,ownerState:g,children:h}),l?o.jsx(Oe,{className:r.action,ownerState:g,children:l}):null]})});function Be(e){return J("MuiSnackbar",e)}X("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Me=e=>{const{classes:t,anchorOrigin:i}=e,n={root:["root",`anchorOrigin${T(i.vertical)}${T(i.horizontal)}`]};return K(n,Be,t)}
1,He=A("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`anchorOrigin${T(i.anchorOrigin.vertical)}${T(i.anchorOrigin.horizontal)}`]]}})(q(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Ie=d.forwardRef(function(t,i){const n=G({props:t,name:"MuiSnackbar"}),l=Se(),m={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:h,anchorOrigin:{vertical:f,horizontal:x}={vertical:"bottom",horizontal:"left"},autoHideDuration:g=null,children:r,className:a,ClickAwayListenerProps:C,ContentProps:E,disableWindowBlurListener:u=!1,message:k,onBlur:y,onClose:s,onFocus:c,onMouseEnter:p,onMouseLeave:De,open:M,resumeHideDuration:Ne,slots:H={},slotProps:V={},TransitionComponent:I,transitionDuration:D=m,TransitionProps:{onEnter:N,onExited:U,...Z}={},..._}=n,P={...n,anchorOrigin:{vertical:f,horizontal:x},autoHideDuration:g,disableWindowBlurListener:u,TransitionComponent:I,transitionDuration:D},Q=Me(P),{getRootProps:ee,onClickAway:te}=Re({...P}),[ne,W]=d.useState(!0),oe=S=>{W(!0),U&&U(S)},re=(S,v)=>{W(!1),N&&N(S,v)},R={slots:{transition:I,...H},slotProps:{content:E,clickAwayListener:C,transition:Z,...V}},[se,ae]=j("root",{ref:i,className:[Q.root,a],elementType:He,getSlotProps:ee,externalForwardedProps:{...R,..._},ownerState:P}),[ie,{ownerState:ce,...le}]=j("clickAwayListener",{elementType:Pe,externalForwardedProps:R,getSlotProps:S=>({onClickAway:(...v)=>{var b;(b=S.onClickAway)==null||b.call(S,...v),te(...v)}}),ownerState:P}),[ue,de]=j("content",{elementType:ze,shouldForwardComponentProp:!0,externalForwardedProps:R,additionalProps:{message:k,action:h},ownerState:P}),[me,fe]=j("transition",{elementType:ye,externalForwardedProps:R,getSlotProps:S=>({onEnter:(...v)=>{var b;(b=S.onEnter)==null||b.call(S,...v),re(...v)},onExited:(...v)=>{var b;(b=S.onExited)==null||b.call(S,...v),oe(...v)}}),additionalProps:{appear:!0,in:M,timeout:D,direction:f==="top"?"down":"up"},ownerState:P});return!M&&ne?null:o.jsx(ie,{...le,...H.clickAwayListener&&{ownerState:ce},children:o.jsx(se,{...ae,children:o.jsx(me,{...fe,children:r||o.jsx(ue,{...de})})})})});function We(){const{t:e}=ve(),[t,i]=d.useState({essential:!0,analytical:!1,functional:!1,marketing:!1}),[n,l]=d.useState(!1);d.useEffect(()=>{const r=localStorage.getItem("cookiePreferences");if(r)try{const a=JSON.parse(r);i({essential:!0,analytical:a.analytical??!0,functional:a.functional??!0,marketing:a.marketing??!0})}catch(a){console.error("Error parsing cookie preferences:",a)}},[]);const m=()=>{localStorage.setItem("cookiePreferences",JSON.stringify(t)),window.umami&&!t.analytical?document.cookie="umami.disabled=true; path=/; max-age=31536000":document.cookie="umami.disabled=false; path=/; max-age=31536000",l(!0)},h=()=>{const r={essential:!0,analytical:!0,functional:!0,marketing:!0};i(r),window.umami&&window.umami.track("All Cookies Accepted"),setTimeout(()=>{localStorage.setItem("cookiePreferences",JSON.stringify(r)),document.cookie="umami.disabled=false; path=/; max-age=31536000",l(!0)},50)},f=()=>{const r={essential:!0,analytical:!1,functional:!1,marketing:!1};i(r),window.umami&&window.umami.track("All Cookies Rejected (except essential)"),setTimeout(()=>{localStorage.setItem("cookiePreferences",JSON.stringify(r)),document.cookie="umami.disabled=true; path=/; max-age=31536000",l(!0)},50)},x=(r,a)=>{i(C=>({...C,[r]:a}))},g=(r,a)=>{a!=="clickaway"&&l(!1)};return o.jsxs(O,{sx:{padding:"1rem",maxWidth:"900px",margin:"0 auto"},children:[o.jsxs(w,{variant:"h1",sx:{fontSize:"3rem",marginBottom:"1rem",display:"flex",alignItems:"center",gap:2},children:[o.jsx(we,{fontSize:"large"}),e("cookieSettings.title")]}),o.jsx(w,{variant:"body1",sx:{fontSize:"1.2rem",marginBottom:"2rem"},children:e("cookieSettings.introduction")}),o.jsxs(Y,{elevation:0,sx:{p:3,mb:4,backgroundColor:"background.default"},children:[o.jsx(Ce,{preferences:t,onChange:x,variant:"full"}),o.jsxs(O,{sx:{display:"flex",justifyContent:"space-between",mt:4,flexWrap:"wrap",gap:2},children:[o.jsxs(O,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[o.jsx(z,{variant:"outlined",color:"error",onClick:f,children:e("cookieSettings.actions.rejectAll")}),o.jsx(z,{variant:"outlined",color:"primary",onClick:h,children:e("cookieSettings.actions.acceptAll")})]}),o.jsx(z,{variant:"contained",color:"primary",onClick:m,children:e("cookieSettings.actions.savePreferences")})]})]}),o.jsx(w,{variant:"h2",sx:{fontSize:"2rem",marginTop:"3rem",marginBottom:"1rem"},children:e("cookieSettings.moreInfo.title")}),o.jsx(w,{variant:"body1",sx:{fontSize:"1.2rem",marginBottom:"1rem"},children:e("cookieSettings.moreInfo.content")}),o.jsx(w,{variant:"h3",sx:{fontSize:"1.5rem",marginTop:"1.5rem",marginBottom:"0.5rem"},children:e("cookieSettings.whatAreCookies.title")}),o.jsx(w,{variant:"body1",sx:{fontSize:"1.2rem",marginBottom:"1rem"},children:e("cookieSettings.whatAreCookies.content")}),o.jsx(w,{variant:"h3",sx:{fontSize:"1.5rem",marginTop:"1.5rem",marginBottom:"0.5rem"}
1,children:e("cookieSettings.whyUseCookies.title")}),o.jsx(w,{variant:"body1",sx:{fontSize:"1.2rem",marginBottom:"1rem"},children:e("cookieSettings.whyUseCookies.content")}),o.jsx(w,{variant:"h3",sx:{fontSize:"1.5rem",marginTop:"1.5rem",marginBottom:"0.5rem"},children:e("cookieSettings.manageBrowserCookies.title")}),o.jsx(w,{variant:"body1",sx:{fontSize:"1.2rem",marginBottom:"1rem"},children:e("cookieSettings.manageBrowserCookies.content")}),o.jsx(Ie,{open:n,autoHideDuration:6e3,onClose:g,children:o.jsx(be,{onClose:g,severity:"success",sx:{width:"100%"},children:e("cookieSettings.preferencesUpdated")})})]})}export{We 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.