(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91],{9096:function(e,t,r){Promise.resolve().then(r.bind(r,363)),Promise.resolve().then(r.t.bind(r,2972,23))},363:function(e,t,r){"use strict";r.d(t,{Sidebar:function(){return c}});var n=r(7437),a=r(7648),i=r(5475),l=r(7411);let s=[{href:"/admin",label:"Dashboard",icon:(0,l.Z)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),exact:!0},{href:"/admin/leads",label:"Leads",icon:(0,l.Z)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),exact:!1},{href:"/admin/asesores",label:"Asesores",icon:(0,l.Z)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]),exact:!1}];function c(e){let{role:t,userName:r}=e,l=(0,i.usePathname)(),c=s.filter(e=>"/admin/asesores"!==e.href||["superadmin","admin"].includes(t));return(0,n.jsxs)("aside",{className:"hidden lg:flex flex-col w-56 bg-brand-dark min-h-screen py-6",children:[(0,n.jsx)("div",{className:"px-5 mb-8",children:(0,n.jsxs)(a.default,{href:"/admin",className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"w-9 h-9 bg-brand-gold rounded-xl flex items-center justify-center font-black text-brand-dark text-base shrink-0",children:"I"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-white font-bold text-sm leading-none",children:"ICONO"}),(0,n.jsx)("p",{className:"text-blue-300 text-[11px] leading-none mt-0.5",children:"Admin Panel"})]})]})}),(0,n.jsx)("nav",{className:"flex-1 px-3 space-y-1",children:c.map(e=>(0,n.jsxs)(a.default,{href:e.href,className:"flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-all\n              ".concat((e.exact?l===e.href:l.startsWith(e.href))?"bg-white/15 text-white":"text-blue-200 hover:bg-white/10 hover:text-white"),children:[(0,n.jsx)(e.icon,{className:"w-4 h-4 shrink-0"}),e.label]},e.href))}),(0,n.jsxs)("div",{className:"px-4 pt-4 border-t border-white/10",children:[(0,n.jsx)("div",{className:"text-xs text-blue-300 mb-1 truncate",children:r}),(0,n.jsx)(a.default,{href:"/",target:"_blank",className:"text-xs text-blue-300 hover:text-white transition-colors",children:"Ver sitio →"})]})]})}},8292:function(e,t,r){"use strict";r.d(t,{default:function(){return d}});var n=r(2265),a={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=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1};var l=r(8308);let s=(0,n.createContext)({}),c=()=>(0,n.useContext)(s),d=(0,n.forwardRef)((e,t)=>{var r,s,d;let{color:o,size:h,strokeWidth:u,absoluteStrokeWidth:x,className:f="",children:m,iconNode:b,...p}=e,{size:k=24,strokeWidth:v=2,absoluteStrokeWidth:w=!1,color:y="currentColor",className:g=""}=null!==(r=c())&&void 0!==r?r:{},N=(null!=x?x:w)?24*Number(null!=u?u:v)/Number(null!=h?h:k):null!=u?u:v;return(0,n.createElement)("svg",{ref:t,...a,width:null!==(s=null!=h?h:k)&&void 0!==s?s:a.width,height:null!==(d=null!=h?h:k)&&void 0!==d?d:a.height,stroke:null!=o?o:y,strokeWidth:N,className:(0,l.z)("lucide",g,f),...!m&&!i(p)&&{"aria-hidden":"true"},...p},[...b.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(m)?m:[m]])})},7411:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(2265),a=r(8308);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),s=e=>{let t=l(e);return t.charAt(0).toUpperCase()+t.slice(1)};var c=r(8292);let d=(e,t)=>{let r=(0,n.forwardRef)((r,l)=>{let{className:d,...o}=r;return(0,n.createElement)(c.default,{ref:l,iconNode:t,className:(0,a.z)("lucide-".concat(i(s(e))),"lucide-".concat(e),d),...o})});return r.displayName=s(e),r}},8308:function(e,t,r){"use strict";r.d(t,{z:function(){return n}});let n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()}},7648:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var n=r(2972),a=r.n(n)}},function(e){e.O(0,[972,971,117,744],function(){return e(e.s=9096)}),_N_E=e.O()}]);