1import{t as e}from"./jsx-runtime-6_byoLYo.js";import{At as t,Ft as n,G as r,It as i,n as a,v as o}from"./Sidebar-CNasIXT0.js";import{n as s,t as c}from"./utils-CIp_6AgG.js";import{t as l}from"./Logo-DitcJvux.js";var u=s(`Calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),d=s(`House`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`1d0kgt`}]]),f=s(`LayoutGrid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),p=s(`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`}]]),m=e();function h({children:e,variant:t=`neutral`,className:n}){return(0,m.jsx)(`span`,{className:c(`inline-flex items-center px-2 py-0.5 rounded-full border text-[11px] font-bold uppercase tracking-wider`,{neutral:`bg-surface text-muted-text border-[rgba(15,23,42,0.08)]`,success:`bg-green-50 text-green-700 border-green-100`,warning:`bg-amber-50 text-amber-700 border-amber-100`,error:`bg-red-50 text-red-700 border-red-100`,danger:`bg-red-50 text-danger border-red-100`,info:`bg-blue-50 text-blue-700 border-blue-100`,indigo:`bg-[#EEF2FF] text-[#4F46E5] border-[#E0E7FF]`,violet:`bg-[#F5F3FF] text-[#8B5CF6] border-[#E9D5FF]`}[t],n),children:e})}function g({children:e,variant:t=`primary`,as:n=`button`,className:r,...i}){return(0,m.jsx)(n,{className:c(`font-display font-semibold text-[15px] group inline-flex items-center gap-2 transition-all`,t===`primary`&&`bg-cta-gradient text-white px-6 py-3 rounded-[14px] shadow-cta hover:opacity-90`,t===`outline`&&`border border-[rgba(15,23,42,0.08)] bg-white text-body-text px-6 py-3 rounded-[14px] hover:bg-surface`,t===`ghost`&&`text-muted-text hover:text-ink hover:bg-surface px-4 py-2 rounded-lg`,r),...i,children:e})}var _=[{icon:d,label:`Home`,href:`/app/home`},{icon:u,label:`Calendar`,href:`/app/calendar`},{icon:f,label:`Ads Library`,href:`/app/ads`},{icon:p,label:`Brand Setup`,href:`/app/context`}];function v(){let e=n(),s=i(),{credits:u,isLow:d,isEmpty:f,loading:p}=a();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`nav`,{className:`fixed top-0 left-0 right-0 z-50 lg:hidden bg-white border-b border-warm-border shadow-sm`,children:(0,m.jsxs)(`div`,{className:`px-4 py-2 flex items-center justify-between`,children:[(0,m.jsx)(l,{variant:`dark`,heightClass:`h-14`}),(0,m.jsx)(`div`,{className:`hidden sm:flex items-center gap-1`,children:_.map(n=>{let r=e.pathname===n.href||e.pathname.startsWith(n.href);return(0,m.jsxs)(t,{to:n.href,className:c(`flex items-center gap-2 px-3 py-2 rounded-xl text-[13px] font-medium transition-all`,r?`bg-[#EFECE6] text-charcoal`:`text-slate hover:bg-warm-border hover:text-charcoal`),children:[(0,m.jsx)(n.icon,{className:c(`size-4`,r?`text-charcoal`:`text-slate`)}),(0,m.jsx)(`span`,{className:`hidden md:inline`,children:n.label})]},n.href)})}),(0,m.jsxs)(g,{onClick:()=>s(`/app/createSPA2`),className:`h-9 px-4 text-[13px] gap-2`,children:[(0,m.jsx)(o,{className:`size-4`}),(0,m.jsx)(`span`,{className:`hidden sm:inline`,children:`Create`})]})]})}),(0,m.jsxs)(`div`,{className:c(`fixed left-0 right-0 z-40 lg:hidden border-t px-4 py-2 flex items-center gap-2 transition-colors`,`bottom-[56px] sm:bottom-0`,f?`bg-red-50 border-red-200`:d?`bg-amber-50 border-amber-200`:`bg-white/95 backdrop-blur-xl border-warm-border`),children:[(0,m.jsx)(r,{className:c(`size-3.5 shrink-0`,f?`text-red-500`:d?`text-amber-500`:`text-slate`)}),p?(0,m.jsx)(`div`,{className:`h-3 w-20 rounded bg-warm-border animate-pulse`}):(0,m.jsxs)(`p`,{className:c(`text-[12px] font-bold`,f?`text-red-700`:d?`text-amber-700`:`text-slate`),children:[u?.available??0,` credits remaining`,d&&` · Running low`,f&&` · Contact your admin`]})]}),(0,m.jsx)(`div`,{className:`fixed bottom-0 left-0 right-0 z-50 sm:hidden bg-white/95 backdrop-blur-xl border-t border-warm-border shadow-2xl`,children:(0,m.jsx)(`div`,{className:`flex items-center justify-around px-2 py-3`,children:_.map(n=>{let r=e.pathname===n.href||e.pathname.startsWith(n.href);return(0,m.jsxs)(t,{to:n.href,className:c(`flex flex-col items-center gap-1 px-4 py-2 rounded-xl transition-all min-w-[60px]`,r?`text-charcoal`:`text-slate`),children:[(0,m.jsx)(n.icon,{className:c(`size-5`,r?`text-charcoal`:`text-slate`)}),(0,m.jsx)(`span`,{className:`text-[10px] font-medium`,children:n.label})]},n.href)})})})]})}export{p as i,h as n,g as r,v as t};
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.