Files
yuezi-saas/frontend/dist/assets/permission-DwT3G4WW.js
T

2 lines
13 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/layout-BCjnqw4n.js","assets/index-DK5nh4op.js","assets/preload-helper-DSXbuxSR.js","assets/runtime-core.esm-bundler-DbRZbT7v.js","assets/index-BTxz3KtI.css","assets/iconify-f5JHLb1p.js","assets/user-Tnoer2Cx.js","assets/request-BcX6wdRT.js","assets/axios-m2QKKPzv.js","assets/layout-Bba1oLTr.css","assets/exceptions-CpgrYfom.js","assets/care-Bu8b27GM.js","assets/crm-D8MwtJCV.js","assets/health-metrics-C3vbV6Lb.js","assets/plans-CK0Nv6sH.js","assets/system-cE3W4r-W.js","assets/profiles-CkiWEkmF.js","assets/records-Bcuo6mDW.js","assets/channels-DOen6AZc.js","assets/complaints-CeV1sz65.js","assets/contracts-CXnxM7lp.js","assets/customers-CPNnUmDV.js","assets/leads-DPCXaaEk.js","assets/questionnaires-BJrcqW5v.js","assets/dashboard-DZmjC9If.js","assets/404-DM9MhG0K.js","assets/404-lb1dpT3n.css","assets/accounts-DNXZoM-M.js","assets/finance-BtB7VcrK.js","assets/categories-WR-O-lwh.js","assets/invoices-DIJBiWGo.js","assets/payments-BSB526FR.js","assets/prepaid-cards-ClhzWH_t.js","assets/records-Dimnb7ly.js","assets/transactions-CSysVN_e.js","assets/attendances-CB2wHO47.js","assets/hr-Dn6c2ITK.js","assets/leaves-DlhX_Zoe.js","assets/profiles-DFW2YfY1.js","assets/salaries-Ch4V32kw.js","assets/schedules-BWG5outR.js","assets/checks-1VsgU6sg.js","assets/inventory-B_vJhWAi.js","assets/materials-DkuskxUo.js","assets/purchase-orders-BjPlE2kB.js","assets/stock-BAbW9fSs.js","assets/stock-BKGyHpKj.css","assets/stock-movements-D2A2pfwu.js","assets/suppliers-DbWKnv3G.js","assets/transfers-DCsrK5HT.js","assets/warehouses-DUdREgEJ.js","assets/articles-Drd_Cla1.js","assets/kb-D4R1dYsi.js","assets/categories-B1d1fyfc.js","assets/login-D_dLeBaG.js","assets/daily-plans-Bn9Nj_tj.js","assets/meal-CLB9N1bA.js","assets/dishes-C_xDXFiF.js","assets/reviews-ByXRdh38.js","assets/templates-BOL-s_-0.js","assets/nannies--oIGLHN3.js","assets/nanny-D_Rp2UQt.js","assets/orders-CWzcSNlg.js","assets/schedules-_3Oqf7vz.js","assets/announcements-DP8DyWcj.js","assets/office-65rbW6z0.js","assets/approval-templates-Bz1cbIA1.js","assets/approvals-DRHPn9LO.js","assets/handovers-DsLxhTfq.js","assets/notifications-CqIlrm2M.js","assets/notifications-g_qm3ySB.css","assets/register-CVKITrMy.js","assets/exports-bCytWgbd.js","assets/report-DwsbaDxh.js","assets/exports-B_uIFYth.css","assets/overview-D0V7dduJ.js","assets/overview-BxW0qUIU.css","assets/board-B7rzI1tC.js","assets/room-CR75Q7cU.js","assets/call-records-BOvjJqgB.js","assets/outings-B47MWldV.js","assets/reservations-BRAZw0Vx.js","assets/room-types-CacF_KOx.js","assets/rooms-DxE-puJh.js","assets/executions-mNQAqbj-.js","assets/service-B9DzomAc.js","assets/executions-BEcAvGO_.css","assets/items-CcZ8Hdne.js","assets/orders-CLfjPgAm.js","assets/packages-D712SLyt.js","assets/departments-24aLHpfg.js","assets/dictionaries-DM7Wg1J0.js","assets/dictionaries-BxACn_24.css","assets/logs-BsIY-veD.js","assets/logs-BEnn1I4-.css","assets/menus-BZ5cS0TV.js","assets/positions-QIgzzmlm.js","assets/registration-packages-Bm7O3Rq9.js","assets/roles-Fv45NtCs.js","assets/roles-GO2NOFPW.css","assets/stores-ClXkVW6_.js","assets/users-DOhmeMqi.js"])))=>i.map(i=>d[i]);
import{lt as e}from"./runtime-core.esm-bundler-DbRZbT7v.js";import{t}from"./preload-helper-DSXbuxSR.js";import{a as n,n as r}from"./index-DK5nh4op.js";var i=()=>t(()=>import(`./layout-BCjnqw4n.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),a=Object.assign({"/src/views/care/exceptions/index.vue":()=>t(()=>import(`./exceptions-CpgrYfom.js`),__vite__mapDeps([10,1,2,3,4,5,11,7,8,12])),"/src/views/care/health-metrics/index.vue":()=>t(()=>import(`./health-metrics-C3vbV6Lb.js`),__vite__mapDeps([13,1,2,3,4,5,11,7,8,12])),"/src/views/care/plans/index.vue":()=>t(()=>import(`./plans-CK0Nv6sH.js`),__vite__mapDeps([14,1,2,3,4,11,7,8,15])),"/src/views/care/profiles/index.vue":()=>t(()=>import(`./profiles-CkiWEkmF.js`),__vite__mapDeps([16,1,2,3,4,11,7,8,12])),"/src/views/care/records/index.vue":()=>t(()=>import(`./records-Bcuo6mDW.js`),__vite__mapDeps([17,1,2,3,4,11,7,8])),"/src/views/crm/channels/index.vue":()=>t(()=>import(`./channels-DOen6AZc.js`),__vite__mapDeps([18,1,2,3,4,12,7,8])),"/src/views/crm/complaints/index.vue":()=>t(()=>import(`./complaints-CeV1sz65.js`),__vite__mapDeps([19,1,2,3,4,12,7,8])),"/src/views/crm/contracts/index.vue":()=>t(()=>import(`./contracts-CXnxM7lp.js`),__vite__mapDeps([20,1,2,3,4,12,7,8])),"/src/views/crm/customers/index.vue":()=>t(()=>import(`./customers-CPNnUmDV.js`),__vite__mapDeps([21,1,2,3,4,12,7,8])),"/src/views/crm/leads/index.vue":()=>t(()=>import(`./leads-DPCXaaEk.js`),__vite__mapDeps([22,1,2,3,4,12,7,8,15])),"/src/views/crm/questionnaires/index.vue":()=>t(()=>import(`./questionnaires-BJrcqW5v.js`),__vite__mapDeps([23,1,2,3,4,12,7,8])),"/src/views/dashboard/index.vue":()=>t(()=>import(`./dashboard-DZmjC9If.js`),__vite__mapDeps([24,1,2,3,4,5,6,7,8])),"/src/views/error/404.vue":()=>t(()=>import(`./404-DM9MhG0K.js`),__vite__mapDeps([25,1,2,3,4,26])),"/src/views/finance/accounts/index.vue":()=>t(()=>import(`./accounts-DNXZoM-M.js`),__vite__mapDeps([27,1,2,3,4,28,7,8])),"/src/views/finance/categories/index.vue":()=>t(()=>import(`./categories-WR-O-lwh.js`),__vite__mapDeps([29,1,2,3,4,28,7,8])),"/src/views/finance/invoices/index.vue":()=>t(()=>import(`./invoices-DIJBiWGo.js`),__vite__mapDeps([30,1,2,3,4,28,7,8])),"/src/views/finance/payments/index.vue":()=>t(()=>import(`./payments-BSB526FR.js`),__vite__mapDeps([31,1,2,3,4,28,7,8])),"/src/views/finance/prepaid-cards/index.vue":()=>t(()=>import(`./prepaid-cards-ClhzWH_t.js`),__vite__mapDeps([32,1,2,3,4,28,7,8])),"/src/views/finance/records/index.vue":()=>t(()=>import(`./records-Dimnb7ly.js`),__vite__mapDeps([33,1,2,3,4,28,7,8])),"/src/views/finance/transactions/index.vue":()=>t(()=>import(`./transactions-CSysVN_e.js`),__vite__mapDeps([34,1,2,3,4,28,7,8])),"/src/views/hr/attendances/index.vue":()=>t(()=>import(`./attendances-CB2wHO47.js`),__vite__mapDeps([35,1,2,3,4,36,7,8])),"/src/views/hr/leaves/index.vue":()=>t(()=>import(`./leaves-DlhX_Zoe.js`),__vite__mapDeps([37,1,2,3,4,36,7,8])),"/src/views/hr/profiles/index.vue":()=>t(()=>import(`./profiles-DFW2YfY1.js`),__vite__mapDeps([38,1,2,3,4,36,7,8])),"/src/views/hr/salaries/index.vue":()=>t(()=>import(`./salaries-Ch4V32kw.js`),__vite__mapDeps([39,1,2,3,4,36,7,8])),"/src/views/hr/schedules/index.vue":()=>t(()=>import(`./schedules-BWG5outR.js`),__vite__mapDeps([40,1,2,3,4,36,7,8])),"/src/views/inventory/checks/index.vue":()=>t(()=>import(`./checks-1VsgU6sg.js`),__vite__mapDeps([41,1,2,3,4,42,7,8])),"/src/views/inventory/materials/index.vue":()=>t(()=>import(`./materials-DkuskxUo.js`),__vite__mapDeps([43,1,2,3,4,42,7,8])),"/src/views/inventory/purchase-orders/index.vue":()=>t(()=>import(`./purchase-orders-BjPlE2kB.js`),__vite__mapDeps([44,1,2,3,4,42,7,8])),"/src/views/inventory/stock/index.vue":()=>t(()=>import(`./stock-BAbW9fSs.js`),__vite__mapDeps([45,1,2,3,4,42,7,8,46])),"/src/views/inventory/stock-movements/index.vue":()=>t(()=>import(`./stock-movements-D2A2pfwu.js`),__vite__mapDeps([47,1,2,3,4,42,7,8])),"/src/views/inventory/suppliers/index.vue":()=>t(()=>import(`./suppliers-DbWKnv3G.js`),__vite__mapDeps([48,1,2,3,4,42,7,8])),"/src/views/inventory/transfers/index.vue":()=>t(()=>import(`./transfers-DCsrK5HT.js`),__vite__mapDeps([49,1,2,3,4,42,7,8])),"/src/views/inventory/warehouses/index.vue":()=>t(()=>import(`./warehouses-DUdREgEJ.js`),__vite__mapDeps([50,1,2,3,4,42,7,8])),"/src/views/kb/articles/index.vue":()=>t(()=>import(`./articles-Drd_Cla1.js`),__vite__mapDeps([51,1,2,3,4,52,7,8])),"/src/views/kb/categories/index.vue":()=>t(()=>import(`./categories-B1d1fyfc.js`),__vite__mapDeps([53,1,2,3,4,52,7,8])),"/src/views/login/index.vue":()=>t(()=>import(`./login-D_dLeBaG.js`),__vite__mapDeps([54,1,2,3,4,5,6,7,8])),"/src/views/meal/daily-plans/index.vue":()=>t(()=>import(`./daily-plans-Bn9Nj_tj.js`),__vite__mapDeps([55,1,2,3,4,12,7,8,56])),"/src/views/meal/dishes/index.vue":()=>t(()=>import(`./dishes-C_xDXFiF.js`),__vite__mapDeps([57,1,2,3,4,56,7,8])),"/src/views/meal/reviews/index.vue":()=>t(()=>import(`./reviews-ByXRdh38.js`),__vite__mapDeps([58,1,2,3,4,5,12,7,8,56])),"/src/views/meal/templates/index.vue":()=>t(()=>import(`./templates-BOL-s_-0.js`),__vite__mapDeps([59,1,2,3,4,5,56,7,8])),"/src/views/nanny/nannies/index.vue":()=>t(()=>import(`./nannies--oIGLHN3.js`),__vite__mapDeps([60,1,2,3,4,61,7,8])),"/src/views/nanny/orders/index.vue":()=>t(()=>import(`./orders-CWzcSNlg.js`),__vite__mapDeps([62,1,2,3,4,61,7,8])),"/src/views/nanny/schedules/index.vue":()=>t(()=>import(`./schedules-_3Oqf7vz.js`),__vite__mapDeps([63,1,2,3,4,61,7,8])),"/src/views/office/announcements/index.vue":()=>t(()=>import(`./announcements-DP8DyWcj.js`),__vite__mapDeps([64,1,2,3,4,65,7,8])),"/src/views/office/approval-templates/index.vue":()=>t(()=>import(`./approval-templates-Bz1cbIA1.js`),__vite__mapDeps([66,1,2,3,4,65,7,8])),"/src/views/office/approvals/index.vue":()=>t(()=>import(`./approvals-DRHPn9LO.js`),__vite__mapDeps([67,1,2,3,4,65,7,8])),"/src/views/office/handovers/index.vue":()=>t(()=>import(`./handovers-DsLxhTfq.js`),__vite__mapDeps([68,1,2,3,4,65,7,8])),"/src/views/office/notifications/index.vue":()=>t(()=>import(`./notifications-CqIlrm2M.js`),__vite__mapDeps([69,1,2,3,4,65,7,8,70])),"/src/views/register/index.vue":()=>t(()=>import(`./register-CVKITrMy.js`),__vite__mapDeps([71,1,2,3,4,8])),"/src/views/report/exports/index.vue":()=>t(()=>import(`./exports-bCytWgbd.js`),__vite__mapDeps([72,1,2,3,4,73,7,8,74])),"/src/views/report/overview/index.vue":()=>t(()=>import(`./overview-D0V7dduJ.js`),__vite__mapDeps([75,1,2,3,4,73,7,8,76])),"/src/views/room/board/index.vue":()=>t(()=>import(`./board-B7rzI1tC.js`),__vite__mapDeps([77,1,2,3,4,78,7,8])),"/src/views/room/call-records/index.vue":()=>t(()=>import(`./call-records-BOvjJqgB.js`),__vite__mapDeps([79,1,2,3,4,12,7,8,78])),"/src/views/room/outings/index.vue":()=>t(()=>import(`./outings-B47MWldV.js`),__vite__mapDeps([80,1,2,3,4,12,7,8,78])),"/src/views/room/reservations/index.vue":()=>t(()=>import(`./reservations-BRAZw0Vx.js`),__vite__mapDeps([81,1,2,3,4,12,7,8,78])),"/src/views/room/room-types/index.vue":()=>t(()=>import(`./room-types-CacF_KOx.js`),__vite__mapDeps([82,1,2,3,4,78,7,8])),"/src/views/room/rooms/index.vue":()=>t(()=>import(`./rooms-DxE-puJh.js`),__vite__mapDeps([83,1,2,3,4,78,7,8])),"/src/views/service/executions/index.vue":()=>t(()=>import(`./executions-mNQAqbj-.js`),__vite__mapDeps([84,1,2,3,4,5,85,7,8,86])),"/src/views/service/items/index.vue":()=>t(()=>import(`./items-CcZ8Hdne.js`),__vite__mapDeps([87,1,2,3,4,85,7,8])),"/src/views/service/orders/index.vue":()=>t(()=>import(`./orders-CLfjPgAm.js`),__vite__mapDeps([88,1,2,3,4,85,7,8])),"/src/views/service/packages/index.vue":()=>t(()=>import(`./packages-D712SLyt.js`),__vite__mapDeps([89,1,2,3,4,85,7,8])),"/src/views/system/departments/index.vue":()=>t(()=>import(`./departments-24aLHpfg.js`),__vite__mapDeps([90,1,2,3,4,15,7,8])),"/src/views/system/dictionaries/index.vue":()=>t(()=>import(`./dictionaries-DM7Wg1J0.js`),__vite__mapDeps([91,1,2,3,4,15,7,8,92])),"/src/views/system/logs/index.vue":()=>t(()=>import(`./logs-BsIY-veD.js`),__vite__mapDeps([93,1,2,3,4,15,7,8,94])),"/src/views/system/menus/index.vue":()=>t(()=>import(`./menus-BZ5cS0TV.js`),__vite__mapDeps([95,1,2,3,4,15,7,8])),"/src/views/system/positions/index.vue":()=>t(()=>import(`./positions-QIgzzmlm.js`),__vite__mapDeps([96,1,2,3,4,15,7,8])),"/src/views/system/registration-packages/index.vue":()=>t(()=>import(`./registration-packages-Bm7O3Rq9.js`),__vite__mapDeps([97,1,2,3,4,15,7,8])),"/src/views/system/roles/index.vue":()=>t(()=>import(`./roles-Fv45NtCs.js`),__vite__mapDeps([98,1,2,3,4,15,7,8,99])),"/src/views/system/stores/index.vue":()=>t(()=>import(`./stores-ClXkVW6_.js`),__vite__mapDeps([100,1,2,3,4,15,7,8])),"/src/views/system/users/index.vue":()=>t(()=>import(`./users-DOhmeMqi.js`),__vite__mapDeps([101,1,2,3,4,15,7,8]))});function o(e){let t=[`/src/views/${e}.vue`,`@/views/${e}.vue`,`../views/${e}.vue`];for(let e of t)if(a[e])return a[e];let n=`/views/${e}.vue`;for(let[e,t]of Object.entries(a))if(e.endsWith(n))return t;console.warn(`[permission] View not found: ${e}`)}function s(e){let t={path:e.path,name:e.name||e.path,meta:{title:e.name,icon:e.icon||``,id:e.id,hidden:e.visible===0}};if(e.component===`Layout`)t.component=i;else if(e.component){let n=o(e.component);n&&(t.component=n)}return e.children&&e.children.length>0&&(t.children=e.children.map(s),!t.redirect&&t.children.length>0&&(t.redirect=t.children[0].path)),t}var c=n(`permission`,()=>{let t=e([]),n=e([]);function a(e){let a=[],c={path:`/`,name:`Root`,component:i,redirect:`/dashboard`,children:[]};for(let t of e)if(t.children&&t.children.length>0&&(!t.component||t.component===`Layout`))for(let e of t.children)c.children.push(s(e));else t.component&&c.children.push(s(t));return c.children.some(e=>e.path===`/dashboard`||e.path===`dashboard`)||c.children.unshift({path:`dashboard`,name:`Dashboard`,component:o(`dashboard/index`),meta:{title:`工作台`,icon:`Odometer`}}),a.push(c),a.push({path:`/:pathMatch(.*)*`,redirect:`/404`,meta:{hidden:!0}}),n.value=a,t.value=[...r,...a],a}function c(){t.value=[],n.value=[]}return{routes:t,dynamicRoutes:n,generateRoutes:a,resetRoutes:c}});export{c as usePermissionStore};