import{aW as u,r as o,G as f,j as r,F as s,o as h,B as g}from"./index-28356639.js";import{u as C,D as x,b as j}from"./GenericForm-9ab6a50c.js";import"./ContentCopy-7757f481.js";import"./ExpandMore-8e514b85.js";import"./ListItemText-c28729dd.js";import"./DialogContentText-8cf287af.js";import"./AdmUsuarios-eee1bf3d.js";import"./Edit-d4cf12ea.js";import"./ListItemIcon-df53ee3f.js";import"./AdjuntarArchivoSolicitud-02cd15a2.js";import"./QrReader-a3208b36.js";import"./PictureAsPdf-4f5f60d5.js";import"./main-75e3c4b1.js";import"./NoRowsComponent-2913819e.js";import"./MoreVert-47b3685e.js";import"./useForm-3438d92b.js";import"./Card-69a23e86.js";import"./CardContent-4a2fea3f.js";import"./cjs-2e434810.js";import"./OmegaTransferList-31390077.js";import"./CardHeader-cc36f3ee.js";import"./DatosDom-f11d8bf3.js";import"./ImageViewerModal-5e6551f8.js";import"./Avatar-daca08cc.js";import"./_commonjs-dynamic-modules-703947b3.js";import"./env-198ff0f3.js";import"./cargaPreferenciasDeUsuario-069ab679.js";import"./mapValues-1e68331d.js";import"./Scheduler-05e5d295.js";import"./___vite-browser-external_commonjs-proxy-deb27a48.js";const Y=()=>{let{name:t}=u();const{loading:v,data:e,error:a,load:n}=C(t||"",!0),[m,p]=o.useState(!1),[c,i]=o.useState(!0);f();const l=async()=>{n()};if(o.useEffect(()=>{e&&p(!0),i(!1)},[e]),o.useEffect(()=>{i(!0),t&&l()},[t]),!a)if(c){const d=`Error: No se encontro el componente components/Custom/${t}`;return h(g,{height:"100dvh",children:[r("h3",{children:t}),r("div",{className:"error",children:d})]})}else return m?r(s,{children:r(o.Suspense,{fallback:r("div",{children:"Cargando..."}),children:r(j,{})})}):r(s,{children:r(o.Suspense,{fallback:r("div",{children:"Cargando..."}),children:r(x,{})})})};export{Y as default};
