1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{6419:function(e,s,t){Promise.resolve().then(t.bind(t,783)),Promise.resolve().then(t.t.bind(t,2972,23)),Promise.resolve().then(t.t.bind(t,8925,23)),Promise.resolve().then(t.t.bind(t,5018,23)),Promise.resolve().then(t.t.bind(t,7960,23))},783:function(e,s,t){"use strict";t.d(s,{default:function(){return o}});var a=t(7437),r=t(2265),l=t(9205);let n=(0,l.Z)("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]),i=(0,l.Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),c=(0,l.Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function o(){let[e,s]=(0,r.useState)(!1),[t,l]=(0,r.useState)(!1),[o,d]=(0,r.useState)(!1),[m,h]=(0,r.useState)({necessary:!0,analytics:!1,marketing:!1});(0,r.useEffect)(()=>{s(!0);let e=localStorage?.getItem("cookiePreferences");if(e)try{let s=JSON.parse(e??"{}");h(s??m)}catch(e){}else l(!0)},[]);let x=async e=>{try{let s=localStorage?.getItem("sessionId")??`session_${Date.now()}`;localStorage?.setItem("sessionId",s),localStorage?.setItem("cookiePreferences",JSON.stringify(e)),await fetch("/api/cookies",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:s,preferences:e})}),l(!1),d(!1)}catch(e){}};return e&&t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-50 bg-white shadow-2xl border-t border-gray-200",children:(0,a.jsx)("div",{className:"container-custom py-6",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 flex-1",children:[(0,a.jsx)(n,{className:"w-6 h-6 text-[#2C3E50] flex-shrink-0 mt-1"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-semibold text-[#2C3E50] mb-1",children:"Cookie Preferences"}),(0,a.jsx)("p",{className:"text-sm text-[#5A6A73]",children:"We use cookies to enhance your browsing experience and analyze our traffic. You can choose which cookies you want to accept."})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,a.jsxs)("button",{onClick:()=>d(!0),className:"px-4 py-2 border border-[#2C3E50] text-[#2C3E50] rounded-lg hover:bg-[#F2F4F7] transition-colors flex items-center gap-2",children:[(0,a.jsx)(i,{className:"w-4 h-4"}),"Preferences"]}),(0,a.jsx)("button",{onClick:()=>{let e={necessary:!0,analytics:!1,marketing:!1};h(e),x(e)},className:"px-4 py-2 border border-gray-300 text-[#5A6A73] rounded-lg hover:bg-gray-100 transition-colors",children:"Decline All"}),(0,a.jsx)("button",{onClick:()=>{let e={necessary:!0,analytics:!0,marketing:!0};h(e),x(e)},className:"btn-primary",children:"Accept All"})]})]})})}),o&&(0,a.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50 flex items-center justify-center p-4",children:(0,a.jsx)("div",{className:"bg-white rounded-lg shadow-2xl max-w-lg w-full max-h-[90vh] overflow-y-auto",children:(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h2",{className:"text-2xl font-semibold text-[#2C3E50]",children:"Cookie Preferences"}),(0,a.jsx)("button",{onClick:()=>d(!1),className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",children:(0,a.jsx)(c,{className:"w-5 h-5"})})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"p-4 bg-[#F2F4F7] rounded-lg",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("h3",{className:"font-semibold text-[#2C3E50]",children:"Necessary Cookies"}),(0,a.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,className:"w-5 h-5 rounded border-gray-300"})]}),(0,a.jsx)("p",{className:"text-sm text-[#5A6A73]",children:"Essential for the website to function properly. Cannot be disabled."})]}),(0,a.jsxs)("div",{className:"p-4 border border-gray-200 rounded-lg",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("h3",{className:"font-semibold text-[#2C3E50]",children:"Analytics Co
1okies"}),(0,a.jsx)("input",{type:"checkbox",checked:m?.analytics??!1,onChange:e=>h(s=>({...s,analytics:e?.target?.checked??!1})),className:"w-5 h-5 rounded border-gray-300"})]}),(0,a.jsx)("p",{className:"text-sm text-[#5A6A73]",children:"Help us understand how visitors interact with our website."})]}),(0,a.jsxs)("div",{className:"p-4 border border-gray-200 rounded-lg",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("h3",{className:"font-semibold text-[#2C3E50]",children:"Marketing Cookies"}),(0,a.jsx)("input",{type:"checkbox",checked:m?.marketing??!1,onChange:e=>h(s=>({...s,marketing:e?.target?.checked??!1})),className:"w-5 h-5 rounded border-gray-300"})]}),(0,a.jsx)("p",{className:"text-sm text-[#5A6A73]",children:"Used to deliver personalized advertisements relevant to you."})]})]}),(0,a.jsxs)("div",{className:"flex gap-3 mt-6",children:[(0,a.jsx)("button",{onClick:()=>d(!1),className:"flex-1 px-4 py-2 border border-gray-300 text-[#5A6A73] rounded-lg hover:bg-gray-100 transition-colors",children:"Cancel"}),(0,a.jsx)("button",{onClick:()=>{x(m)},className:"flex-1 btn-primary",children:"Save Preferences"})]})]})})})]}):null}},9205:function(e,s,t){"use strict";t.d(s,{Z:function(){return c}});var a=t(2265);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=(...e)=>e.filter((e,s,t)=>!!e&&t.indexOf(e)===s).join(" ");var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)(({color:e="currentColor",size:s=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:i="",children:c,iconNode:o,...d},m)=>(0,a.createElement)("svg",{ref:m,...n,width:s,height:s,stroke:e,strokeWidth:r?24*Number(t)/Number(s):t,className:l("lucide",i),...d},[...o.map(([e,s])=>(0,a.createElement)(e,s)),...Array.isArray(c)?c:[c]])),c=(e,s)=>{let t=(0,a.forwardRef)(({className:t,...n},c)=>(0,a.createElement)(i,{ref:c,iconNode:s,className:l(`lucide-${r(e)}`,t),...n}));return t.displayName=`${e}`,t}},7960:function(){},8925:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},5018:function(e){e.exports={style:{fontFamily:"'__Poppins_6bee3b', '__Poppins_Fallback_6bee3b'",fontStyle:"normal"},className:"__className_6bee3b",variable:"__variable_6bee3b"}}},function(e){e.O(0,[686,972,971,117,744],function(){return e(e.s=6419)}),_N_E=e.O()}]);
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.