xto-fronted 0.4.106 → 0.4.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/assets/404-Cw_4ZCL6.css +1 -0
  2. package/dist/assets/404-Ds4qQp_I.js +1 -0
  3. package/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
  4. package/dist/assets/index-8nuVIlbv.css +1 -0
  5. package/dist/assets/index-BHz6c6nU.js +1 -0
  6. package/dist/assets/index-BRR97dc6.js +1 -0
  7. package/dist/assets/index-BiVrui0e.js +1 -0
  8. package/dist/assets/index-BlRslYYI.css +1 -0
  9. package/dist/assets/index-BmKXwp1h.js +2 -0
  10. package/dist/assets/index-BudArKxR.css +1 -0
  11. package/dist/assets/index-CFhWBbxk.css +1 -0
  12. package/dist/assets/index-CcPloqYU.css +1 -0
  13. package/dist/assets/index-Cpew6d-v.css +1 -0
  14. package/dist/assets/index-DTpYpZOm.js +1 -0
  15. package/dist/assets/index-Dr4dkRtj.js +1 -0
  16. package/dist/assets/index-Y3uGV-U1.js +1 -0
  17. package/dist/assets/index-aJcLMKgc.js +1 -0
  18. package/dist/assets/index-vfvEFrCH.css +1 -0
  19. package/dist/assets/vendor-DZmPBJ9d.js +16 -0
  20. package/dist/assets/vue-vendor-emeAKDpw.js +29 -0
  21. package/dist/assets/xto-base-CL2NKZJJ.css +1 -0
  22. package/dist/assets/xto-base-CqtR85Rk.js +1 -0
  23. package/dist/assets/xto-business--V1F5Gwb.css +1 -0
  24. package/dist/assets/xto-core-DMuDa0Wb.js +1 -0
  25. package/dist/assets/xto-data-BESpuXuX.js +1 -0
  26. package/dist/assets/xto-data-MxZsiJgi.css +1 -0
  27. package/dist/assets/xto-feedback-Bxx38c3P.css +1 -0
  28. package/dist/assets/xto-feedback-DpxPzvBf.js +1 -0
  29. package/dist/assets/xto-form-Cu6q3VLG.css +1 -0
  30. package/dist/assets/xto-form-DeLishR4.js +1 -0
  31. package/dist/assets/xto-layout-BDD6sSlM.css +1 -0
  32. package/dist/assets/xto-navigation-DVpBd-R6.js +1 -0
  33. package/dist/assets/xto-navigation-XfpyMpEo.css +1 -0
  34. package/dist/index.html +28 -0
  35. package/package.json +1 -1
  36. package/src/index.ts +23 -3
  37. package/src/utils/config.ts +134 -80
  38. package/src/utils/request.ts +24 -3
  39. package/dist/App.vue.d.ts +0 -2
  40. package/dist/api/auth.d.ts +0 -8
  41. package/dist/api/index.d.ts +0 -6
  42. package/dist/api/index.js +0 -26
  43. package/dist/api/system.d.ts +0 -16
  44. package/dist/api/user.d.ts +0 -13
  45. package/dist/api.d.ts +0 -2
  46. package/dist/components/Layout/Footer.vue.d.ts +0 -2
  47. package/dist/components/Layout/Header.vue.d.ts +0 -5
  48. package/dist/components/Layout/MixTopMenu.vue.d.ts +0 -10
  49. package/dist/components/Layout/Sidebar.vue.d.ts +0 -13
  50. package/dist/components/Layout/SidebarMenuItem.vue.d.ts +0 -5
  51. package/dist/components/Layout/Tabs.vue.d.ts +0 -2
  52. package/dist/components/Layout/TopMenu.vue.d.ts +0 -10
  53. package/dist/components/Layout/index.vue.d.ts +0 -7
  54. package/dist/composables/useApp.d.ts +0 -29
  55. package/dist/composables/useAuth.d.ts +0 -6
  56. package/dist/composables/useForm.d.ts +0 -20
  57. package/dist/composables/useI18n.d.ts +0 -30
  58. package/dist/composables/useTable.d.ts +0 -29
  59. package/dist/directives/permission.d.ts +0 -4
  60. package/dist/enums/index.d.ts +0 -32
  61. package/dist/index-01f4mTJg.js +0 -479
  62. package/dist/index-BSyHGMA5.js +0 -3162
  63. package/dist/index-BnkXUVuB.js +0 -189
  64. package/dist/index-Nz8stCJl.js +0 -515
  65. package/dist/index-ddj4tPtc.js +0 -641
  66. package/dist/index.d.ts +0 -59
  67. package/dist/index.js +0 -96
  68. package/dist/main.d.ts +0 -0
  69. package/dist/router/dynamicRoutes.d.ts +0 -30
  70. package/dist/router/guards.d.ts +0 -17
  71. package/dist/router/index.d.ts +0 -6
  72. package/dist/router/layoutRoute.d.ts +0 -23
  73. package/dist/router/staticRoutes.d.ts +0 -2
  74. package/dist/stores/app.d.ts +0 -99
  75. package/dist/stores/auth.d.ts +0 -41
  76. package/dist/stores/index.d.ts +0 -10
  77. package/dist/stores/locale.d.ts +0 -42
  78. package/dist/stores/menu.d.ts +0 -83
  79. package/dist/stores/user.d.ts +0 -92
  80. package/dist/style.css +0 -1
  81. package/dist/user-Qd_jMBaH.js +0 -1150
  82. package/dist/utils/auth.d.ts +0 -27
  83. package/dist/utils/config.d.ts +0 -30
  84. package/dist/utils/permission.d.ts +0 -17
  85. package/dist/utils/request.d.ts +0 -29
  86. package/dist/utils/storage.d.ts +0 -24
  87. package/dist/views/dashboard/index.vue.d.ts +0 -2
  88. package/dist/views/error/403.vue.d.ts +0 -2
  89. package/dist/views/error/404.vue.d.ts +0 -2
  90. package/dist/views/login/index.vue.d.ts +0 -4
  91. package/dist/views/system/menu/index.vue.d.ts +0 -4
  92. package/dist/views/system/role/index.vue.d.ts +0 -4
  93. package/dist/views/system/user/index.vue.d.ts +0 -4
