import{d as p,f as g,j as m,_ as C,o as s,k as d,l as b,a as _,n as c,t as h,F as f,v as x,c as y}from"./app-DZcRemIr.js";import{A as v}from"./AppLayout-O17sF3e2.js";import{C as t,U as r,A}from"./CubeIcon-BnAZ4bg4.js";import"./AppSidebarLayout-DzMma2g7.js";import"./index-CA0zsXLm.js";import"./SiifIconBC3-DYQKLzWx.js";const P={personas:{title:"Administrar Personas",breadcrumbs:[{label:"SIIF",href:"/dashboard"},{label:"Personas"}],actions:[{label:"Cliente",to:"/clientes",icon:r,bgColor:"#4c7fdd",footerColor:"#2c5cb3"},{label:"Gerente",to:"/gerentes",icon:r,bgColor:"#4c7fdd",footerColor:"#2c5cb3"},{label:"Mayorista",to:"/mayoristas",icon:r,bgColor:"#4c7fdd",footerColor:"#2c5cb3"},{label:"Representante Fuerza Venta",to:"/representantes",icon:r,bgColor:"#4c7fdd",footerColor:"#2c5cb3"},{label:"Supervisor",to:"/supervisores",icon:r,bgColor:"#4c7fdd",footerColor:"#2c5cb3"}]},productos:{title:"Administrar Productos",breadcrumbs:[{label:"SIIF",href:"/dashboard"},{label:"Productos"}],actions:[{label:"Muestras",to:"/muestras",icon:t,bgColor:"#34c759",footerColor:"#28a745"},{label:"Productos",to:"/productos-lista",icon:t,bgColor:"#34c759",footerColor:"#28a745"},{label:"Linea-Producto",to:"/lineas",icon:t,bgColor:"#34c759",footerColor:"#28a745"},{label:"Tipo-Producto",to:"/tipos",icon:t,bgColor:"#34c759",footerColor:"#28a745"}]}},M=p({__name:"MenuGen",props:{tipo:{type:String,required:!0}},setup(n,{expose:i}){i();const a=n,o=g(()=>P[a.tipo]||{title:"Menú Desconocido",breadcrumbs:[],actions:[]}),l={props:a,config:o,get Head(){return m},AppLayout:v,ActionCard:A};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),S={class:"px-4 sm:px-6 py-12"},k={class:"text-2xl font-bold text-gray-900 dark:text-white mb-8"},I={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8"};function w(n,i,a,o,l,F){return s(),d(f,null,[b(o.Head,{title:o.config.title},null,8,["title"]),b(o.AppLayout,{breadcrumbs:o.config.breadcrumbs},{default:_(()=>[c("div",S,[c("h1",k,h(o.config.title),1),c("div",I,[(s(!0),d(f,null,x(o.config.actions,(e,u)=>(s(),y(o.ActionCard,{key:u,icon:e.icon,label:e.label,to:e.to,size:"lg","bg-color":e.bgColor,"footer-color":e.footerColor,"label-color":"#ffffff","footer-text-color":"#ffffff",variant:"raised"},null,8,["icon","label","to","bg-color","footer-color"]))),128))])])]),_:1},8,["breadcrumbs"])],64)}const D=C(M,[["render",w],["__file","/var/www/resources/js/pages/Administrar/MenuGen.vue"]]);export{D as default};
