import{o as e}from"./utils-cLZb83du.js";var t;(function(e){let t=(e,n)=>{if(e.route){let t=e.relatedId;n.push({name:e.route?.split(`/`).join(`_`)||e.id,url:e.route,title:e.title,meta:{isApplyTarbar:e.isApplyTarbar,title:e.title,relatedId:t,configTabBarItemId:e.id,name:e.name}})}Array.isArray(e.children)&&e.children.length>0&&e.children.forEach(e=>{t(e,n)})};e.getRouterFromTabBarConfigData=e=>{let n=[];return e.forEach(e=>{t(e,n)}),n},e.getTabBarConfigDataFromRouter=e=>{let t=[];return e.forEach(e=>{t.push({zxlPrdId:e.zxlPrdId,appId:e.appId,id:e.id,no:e.no,name:e.name,url:e.route,icon:e.icon,iconType:e.iconType,isApplyTarbar:e.isApplyTarbar})}),t}})(t||={});var n=`favicon.ico`,r=class{zxlPrdId;uuid;name;description;favicon;baseInfo;accessPortalObId;accessPortalName;identifyObId;moduleObId;_source;platForm;constructor(t){let{name:n,zxlPrdId:r,description:a,favicon:o,uuid:s,baseInfo:c,accessPortalObId:l,accessPortalName:u,identifyObId:d,moduleObId:f,_source:p,platForm:m}=t;this.zxlPrdId=r,this.uuid=s||e(),this.name=n,this.description=a,this.favicon=o||`favicon.ico`,this.baseInfo=c||i(),this.accessPortalObId=l||``,this.accessPortalName=u||``,this.identifyObId=d||``,this.moduleObId=f||``,this._source=p,this.platForm=m}updateBaseInfo(e){this.baseInfo=i(e)}},i=n=>{let r=!!n,i=r?n.tableData||[]:[{id:e(),no:`1`,title:`首页`,icon:`wap-home-o`,pageType:`normal`,route:`/home`,name:`首页`,isApplyTarbar:!0,iconType:`vant`,relatedId:e()},{id:e(),no:`3`,title:`我的`,icon:`contact-o`,pageType:`我的`,route:`/profile`,name:`我的`,isApplyTarbar:!0,relatedId:e(),children:[{id:e(),no:`3.1`,title:`个人信息`,name:`详情`,icon:``,iconType:`vant`,pageType:`normal`,isApplyTarbar:!1,parentId:`64b6d2d8-eea9-4c5f-b60c-ea5119a1bb3c`,route:`/profile-detail`,relatedId:e()}],iconType:`vant`}],a={tabbar:[],navBar:{title:void 0,fixed:void 0},router:[],defaultRouteName:``,defaultRoutePath:``};a.tabbar=t.getTabBarConfigDataFromRouter(i),a.router=t.getRouterFromTabBarConfigData(i);let o=n?.defaultRouteName||`_home`,s=n?.defaultRoutePath||`/home`;return a.tavigationConfigData={hasTabBar:r?n.hasTabBar:!0,tabBarStyle:r?n.tabBarStyle:`pic-text`,tableData:r?n.tableData:i,defaultRouteName:o,defaultRoutePath:s},a.defaultRouteName=o,a.defaultRoutePath=s,a};export{r as n,i as r,n as t};