1import{aa as u,r as p,e as h,j as e,$ as f,a0 as j,m as g,a1 as y,C as s,k as n,B as i,h as w,i as N}from"./index-BIPYIMZ0.js";import b from"./Footer-CLihjkrM.js";import{A as k}from"./arrow-left-B8cMGRcm.js";import{F as l}from"./file-text-Bbb85C-c.js";import{E as T}from"./external-link-DTtxvel1.js";import{D as v}from"./download-DHIUCRRN.js";import"./linkedin-mqzqlzth.js";function H(){const{language:c}=u();p.useEffect(()=>{window.scrollTo(0,0)},[]);const{data:a,isLoading:d,error:r}=h({queryKey:["/api/legal-documents/cookie-policy"],queryFn:async()=>{const t=await fetch("/api/legal-documents/cookie-policy");if(!t.ok)throw new Error("Failed to fetch cookie policy document");return t.json()}}),m=()=>{if(a){const t=document.createElement("a");t.href="/api/legal-documents/download-by-type/cookie-policy",t.download=a.originalName,document.body.appendChild(t),t.click(),document.body.removeChild(t)}},x=()=>{a&&window.open("/api/legal-documents/view-by-type/cookie-policy","_blank")},o=c==="bg"?{title:"ÐолиÑика за биÑквиÑки",subtitle:"ÐолÑ, пÑегледайÑе наÑаÑа полиÑика за биÑквиÑки",backButton:"ÐбÑаÑно кÑм главнаÑа ÑÑÑаниÑа",loadingText:"ÐаÑеждане на докÑменÑа...",errorText:"ÐÑзникна гÑеÑка пÑи заÑежданеÑо на докÑменÑа",noDocumentText:"ÐÑма каÑен докÑменÑ. ÐолÑ, ÑвÑÑжеÑе Ñе Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¸ÑÑÑаÑоÑа за да каÑи оÑиÑиалнаÑа полиÑика за биÑквиÑки.",viewPdfText:"ÐÑеглед на PDF",downloadText:"ÐзÑеглÑне",tryAgainText:"ÐпиÑайÑе оÑново"}:{title:"Cookie Policy",subtitle:"Please review our cookie policy",backButton:"Back to main page",loadingText:"Loading document...",errorText:"Error loading document",noDocumentText:"No document uploaded. Please contact administrator to upload official cookie policy.",viewPdfText:"View PDF",downloadText:"Download",tryAgainText:"Try again"};return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(f,{title:"ÐолиÑика за ÐиÑквиÑки | Zynko",description:"ÐÑоÑеÑеÑе полиÑикаÑа за биÑквиÑки на Zynko. ÐаÑÑеÑе какви cookies използваме, заÑо и как можеÑе да ÑпÑавлÑваÑе наÑÑÑойкиÑе Ñи.",canonical:"https://zynko.ai/cookie-policy",noIndex:!0}),e.jsx(j,{}),e.jsx("main",{className:"flex-1 pt-32 pb-20",children:e.jsx("div",{className:"container mx-auto px-4 max-w-4xl",children:e.jsxs(g.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsxs(y,{href:"/",className:"inline-flex items-center text-primary hover:text-primary/80 transition-colors mb-8",children:[e.jsx(k,{className:"w-4 h-4 mr-2"}),o.backButton]}),e.jsx("h1",{className:"text-4xl font-bold mb-8 text-foreground",children:o.title}),e.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:o.subtitle}),d?e.jsx(s,{children:e.jsx(n,{className:"py-12",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:o.loadingText})]})})}):r?e.jsx(s,{children:e.jsx(n,{className:"py-12",children:e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-red-500 mb-4",children:[e.jsx(l,{className:"h-16 w-16 mx-auto mb-2"}),e.jsx("p",{className:"text-lg font-semibold",children:o.errorText})]}),e.jsx("p",{className:"text-muted-foreground mb-6",children:r.message}),e.jsx(i,{onClick:()=>window.location.reload(),variant:"outline",children:o.tryAgainText})]})})}):a?e.jsxs(s,{children:[e.jsxs(w,{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(l,{className:"h-5 w-5"}),a.originalName]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:o.subtitle})]}),e.jsx(n,{children:e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs(i,{onClick:x,className:"flex-1",children:[e.jsx(T,{className:"h-4 w-4 mr-2"}),o.viewPdfText]}),e.jsxs(i,{onClick:m,variant:"outline",className:"flex-1",children:[e.jsx(v,{className:"h-4 w-4 mr-2"}),o.downloadText]})]})})]}):e.jsx(s,{children:e.jsx(n,{className:"py-12",children:e.jsx("div",{className:"text-center",children:e.jsxs("div",{className:"text-muted-foreground mb-4",children:[e.jsx(l,{className:"h-16 w-16 mx-auto mb-2"}),e.jsx("p",{className:"text-lg font-semibold",children:o.noDocumentText})]})})})})]})})}),e.jsx(b,{})]})}
1export{H 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.