@@ -0,0 +1 @@
1
+ import{d as I,p as ve,o as b,c as y,r as j,n as v,e as m,k as S,l as ce,w as Y,q as me,s as he,b as U,u as c,j as P,g as F,a as $,v as Ve,x as pe,y as ze,z as Q,F as J,A as Z,B as ne,f as ke,C as xe,D as we,T as He,E as Ce,G as Le,i as fe,H as Ae}from"./vue-vendor-emeAKDpw.js";import{K as N,d as Be}from"./xto-core-DMuDa0Wb.js";const Se="modulepreload",Ke=function(t){return"/"+t},de={},Ze=function(k,a,e){let l=Promise.resolve();if(a&&a.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.allSettled(a.map(r=>{if(r=Ke(r),r in de)return;de[r]=!0;const p=r.endsWith(".css"),w=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${w}`))return;const V=document.createElement("link");if(V.rel=p?"stylesheet":Se,p||(V.as="script"),V.crossOrigin="",V.href=r,s&&V.setAttribute("nonce",s),document.head.appendChild(V),p)return new Promise((M,A)=>{V.addEventListener("load",M),V.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${r}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return l.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return k().catch(o)})},Me={"arrow-up":"M12 19V5m0 0l-7 7m7-7l7 7","arrow-down":"M12 5v14m0 0l7-7m-7 7l-7-7","arrow-left":"M19 12H5m0 0l7 7m-7-7l7-7","arrow-right":"M5 12h14m0 0l-7-7m7 7l-7 7","arrow-up-bold":"M12 5l-7 7h4v7h6v-7h4l-7-7z","arrow-down-bold":"M12 19l7-7h-4V5H9v7H5l7 7z","arrow-left-bold":"M5 12l7-7v4h7v6h-7v4l-7-7z","arrow-right-bold":"M19 12l-7 7v-4H5v-6h7V5l7 7z","caret-down":"M6 9l6 6 6-6","caret-right":"M9 18l6-6-6-6",plus:"M12 5v14m-7-7h14",minus:"M5 12h14",close:"M6 18L18 6M6 6l12 12",check:"M5 13l4 4L19 7","check-bold":"M4 12l5 5L20 6",edit:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z",delete:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16",copy:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z",download:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4",upload:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12",refresh:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15",search:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",filter:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z",more:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z","more-h":"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z",setting:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z",share:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z",loading:"M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48l2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48l2.83-2.83",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",success:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",warning:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z",error:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z",question:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",user:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z","user-add":"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z","user-group":"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z",logout:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1",login:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1",file:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z",folder:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z","folder-open":"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z",document:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z",image:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z",video:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z",music:"M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3",camera:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z M15 13a3 3 0 11-6 0 3 3 0 016 0z",mail:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z",phone:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z",chat:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z",bell:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",message:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z",eye:"M15 12a3 3 0 11-6 0 3 3 0 016 0z M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z","eye-off":"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21",calendar:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z",clock:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",history:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",timer:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",location:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z M15 11a3 3 0 11-6 0 3 3 0 016 0z",map:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7",globe:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9",star:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z",heart:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z","thumb-up":"M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5",link:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1","external-link":"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14",lock:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z",unlock:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z",key:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z",home:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6",menu:"M4 6h16M4 12h16M4 18h16","menu-fold":"M4 6h16M4 12h10M4 18h16","menu-unfold":"M4 6h16M10 12h10M4 18h16","menu-collapse":"M4 6h16M4 12h10M4 18h16","menu-expand":"M4 6h16M10 12h10M4 18h16","sidebar-fold":"M11 19l-7-7 7-7m8 14l-7-7 7-7","sidebar-expand":"M13 5l7 7-7 7M5 5l7 7-7 7","sidebar-left":"M11 19l-7-7 7-7m8 14l-7-7 7-7",dashboard:"M4 5a1 1 0 011-1h4a1 1 0 011 1v5a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM14 5a1 1 0 011-1h4a1 1 0 011 1v2a1 1 0 01-1 1h-4a1 1 0 01-1-1V5zM4 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1v-4zM14 12a1 1 0 011-1h4a1 1 0 011 1v7a1 1 0 01-1 1h-4a1 1 0 01-1-1v-7z",chart:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z","chart-pie":"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z","chart-line":"M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4v16",report:"M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z",analytics:"M16 8v8m-4-5v5m-4-2v2m-2 4h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z",system:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M12 15a3 3 0 100-6 3 3 0 000 6z",permission:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z",role:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z","user-manage":"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z",log:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z",notification:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",app:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z",list:"M4 6h16M4 10h16M4 14h16M4 18h16",grid:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z",fullscreen:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4","fullscreen-exit":"M9 4V9H4m11-5v5h5M4 15h5v5m11-5h-5v5","zoom-in":"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM10 7v6m3-3H7","zoom-out":"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM13 10H7",print:"M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z",bookmark:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z",tag:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z",code:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4",terminal:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z",database:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4",server:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01",cloud:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z",gift:"M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7",moon:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z",sun:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z",theme:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01",skin:"M7 4h2v1c0 1.66 1.34 3 3 3s3-1.34 3-3V4h2l3 3v6h-4l1 3v5H7v-5l1-3H4V7l3-3z",heading:"M4 6h16M4 12h8m-8 6h16",bold:"M6 4h8a4 4 0 014 4 4 4 0 01-4 4H6z M6 12h9a4 4 0 014 4 4 4 0 01-4 4H6z",italic:"M10 4h4m-2 0v16m-4 0h8",strikethrough:"M16 4H8a4 4 0 00-4 4v4h16V8a4 4 0 00-4-4zM4 12h16m-4 4H8a4 4 0 00-4 4v0a4 4 0 004 4h8a4 4 0 004-4v0a4 4 0 00-4-4z","list-bullet":"M4 6h.01M4 12h.01M4 18h.01M8 6h12M8 12h12M8 18h12","list-number":"M4 6h2M4 12h2M4 18h2M8 6h12M8 12h12M8 18h12","link-text":"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1","image-insert":"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z","code-inline":"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4","divider-h":"M4 12h16",quote:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z","code-block":"M4 4h16v16H4z M8 8h8M8 12h8M8 16h4","sort-up":"M12 5v14m-7-7l7-7 7 7","sort-down":"M12 19V5m7 7l-7 7-7-7","chevron-down":"M6 9l6 6 6-6","chevron-right":"M9 18l6-6-6-6","chevron-up":"M18 15l-6-6-6 6","chevron-left":"M15 18l-6-6 6-6","move-up":"M5 15l7-7 7 7","move-down":"M19 9l-7 7-7-7","back-top":"M12 19V5m-7 7l7-7 7 7","dropdown-arrow":"M6 9l6 6 6-6","close-circle":"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z","close-bold":"M6 18L18 6M6 6l12 12","check-circle":"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z","info-circle":"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z","warning-circle":"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z","back-arrow":"M19 12H5m0 0l7 7m-7-7l7-7","d-arrow-left":"M11 17l-5-5 5-5M18 17l-5-5 5-5","d-arrow-right":"M6 7l5 5-5 5M13 7l5 5-5 5",left:"M15 19l-7-7 7-7",right:"M9 5l7 7-7 7",down:"M19 9l-7 7-7-7",up:"M5 15l7-7 7 7"};function $e(t){return t in Me}const _e=["aria-hidden","aria-label"],Ee=["stroke-width"],Fe=["d"],ie=I({name:"XIcon",__name:"index",props:{name:{},size:{default:24},color:{},spin:{type:Boolean,default:!1},strokeWidth:{default:2}},setup(t,{expose:k}){const a=t,e=N("icon"),l=m(()=>typeof a.size=="number"?`${a.size}px`:a.size),o=m(()=>({width:l.value,height:l.value,color:a.color})),i=m(()=>({strokeWidth:a.strokeWidth})),s=m(()=>[e.b(),e.is("spin",a.spin)]),r=m(()=>a.name&&$e(a.name)?Me[a.name]:"");return k({iconSize:l,iconStyle:o,iconPath:r}),(p,w)=>(b(),y("span",{class:v(s.value),style:U(o.value),"aria-hidden":!t.name,"aria-label":t.name,role:"img"},[r.value?(b(),y("svg",{key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",style:U(i.value),"aria-hidden":"true"},[$("path",{d:r.value},null,8,Fe)],12,Ee)):j(p.$slots,"default",{key:1},()=>[fe(P(t.name),1)])],14,_e))}}),Te=["type","placeholder","disabled","readonly","maxlength","minlength"],Qe=I({name:"XInput",__name:"index",props:{modelValue:{default:void 0},value:{default:void 0},type:{default:"text"},placeholder:{default:""},size:{default:"default"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},maxlength:{},minlength:{},showWordLimit:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},prefixIcon:{},suffixIcon:{}},emits:["update:modelValue","update:value","input","change","focus","blur","clear"],setup(t,{expose:k,emit:a}){const e=t,l=a,o=N("input"),i=S(),s=S(!1),r=S(!1),p=Ve(),w=m(()=>e.type==="password"&&e.showPassword&&!e.disabled),V=m(()=>w.value?r.value?"text":"password":e.type),M=S("");Y([()=>e.modelValue,()=>e.value],([u,C])=>{const E=u??C??"";E!==M.value&&(M.value=E)},{immediate:!0});const A=u=>{M.value=u,l("update:modelValue",u),l("update:value",u),l("input",u)},H=m(()=>String(M.value).length),K=m(()=>[o.b(),e.size!=="default"?o.m(e.size):"",o.is("disabled",e.disabled),o.is("focus",s.value),o.is("has-prefix",e.prefixIcon||p.prefix),o.is("has-suffix",e.suffixIcon||p.suffix||e.clearable||w.value||e.showWordLimit)]),z=u=>{const C=u.target.value;l("change",C)},T=u=>{s.value=!0,l("focus",u)},B=u=>{s.value=!1,l("blur",u)},L=()=>{M.value="",l("update:modelValue",""),l("update:value",""),l("clear")},h=()=>{r.value=!r.value};return k({focus:()=>{var u;(u=i.value)==null||u.focus()},blur:()=>{var u;(u=i.value)==null||u.blur()},inputRef:i}),(u,C)=>(b(),y("div",{class:v(K.value)},[u.$slots.prefix||t.prefixIcon?(b(),y("span",{key:0,class:v(c(o).e("prefix"))},[j(u.$slots,"prefix",{},()=>[$("span",{class:v(c(o).e("icon"))},P(t.prefixIcon),3)])],2)):F("",!0),pe($("input",{ref_key:"inputRef",ref:i,"onUpdate:modelValue":C[0]||(C[0]=E=>M.value=E),type:V.value,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,maxlength:t.maxlength,minlength:t.minlength,class:v(c(o).e("inner")),onInput:C[1]||(C[1]=E=>A(E.target.value)),onChange:z,onFocus:T,onBlur:B},null,42,Te),[[ze,M.value]]),u.$slots.suffix||t.suffixIcon||t.clearable||w.value||t.showWordLimit?(b(),y("span",{key:1,class:v(c(o).e("suffix"))},[j(u.$slots,"suffix",{},()=>[t.clearable&&t.value&&!t.disabled?(b(),y("span",{key:0,class:v([c(o).e("icon"),c(o).e("clear")]),onClick:L},[Q(c(ie),{name:"close",size:14})],2)):F("",!0),w.value?(b(),y("span",{key:1,class:v([c(o).e("icon"),c(o).e("password")]),onClick:h},[Q(c(ie),{name:r.value?"eye-off":"eye",size:14},null,8,["name"])],2)):F("",!0),t.showWordLimit&&t.maxlength?(b(),y("span",{key:2,class:v(c(o).e("count"))},P(H.value)+"/"+P(t.maxlength),3)):F("",!0)])],2)):F("",!0)],2))}}),Pe=["disabled"],We=["value","placeholder","disabled"],Re=["disabled"],Ye=I({name:"XInputNumber",__name:"index",props:{modelValue:{default:void 0},value:{default:void 0},min:{default:-1/0},max:{default:1/0},step:{default:1},stepStrictly:{type:Boolean,default:!1},precision:{default:void 0},size:{default:"default"},disabled:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},controlsPosition:{default:""},placeholder:{default:""},valueOnClear:{default:null}},emits:["update:modelValue","update:value","change","focus","blur"],setup(t,{expose:k,emit:a}){const e=t,l=a,o=N("input-number"),i=S(),s=S(!1),r=S(null),p=S(e.modelValue),w=m(()=>{if(e.precision!==void 0)return e.precision;const d=V(e.step),f=e.modelValue!==void 0&&e.modelValue!==null?V(e.modelValue):0;return Math.max(d,f)});function V(d){if(d==null)return 0;const f=d.toString(),_=f.indexOf(".");return _===-1?0:f.length-_-1}function M(d,f=w.value){if(f===0)return Math.round(d);let _=d.toFixed(f);return Number(_)}function A(d){return d>e.max?e.max:d<e.min?e.min:d}const H=m(()=>e.modelValue??e.value??void 0),K=m(()=>r.value!==null?r.value:H.value===void 0||H.value===null?"":M(H.value)),z=m(()=>e.disabled?!0:H.value===void 0?e.min!==-1/0:H.value<=e.min),T=m(()=>e.disabled?!0:H.value===void 0?e.max!==1/0:H.value>=e.max),B=m(()=>[o.b(),e.size!=="default"?o.m(e.size):"",o.is("disabled",e.disabled),o.is("focus",s.value),e.controlsPosition?o.m(e.controlsPosition):""]);function L(){if(e.disabled||T.value)return;const d=H.value??(e.min===-1/0?0:e.min),f=M(d+e.step),_=A(f);u(_)}function h(){if(e.disabled||z.value)return;const d=H.value??(e.min===-1/0?0:e.min),f=M(d-e.step),_=A(f);u(_)}function u(d){const f=p.value;if(d===void 0)e.modelValue!==void 0&&l("update:modelValue",void 0),e.value!==void 0&&l("update:value",void 0),e.modelValue===void 0&&e.value===void 0&&l("update:modelValue",void 0),l("change",void 0,f);else{const _=M(d),D=A(_);if(e.stepStrictly){const te=Math.round((D-e.min)/e.step),O=M(e.min+te*e.step);e.modelValue!==void 0&&l("update:modelValue",O),e.value!==void 0&&l("update:value",O),e.modelValue===void 0&&e.value===void 0&&l("update:modelValue",O),l("change",O,f)}else e.modelValue!==void 0&&l("update:modelValue",D),e.value!==void 0&&l("update:value",D),e.modelValue===void 0&&e.value===void 0&&l("update:modelValue",D),l("change",D,f)}p.value=e.modelValue??e.value,r.value=null}function C(d){if(d===""||d==="-")return;let f=d.replace(/[^\d.-]/g,"");const _=f.split(".");_.length>2&&(f=_[0]+"."+_.slice(1).join("")),f.indexOf("-")>0&&(f=f.replace(/-/g,"")),f.lastIndexOf("-")>0&&(f="-"+f.replace(/-/g,""));const D=Number(f);if(!isNaN(D))return D}function E(d){const f=d.target.value;r.value=f}function R(d){if(s.value=!1,r.value!==null){const f=C(r.value);f===void 0?e.valueOnClear!==null?u(e.valueOnClear):r.value=null:u(f)}l("blur",d)}function ee(d){s.value=!0,p.value=e.modelValue,l("focus",d)}function G(d){var f;if(!e.disabled)switch(d.key){case"ArrowUp":d.preventDefault(),L();break;case"ArrowDown":d.preventDefault(),h();break;case"Enter":(f=i.value)==null||f.blur();break}}function ae(){r.value=null,e.valueOnClear!==null&&e.valueOnClear!==void 0?u(e.valueOnClear):(e.modelValue!==void 0&&l("update:modelValue",void 0),e.value!==void 0&&l("update:value",void 0),e.modelValue===void 0&&e.value===void 0&&l("update:modelValue",void 0),l("change",void 0,p.value),p.value=void 0)}function q(){var d;(d=i.value)==null||d.focus()}function le(){var d;(d=i.value)==null||d.blur()}return Y([()=>e.modelValue,()=>e.value],([d,f])=>{p.value=d??f,r.value=null},{immediate:!0}),k({focus:q,blur:le,clear:ae,increase:L,decrease:h}),(d,f)=>(b(),y("div",{class:v(B.value)},[t.controls?(b(),y("button",{key:0,type:"button",class:v([c(o).e("decrease"),c(o).is("disabled",z.value)]),disabled:z.value,onClick:h}," − ",10,Pe)):F("",!0),$("div",{class:v(c(o).e("wrapper"))},[$("input",{ref_key:"inputRef",ref:i,value:K.value,placeholder:t.placeholder,disabled:t.disabled,class:v(c(o).e("inner")),type:"text",autocomplete:"off",onInput:E,onFocus:ee,onBlur:R,onKeydown:G},null,42,We)],2),t.controls?(b(),y("button",{key:1,type:"button",class:v([c(o).e("increase"),c(o).is("disabled",T.value)]),disabled:T.value,onClick:L}," + ",10,Re)):F("",!0)],2))}}),e0=I({name:"XSwitch",__name:"index",props:{modelValue:{type:[Boolean,Number,String],default:void 0},checked:{type:[Boolean,Number,String],default:void 0},disabled:{type:Boolean,default:!1},width:{default:40},activeColor:{default:"#409eff"},inactiveColor:{default:"#dcdfe6"},activeValue:{type:[Boolean,Number,String],default:!0},inactiveValue:{type:[Boolean,Number,String],default:!1}},emits:["update:modelValue","update:checked","change"],setup(t,{emit:k}){const a=t,e=k,l=N("switch"),o=m(()=>a.modelValue!==void 0?a.modelValue:a.checked!==void 0?a.checked:!1),i=m(()=>o.value===a.activeValue),s=m(()=>[l.b(),l.is("disabled",a.disabled),l.is("checked",i.value)]),r=m(()=>({width:typeof a.width=="number"?`${a.width}px`:a.width,height:"20px",backgroundColor:i.value?a.activeColor:a.inactiveColor})),p=()=>{if(a.disabled)return;const w=i.value?a.inactiveValue:a.activeValue;a.modelValue!==void 0&&e("update:modelValue",w),a.checked!==void 0&&e("update:checked",w),a.modelValue===void 0&&a.checked===void 0&&e("update:modelValue",w),e("change",w)};return(w,V)=>(b(),y("span",{class:v(s.value),onClick:p},[$("span",{class:v(c(l).e("core")),style:U(r.value)},null,6),w.$slots.default?(b(),y("span",{key:0,class:v(c(l).e("text"))},[j(w.$slots,"default")],2)):F("",!0)],2))}}),De=["checked","disabled","name","value"],a0=I({name:"XCheckbox",__name:"index",props:{modelValue:{type:[Boolean,String,Number,Array]},value:{type:[String,Number,Boolean]},label:{},disabled:{type:Boolean},name:{},indeterminate:{type:Boolean}},emits:["update:modelValue","change"],setup(t,{emit:k}){const a=t,e=k,l=N("checkbox"),o=ce("checkboxGroup",null),i=m(()=>!!o),s=m(()=>a.value??a.label),r=m(()=>i.value?o.modelValue.value.includes(s.value):Array.isArray(a.modelValue)?a.modelValue.includes(s.value):!!a.modelValue),p=m(()=>{if(a.disabled)return!0;if(i.value){const M=o.disabled,A=o.min>0&&o.modelValue.value.length<=o.min,H=o.max>0&&o.modelValue.value.length>=o.max;return r.value&&A||!r.value&&H?!0:M}return!1}),w=m(()=>[l.b(),l.is("checked",r.value),l.is("disabled",p.value),l.is("indeterminate",a.indeterminate&&!r.value)]),V=()=>{if(!p.value)if(i.value)o.changeValue(s.value);else{let M;if(Array.isArray(a.modelValue)){const A=a.modelValue.indexOf(s.value);A>-1?M=[...a.modelValue.slice(0,A),...a.modelValue.slice(A+1)]:M=[...a.modelValue,s.value]}else M=!a.modelValue;e("update:modelValue",M),e("change",M)}};return(M,A)=>(b(),y("label",{class:v(w.value),onClick:ne(V,["prevent"])},[$("span",{class:v(c(l).e("input"))},[$("input",{type:"checkbox",checked:r.value,disabled:p.value,name:t.name,value:s.value},null,8,De)],2),M.$slots.default||t.label!==void 0?(b(),y("span",{key:0,class:v(c(l).e("label"))},[j(M.$slots,"default",{},()=>[fe(P(t.label),1)])],2)):F("",!0)],2))}}),l0=I({name:"XForm",__name:"index",props:{model:{default:()=>({})},rules:{default:()=>({})},labelWidth:{default:"100px"},labelPosition:{default:"right"},layout:{default:"horizontal"},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"default"}},emits:["validate","submit","reset"],setup(t,{expose:k,emit:a}){const e=t,l=a,o=N("form"),i=S([]),s=m(()=>e.layout==="inline"||e.inline),r=m(()=>e.layout==="vertical"||e.labelPosition==="top"),p=m(()=>[o.b(),o.m(`label-${r.value?"top":e.labelPosition}`),o.is("inline",s.value),o.is("vertical",r.value)]),w=m(()=>({width:typeof e.labelWidth=="number"?`${e.labelWidth}px`:e.labelWidth})),V=h=>{i.value.push(h)},M=h=>{const u=i.value.indexOf(h);u>-1&&i.value.splice(u,1)},A=async()=>{let h=!0;for(const u of i.value)await u.validate()||(h=!1);return h},H=async h=>{const u=Array.isArray(h)?h:[h];let C=!0;for(const E of i.value)u.includes(E.prop)&&(await E.validate()||(C=!1));return C},K=()=>{i.value.forEach(h=>{h.resetField()})},z=h=>{if(h){const u=Array.isArray(h)?h:[h];i.value.forEach(C=>{u.includes(C.prop)&&C.clearValidate()})}else i.value.forEach(u=>{u.clearValidate()})},T=h=>{console.log("[XForm] handleSubmit triggered",h),h.preventDefault(),l("submit")},B=h=>{console.log("[XForm] handleReset triggered",h),h.preventDefault(),K(),l("reset")},L=Ae(e,"model");return ve("form",{model:L,rules:e.rules,labelWidth:e.labelWidth,labelPosition:r.value?"top":e.labelPosition,disabled:e.disabled,size:e.size,labelStyle:w,addField:V,removeField:M,emit:l}),k({validate:A,validateField:H,resetFields:K,clearValidate:z}),(h,u)=>(b(),y("form",{class:v(p.value),onSubmit:T,onReset:B},[j(h.$slots,"default")],34))}}),t0=I({name:"XFormItem",__name:"item",props:{prop:{},label:{},labelWidth:{},required:{type:Boolean},rules:{},showMessage:{type:Boolean}},setup(t,{expose:k}){const a=t,e=N("form-item"),l=ce("form",null),o=S(""),i=S(""),s=m(()=>a.required?!0:r().some(z=>z.required)),r=()=>{const z=[];return a.rules&&z.push(...a.rules),l&&a.prop&&l.rules[a.prop]&&z.push(...l.rules[a.prop]),z},p=()=>{var z;if(!(!l||!a.prop))return(z=l.model.value)==null?void 0:z[a.prop]},w=z=>{!l||!a.prop||l.model.value&&(l.model.value[a.prop]=z)},V=async z=>{const T=r();if(T.length===0)return o.value="valid",!0;const B=p();let L=!0,h="";for(const u of T)if(!(z&&u.trigger&&u.trigger!==z)){if(u.required&&(B==null||B===""||Array.isArray(B)&&B.length===0)){L=!1,h=u.message||"该字段为必填项";break}if(u.min!==void 0||u.max!==void 0){const C=typeof B=="string"?B.length:0;if(u.min!==void 0&&C<u.min){L=!1,h=u.message||`长度不能小于 ${u.min} 个字符`;break}if(u.max!==void 0&&C>u.max){L=!1,h=u.message||`长度不能大于 ${u.max} 个字符`;break}}if(u.pattern&&B&&!u.pattern.test(B)){L=!1,h=u.message||"格式不正确";break}if(u.validator)try{await new Promise((C,E)=>{u.validator(u,B,R=>{R?E(R):C()})})}catch(C){L=!1,h=C.message||u.message||"验证失败";break}}return o.value=L?"valid":"invalid",i.value=h,l&&a.prop&&l.emit("validate",a.prop,L,h),L},M=()=>{w(void 0),A()},A=()=>{o.value="",i.value=""},H=m(()=>[e.b(),e.is("required",s.value),e.is("error",o.value==="invalid"),e.is("success",o.value==="valid")]),K=m(()=>{const z=a.labelWidth??(l==null?void 0:l.labelWidth)??"100px";return{width:typeof z=="number"?`${z}px`:z}});return Y(()=>p(),()=>{o.value==="invalid"&&V("change")}),me(()=>{l&&a.prop&&l.addField({prop:a.prop,validate:V,resetField:M,clearValidate:A})}),he(()=>{l&&a.prop&&l.removeField({prop:a.prop,validate:V,resetField:M,clearValidate:A})}),k({validate:V,resetField:M,clearValidate:A}),(z,T)=>(b(),y("div",{class:v(H.value)},[t.label?(b(),y("label",{key:0,class:v(c(e).e("label")),style:U(K.value)},P(t.label),7)):F("",!0),$("div",{class:v(c(e).e("content"))},[j(z.$slots,"default"),t.showMessage!==!1&&o.value==="invalid"?(b(),y("div",{key:0,class:v(c(e).e("error"))},P(i.value),3)):F("",!0)],2)],2))}});function Ie(t,k,a){return a?a(k,t):t.toLowerCase().includes(k.toLowerCase())}function be(t,k,a="value",e="children"){for(const l of t){if(l[a]===k)return l;if(l[e]&&l[e].length>0){const o=be(l[e],k,a,e);if(o)return o}}return null}function ue(t,k,a="value",e="children"){const l=[];function o(i){for(const s of i){if(s[a]===k)return l.push(s),!0;if(s[e]&&s[e].length>0){if(l.push(s),o(s[e]))return!0;l.pop()}}return!1}return o(t),l}function Ne(t,k="children"){const a=[];function e(l,o=0,i=null){for(const s of l)a.push({...s,level:o,parent:i}),s[k]&&s[k].length>0&&e(s[k],o+1,s)}return e(t),a}const Oe=["onClick"],Xe=["placeholder","disabled","readonly","value"],je=["onClick"],qe=["onClick"],o0=I({name:"XSelect",__name:"index",props:{modelValue:{default:void 0},value:{default:void 0},options:{default:()=>[]},type:{default:"single"},placeholder:{default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},filterMethod:{},size:{default:"default"},multipleLimit:{default:0},collapseTags:{type:Boolean,default:!0},maxCollapseTags:{default:1},separator:{default:" / "},valueKey:{default:"value"},labelKey:{default:"label"},childrenKey:{default:"children"},noDataText:{default:"暂无数据"},noMatchText:{default:"无匹配数据"}},emits:["update:modelValue","update:value","change","clear","focus","blur","visible-change","remove-tag"],setup(t,{emit:k}){const a=t,e=k,l=N("select"),o=()=>Be().next(),i=S(),s=S(),r=S(),p=S(!1),w=S(2e3),V=S(""),M=S(-1),A=S({top:"0px",left:"0px"}),H=m(()=>a.type==="multiple"),K=m(()=>a.type==="cascader"),z=S([]),T=()=>a.modelValue!==void 0?a.modelValue:a.value!==void 0?a.value:"",B=n=>{a.modelValue!==void 0&&e("update:modelValue",n),a.value!==void 0&&e("update:value",n),a.modelValue===void 0&&a.value===void 0&&e("update:modelValue",n),e("change",n)},L=m(()=>{const n=T();return H.value?Array.isArray(n)?n:[]:K.value?Array.isArray(n)?n:n?[n]:[]:n!==""&&n!==null&&n!==void 0?[n]:[]}),h=m(()=>K.value?Ne(a.options,a.childrenKey):a.options.map(n=>({...n,level:0}))),u=m(()=>!a.filterable||!V.value?h.value:h.value.filter(n=>{const g=n[a.labelKey]||"";return Ie(g,V.value,a.filterMethod)})),C=m(()=>{const n=[];for(const g of L.value){const x=be(a.options,g,a.valueKey,a.childrenKey);x&&n.push(x)}return n}),E=m(()=>{if(H.value)return"";if(K.value)return ue(a.options,L.value[L.value.length-1],a.valueKey,a.childrenKey).map(g=>g[a.labelKey]).join(a.separator);const n=C.value[0];return n?n[a.labelKey]:""}),R=m(()=>H.value?C.value:[]),ee=m(()=>a.collapseTags?R.value.slice(0,a.maxCollapseTags):R.value),G=m(()=>a.collapseTags?Math.max(0,R.value.length-a.maxCollapseTags):0),ae=m(()=>[l.b(),l.m(a.size),l.is("disabled",a.disabled),l.is("multiple",H.value),l.is("cascader",K.value),l.is("filterable",a.filterable),l.is("focus",p.value)]),q=()=>{if(!i.value||!r.value||!p.value)return;const n=i.value.getBoundingClientRect(),g=r.value.getBoundingClientRect();let x=n.bottom+4,W=n.left;W+g.width>window.innerWidth&&(W=window.innerWidth-g.width-8),x+g.height>window.innerHeight&&(x=n.top-g.height-4),A.value={top:`${x}px`,left:`${W}px`}},le=()=>{a.disabled||(p.value=!0,w.value=o(),V.value="",Le(()=>{q()}),e("visible-change",!0),e("focus",{}))},d=()=>{p.value=!1,V.value="",z.value=[],e("visible-change",!1),e("blur",{})},f=n=>{if(!n.disabled)if(H.value){const g=[...L.value],x=n[a.valueKey],W=g.indexOf(x);if(W>-1)g.splice(W,1),e("remove-tag",x);else{if(a.multipleLimit>0&&g.length>=a.multipleLimit)return;g.push(x)}B(g)}else if(K.value)if(n.children&&n.children.length>0){const g=ue(a.options,n[a.valueKey],a.valueKey,a.childrenKey);z.value=g}else{const g=ue(a.options,n[a.valueKey],a.valueKey,a.childrenKey).map(x=>x[a.valueKey]);B(g),d()}else B(n[a.valueKey]),d()},_=n=>{const g=L.value.filter(x=>x!==n[a.valueKey]);B(g),e("remove-tag",n[a.valueKey])},D=()=>{const n=H.value?[]:"";B(n),e("clear")},te=n=>{V.value=n.target.value},O=n=>{if(!i.value)return;const g=n.target;i.value.contains(g)||r.value&&r.value.contains(g)||d()},re=n=>{if(n.key==="Escape")d();else if(n.key==="Enter"&&p.value){const g=u.value[M.value];g&&f(g)}else n.key==="ArrowDown"&&p.value?(n.preventDefault(),M.value=Math.min(M.value+1,u.value.length-1)):n.key==="ArrowUp"&&p.value&&(n.preventDefault(),M.value=Math.max(M.value-1,0))},oe=n=>L.value.includes(n[a.valueKey]),se=(n,g)=>[l.e("option"),l.is("selected",oe(n)),l.is("disabled",n.disabled===!0),l.is("hover",M.value===g),l.is("group",!!(n.children&&n.children.length>0))],ye=m(()=>{if(!K.value)return[];const n=[a.options];for(const g of z.value)g.children&&g.children.length>0&&n.push(g.children);return n});return me(()=>{document.addEventListener("click",O),document.addEventListener("keydown",re)}),he(()=>{document.removeEventListener("click",O),document.removeEventListener("keydown",re),document.removeEventListener("scroll",q,!0)}),Y(p,n=>{n?document.addEventListener("scroll",q,!0):document.removeEventListener("scroll",q,!0)}),ve("select",{selectedValues:L,handleSelect:f,isSelected:oe}),(n,g)=>(b(),y("div",{ref_key:"selectRef",ref:i,class:v(ae.value)},[$("div",{class:v(c(l).e("wrapper")),onClick:g[0]||(g[0]=x=>p.value?d():le())},[H.value&&R.value.length>0?(b(),y("div",{key:0,class:v(c(l).e("tags"))},[(b(!0),y(J,null,Z(ee.value,x=>(b(),y("span",{key:x[t.valueKey],class:v(c(l).e("tag"))},[$("span",{class:v(c(l).e("tag-text"))},P(x[t.labelKey]),3),$("span",{class:v(c(l).e("tag-close")),onClick:ne(W=>_(x),["stop"])},"×",10,Oe)],2))),128)),G.value>0?(b(),y("span",{key:0,class:v(c(l).e("tag-count"))}," +"+P(G.value),3)):F("",!0)],2)):F("",!0),$("input",{ref_key:"inputRef",ref:s,class:v(c(l).e("input")),placeholder:H.value&&R.value.length>0?"":t.placeholder,disabled:t.disabled,readonly:!t.filterable||!p.value,value:t.filterable&&p.value?V.value:E.value,onInput:te},null,42,Xe),$("span",{class:v(c(l).e("suffix"))},[t.clearable&&L.value.length>0&&!t.disabled?(b(),y("span",{key:0,class:v(c(l).e("clear")),onClick:ne(D,["stop"])},"×",2)):(b(),y("span",{key:1,class:v([c(l).e("arrow"),c(l).is("reverse",p.value)])},[Q(c(ie),{name:"chevron-down",size:14})],2))],2)],2),(b(),ke(Ce,{to:"body"},[Q(He,{name:"fade"},{default:xe(()=>[pe($("div",{ref_key:"popperRef",ref:r,class:v([c(l).e("popper"),c(l).is("cascader",K.value)]),style:U({zIndex:w.value,...A.value})},[K.value?(b(),y("div",{key:0,class:v(c(l).e("cascader-panels"))},[(b(!0),y(J,null,Z(ye.value,(x,W)=>(b(),y("div",{key:W,class:v(c(l).e("cascader-panel"))},[(b(!0),y(J,null,Z(x,(X,ge)=>(b(),y("div",{key:X[t.valueKey],class:v(se(X,ge)),onClick:Je=>f(X)},[$("span",{class:v(c(l).e("option-label"))},P(X[t.labelKey]),3),X.children&&X.children.length>0?(b(),y("span",{key:0,class:v(c(l).e("option-arrow"))},"›",2)):F("",!0)],10,je))),128))],2))),128))],2)):(b(),y(J,{key:1},[u.value.length===0?(b(),y("div",{key:0,class:v(c(l).e("empty"))},P(V.value?t.noMatchText:t.noDataText),3)):(b(),y("div",{key:1,class:v(c(l).e("options"))},[(b(!0),y(J,null,Z(u.value,(x,W)=>(b(),y("div",{key:x[t.valueKey],class:v(se(x,W)),onClick:X=>f(x)},[$("span",{class:v(c(l).e("option-label"))},P(x[t.labelKey]),3),oe(x)?(b(),y("span",{key:0,class:v(c(l).e("option-check"))},"✓",2)):F("",!0)],10,qe))),128))],2))],64))],6),[[we,p.value]])]),_:1})]))],2))}});export{Ye as G,e0 as Z,Ze as _,Qe as j,a0 as l,t0 as n,o0 as o,l0 as t};
@@ -0,0 +1 @@
1
+ .x-container{display:flex;flex-direction:column;height:100%;width:100%}.x-container.is-flex{flex-direction:column}.x-header{flex-shrink:0;box-sizing:border-box;padding:0 20px;background-color:#fff;border-bottom:1px solid #dcdfe6}.x-aside{flex-shrink:0;box-sizing:border-box;overflow:auto;background-color:#fff;border-right:1px solid #dcdfe6}.x-main{flex:1;box-sizing:border-box;overflow:auto;background-color:#f5f7fa}.x-footer{flex-shrink:0;box-sizing:border-box;padding:0 20px;background-color:#fff;border-top:1px solid #dcdfe6}.x-row{position:relative;box-sizing:border-box}.x-row:before,.x-row:after{display:table;content:""}.x-row:after{clear:both}.x-row.is-justify-start{justify-content:flex-start}.x-row.is-justify-end{justify-content:flex-end}.x-row.is-justify-center{justify-content:center}.x-row.is-justify-space-around{justify-content:space-around}.x-row.is-justify-space-between{justify-content:space-between}.x-row.is-justify-space-evenly{justify-content:space-evenly}.x-row.is-align-top{align-items:flex-start}.x-row.is-align-middle{align-items:center}.x-row.is-align-bottom{align-items:flex-end}[class*=x-col-]{float:left;box-sizing:border-box}.x-col-1{width:4.1666666667%}.x-col-offset-1{margin-left:4.1666666667%}.x-col-pull-1{position:relative;right:4.1666666667%}.x-col-push-1{position:relative;left:4.1666666667%}.x-col-2{width:8.3333333333%}.x-col-offset-2{margin-left:8.3333333333%}.x-col-pull-2{position:relative;right:8.3333333333%}.x-col-push-2{position:relative;left:8.3333333333%}.x-col-3{width:12.5%}.x-col-offset-3{margin-left:12.5%}.x-col-pull-3{position:relative;right:12.5%}.x-col-push-3{position:relative;left:12.5%}.x-col-4{width:16.6666666667%}.x-col-offset-4{margin-left:16.6666666667%}.x-col-pull-4{position:relative;right:16.6666666667%}.x-col-push-4{position:relative;left:16.6666666667%}.x-col-5{width:20.8333333333%}.x-col-offset-5{margin-left:20.8333333333%}.x-col-pull-5{position:relative;right:20.8333333333%}.x-col-push-5{position:relative;left:20.8333333333%}.x-col-6{width:25%}.x-col-offset-6{margin-left:25%}.x-col-pull-6{position:relative;right:25%}.x-col-push-6{position:relative;left:25%}.x-col-7{width:29.1666666667%}.x-col-offset-7{margin-left:29.1666666667%}.x-col-pull-7{position:relative;right:29.1666666667%}.x-col-push-7{position:relative;left:29.1666666667%}.x-col-8{width:33.3333333333%}.x-col-offset-8{margin-left:33.3333333333%}.x-col-pull-8{position:relative;right:33.3333333333%}.x-col-push-8{position:relative;left:33.3333333333%}.x-col-9{width:37.5%}.x-col-offset-9{margin-left:37.5%}.x-col-pull-9{position:relative;right:37.5%}.x-col-push-9{position:relative;left:37.5%}.x-col-10{width:41.6666666667%}.x-col-offset-10{margin-left:41.6666666667%}.x-col-pull-10{position:relative;right:41.6666666667%}.x-col-push-10{position:relative;left:41.6666666667%}.x-col-11{width:45.8333333333%}.x-col-offset-11{margin-left:45.8333333333%}.x-col-pull-11{position:relative;right:45.8333333333%}.x-col-push-11{position:relative;left:45.8333333333%}.x-col-12{width:50%}.x-col-offset-12{margin-left:50%}.x-col-pull-12{position:relative;right:50%}.x-col-push-12{position:relative;left:50%}.x-col-13{width:54.1666666667%}.x-col-offset-13{margin-left:54.1666666667%}.x-col-pull-13{position:relative;right:54.1666666667%}.x-col-push-13{position:relative;left:54.1666666667%}.x-col-14{width:58.3333333333%}.x-col-offset-14{margin-left:58.3333333333%}.x-col-pull-14{position:relative;right:58.3333333333%}.x-col-push-14{position:relative;left:58.3333333333%}.x-col-15{width:62.5%}.x-col-offset-15{margin-left:62.5%}.x-col-pull-15{position:relative;right:62.5%}.x-col-push-15{position:relative;left:62.5%}.x-col-16{width:66.6666666667%}.x-col-offset-16{margin-left:66.6666666667%}.x-col-pull-16{position:relative;right:66.6666666667%}.x-col-push-16{position:relative;left:66.6666666667%}.x-col-17{width:70.8333333333%}.x-col-offset-17{margin-left:70.8333333333%}.x-col-pull-17{position:relative;right:70.8333333333%}.x-col-push-17{position:relative;left:70.8333333333%}.x-col-18{width:75%}.x-col-offset-18{margin-left:75%}.x-col-pull-18{position:relative;right:75%}.x-col-push-18{position:relative;left:75%}.x-col-19{width:79.1666666667%}.x-col-offset-19{margin-left:79.1666666667%}.x-col-pull-19{position:relative;right:79.1666666667%}.x-col-push-19{position:relative;left:79.1666666667%}.x-col-20{width:83.3333333333%}.x-col-offset-20{margin-left:83.3333333333%}.x-col-pull-20{position:relative;right:83.3333333333%}.x-col-push-20{position:relative;left:83.3333333333%}.x-col-21{width:87.5%}.x-col-offset-21{margin-left:87.5%}.x-col-pull-21{position:relative;right:87.5%}.x-col-push-21{position:relative;left:87.5%}.x-col-22{width:91.6666666667%}.x-col-offset-22{margin-left:91.6666666667%}.x-col-pull-22{position:relative;right:91.6666666667%}.x-col-push-22{position:relative;left:91.6666666667%}.x-col-23{width:95.8333333333%}.x-col-offset-23{margin-left:95.8333333333%}.x-col-pull-23{position:relative;right:95.8333333333%}.x-col-push-23{position:relative;left:95.8333333333%}.x-col-24{width:100%}.x-col-offset-24{margin-left:100%}.x-col-pull-24{position:relative;right:100%}.x-col-push-24{position:relative;left:100%}.x-split{display:flex;width:100%;height:100%}.x-split--horizontal{flex-direction:row}.x-split--vertical{flex-direction:column}.x-split__panel{overflow:hidden}.x-split__divider{flex-shrink:0;background-color:var(--color-border, #dcdfe6);cursor:col-resize;transition:background-color .2s}.x-split__divider:hover,.x-split__divider.is-dragging{background-color:var(--color-primary, #409eff)}.x-split--horizontal .x-split__divider{width:1px;cursor:col-resize}.x-split--vertical .x-split__divider{height:1px;cursor:row-resize}
@@ -0,0 +1 @@
1
+ import{d as L,k as w,w as $,o as z,c as p,r as H,b as g,n,e as h,l as _,p as S,a as c,z as y,u as k,g as B,i as I,j as O,C as X,x as j,D,T as q,v as E}from"./vue-vendor-emeAKDpw.js";import{K as T}from"./xto-core-DMuDa0Wb.js";const R=L({name:"XMenu",__name:"index",props:{modelValue:{default:""},mode:{default:"vertical"},collapse:{type:Boolean,default:!1},backgroundColor:{default:"#fff"},textColor:{default:"#303133"},activeTextColor:{default:"#409eff"},defaultOpeneds:{default:()=>[]},openeds:{default:void 0},router:{type:Boolean}},emits:["update:modelValue","update:openeds","select","open","close"],setup(o,{emit:e}){const a=o,v=e,s=T("menu"),i=w(a.modelValue),m=w([...a.defaultOpeneds]),M=h({get:()=>a.openeds??m.value,set:l=>{m.value=l,v("update:openeds",l)}});$(()=>a.modelValue,l=>{i.value=l}),S("menu",{props:a,activeIndex:i,openedMenus:M,handleSelect:(l,V=[])=>{i.value=l,v("update:modelValue",l),v("select",l,V)},handleOpen:(l,V=[])=>{M.value.includes(l)||(M.value=[...M.value,l]),v("open",l,V)},handleClose:(l,V=[])=>{const x=M.value.indexOf(l);if(x>-1){const t=[...M.value];t.splice(x,1),M.value=t}v("close",l,V)}});const r=h(()=>[s.b(),s.is("collapse",a.collapse),s.is(`mode-${a.mode}`)]),d=h(()=>({backgroundColor:a.backgroundColor,color:a.textColor}));return(l,V)=>(z(),p("ul",{class:n(r.value),style:g(d.value)},[H(l.$slots,"default")],6))}}),N={"arrow-up":"M12 19V5m0 0l-7 7m7-7l7 7","arrow-down":"M12 5v14m0 0l7-7m-7 7l-7-7","arrow-left":"M19 12H5m0 0l7 7m-7-7l7-7","arrow-right":"M5 12h14m0 0l-7-7m7 7l-7 7","arrow-up-bold":"M12 5l-7 7h4v7h6v-7h4l-7-7z","arrow-down-bold":"M12 19l7-7h-4V5H9v7H5l7 7z","arrow-left-bold":"M5 12l7-7v4h7v6h-7v4l-7-7z","arrow-right-bold":"M19 12l-7 7v-4H5v-6h7V5l7 7z","caret-down":"M6 9l6 6 6-6","caret-right":"M9 18l6-6-6-6",plus:"M12 5v14m-7-7h14",minus:"M5 12h14",close:"M6 18L18 6M6 6l12 12",check:"M5 13l4 4L19 7","check-bold":"M4 12l5 5L20 6",edit:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z",delete:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16",copy:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z",download:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4",upload:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12",refresh:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15",search:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",filter:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z",more:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z","more-h":"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z",setting:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z",share:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z",loading:"M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48l2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48l2.83-2.83",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",success:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",warning:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z",error:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z",question:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",user:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z","user-add":"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z","user-group":"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z",logout:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1",login:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1",file:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z",folder:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z","folder-open":"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z",document:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z",image:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z",video:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z",music:"M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3",camera:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z M15 13a3 3 0 11-6 0 3 3 0 016 0z",mail:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z",phone:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z",chat:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z",bell:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",message:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z",eye:"M15 12a3 3 0 11-6 0 3 3 0 016 0z M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z","eye-off":"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21",calendar:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z",clock:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",history:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",timer:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",location:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z M15 11a3 3 0 11-6 0 3 3 0 016 0z",map:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7",globe:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9",star:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z",heart:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z","thumb-up":"M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5",link:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1","external-link":"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14",lock:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z",unlock:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z",key:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z",home:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6",menu:"M4 6h16M4 12h16M4 18h16","menu-fold":"M4 6h16M4 12h10M4 18h16","menu-unfold":"M4 6h16M10 12h10M4 18h16","menu-collapse":"M4 6h16M4 12h10M4 18h16","menu-expand":"M4 6h16M10 12h10M4 18h16","sidebar-fold":"M11 19l-7-7 7-7m8 14l-7-7 7-7","sidebar-expand":"M13 5l7 7-7 7M5 5l7 7-7 7","sidebar-left":"M11 19l-7-7 7-7m8 14l-7-7 7-7",dashboard:"M4 5a1 1 0 011-1h4a1 1 0 011 1v5a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM14 5a1 1 0 011-1h4a1 1 0 011 1v2a1 1 0 01-1 1h-4a1 1 0 01-1-1V5zM4 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1v-4zM14 12a1 1 0 011-1h4a1 1 0 011 1v7a1 1 0 01-1 1h-4a1 1 0 01-1-1v-7z",chart:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z","chart-pie":"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z","chart-line":"M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4v16",report:"M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z",analytics:"M16 8v8m-4-5v5m-4-2v2m-2 4h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z",system:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M12 15a3 3 0 100-6 3 3 0 000 6z",permission:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z",role:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z","user-manage":"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z",log:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z",notification:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",app:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z",list:"M4 6h16M4 10h16M4 14h16M4 18h16",grid:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z",fullscreen:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4","fullscreen-exit":"M9 4V9H4m11-5v5h5M4 15h5v5m11-5h-5v5","zoom-in":"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM10 7v6m3-3H7","zoom-out":"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM13 10H7",print:"M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z",bookmark:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z",tag:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z",code:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4",terminal:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z",database:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4",server:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01",cloud:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z",gift:"M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7",moon:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z",sun:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z",theme:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01",skin:"M7 4h2v1c0 1.66 1.34 3 3 3s3-1.34 3-3V4h2l3 3v6h-4l1 3v5H7v-5l1-3H4V7l3-3z",heading:"M4 6h16M4 12h8m-8 6h16",bold:"M6 4h8a4 4 0 014 4 4 4 0 01-4 4H6z M6 12h9a4 4 0 014 4 4 4 0 01-4 4H6z",italic:"M10 4h4m-2 0v16m-4 0h8",strikethrough:"M16 4H8a4 4 0 00-4 4v4h16V8a4 4 0 00-4-4zM4 12h16m-4 4H8a4 4 0 00-4 4v0a4 4 0 004 4h8a4 4 0 004-4v0a4 4 0 00-4-4z","list-bullet":"M4 6h.01M4 12h.01M4 18h.01M8 6h12M8 12h12M8 18h12","list-number":"M4 6h2M4 12h2M4 18h2M8 6h12M8 12h12M8 18h12","link-text":"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1","image-insert":"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z","code-inline":"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4","divider-h":"M4 12h16",quote:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z","code-block":"M4 4h16v16H4z M8 8h8M8 12h8M8 16h4","sort-up":"M12 5v14m-7-7l7-7 7 7","sort-down":"M12 19V5m7 7l-7 7-7-7","chevron-down":"M6 9l6 6 6-6","chevron-right":"M9 18l6-6-6-6","chevron-up":"M18 15l-6-6-6 6","chevron-left":"M15 18l-6-6 6-6","move-up":"M5 15l7-7 7 7","move-down":"M19 9l-7 7-7-7","back-top":"M12 19V5m-7 7l7-7 7 7","dropdown-arrow":"M6 9l6 6 6-6","close-circle":"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z","close-bold":"M6 18L18 6M6 6l12 12","check-circle":"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z","info-circle":"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z","warning-circle":"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z","back-arrow":"M19 12H5m0 0l7 7m-7-7l7-7","d-arrow-left":"M11 17l-5-5 5-5M18 17l-5-5 5-5","d-arrow-right":"M6 7l5 5-5 5M13 7l5 5-5 5",left:"M15 19l-7-7 7-7",right:"M9 5l7 7-7 7",down:"M19 9l-7 7-7-7",up:"M5 15l7-7 7 7"};function K(o){return o in N}const P=["aria-hidden","aria-label"],Q=["stroke-width"],F=["d"],W=L({name:"XIcon",__name:"index",props:{name:{},size:{default:24},color:{},spin:{type:Boolean,default:!1},strokeWidth:{default:2}},setup(o,{expose:e}){const a=o,v=T("icon"),s=h(()=>typeof a.size=="number"?`${a.size}px`:a.size),i=h(()=>({width:s.value,height:s.value,color:a.color})),m=h(()=>({strokeWidth:a.strokeWidth})),M=h(()=>[v.b(),v.is("spin",a.spin)]),r=h(()=>a.name&&K(a.name)?N[a.name]:"");return e({iconSize:s,iconStyle:i,iconPath:r}),(d,l)=>(z(),p("span",{class:n(M.value),style:g(i.value),"aria-hidden":!o.name,"aria-label":o.name,role:"img"},[r.value?(z(),p("svg",{key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":o.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",style:g(m.value),"aria-hidden":"true"},[c("path",{d:r.value},null,8,F)],12,Q)):H(d.$slots,"default",{key:1},()=>[I(O(o.name),1)])],14,P))}}),b="x-menu-item",U=L({name:"XMenuItem",__name:"MenuItem",props:{index:{default:""},disabled:{type:Boolean,default:!1},icon:{}},setup(o){const e=o,a=_("menu");E();const v=h(()=>(a==null?void 0:a.activeIndex.value)===e.index),s=h(()=>a==null?void 0:a.props.collapse),i=h(()=>(a==null?void 0:a.props.mode)==="horizontal"),m=h(()=>[b,{"is-active":v.value,"is-disabled":e.disabled,"is-horizontal":i.value,"is-collapse":s.value}]),M=h(()=>v.value&&a!=null&&a.props.activeTextColor?{color:a.props.activeTextColor}:{}),r=()=>{e.disabled||e.index&&(a==null||a.handleSelect(e.index,[e.index]))};return(d,l)=>(z(),p("li",{class:n(m.value),style:g(M.value),onClick:r},[c("div",{class:n(b+"__content")},[o.icon?(z(),p("span",{key:0,class:n(b+"__icon")},[y(k(W),{name:o.icon,size:18},null,8,["name"])],2)):d.$slots.icon?(z(),p("span",{key:1,class:n(b+"__icon")},[H(d.$slots,"icon")],2)):B("",!0),c("span",{class:n(b+"__text")},[H(d.$slots,"default")],2)],2)],6))}}),u="x-sub-menu",Y=L({name:"XSubMenu",__name:"SubMenu",props:{index:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},icon:{}},setup(o){const e=o,a=_("menu"),v=_("subMenu",null),s=w(!1),i=h(()=>!!v),m=h(()=>a==null?void 0:a.props.collapse);$(()=>a==null?void 0:a.activeIndex.value,()=>{(a==null?void 0:a.props.mode)==="horizontal"&&(s.value=!1)});const M=h(()=>{var t,f;return m.value?s.value:((f=(t=a==null?void 0:a.openedMenus)==null?void 0:t.value)==null?void 0:f.includes(e.index))??!1}),r=h(()=>(a==null?void 0:a.activeIndex.value)===e.index),d=h(()=>[u,u+((a==null?void 0:a.props.mode)==="horizontal"?"--horizontal":"--vertical"),{"is-active":r.value,"is-opened":M.value,"is-disabled":e.disabled,"is-nested":i.value,"is-collapse":m.value}]),l=()=>{var t,f;e.disabled||m.value||(M.value?(t=a==null?void 0:a.handleClose)==null||t.call(a,e.index):(f=a==null?void 0:a.handleOpen)==null||f.call(a,e.index))},V=()=>{e.disabled||((a==null?void 0:a.props.mode)==="horizontal"||m.value)&&(s.value=!0)},x=()=>{((a==null?void 0:a.props.mode)==="horizontal"||m.value)&&(s.value=!1)};return S("subMenu",{isOpen:M,isNested:i,index:e.index}),(t,f)=>{var C;return z(),p("li",{class:n(d.value),onMouseenter:V,onMouseleave:x},[c("div",{class:n(u+"__title"),onClick:l},[c("div",{class:n(u+"__content")},[o.icon?(z(),p("span",{key:0,class:n(u+"__icon")},[y(k(W),{name:o.icon,size:18},null,8,["name"])],2)):t.$slots.icon?(z(),p("span",{key:1,class:n(u+"__icon")},[H(t.$slots,"icon")],2)):B("",!0),c("span",{class:n(u+"__text")},[H(t.$slots,"title",{},()=>[I(O(o.title),1)])],2),c("span",{class:n([u+"__arrow",{"is-open":M.value}])},[...f[0]||(f[0]=[c("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12"},[c("path",{fill:"currentColor",d:"M512 714.667c-17.067 0-32-6.4-44.8-19.2L147.2 375.467c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0L512 561.067l275.2-275.2c25.6-25.6 64-25.6 89.6 0s25.6 64 0 89.6L556.8 695.467c-12.8 12.8-27.733 19.2-44.8 19.2z"})],-1)])],2)],2)],2),y(q,{name:((C=k(a))==null?void 0:C.props.mode)==="horizontal"?"zoom-in-top":"zoom-in-left"},{default:X(()=>{var A;return[j(c("ul",{class:n([u+"__menu",{"is-horizontal":((A=k(a))==null?void 0:A.props.mode)==="horizontal","is-collapse":m.value}])},[H(t.$slots,"default")],2),[[D,M.value]])]}),_:3},8,["name"])],34)}}});export{R as b,Y as y,U as z};
@@ -0,0 +1 @@
1
+ .x-tabs__header{position:relative}.x-tabs__nav{display:flex;border-bottom:2px solid #e4e7ed}.x-tabs__item{padding:0 20px;height:40px;line-height:40px;font-size:14px;color:#606266;cursor:pointer;transition:color .2s;position:relative}.x-tabs__item:hover{color:#409eff}.x-tabs__item--active{color:#409eff;font-weight:500}.x-tabs__item--active:after{content:"";position:absolute;bottom:-2px;left:0;right:0;height:2px;background-color:#409eff}.x-tabs__item.is-disabled{color:#c0c4cc;cursor:not-allowed}.x-tabs__item.is-disabled:hover{color:#c0c4cc}.x-tabs__content{padding:20px 0}.x-tabs--card .x-tabs__nav{border-bottom:none}.x-tabs--card .x-tabs__item{border:1px solid #e4e7ed;border-bottom:none;margin-right:-1px;padding:0 16px}.x-tabs--card .x-tabs__item--active{background-color:#fff;border-bottom:1px solid #fff}.x-tab-pane{padding:20px;outline:none}.x-menu{list-style:none;margin:0;padding:0;position:relative;font-size:14px;box-sizing:border-box}.x-menu--vertical{display:block;width:220px;min-height:100%;border-right:1px solid var(--color-border-lighter, #e6e6e6);transition:width .3s ease,background-color .3s ease}.x-menu--vertical>.x-menu-item,.x-menu--vertical>.x-sub-menu{display:block;width:100%}.x-menu--horizontal{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;width:100%;border-bottom:1px solid var(--color-border-lighter, #e6e6e6)}.x-menu--horizontal>.x-menu-item,.x-menu--horizontal>.x-sub-menu{flex:0 0 auto}.x-menu.is-collapse{width:64px!important;min-width:64px}.x-menu.is-collapse>.x-menu-item{height:56px;line-height:56px;padding:0 20px;text-align:center}.x-menu.is-collapse>.x-menu-item .x-menu-item__content{justify-content:center}.x-menu.is-collapse>.x-menu-item .x-menu-item__text{display:none}.x-menu.is-collapse>.x-sub-menu>.x-sub-menu__title{height:56px;line-height:56px;padding:0 20px;text-align:center;justify-content:center}.x-menu.is-collapse>.x-sub-menu>.x-sub-menu__title .x-sub-menu__content{justify-content:center}.x-menu.is-collapse>.x-sub-menu>.x-sub-menu__title .x-sub-menu__text,.x-menu.is-collapse>.x-sub-menu>.x-sub-menu__title .x-sub-menu__arrow{display:none}.x-menu.is-collapse>.x-sub-menu>.x-sub-menu__menu{position:absolute;left:64px;top:0;min-width:180px;background-color:var(--bg-color, #fff);box-shadow:var(--box-shadow, 0 2px 12px rgba(0, 0, 0, .12));border-radius:4px;z-index:100;border:1px solid var(--color-border-light, #e4e7ed)}.x-menu.is-collapse>.x-sub-menu>.x-sub-menu__menu .x-menu-item{height:50px;line-height:50px;padding:0 20px;text-align:left}.x-menu.is-collapse>.x-sub-menu>.x-sub-menu__menu .x-menu-item .x-menu-item__content{justify-content:flex-start}.x-menu.is-collapse>.x-sub-menu>.x-sub-menu__menu .x-menu-item .x-menu-item__text{display:inline}.x-menu.is-collapse>.x-sub-menu>.x-sub-menu__menu .x-sub-menu__title .x-sub-menu__text{display:inline}.x-menu.is-dark{background-color:#1f2d3d;border-color:#1f2d3d;color:#bfcbd9}.x-menu.is-dark .x-menu-item,.x-menu.is-dark .x-sub-menu__title{color:#bfcbd9}.x-menu.is-dark .x-menu-item:hover,.x-menu.is-dark .x-sub-menu__title:hover{background-color:#263445}.x-menu.is-dark .x-menu-item.is-active{color:#409eff;background-color:#263445}.x-menu.is-dark .x-sub-menu__menu{background-color:#1f2d3d;border-color:#1f2d3d}.x-menu-item{list-style:none;margin:0;padding:0 20px;cursor:pointer;transition:all .3s ease;height:56px;line-height:56px;color:var(--color-text-primary, #303133);position:relative;white-space:nowrap;box-sizing:border-box}.x-menu-item__content{display:flex;align-items:center;height:100%}.x-menu-item__icon{margin-right:8px;font-size:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.x-menu-item__icon svg,.x-menu-item__icon i{font-size:18px}.x-menu-item__text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:opacity .3s ease}.x-menu-item:hover{background-color:var(--color-primary-light-9, #f0f7ff)}.x-menu-item.is-active{color:var(--color-primary, #409eff);background-color:var(--color-primary-light-9, #ecf5ff)}.x-menu-item.is-active:not(.is-horizontal):before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background-color:var(--color-primary, #409eff);border-radius:0 2px 2px 0}.x-menu-item.is-collapse{padding:0;text-align:center}.x-menu-item.is-collapse .x-menu-item__content{justify-content:center;padding:0}.x-menu-item.is-collapse .x-menu-item__icon{margin-right:0;font-size:20px}.x-menu-item.is-collapse .x-menu-item__icon svg,.x-menu-item.is-collapse .x-menu-item__icon i{font-size:20px}.x-menu-item.is-collapse .x-menu-item__text{opacity:0;width:0;overflow:hidden}.x-menu-item.is-horizontal{display:inline-block;height:56px;line-height:56px}.x-menu-item.is-horizontal:hover{background-color:transparent}.x-menu-item.is-horizontal.is-active{background-color:transparent;border-bottom:2px solid var(--color-primary, #409eff)}.x-menu-item.is-horizontal.is-active:before{display:none}.x-menu-item.is-disabled{color:var(--color-text-disabled, #c0c4cc);cursor:not-allowed}.x-menu-item.is-disabled:hover{background-color:transparent}.x-menu-item-group{list-style:none}.x-menu-item-group__title{padding:20px 20px 10px;font-size:13px;color:#909399;line-height:1}.x-menu-item-group>ul{padding:0}.x-sub-menu{list-style:none;margin:0;padding:0;position:relative}.x-sub-menu__title{display:flex;align-items:center;cursor:pointer;transition:all .3s ease;color:var(--color-text-primary, #303133);height:100%}.x-sub-menu__content{display:flex;align-items:center;width:100%;height:100%}.x-sub-menu__icon{margin-right:8px;font-size:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.x-sub-menu__icon svg,.x-sub-menu__icon i{font-size:18px}.x-sub-menu__text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:opacity .3s ease}.x-sub-menu__arrow{font-size:12px;transition:transform .3s ease;color:var(--color-text-secondary, #909399);margin-left:4px;display:flex;align-items:center}.x-sub-menu__arrow svg{transition:transform .3s ease}.x-sub-menu__arrow.is-open svg{transform:rotate(180deg)}.x-sub-menu__menu{list-style:none;margin:0;padding:0;background-color:var(--bg-color, #fff)}.x-sub-menu__menu.is-collapse{border:1px solid var(--color-border-light, #e4e7ed);border-radius:4px}.x-sub-menu--vertical{display:block;width:100%}.x-sub-menu--vertical .x-sub-menu__title{height:56px;line-height:56px;padding:0 20px}.x-sub-menu--vertical .x-sub-menu__title:hover{background-color:var(--color-primary-light-9, #f0f7ff)}.x-sub-menu--vertical .x-sub-menu__menu{min-width:200px;border-right:none}.x-sub-menu--vertical .x-sub-menu__menu .x-menu-item,.x-sub-menu--vertical .x-sub-menu__menu .x-sub-menu__title{padding-left:40px}.x-sub-menu--vertical .x-sub-menu__menu .x-sub-menu__menu .x-menu-item,.x-sub-menu--vertical .x-sub-menu__menu .x-sub-menu__menu .x-sub-menu__title{padding-left:60px}.x-sub-menu--vertical .x-sub-menu__menu .x-sub-menu__menu .x-sub-menu__menu .x-menu-item,.x-sub-menu--vertical .x-sub-menu__menu .x-sub-menu__menu .x-sub-menu__menu .x-sub-menu__title{padding-left:80px}.x-sub-menu--vertical .x-sub-menu__menu .x-sub-menu__menu .x-sub-menu__menu .x-sub-menu__menu .x-menu-item,.x-sub-menu--vertical .x-sub-menu__menu .x-sub-menu__menu .x-sub-menu__menu .x-sub-menu__menu .x-sub-menu__title{padding-left:100px}.x-sub-menu--vertical.is-nested .x-sub-menu__menu{position:relative;left:auto;top:auto;box-shadow:none;border-radius:0;border:none}.x-sub-menu--horizontal{display:inline-block;height:56px}.x-sub-menu--horizontal .x-sub-menu__title{height:56px;line-height:56px;padding:0 20px}.x-sub-menu--horizontal .x-sub-menu__title:hover{background-color:transparent}.x-sub-menu--horizontal .x-sub-menu__menu{position:absolute;top:100%;left:0;min-width:180px;box-shadow:var(--box-shadow, 0 2px 12px rgba(0, 0, 0, .12));border-radius:4px;z-index:100;border:1px solid var(--color-border-light, #e4e7ed)}.x-sub-menu--horizontal .x-sub-menu__menu .x-menu-item{display:block;height:50px;line-height:50px;padding-left:20px}.x-sub-menu--horizontal .x-sub-menu__menu .x-menu-item.is-active:before{display:none}.x-sub-menu.is-collapse>.x-sub-menu__title{height:56px;line-height:56px;padding:0 20px;text-align:center}.x-sub-menu.is-collapse>.x-sub-menu__title .x-sub-menu__content{justify-content:center}.x-sub-menu.is-collapse>.x-sub-menu__title .x-sub-menu__text,.x-sub-menu.is-collapse>.x-sub-menu__title .x-sub-menu__arrow{display:none}.x-sub-menu.is-collapse>.x-sub-menu__title .x-sub-menu__icon{margin-right:0;font-size:20px}.x-sub-menu.is-collapse>.x-sub-menu__title .x-sub-menu__icon svg,.x-sub-menu.is-collapse>.x-sub-menu__title .x-sub-menu__icon i{font-size:20px}.x-sub-menu.is-collapse>.x-sub-menu__menu{position:absolute;left:64px;top:0;min-width:180px;box-shadow:var(--box-shadow, 0 2px 12px rgba(0, 0, 0, .12));border-radius:4px;z-index:100;border:1px solid var(--color-border-light, #e4e7ed);background-color:var(--bg-color, #fff)}.x-sub-menu.is-collapse>.x-sub-menu__menu .x-menu-item{height:50px;line-height:50px;padding:0 20px;text-align:left}.x-sub-menu.is-collapse>.x-sub-menu__menu .x-menu-item .x-menu-item__content{justify-content:flex-start}.x-sub-menu.is-collapse>.x-sub-menu__menu .x-menu-item .x-menu-item__text{display:inline;opacity:1;width:auto}.x-sub-menu.is-collapse>.x-sub-menu__menu .x-sub-menu__title{padding:0 20px}.x-sub-menu.is-collapse>.x-sub-menu__menu .x-sub-menu__title .x-sub-menu__text{display:inline;opacity:1}.x-sub-menu.is-collapse>.x-sub-menu__menu .x-sub-menu__title .x-sub-menu__arrow{display:flex}.x-sub-menu.is-active>.x-sub-menu__title{color:var(--color-primary, #409eff)}.x-sub-menu.is-disabled .x-sub-menu__title{color:var(--color-text-disabled, #c0c4cc);cursor:not-allowed}.zoom-in-top-enter-active,.zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.zoom-in-top-enter-from,.zoom-in-top-leave-to{opacity:0;transform:scaleY(0)}.zoom-in-left-enter-active,.zoom-in-left-leave-active{opacity:1;transition:opacity .2s ease,transform .2s ease;transform:translate(0)}.zoom-in-left-enter-from,.zoom-in-left-leave-to{opacity:0;transform:translate(-10px)}.x-breadcrumb{font-size:14px;line-height:1}.x-breadcrumb__list{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none}.x-breadcrumb__item{display:inline-flex;align-items:center;color:#606266}.x-breadcrumb__item:last-child .x-breadcrumb__separator{display:none}.x-breadcrumb__item:last-child .x-breadcrumb__text{font-weight:500;color:#303133}.x-breadcrumb__link,.x-breadcrumb__text{display:inline-flex;align-items:center}.x-breadcrumb__link{cursor:pointer;transition:color .2s}.x-breadcrumb__link:hover{color:#409eff}.x-breadcrumb__text{color:inherit}.x-breadcrumb__separator{margin:0 8px;color:#c0c4cc;font-size:12px;-webkit-user-select:none;user-select:none}.x-breadcrumb__separator-icon{font-size:14px}.x-breadcrumb__item.is-disabled .x-breadcrumb__link,.x-breadcrumb__item.is-disabled .x-breadcrumb__text{color:#c0c4cc;cursor:not-allowed}.x-steps{display:flex;width:100%;font-size:14px}.x-steps--horizontal{flex-direction:row;align-items:flex-start}.x-steps--horizontal.is-center{align-items:center}.x-steps--vertical{flex-direction:column;min-height:300px}.x-steps.is-simple{display:flex;align-items:center;padding:12px 16px;background:#fafafa;border-radius:4px}.x-step{position:relative;flex:1;cursor:pointer}.x-step--horizontal{display:flex;flex-direction:column;align-items:center}.x-step--horizontal .x-step__head{display:flex;align-items:center;justify-content:center;width:100%;position:relative}.x-step--horizontal .x-step__icon{position:relative;z-index:1}.x-step--horizontal .x-step__line{flex:1;height:2px;background-color:#e4e7ed;transition:background-color .3s;min-width:20px}.x-step--horizontal .x-step__content{margin-top:10px;text-align:center;padding:0 4px}.x-step--vertical{display:flex;flex-direction:row}.x-step--vertical .x-step__head{display:flex;flex-direction:column;align-items:center;position:relative}.x-step--vertical .x-step__line{width:2px;height:32px;background-color:#e4e7ed;transition:background-color .3s}.x-step--vertical .x-step__content{margin-left:12px;flex:1;padding-bottom:24px}.x-step__head{display:flex;align-items:center}.x-step__icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:#fff;border:2px solid #c0c4cc;color:#c0c4cc;flex-shrink:0;transition:all .3s;box-sizing:border-box}.x-step__icon-inner{font-size:13px;font-weight:600;color:inherit}.x-step__content{width:100%}.x-step__title{font-size:14px;font-weight:500;color:#303133;line-height:1.5}.x-step__description{font-size:12px;color:#909399;margin-top:4px;line-height:1.5}.x-step.is-wait .x-step__icon{border-color:#c0c4cc;color:#c0c4cc}.x-step.is-wait .x-step__title{color:#c0c4cc}.x-step.is-process .x-step__icon{border-color:#409eff;background-color:#409eff;color:#fff}.x-step.is-process .x-step__title{color:#303133;font-weight:600}.x-step.is-finish .x-step__icon{border-color:#67c23a;background-color:#67c23a;color:#fff}.x-step.is-finish .x-step__title{color:#303133}.x-step.is-finish .x-step__line{background-color:#67c23a}.x-step.is-success .x-step__icon{border-color:#67c23a;background-color:#67c23a;color:#fff}.x-step.is-success .x-step__title{color:#67c23a}.x-step.is-success .x-step__line{background-color:#67c23a}.x-step.is-error .x-step__icon{border-color:#f56c6c;background-color:#f56c6c;color:#fff}.x-step.is-error .x-step__title{color:#f56c6c}.x-page-header{padding:16px 0}.x-page-header__main{display:flex;align-items:center;justify-content:space-between;line-height:28px}.x-page-header__left{display:flex;align-items:center;flex:1;min-width:0}.x-page-header__back{display:inline-flex;align-items:center;margin-right:16px;font-size:14px;color:#606266;cursor:pointer;transition:color .2s}.x-page-header__back:hover{color:#409eff}.x-page-header__back-icon{font-size:16px}.x-page-header__back-text{margin-left:4px}.x-page-header__title{font-size:20px;font-weight:600;color:#303133}.x-page-header__subtitle{margin-left:12px;font-size:14px;font-weight:400;color:#909399}.x-page-header__extra{flex-shrink:0;display:flex;align-items:center;gap:8px}.x-page-header__content{margin-top:16px}.x-page-header__footer{margin-top:16px;padding-top:16px;border-top:1px solid #ebeef5}.x-dropdown{display:inline-block;position:relative;color:#606266;font-size:14px}.x-dropdown.is-disabled{color:#c0c4cc;cursor:not-allowed}.x-dropdown__trigger{cursor:pointer}.x-dropdown__menu{position:absolute;top:100%;left:0;z-index:2000;min-width:150px;padding:5px 0;margin:5px 0;background-color:#fff;border:1px solid #ebeef5;border-radius:4px;box-shadow:0 2px 12px #0000001a}.x-dropdown__menu--top{top:auto;bottom:100%}.x-dropdown__menu--top-start{top:auto;bottom:100%;left:0}.x-dropdown__menu--top-end{top:auto;bottom:100%;left:auto;right:0}.x-dropdown__menu--bottom{top:100%;bottom:auto}.x-dropdown__menu--bottom-start{top:100%;left:0}.x-dropdown__menu--bottom-end{top:100%;left:auto;right:0}.x-dropdown-zoom-enter-active,.x-dropdown-zoom-leave-active{transition:opacity .2s,transform .2s}.x-dropdown-zoom-enter-from,.x-dropdown-zoom-leave-to{opacity:0;transform:scaleY(.8)}.x-dropdown-menu{margin:0;padding:0;list-style:none}.x-dropdown-item{display:flex;align-items:center;padding:8px 16px;margin:0;font-size:14px;color:#606266;cursor:pointer;transition:background-color .2s;list-style:none}.x-dropdown-item:hover{background-color:#f5f7fa;color:#409eff}.x-dropdown-item.is-disabled{color:#c0c4cc;cursor:not-allowed}.x-dropdown-item.is-disabled:hover{background-color:transparent;color:#c0c4cc}.x-dropdown-item.is-divided{border-top:1px solid #ebeef5;margin-top:5px;padding-top:13px}.x-dropdown-item__icon{margin-right:8px}.x-dropdown-item__content{flex:1}.x-affix__fixed{position:fixed}.x-anchor{position:relative}.x-anchor.is-border{border-left:2px solid var(--color-border, #dcdfe6)}.x-anchor.is-sticky{position:sticky;top:0}.x-anchor__list{margin:0;padding:0;list-style:none}.x-anchor__item{position:relative;padding:6px 0 6px 16px}.x-anchor__link{display:block;font-size:14px;color:var(--color-text-secondary, #909399);text-decoration:none;transition:color .2s}.x-anchor__link:hover,.x-anchor__item.is-active .x-anchor__link{color:var(--color-primary, #409eff)}.x-anchor__indicator{position:absolute;left:0;width:2px;height:20px;background-color:var(--color-primary, #409eff);transition:top .2s}.x-popselect{position:relative;display:inline-block}.x-popselect__trigger{cursor:pointer}.x-popselect__dropdown{position:absolute;background-color:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;z-index:2000}.x-popselect__dropdown--bottom{top:100%;left:0;margin-top:4px}.x-popselect__dropdown--top{bottom:100%;left:0;margin-bottom:4px}.x-popselect__dropdown--left{right:100%;top:0;margin-right:4px}.x-popselect__dropdown--right{left:100%;top:0;margin-left:4px}.x-popselect__list{margin:0;padding:4px 0;list-style:none}.x-popselect__item{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:14px;color:var(--color-text-primary, #303133);cursor:pointer;transition:background-color .2s}.x-popselect__item:hover{background-color:var(--color-fill-light, #f5f7fa)}.x-popselect__item.is-selected{color:var(--color-primary, #409eff)}.x-popselect__item.is-disabled{color:var(--color-text-placeholder, #c0c4cc);cursor:not-allowed}.x-popselect__item.is-disabled:hover{background-color:transparent}.x-popselect__label{flex:1}.x-popselect__check{color:var(--color-primary, #409eff)}.x-float-button{position:fixed;z-index:1000}.x-float-button__menu{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:8px;opacity:0;transform:translateY(10px);transition:all .2s}.x-float-button__menu.is-visible{opacity:1;transform:translateY(0)}.x-float-button__menu-item{display:flex;align-items:center;gap:8px;padding:8px 16px;background-color:#fff;border-radius:20px;box-shadow:0 2px 8px #00000026;cursor:pointer;font-size:14px;white-space:nowrap}.x-float-button__menu-item:hover{background-color:var(--color-fill-light, #f5f7fa)}.x-float-button__button{display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #00000026}.x-float-button__button--default{background-color:#fff;color:var(--color-text-primary, #303133)}.x-float-button__button--default:hover{background-color:var(--color-fill-light, #f5f7fa)}.x-float-button__button--primary{background-color:var(--color-primary, #409eff);color:#fff}.x-float-button__button--primary:hover{background-color:var(--color-primary-light-3, #79bbff)}.x-float-button__button--circle{border-radius:50%}.x-float-button__button--square{border-radius:8px}.x-float-button__button--large{width:56px;height:56px}.x-float-button__button--default{width:48px;height:48px}.x-float-button__button--small{width:40px;height:40px}.x-float-button__button.is-disabled{opacity:.6;cursor:not-allowed}
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Xto Demo - 后台管理系统</title>
8
+ <script type="module" crossorigin src="/assets/index-BmKXwp1h.js"></script>
9
+ <link rel="modulepreload" crossorigin href="/assets/vue-vendor-emeAKDpw.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/xto-core-DMuDa0Wb.js">
11
+ <link rel="modulepreload" crossorigin href="/assets/xto-form-DeLishR4.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/xto-base-CqtR85Rk.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/xto-data-BESpuXuX.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/xto-feedback-DpxPzvBf.js">
15
+ <link rel="modulepreload" crossorigin href="/assets/xto-navigation-DVpBd-R6.js">
16
+ <link rel="stylesheet" crossorigin href="/assets/xto-form-Cu6q3VLG.css">
17
+ <link rel="stylesheet" crossorigin href="/assets/xto-base-CL2NKZJJ.css">
18
+ <link rel="stylesheet" crossorigin href="/assets/xto-data-MxZsiJgi.css">
19
+ <link rel="stylesheet" crossorigin href="/assets/xto-feedback-Bxx38c3P.css">
20
+ <link rel="stylesheet" crossorigin href="/assets/xto-navigation-XfpyMpEo.css">
21
+ <link rel="stylesheet" crossorigin href="/assets/index-Cpew6d-v.css">
22
+ <link rel="stylesheet" crossorigin href="/assets/xto-layout-BDD6sSlM.css">
23
+ <link rel="stylesheet" crossorigin href="/assets/xto-business--V1F5Gwb.css">
24
+ </head>
25
+ <body>
26
+ <div id="app"></div>
27
+ </body>
28
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xto-fronted",
3
- "version": "0.4.106",
3
+ "version": "0.4.108",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "XTO 前端应用框架",
package/src/index.ts CHANGED
@@ -2,7 +2,8 @@
2
2
  import './style.scss'
3
3
 
4
4
  // 配置
5
- import { initAppConfig, getAppId, getClientId, getApiBaseUrl } from './utils/config'
5
+ import { initAppConfig, getAppId, getClientId, getApiBaseUrl, loadRuntimeConfig } from './utils/config'
6
+ import { setBasePath, setApiBaseUrl } from './utils/request'
6
7
  import type { LocaleCode } from '@xto/core/locale'
7
8
 
8
9
  // XtoConfig 类型定义
@@ -11,6 +12,7 @@ export interface XtoConfig {
11
12
  appId?: string
12
13
  clientId?: string
13
14
  apiBaseUrl?: string
15
+ basePath?: string
14
16
  indexPath?: string
15
17
  loginPath?: string
16
18
  locale?: LocaleCode
@@ -19,15 +21,32 @@ export interface XtoConfig {
19
21
  /**
20
22
  * 初始化 XTO 应用
21
23
  * 在项目入口文件中调用此函数设置应用配置
24
+ *
22
25
  * @param config 应用配置
26
+ * @returns Promise,等待运行时配置加载完成
23
27
  */
24
- export function createXtoApp(config: Partial<XtoConfig>) {
28
+ export async function createXtoApp(config: Partial<XtoConfig>) {
29
+ // 加载运行时配置(生产环境从 config.json 加载)
30
+ await loadRuntimeConfig(config.basePath)
31
+
32
+ // 设置运行时 API 基础 URL(优先使用运行时配置)
33
+ const baseUrl = getApiBaseUrl()
34
+ if (baseUrl) {
35
+ setApiBaseUrl(baseUrl)
36
+ }
37
+
38
+ // 初始化应用配置
25
39
  initAppConfig({
26
40
  appId: config.appId,
27
41
  clientId: config.clientId,
28
- apiBaseUrl: config.apiBaseUrl
42
+ apiBaseUrl: baseUrl || config.apiBaseUrl
29
43
  })
30
44
 
45
+ // 设置 base 路径(用于登录过期时正确跳转)
46
+ if (config.basePath) {
47
+ setBasePath(config.basePath)
48
+ }
49
+
31
50
  // 设置应用名称和路径到 store
32
51
  import('./stores/app').then(({ useAppStore }) => {
33
52
  const appStore = useAppStore()
@@ -56,6 +75,7 @@ export function createXtoApp(config: Partial<XtoConfig>) {
56
75
  appId: getAppId(),
57
76
  clientId: getClientId(),
58
77
  apiBaseUrl: getApiBaseUrl(),
78
+ basePath: config.basePath || '/',
59
79
  indexPath: config.indexPath || '/dashboard',
60
80
  loginPath: config.loginPath || '/login',
61
81
  locale: config.locale || 'zh-CN'
@@ -1,81 +1,135 @@
1
- /**
2
- * 应用配置(动态设置,避免 import.meta.env 静态替换)
3
- */
4
-
5
- import { ref } from 'vue'
6
-
7
- // 配置状态
8
- const appId = ref<string>('')
9
- const clientId = ref<string>('')
10
- const apiBaseUrl = ref<string>('')
11
-
12
- /**
13
- * 初始化应用配置
14
- * 在项目入口文件(main.ts)中调用此函数设置配置
15
- */
16
- export function initAppConfig(config: {
17
- appId?: string
18
- clientId?: string
19
- apiBaseUrl?: string
20
- }) {
21
- if (config.appId) {
22
- appId.value = config.appId
23
- }
24
- if (config.clientId) {
25
- clientId.value = config.clientId
26
- }
27
- if (config.apiBaseUrl) {
28
- apiBaseUrl.value = config.apiBaseUrl
29
- }
30
- }
31
-
32
- /**
33
- * 获取 AppId
34
- * 优先使用动态配置,其次使用环境变量
35
- */
36
- export function getAppId(): string {
37
- if (appId.value) {
38
- return appId.value
39
- }
40
- // 尝试从环境变量获取(使用方项目构建时会注入)
41
- try {
42
- return import.meta.env.VITE_APP_ID || ''
43
- } catch {
44
- return ''
45
- }
46
- }
47
-
48
- /**
49
- * 获取 ClientId
50
- */
51
- export function getClientId(): string {
52
- if (clientId.value) {
53
- return clientId.value
54
- }
55
- try {
56
- return import.meta.env.VITE_APP_CLIENT_ID || ''
57
- } catch {
58
- return ''
59
- }
60
- }
61
-
62
- /**
63
- * 获取 API 基础路径
64
- */
65
- export function getApiBaseUrl(): string {
66
- if (apiBaseUrl.value) {
67
- return apiBaseUrl.value
68
- }
69
- try {
70
- return import.meta.env.VITE_API_BASE_URL || ''
71
- } catch {
72
- return ''
73
- }
74
- }
75
-
76
- // 导出响应式引用(供特殊场景直接使用)
77
- export const appConfig = {
78
- appId,
79
- clientId,
80
- apiBaseUrl
1
+ /**
2
+ * 应用配置(动态设置,避免 import.meta.env 静态替换)
3
+ *
4
+ * 支持两种配置方式:
5
+ * 1. 环境变量:开发环境使用 import.meta.env
6
+ * 2. 运行时配置:生产环境从 config.json 加载(支持 Nacos 动态配置)
7
+ */
8
+
9
+ import { ref } from 'vue'
10
+
11
+ // 配置状态
12
+ const appId = ref<string>('')
13
+ const clientId = ref<string>('')
14
+ const apiBaseUrl = ref<string>('')
15
+
16
+ // 运行时配置是否已加载
17
+ let runtimeConfigLoaded = false
18
+
19
+ // 运行时配置缓存
20
+ let runtimeConfig: Record<string, string> = {}
21
+
22
+ /**
23
+ * 加载运行时配置
24
+ * 生产环境从 config.json 加载,开发环境跳过
25
+ * @param basePath 应用基础路径,如 '/admin' 或 '/sea'
26
+ */
27
+ export async function loadRuntimeConfig(basePath?: string): Promise<Record<string, string>> {
28
+ // 如果已经加载过,直接返回缓存
29
+ if (runtimeConfigLoaded) {
30
+ return runtimeConfig
31
+ }
32
+
33
+ // 仅在生产环境加载 config.json
34
+ if (import.meta.env.PROD) {
35
+ try {
36
+ // 确定配置文件路径
37
+ const configPath = basePath ? `${basePath}/config.json` : '/config.json'
38
+ const response = await fetch(configPath)
39
+ if (response.ok) {
40
+ runtimeConfig = await response.json()
41
+ console.log('Runtime config loaded from', configPath, runtimeConfig)
42
+ } else {
43
+ console.warn('Failed to load', configPath, 'status:', response.status)
44
+ }
45
+ } catch (error) {
46
+ console.warn('Failed to load runtime config:', error)
47
+ }
48
+ } else {
49
+ console.log('Development mode, skipping runtime config')
50
+ }
51
+
52
+ runtimeConfigLoaded = true
53
+ return runtimeConfig
54
+ }
55
+
56
+ /**
57
+ * 初始化应用配置
58
+ * 在项目入口文件(main.ts)中调用此函数设置配置
59
+ */
60
+ export function initAppConfig(config: {
61
+ appId?: string
62
+ clientId?: string
63
+ apiBaseUrl?: string
64
+ }) {
65
+ if (config.appId) {
66
+ appId.value = config.appId
67
+ }
68
+ if (config.clientId) {
69
+ clientId.value = config.clientId
70
+ }
71
+ if (config.apiBaseUrl) {
72
+ apiBaseUrl.value = config.apiBaseUrl
73
+ }
74
+ }
75
+
76
+ /**
77
+ * 获取 AppId
78
+ * 优先级:运行时配置 > 动态配置 > 环境变量
79
+ */
80
+ export function getAppId(): string {
81
+ if (appId.value) {
82
+ return appId.value
83
+ }
84
+ // 运行时配置
85
+ if (runtimeConfig.VITE_APP_ID) {
86
+ return runtimeConfig.VITE_APP_ID
87
+ }
88
+ // 尝试从环境变量获取
89
+ try {
90
+ return import.meta.env.VITE_APP_ID || ''
91
+ } catch {
92
+ return ''
93
+ }
94
+ }
95
+
96
+ /**
97
+ * 获取 ClientId
98
+ */
99
+ export function getClientId(): string {
100
+ if (clientId.value) {
101
+ return clientId.value
102
+ }
103
+ if (runtimeConfig.VITE_APP_CLIENT_ID) {
104
+ return runtimeConfig.VITE_APP_CLIENT_ID
105
+ }
106
+ try {
107
+ return import.meta.env.VITE_APP_CLIENT_ID || ''
108
+ } catch {
109
+ return ''
110
+ }
111
+ }
112
+
113
+ /**
114
+ * 获取 API 基础路径
115
+ */
116
+ export function getApiBaseUrl(): string {
117
+ if (apiBaseUrl.value) {
118
+ return apiBaseUrl.value
119
+ }
120
+ if (runtimeConfig.VITE_API_BASE_URL) {
121
+ return runtimeConfig.VITE_API_BASE_URL
122
+ }
123
+ try {
124
+ return import.meta.env.VITE_API_BASE_URL || ''
125
+ } catch {
126
+ return ''
127
+ }
128
+ }
129
+
130
+ // 导出响应式引用(供特殊场景直接使用)
131
+ export const appConfig = {
132
+ appId,
133
+ clientId,
134
+ apiBaseUrl
81
135
  }
@@ -32,6 +32,9 @@ export interface PageResponse<T> {
32
32
  // 运行时 API 基础 URL
33
33
  let runtimeApiBaseUrl: string | undefined
34
34
 
35
+ // 运行时 base 路径
36
+ let runtimeBasePath: string | undefined
37
+
35
38
  /**
36
39
  * 设置运行时 API 基础 URL
37
40
  * 用于 Nacos 动态配置场景
@@ -44,6 +47,24 @@ export function setApiBaseUrl(url: string) {
44
47
  }
45
48
  }
46
49
 
50
+ /**
51
+ * 设置运行时 base 路径
52
+ * 用于登录过期时正确跳转到登录页
53
+ */
54
+ export function setBasePath(base: string) {
55
+ runtimeBasePath = base
56
+ }
57
+
58
+ /**
59
+ * 获取登录页路径(考虑 base 路径)
60
+ */
61
+ function getLoginPath(): string {
62
+ const base = runtimeBasePath || import.meta.env.BASE_URL || '/'
63
+ // 确保 base 以 / 结尾,login 不以 / 开头
64
+ const normalizedBase = base.endsWith('/') ? base : base + '/'
65
+ return normalizedBase + 'login'
66
+ }
67
+
47
68
  // 创建 axios 实例
48
69
  const createRequest = (): AxiosInstance => {
49
70
  const instance = axios.create({
@@ -101,7 +122,7 @@ const createRequest = (): AxiosInstance => {
101
122
  if (data.code === 9121) {
102
123
  Message.error('登录已过期,请重新登录')
103
124
  clearToken()
104
- window.location.href = '/login'
125
+ window.location.href = getLoginPath()
105
126
  return Promise.reject(new Error(data.message || 'EXPIRED OR INVALID TOKEN'))
106
127
  }
107
128
 
@@ -118,7 +139,7 @@ const createRequest = (): AxiosInstance => {
118
139
  if (data?.code === 9121) {
119
140
  Message.error('登录已过期,请重新登录')
120
141
  clearToken()
121
- window.location.href = '/login'
142
+ window.location.href = getLoginPath()
122
143
  return Promise.reject(error)
123
144
  }
124
145
 
@@ -126,7 +147,7 @@ const createRequest = (): AxiosInstance => {
126
147
  case 401:
127
148
  Message.error('登录已过期,请重新登录')
128
149
  clearToken()
129
- window.location.href = '/login'
150
+ window.location.href = getLoginPath()
130
151
  break
131
152
  case 403:
132
153
  Message.error('没有权限访问')
package/dist/App.vue.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,8 +0,0 @@
1
- import { LoginParams, LoginResult, UserInfo } from '../types/api';
2
- export declare function login(data: LoginParams): Promise<LoginResult>;
3
- export declare function logout(): Promise<unknown>;
4
- export declare function getUserInfo(): Promise<UserInfo>;
5
- export declare function refreshToken(refreshToken: string): Promise<{
6
- token: string;
7
- expireTime: number;
8
- }>;
@@ -1,6 +0,0 @@
1
- /**
2
- * API 统一导出
3
- */
4
- export * from './auth';
5
- export * from './system';
6
- export * from './user';