import{E as e,F as t,M as n,St as r,X as i,ft as a,j as o,mn as s,nt as c,t as l,ut as u,v as d,w as f}from"./_plugin-vue_export-helper-C0lsYS1a.js";import{i as p}from"./vue-router-Bm5zhq9W.js";import{t as m}from"./router__product_manage-BRp5l5cw.js";import"./style-Bvb0L3Ww.js";import{t as h}from"./directive-2hBfY9mU.js";var g={class:`dynamic-tabs-index w-full flex flex-col bg-white adap-normal-shadow adap-lg-radius`},_=l(n({__name:`index`,setup(s){let l=r(!0),_=n(()=>()=>a(t(`div`,{class:`flex-grow`,"element-loading-text":`加载中`,style:{minHeight:`200px`}}),[[h,l.value]])),v=r(_),y=n(()=>()=>t(`div`,{class:`flex-grow`,style:{minHeight:`200px`}},[t(`p`,`加载失败！`)])),b=p();return u(()=>{if(!b)return;let e=b?.params?.rawName;if(!e){v.value=y;return}let t=m.find(t=>t.name===e);if(!t){v.value=y;return}v.value=o({loader:t.component,loadingComponent:_,onError:()=>{v.value=y}})}),console.log(`here dynamic-tabs - idnex.vue: setup`,b),(t,n)=>(i(),e(`div`,g,[(i(),f(d,{max:10},[(i(),f(c(v.value)))],1024))]))}}),[[`__scopeId`,`data-v-8861defb`]]);export{_ as default};