1import{b as N,r as l,n as k,j as e,L as w,d as o}from"./index-CAG7YFZd.js";import{A as x}from"./AnimatedPage-GGx_bSNh.js";import{C as g,d as C}from"./card-BvF4UFhC.js";import{q as n}from"./quicky-spicy-logo-BF3ck9UZ.js";import{d as D}from"./index-BTR0BB7t.js";import{u as L}from"./useCompanyName-BhkPV_oj.js";import{loadBusinessSettings as A,getCachedSettings as m}from"./businessSettings-cyKlMK6I.js";import{A as _}from"./arrow-left-CpWyexvK.js";import{m as t}from"./proxy-CEtNvAea.js";import{F as h}from"./file-text-7Q36_7-K.js";import{A as i}from"./arrow-right-BpqK1U7h.js";import{L as S}from"./lock-FXwrwNS5.js";import{R as P}from"./receipt-B9wNnK0f.js";import{T as R}from"./truck-C1N1ARaS.js";import{C as T}from"./circle-x-CMiMiRa7.js";function J(){const p=L(),u=N(),[y,c]=l.useState(!0),[b,d]=l.useState(null),[r,v]=l.useState({appName:"",version:"",description:"",logo:"",features:[],stats:[]});l.useEffect(()=>{j(),f();const a=()=>{const s=m();s?.logo?.url&&d(s.logo.url)};return window.addEventListener("businessSettingsUpdated",a),()=>window.removeEventListener("businessSettingsUpdated",a)},[]);const f=async()=>{const a=m();if(a?.logo?.url)d(a.logo.url);else{const s=await A();s?.logo?.url&&d(s.logo.url)}},j=async()=>{try{c(!0);const a=await k.get(D.ADMIN.ABOUT_PUBLIC);a.data.success&&v(a.data.data||{})}catch{}finally{c(!1)}};return y?e.jsx(x,{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white dark:from-[#0a0a0a] dark:to-[#1a1a1a]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 md:px-6 lg:px-8 py-6 md:py-8 flex items-center justify-center min-h-[60vh]",children:e.jsxs("div",{className:"text-center",children:[e.jsx(w,{className:"h-8 w-8 animate-spin text-gray-600 dark:text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Loading..."})]})})}):e.jsx(x,{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white dark:from-[#0a0a0a] dark:to-[#1a1a1a]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 md:px-6 lg:px-8 py-6 md:py-8",children:[e.jsxs("div",{className:"flex items-center mb-6 md:mb-8",children:[e.jsx("div",{onClick:()=>u(-1),className:"h-10 w-10 md:h-11 md:w-11 flex items-center justify-center bg-white dark:bg-[#1a1a1a] rounded-full shadow-[0_2px_10px_rgba(0,0,0,0.05)] hover:shadow-[0_4px_15px_rgba(0,0,0,0.08)] active:scale-95 transition-all cursor-pointer border border-slate-100 dark:border-gray-800",children:e.jsx(_,{className:"h-5 w-5 text-slate-800 dark:text-white"})}),e.jsx("h1",{className:"text-xl md:text-2xl lg:text-3xl font-bold text-slate-900 dark:text-white ml-4",children:"About"})]}),e.jsx(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:e.jsx(g,{className:"bg-gradient-to-br from-blue-50/60 to-white/40 dark:from-blue-900/20 dark:to-[#1a1a1a]/40 backdrop-blur-2xl rounded-3xl shadow-[0_8px_32px_rgba(59,130,246,0.08)] border border-blue-100/50 dark:border-blue-900/30 mb-6 md:mb-8 overflow-hidden",children:e.jsxs("div",{className:"p-8 md:p-10 text-center relative",children:[e.jsx(t.div,{initial:{scale:.8,opacity:0}
1,animate:{scale:1,opacity:1},transition:{delay:.2,duration:.5},className:"flex justify-center mb-6",children:e.jsx("div",{className:"relative",children:e.jsx("div",{className:"relative bg-white dark:bg-gray-800 rounded-full p-4 md:p-6 shadow-[0_8px_30px_rgba(0,0,0,0.08)]",children:e.jsx("img",{src:b||n,alt:`${r.appName} Logo`,className:"h-16 w-16 md:h-20 md:w-20 object-contain rounded-full",onError:a=>{a.target.src!==n&&(a.target.src=n)}})})})}),e.jsx(t.h2,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3,duration:.5},className:"text-3xl md:text-4xl lg:text-5xl font-bold text-gray-900 dark:text-white mb-2",children:"RedGo"}),e.jsx(t.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4,duration:.5},className:"text-gray-600 dark:text-gray-400 text-sm md:text-base font-medium mb-1",children:"Food & Takeaway"}),e.jsx(t.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4,duration:.5},className:"text-gray-500 dark:text-gray-500 text-xs md:text-sm mb-4",children:r.version?`Version ${r.version}`:" "}),e.jsx(t.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5,duration:.5},className:"text-gray-700 dark:text-gray-300 leading-relaxed text-base md:text-lg max-w-2xl mx-auto",children:r.description?r.description:"This page will appear once the admin adds About content."})]})})}),e.jsx(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1.2,duration:.5},children:e.jsx(g,{className:"bg-white dark:bg-[#1a1a1a] rounded-xl shadow-md border-0 dark:border-gray-800",children:e.jsxs(C,{className:"p-5 md:p-6",children:[e.jsxs("h3",{className:"text-lg md:text-xl font-semibold text-gray-900 dark:text-white mb-4 flex items-center gap-2",children:[e.jsx(h,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"}),"Legal Information"]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(o,{to:"/user/profile/terms",className:"flex items-center gap-3 p-3 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors group",children:[e.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 rounded-lg p-2 group-hover:bg-gray-200 dark:group-hover:bg-gray-700 transition-colors",children:e.jsx(h,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-base font-medium text-gray-900 dark:text-white group-hover:text-[#DC2626] dark:group-hover:text-[#DC2626] transition-colors",children:"Terms and Conditions"}),e.jsx("div",{className:"text-sm text-slate-500 dark:text-slate-400",children:"Read our terms and conditions"})]}),e.jsx(i,{className:"h-5 w-5 text-slate-400 group-hover:text-[#DC2626] transition-colors"})]}),e.jsxs(o,{to:"/user/profile/privacy",className:"flex items-center gap-3 p-3 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors group",children:[e.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 rounded-lg p-2 group-hover:bg-gray-200 dark:group-hover:bg-gray-700 transition-colors",children:e.jsx(S,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-base font-medium text-gray-900 dark:text-white group-hover:text-[#DC2626] dark:group-hover:text-[#DC2626] transition-colors",children:"Privacy Policy"}),e.jsx("div",{className:"text-sm text-slate-500 dark:text-slate-400",children:"Learn how we protect your data"})]}),e.jsx(i,{className:"h-5 w-5 text-slate-400 group-hover:text-[#DC2626] transition-colors"})]}),e.jsxs(o,{to:"/user/profile/refund",className:"flex items-center gap-3 p-3 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors group",children:[e.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 rounded-lg p-2 group-hover:bg-gray-200 dark:group-hover:bg-gray-700 transition-colors",children:e.jsx(P,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-base font-medium text-gray-900 dark:text-white group-hover:text-[#DC2626] dark:group-hover:text-[#DC2626] transition-colors",children:"Refund Policy"}),e.jsx("div",{className:"text-sm text-slate-500 dark:text-slate-400",children:"Read our refund terms and conditions"})]}),e.jsx(i,{className:"h-5 w-5 text-slate-400 group-hover:text-[#DC2626] transition-colors"})]}),e.jsxs(o,{to:"/user/profile/shipping",className:"flex items-center gap-3 p-3 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors group",children:[e.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 rounded-lg p-2 group-hover:bg-gray-200 dark:group-hover:bg-gray-700 transition-colors",children:e.jsx(R,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-base font-medium text-gray-900 dark:text-white group-hover:text-[#DC2626] dark:group-hover:text-[#DC2626] transition-colors",children:"Shipping Policy"}),e.jsx("div",{className:"text-sm text-slate-500 dark:text-slate-400",children:"Learn about our shipping terms"})]}),e.jsx(i,{className:"h-5 w-5 text-slate-400 group-hover:text-[#DC2626] transition-colors"})]}),e.jsxs(o,{to:"/user/profile/cancellation",className:"flex items-center gap-3 p-3 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors group",children:[e.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 rounded-lg p-2 group-hover:bg-gray-200 dark:group-hover:bg-gray-700 transition-colors",children:e.jsx(T,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-base font-medium text-gray-900 dark:text-white group-hover:text-[#DC2626] dark:group-hover:text-[#DC2626] transition-colors",children:"Cancellation Policy"}),e.jsx("div",{className:"text-sm text-slate-500 dark:text-slate-400",children:"Read our cancellation terms"})]}),e.jsx(i,{className:"h-5 w-5 text-slate-400 group-hover:text-[#DC2626] transition-colors"})]})]})]})})}),e.jsx(t.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:1.4,duration:.5},className:"text-center mt-8 mb-4",children:e.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-500",children:["� ",new Date().getFullYear()," ",p,". All rights reserved."]})})]})})}export{J 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.