import{c as n,H as d,u,j as e,B as o,L as h}from"./index-DHiKqTn6.js";import{S as x}from"./sparkles-DVJTaxfx.js";const p=n("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);const i=n("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);const f=n("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),j=["admin@demo.com","user@demo.com"];function g(){return!1}function c(s){const a=g();return a!==null?a:s??!1}function k(s,a){return!s||!c(a)?!1:j.includes(s.toLowerCase())}function v(s,a){return!s||!c(a)?!1:s.toLowerCase()==="admin@demo.com"}const y="appforge_demo_tour_completed";function w(){const{user:s}=d(),{settings:a}=u(),r=s?.email?.toLowerCase(),m=k(r,a.demo_mode),t=v(r,a.demo_mode);if(!m)return null;const l=()=>{localStorage.removeItem(y),window.location.reload()};return e.jsx("div",{className:"bg-gradient-to-r from-amber-500/10 via-orange-500/10 to-amber-500/10 border border-amber-500/20 rounded-xl p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/20 flex items-center justify-center shrink-0",children:e.jsx(p,{className:"w-5 h-5 text-amber-500"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h3",{className:"font-semibold text-foreground",children:"Demo Mode Active"}),e.jsx("span",{className:`px-2 py-0.5 rounded-full text-xs font-medium ${t?"bg-purple-500/20 text-purple-500":"bg-blue-500/20 text-blue-500"}`,children:t?e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(i,{className:"w-3 h-3"}),"Admin"]}):e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(f,{className:"w-3 h-3"}),"User"]})})]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["You're using a demo account (",r,"). ",e.jsx("strong",{children:"Read-only mode"})," — changes are disabled."]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[e.jsxs(o,{variant:"ghost",size:"sm",onClick:l,className:"gap-2 text-amber-600 hover:text-amber-700 hover:bg-amber-500/10",children:[e.jsx(x,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Replay Tour"})]}),t&&e.jsx(o,{variant:"outline",size:"sm",asChild:!0,className:"shrink-0",children:e.jsxs(h,{to:"/admin",children:[e.jsx(i,{className:"w-4 h-4 mr-2"}),"Admin Panel"]})})]})]})})}export{w as D,f as U,v as a,k as i};
