ss-component-new 1.2.16 → 1.2.17

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 (83) hide show
  1. package/dist/{animationData-BWw4kCRg.js → animationData-Qb9CDU4l.js} +3 -3
  2. package/dist/{animationData-Gmqt1miw.cjs → animationData-xvLbS7TE.cjs} +1 -1
  3. package/dist/{array-BnEzUAqG.cjs → array-CAYNJHAO.cjs} +1 -1
  4. package/dist/{array-BzGprQMJ.js → array-DkjKZF8I.js} +1 -1
  5. package/dist/{index-VAoviGiD.js → index--cSKDs-m.js} +8 -8
  6. package/dist/{index-0yieO8oJ.js → index-00LBNRcE.js} +1 -1
  7. package/dist/{index-BN61mxV-.cjs → index-AmqN11m8.cjs} +1 -1
  8. package/dist/{index-DIVlMcU8.cjs → index-B2NWkIpp.cjs} +1 -1
  9. package/dist/{index-DMzjugA8.js → index-BGLsERtf.js} +5 -5
  10. package/dist/{index-i7c0i6cs.cjs → index-BLdyKmTu.cjs} +1 -1
  11. package/dist/{index-B775IA-h.js → index-BU242fNk.js} +2 -2
  12. package/dist/{index-D-aPtE2l.cjs → index-BZtXRbEZ.cjs} +1 -1
  13. package/dist/{index-Bog3Ps53.js → index-B_pmpVvZ.js} +2 -2
  14. package/dist/{index-DvS03o0x.js → index-BgbkehBL.js} +3 -3
  15. package/dist/{index-DE2PX8iP.cjs → index-Blj5w8sE.cjs} +1 -1
  16. package/dist/{index-Ol-nncQ8.js → index-Bp9hPbvn.js} +1 -1
  17. package/dist/{index-CcrmcbVW.cjs → index-Br3NE3cv.cjs} +1 -1
  18. package/dist/{index-DKqiOVYm.js → index-Bx7n6UDA.js} +2 -2
  19. package/dist/{index-MJGhXKrR.js → index-Bx9yQVlT.js} +1 -1
  20. package/dist/{index-0xuBTAzf.js → index-Byjao__A.js} +10 -10
  21. package/dist/{index-CO9tS7yE.cjs → index-C-imeITi.cjs} +1 -1
  22. package/dist/{index-Bxj1NF8c.js → index-C3pD8VjA.js} +1 -1
  23. package/dist/{index-CZs4OK7B.cjs → index-C8W8SOHQ.cjs} +1 -1
  24. package/dist/{index-Dw-oonRR.js → index-CBO4shBu.js} +3 -3
  25. package/dist/{index-DzKxXHO_.cjs → index-CSrtwaZ6.cjs} +1 -1
  26. package/dist/{index-BBp-QrUN.cjs → index-CTbiBChu.cjs} +1 -1
  27. package/dist/{index-Drtr5P6Z.js → index-CU44LzPf.js} +7 -7
  28. package/dist/{index-Dlqjb3Ae.js → index-CVHse7As.js} +2 -2
  29. package/dist/{index-45a8lajL.cjs → index-C__Dwz_q.cjs} +1 -1
  30. package/dist/{index-C0_dzZqi.cjs → index-ChL8bsns.cjs} +1 -1
  31. package/dist/{index-CgkhjQBg.js → index-Cki2sYVE.js} +5 -5
  32. package/dist/{index-B1VERzBW.cjs → index-ClK5MJAc.cjs} +1 -1
  33. package/dist/{index-Cdz24GlP.js → index-CpMQC4x1.js} +1 -1
  34. package/dist/{index-DjlNkAz3.js → index-D8_S-Iuf.js} +18 -18
  35. package/dist/{index-CQ2og4VS.cjs → index-DEwxTEA3.cjs} +1 -1
  36. package/dist/{index-CDVTwJO1.js → index-DNgeBOyL.js} +2 -2
  37. package/dist/{index-b0_Sdvtc.cjs → index-DORfWfLc.cjs} +1 -1
  38. package/dist/{index-DasYrMO9.js → index-DXPIuRqL.js} +2 -2
  39. package/dist/{index-BtktIcJr.js → index-DZ9voZQn.js} +5 -5
  40. package/dist/{index-CTMVMsEw.cjs → index-DZMLa6sl.cjs} +1 -1
  41. package/dist/{index-BWiorSLN.js → index-DbiyWVzT.js} +5 -5
  42. package/dist/{index-ClciGXhU.js → index-DbmOtV2k.js} +2 -2
  43. package/dist/{index-BF5O3SKN.cjs → index-Dg_l3ZIM.cjs} +1 -1
  44. package/dist/{index-DBS-llYZ.cjs → index-Dm9I-MGk.cjs} +1 -1
  45. package/dist/{index-c2Td0J53.js → index-DmYI7jW4.js} +1 -1
  46. package/dist/{index-ly9ku1Ig.cjs → index-DvEGoB_c.cjs} +1 -1
  47. package/dist/{index-C4KNN0N1.cjs → index-DwDRdcnb.cjs} +1 -1
  48. package/dist/{index-BSt5BRu5.js → index-DxQj6FZE.js} +1 -1
  49. package/dist/{index-B-78xMsr.cjs → index-HNf73U8z.cjs} +1 -1
  50. package/dist/{index-Cuw0COzP.cjs → index-JDMB7hc0.cjs} +1 -1
  51. package/dist/{index-Dtqc59Tk.js → index-JQmSnrnX.js} +1 -1
  52. package/dist/{index-N9O6PaDb.js → index-UMRAFAXe.js} +2 -2
  53. package/dist/{index-GPZD2ZHO.cjs → index-kJ1GNgTl.cjs} +1 -1
  54. package/dist/{index-Cc_TW4OE.cjs → index-lp8Qp4lU.cjs} +1 -1
  55. package/dist/{index-0s9a7Rpc.cjs → index-nldJ9Wpt.cjs} +1 -1
  56. package/dist/{index-CF9Y_2xa.cjs → index-snrR_lCj.cjs} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DDk9QivU.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0YQ6oGXD.cjs} +1 -1
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DM8to6QE.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CmdURFaC.js} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CX2RbTN9.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Bwe93Xrr.js} +5 -5
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BbO6f96z.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-pzTuaxv5.cjs} +1 -1
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Cg8Mjd8K.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-6VezR8np.cjs} +1 -1
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BgGmA99m.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-q9M1UN39.js} +9 -9
  63. package/dist/{index.vue_vue_type_style_index_1_lang-D2WqwMCZ.cjs → index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs} +10 -10
  64. package/dist/{index.vue_vue_type_style_index_1_lang-CrPsDsEY.js → index.vue_vue_type_style_index_1_lang-BDQcys0d.js} +2 -2
  65. package/dist/{index.vue_vue_type_style_index_1_lang-CwoxJbwS.cjs → index.vue_vue_type_style_index_1_lang-Bc10b8Mi.cjs} +1 -1
  66. package/dist/{index.vue_vue_type_style_index_1_lang-CeaEXypd.js → index.vue_vue_type_style_index_1_lang-DtRssJWg.js} +879 -879
  67. package/dist/{main-DGXvSAML.cjs → main-BpF0-mlu.cjs} +1 -1
  68. package/dist/{main-Dg2tI2uw.js → main-D8Dh7CUS.js} +4 -4
  69. package/dist/ss-component.cjs +1 -1
  70. package/dist/ss-component.js +10 -10
  71. package/dist/ss-component2.cjs +1 -1
  72. package/dist/ss-component2.js +11 -11
  73. package/dist/{threeModel-wyboz8GN.js → threeModel-B6Q20_0g.js} +2 -2
  74. package/dist/{threeModel-DR5HOavd.cjs → threeModel-WXskZd6Q.cjs} +1 -1
  75. package/dist/{threeSceneView-9bR4B421.cjs → threeSceneView-BFcPTomD.cjs} +1 -1
  76. package/dist/{threeSceneView-BBp0_Tq3.js → threeSceneView-YnHu8FUZ.js} +7 -7
  77. package/dist/{threeSceneViewForCPMPIP-BYI3fXA6.cjs → threeSceneViewForCPMPIP-fG4x8LLj.cjs} +1 -1
  78. package/dist/{threeSceneViewForCPMPIP-pDy7SQVJ.js → threeSceneViewForCPMPIP-p2-Ce2xO.js} +6 -6
  79. package/dist/{threeViewerHost-6YyhGjjJ.js → threeViewerHost-CDEn7FfB.js} +3 -3
  80. package/dist/{threeViewerHost-kHhK4tIS.cjs → threeViewerHost-rcqedja4.cjs} +1 -1
  81. package/dist/{useRayCaster-DENUSa5k.js → useRayCaster-CJaAi3t4.js} +1 -1
  82. package/dist/{useRayCaster-BhV1gz97.cjs → useRayCaster-Cz13xqg3.cjs} +1 -1
  83. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-BbO6f96z.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=["title"],f={key:0,class:"menu-operate-icon"},h={class:"menu-config-wrap"},_=["onClick"],v={class:"module-dialog-content"};function y(o,l,V,M,N,m){var s;const i=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-popover"),p=e.resolveComponent("ssMenu"),r=e.resolveComponent("el-button"),g=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{class:"vertical-menu",mode:o.mode,menuList:o.renderMenuList,isCollapse:o.isCollapse,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var a,d;return[e.createElementVNode("span",{title:t.title,class:"menu-title",style:e.normalizeStyle({marginRight:t!=null&&t.config&&((a=t==null?void 0:t.config)==null?void 0:a.length)>0?"25px":"1px"})},e.toDisplayString(t.title??""),13,k),t!=null&&t.config&&((d=t==null?void 0:t.config)==null?void 0:d.length)>0?(e.openBlock(),e.createElementBlock("span",f,[e.createVNode(c,{title:"",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(i,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:w=>o.clickMenuIcon(t,n)},[e.createVNode(i,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,_))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((s=o.renderMenuList)==null?void 0:s.length)>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fold-icon",onClick:l[0]||(l[0]=(...t)=>o.handleMenuCollapse&&o.handleMenuCollapse(...t))},[e.createVNode(i,{name:o.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):e.createCommentVNode("",!0),e.createVNode(g,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(r,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const B=u._export_sfc(C._sfc_main,[["render",y],["__scopeId","data-v-92477073"]]);exports.default=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-pzTuaxv5.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=["title"],f={key:0,class:"menu-operate-icon"},h={class:"menu-config-wrap"},_=["onClick"],v={class:"module-dialog-content"};function y(o,l,V,M,N,m){var s;const i=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-popover"),p=e.resolveComponent("ssMenu"),r=e.resolveComponent("el-button"),g=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{class:"vertical-menu",mode:o.mode,menuList:o.renderMenuList,isCollapse:o.isCollapse,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var a,d;return[e.createElementVNode("span",{title:t.title,class:"menu-title",style:e.normalizeStyle({marginRight:t!=null&&t.config&&((a=t==null?void 0:t.config)==null?void 0:a.length)>0?"25px":"1px"})},e.toDisplayString(t.title??""),13,k),t!=null&&t.config&&((d=t==null?void 0:t.config)==null?void 0:d.length)>0?(e.openBlock(),e.createElementBlock("span",f,[e.createVNode(c,{title:"",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(i,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:w=>o.clickMenuIcon(t,n)},[e.createVNode(i,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,_))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((s=o.renderMenuList)==null?void 0:s.length)>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fold-icon",onClick:l[0]||(l[0]=(...t)=>o.handleMenuCollapse&&o.handleMenuCollapse(...t))},[e.createVNode(i,{name:o.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):e.createCommentVNode("",!0),e.createVNode(g,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(r,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const B=u._export_sfc(C._sfc_main,[["render",y],["__scopeId","data-v-92477073"]]);exports.default=B;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DBS-llYZ.cjs"),n=require("./index-C0_dzZqi.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Dm9I-MGk.cjs"),n=require("./index-ChL8bsns.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
@@ -1,4 +1,4 @@
1
- "use strict";var ait=Object.defineProperty;var oit=(r,e,t)=>e in r?ait(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Cr=(r,e,t)=>oit(r,typeof e!="symbol"?e+"":e,t);const ai=require("./index-1z9RrjZc.cjs"),Zh=require("./index.vue_vue_type_style_index_1_lang-D2WqwMCZ.cjs");function uW(r,e){return Zh.setToString(Zh.overRest(r,e,Zh.identity),r+"")}function sit(r,e,t){if(!ai.isObject(t))return!1;var n=typeof e;return(n=="number"?ai.isArrayLike(t)&&ai.isIndex(e,t.length):n=="string"&&e in t)?ai.eq(t[e],r):!1}function lit(r){return uW(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,o&&sit(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=t[n];s&&r(e,s,n,a)}return e})}var uit="[object Object]",cit=Function.prototype,fit=Object.prototype,cW=cit.toString,hit=fit.hasOwnProperty,dit=cW.call(Object);function fW(r){if(!ai.isObjectLike(r)||ai.baseGetTag(r)!=uit)return!1;var e=ai.getPrototype(r);if(e===null)return!0;var t=hit.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&cW.call(t)==dit}function pit(r){return function(e,t,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var l=o[++i];if(t(a[l],l,a)===!1)break}return e}}var hW=pit();function bE(r,e,t){(t!==void 0&&!ai.eq(r[e],t)||t===void 0&&!(e in r))&&ai.baseAssignValue(r,e,t)}function dW(r){return ai.isObjectLike(r)&&ai.isArrayLike(r)}function wE(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function vit(r){return ai.copyObject(r,ai.keysIn(r))}function git(r,e,t,n,i,a,o){var s=wE(r,t),l=wE(e,t),u=o.get(l);if(u){bE(r,t,u);return}var c=a?a(s,l,t+"",r,e,o):void 0,f=c===void 0;if(f){var h=ai.isArray(l),d=!h&&ai.isBuffer(l),p=!h&&!d&&ai.isTypedArray(l);c=l,h||d||p?ai.isArray(s)?c=s:dW(s)?c=ai.copyArray(s):d?(f=!1,c=ai.cloneBuffer(l,!0)):p?(f=!1,c=ai.cloneTypedArray(l,!0)):c=[]:fW(l)||ai.isArguments(l)?(c=s,ai.isArguments(s)?c=vit(s):(!ai.isObject(s)||ai.isFunction$1(s))&&(c=ai.initCloneObject(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),bE(r,t,c)}function pW(r,e,t,n,i){r!==e&&hW(e,function(a,o){if(i||(i=new ai.Stack),ai.isObject(a))git(r,e,o,t,pW,n,i);else{var s=n?n(wE(r,o),a,o+"",r,e,i):void 0;s===void 0&&(s=a),bE(r,o,s)}},ai.keysIn)}var Kh=lit(function(r,e,t){pW(r,e,t)}),bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function mit(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var p4={exports:{}},yit=p4.exports,lO;function bit(){return lO||(lO=1,function(r,e){(function(t,n){r.exports=n()})(yit,function(){var t=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",p="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var k=["th","st","nd","rd"],C=D%100;return"["+D+(k[(C-20)%10]||k[C]||k[0])+"]"}},b=function(D,k,C){var I=String(D);return!I||I.length>=k?D:""+Array(k+1-I.length).join(C)+D},w={s:b,z:function(D){var k=-D.utcOffset(),C=Math.abs(k),I=Math.floor(C/60),M=C%60;return(k<=0?"+":"-")+b(I,2,"0")+":"+b(M,2,"0")},m:function D(k,C){if(k.date()<C.date())return-D(C,k);var I=12*(C.year()-k.year())+(C.month()-k.month()),M=k.clone().add(I,f),L=C-M<0,z=k.clone().add(I+(L?-1:1),f);return+(-(I+(C-M)/(L?M-z:z-M))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:d,w:c,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},_="en",x={};x[_]=v;var S="$isDayjsObject",T=function(D){return D instanceof F||!(!D||!D[S])},A=function D(k,C,I){var M;if(!k)return _;if(typeof k=="string"){var L=k.toLowerCase();x[L]&&(M=L),C&&(x[L]=C,M=L);var z=k.split("-");if(!M&&z.length>1)return D(z[0])}else{var N=k.name;x[N]=k,M=N}return!I&&M&&(_=M),M||!I&&_},B=function(D,k){if(T(D))return D.clone();var C=typeof k=="object"?k:{};return C.date=D,C.args=arguments,new F(C)},O=w;O.l=A,O.i=T,O.w=function(D,k){return B(D,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var F=function(){function D(C){this.$L=A(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var k=D.prototype;return k.parse=function(C){this.$d=function(I){var M=I.date,L=I.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var z=M.match(m);if(z){var N=z[2]-1||0,U=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)):new Date(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date(M)}(C),this.init()},k.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},k.$utils=function(){return O},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(C,I){var M=B(C);return this.startOf(I)<=M&&M<=this.endOf(I)},k.isAfter=function(C,I){return B(C)<this.startOf(I)},k.isBefore=function(C,I){return this.endOf(I)<B(C)},k.$g=function(C,I,M){return O.u(C)?this[I]:this.set(M,C)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(C,I){var M=this,L=!!O.u(I)||I,z=O.p(C),N=function(pt,rt){var X=O.w(M.$u?Date.UTC(M.$y,rt,pt):new Date(M.$y,rt,pt),M);return L?X:X.endOf(u)},U=function(pt,rt){return O.w(M.toDate()[pt].apply(M.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(rt)),M)},V=this.$W,G=this.$M,Y=this.$D,Q="set"+(this.$u?"UTC":"");switch(z){case d:return L?N(1,0):N(31,11);case f:return L?N(1,G):N(0,G+1);case c:var yt=this.$locale().weekStart||0,ot=(V<yt?V+7:V)-yt;return N(L?Y-ot:Y+(6-ot),G);case u:case p:return U(Q+"Hours",0);case l:return U(Q+"Minutes",1);case s:return U(Q+"Seconds",2);case o:return U(Q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(C){return this.startOf(C,!1)},k.$set=function(C,I){var M,L=O.p(C),z="set"+(this.$u?"UTC":""),N=(M={},M[u]=z+"Date",M[p]=z+"Date",M[f]=z+"Month",M[d]=z+"FullYear",M[l]=z+"Hours",M[s]=z+"Minutes",M[o]=z+"Seconds",M[a]=z+"Milliseconds",M)[L],U=L===u?this.$D+(I-this.$W):I;if(L===f||L===d){var V=this.clone().set(p,1);V.$d[N](U),V.init(),this.$d=V.set(p,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](U);return this.init(),this},k.set=function(C,I){return this.clone().$set(C,I)},k.get=function(C){return this[O.p(C)]()},k.add=function(C,I){var M,L=this;C=Number(C);var z=O.p(I),N=function(G){var Y=B(L);return O.w(Y.date(Y.date()+Math.round(G*C)),L)};if(z===f)return this.set(f,this.$M+C);if(z===d)return this.set(d,this.$y+C);if(z===u)return N(1);if(z===c)return N(7);var U=(M={},M[s]=n,M[l]=i,M[o]=t,M)[z]||1,V=this.$d.getTime()+C*U;return O.w(V,this)},k.subtract=function(C,I){return this.add(-1*C,I)},k.format=function(C){var I=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var L=C||"YYYY-MM-DDTHH:mm:ssZ",z=O.z(this),N=this.$H,U=this.$m,V=this.$M,G=M.weekdays,Y=M.months,Q=M.meridiem,yt=function(rt,X,et,ut){return rt&&(rt[X]||rt(I,L))||et[X].slice(0,ut)},ot=function(rt){return O.s(N%12||12,rt,"0")},pt=Q||function(rt,X,et){var ut=rt<12?"AM":"PM";return et?ut.toLowerCase():ut};return L.replace(y,function(rt,X){return X||function(et){switch(et){case"YY":return String(I.$y).slice(-2);case"YYYY":return O.s(I.$y,4,"0");case"M":return V+1;case"MM":return O.s(V+1,2,"0");case"MMM":return yt(M.monthsShort,V,Y,3);case"MMMM":return yt(Y,V);case"D":return I.$D;case"DD":return O.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return yt(M.weekdaysMin,I.$W,G,2);case"ddd":return yt(M.weekdaysShort,I.$W,G,3);case"dddd":return G[I.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return pt(N,U,!0);case"A":return pt(N,U,!1);case"m":return String(U);case"mm":return O.s(U,2,"0");case"s":return String(I.$s);case"ss":return O.s(I.$s,2,"0");case"SSS":return O.s(I.$ms,3,"0");case"Z":return z}return null}(rt)||z.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(C,I,M){var L,z=this,N=O.p(I),U=B(C),V=(U.utcOffset()-this.utcOffset())*n,G=this-U,Y=function(){return O.m(z,U)};switch(N){case d:L=Y()/12;break;case f:L=Y();break;case h:L=Y()/3;break;case c:L=(G-V)/6048e5;break;case u:L=(G-V)/864e5;break;case l:L=G/i;break;case s:L=G/n;break;case o:L=G/t;break;default:L=G}return M?L:O.a(L)},k.daysInMonth=function(){return this.endOf(f).$D},k.$locale=function(){return x[this.$L]},k.locale=function(C,I){if(!C)return this.$L;var M=this.clone(),L=A(C,I,!0);return L&&(M.$L=L),M},k.clone=function(){return O.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},D}(),E=F.prototype;return B.prototype=E,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",p]].forEach(function(D){E[D[1]]=function(k){return this.$g(k,D[0],D[1])}}),B.extend=function(D,k){return D.$i||(D(k,F,B),D.$i=!0),B},B.locale=A,B.isDayjs=T,B.unix=function(D){return B(1e3*D)},B.en=x[_],B.Ls=x,B.p={},B})}(p4)),p4.exports}var wit=bit();const _it=m0(wit),xit=ai.useLoginState(ai.pinia),{loginUserInfo:BT}=ai.storeToRefs(xit),Sit=async r=>{var i,a,o,s,l,u,c,f,h,d,p,g,m,y,v,b,w,_,x,S,T,A,B,O,F,E,D,k,C,I,M,L;let e=[];(i=r==null?void 0:r.menuSelect)==null||i.forEach(z=>{});let t="",n;if(r!=null&&r.menuSelect&&(n=await Zh.menuToParent(r==null?void 0:r.menuSelect)),n==null||n.forEach(z=>{var N,U;(z==null?void 0:z.name)===(((U=(N=r==null?void 0:r.groupSelect)==null?void 0:N[0])==null?void 0:U.replaceAll("'",""))??"")&&(t=z==null?void 0:z.id)}),r!=null&&r.menuId){t=r==null?void 0:r.menuId;const z=await ai.getInsofDataApi({id:t}),N=(l=(s=(o=(a=z==null?void 0:z.data)==null?void 0:a.result)==null?void 0:o[0])==null?void 0:s.key)==null?void 0:l.pageKey;n=await Zh.getItemData(N,sessionStorage.getItem("systemKey"),"")}if(t!==""){const z=(f=(c=(u=n==null?void 0:n.find(V=>(V==null?void 0:V.id)===t))==null?void 0:u.compData)==null?void 0:c.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:f.contents;let N=0;z.every(V=>Array.isArray(V))?N=(h=z==null?void 0:z[0])==null?void 0:h.findIndex(V=>{var G,Y,Q;return(V==null?void 0:V.label)===((Q=(Y=(G=r==null?void 0:r.groupSelect)==null?void 0:G[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:Q.replaceAll("]",""))}):N=z==null?void 0:z.findIndex(V=>{var G,Y,Q;return(V==null?void 0:V.label)===((Q=(Y=(G=r==null?void 0:r.groupSelect)==null?void 0:G[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:Q.replaceAll("]",""))}),N===-1&&(N=0);let U=(m=(g=(p=(d=n==null?void 0:n.find(V=>(V==null?void 0:V.id)===t))==null?void 0:d.compData)==null?void 0:p.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:g.contents)==null?void 0:m.map(V=>(V=V==null?void 0:V.filter(G=>!(G!=null&&G.id)),V));if((r==null?void 0:r.filter)!==""){let V={};V[(v=(y=r==null?void 0:r.filter)==null?void 0:y.split("#"))==null?void 0:v[0]]=(w=(b=r==null?void 0:r.filter)==null?void 0:b.split("#"))==null?void 0:w[1];let G=(x=(_=r==null?void 0:r.filter)==null?void 0:_.split("#"))==null?void 0:x[1];G==="@loginUser"&&(G=((S=BT.value)==null?void 0:S.姓名)||((T=BT.value)==null?void 0:T.account)||((A=BT.value)==null?void 0:A.账号));let Y=z==null?void 0:z.findIndex(Q=>{var yt,ot;return(Q==null?void 0:Q.prop)===((ot=(yt=Object.keys(V))==null?void 0:yt[0])==null?void 0:ot.replaceAll("'",""))});U=U==null?void 0:U.filter(Q=>(Q==null?void 0:Q[Y])===G)}if((B=r==null?void 0:r.menuFilter)!=null&&B.find(V=>{var G;return(G=V==null?void 0:V.content)==null?void 0:G.includes("@Condition")})){let V=(D=(E=(F=(O=r==null?void 0:r.menuFilter)==null?void 0:O.find(Y=>{var Q;return(Q=Y==null?void 0:Y.content)==null?void 0:Q.includes("@Condition")}))==null?void 0:F.content)==null?void 0:E.split(":"))==null?void 0:D[1],G=(k=n==null?void 0:n.find(Y=>(Y==null?void 0:Y.id)===t))==null?void 0:k.compData;U=(L=(M=(I=(C=Zh.onConditionContents([G],V))==null?void 0:C[0])==null?void 0:I.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:L.map(Y=>(Y=Y==null?void 0:Y.filter(Q=>!(Q!=null&&Q.id)),Y))}U==null||U.forEach(V=>{e.push({label:V==null?void 0:V[N],value:V==null?void 0:V[N]})})}return e};/**!
1
+ "use strict";var ait=Object.defineProperty;var oit=(r,e,t)=>e in r?ait(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Cr=(r,e,t)=>oit(r,typeof e!="symbol"?e+"":e,t);const ai=require("./index-1z9RrjZc.cjs"),Zh=require("./index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs");function uW(r,e){return Zh.setToString(Zh.overRest(r,e,Zh.identity),r+"")}function sit(r,e,t){if(!ai.isObject(t))return!1;var n=typeof e;return(n=="number"?ai.isArrayLike(t)&&ai.isIndex(e,t.length):n=="string"&&e in t)?ai.eq(t[e],r):!1}function lit(r){return uW(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,o&&sit(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=t[n];s&&r(e,s,n,a)}return e})}var uit="[object Object]",cit=Function.prototype,fit=Object.prototype,cW=cit.toString,hit=fit.hasOwnProperty,dit=cW.call(Object);function fW(r){if(!ai.isObjectLike(r)||ai.baseGetTag(r)!=uit)return!1;var e=ai.getPrototype(r);if(e===null)return!0;var t=hit.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&cW.call(t)==dit}function pit(r){return function(e,t,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var l=o[++i];if(t(a[l],l,a)===!1)break}return e}}var hW=pit();function bE(r,e,t){(t!==void 0&&!ai.eq(r[e],t)||t===void 0&&!(e in r))&&ai.baseAssignValue(r,e,t)}function dW(r){return ai.isObjectLike(r)&&ai.isArrayLike(r)}function wE(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function vit(r){return ai.copyObject(r,ai.keysIn(r))}function git(r,e,t,n,i,a,o){var s=wE(r,t),l=wE(e,t),u=o.get(l);if(u){bE(r,t,u);return}var c=a?a(s,l,t+"",r,e,o):void 0,f=c===void 0;if(f){var h=ai.isArray(l),d=!h&&ai.isBuffer(l),p=!h&&!d&&ai.isTypedArray(l);c=l,h||d||p?ai.isArray(s)?c=s:dW(s)?c=ai.copyArray(s):d?(f=!1,c=ai.cloneBuffer(l,!0)):p?(f=!1,c=ai.cloneTypedArray(l,!0)):c=[]:fW(l)||ai.isArguments(l)?(c=s,ai.isArguments(s)?c=vit(s):(!ai.isObject(s)||ai.isFunction$1(s))&&(c=ai.initCloneObject(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),bE(r,t,c)}function pW(r,e,t,n,i){r!==e&&hW(e,function(a,o){if(i||(i=new ai.Stack),ai.isObject(a))git(r,e,o,t,pW,n,i);else{var s=n?n(wE(r,o),a,o+"",r,e,i):void 0;s===void 0&&(s=a),bE(r,o,s)}},ai.keysIn)}var Kh=lit(function(r,e,t){pW(r,e,t)}),bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function mit(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var p4={exports:{}},yit=p4.exports,lO;function bit(){return lO||(lO=1,function(r,e){(function(t,n){r.exports=n()})(yit,function(){var t=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",p="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var k=["th","st","nd","rd"],C=D%100;return"["+D+(k[(C-20)%10]||k[C]||k[0])+"]"}},b=function(D,k,C){var I=String(D);return!I||I.length>=k?D:""+Array(k+1-I.length).join(C)+D},w={s:b,z:function(D){var k=-D.utcOffset(),C=Math.abs(k),I=Math.floor(C/60),M=C%60;return(k<=0?"+":"-")+b(I,2,"0")+":"+b(M,2,"0")},m:function D(k,C){if(k.date()<C.date())return-D(C,k);var I=12*(C.year()-k.year())+(C.month()-k.month()),M=k.clone().add(I,f),L=C-M<0,z=k.clone().add(I+(L?-1:1),f);return+(-(I+(C-M)/(L?M-z:z-M))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:d,w:c,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},_="en",x={};x[_]=v;var S="$isDayjsObject",T=function(D){return D instanceof F||!(!D||!D[S])},A=function D(k,C,I){var M;if(!k)return _;if(typeof k=="string"){var L=k.toLowerCase();x[L]&&(M=L),C&&(x[L]=C,M=L);var z=k.split("-");if(!M&&z.length>1)return D(z[0])}else{var N=k.name;x[N]=k,M=N}return!I&&M&&(_=M),M||!I&&_},B=function(D,k){if(T(D))return D.clone();var C=typeof k=="object"?k:{};return C.date=D,C.args=arguments,new F(C)},O=w;O.l=A,O.i=T,O.w=function(D,k){return B(D,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var F=function(){function D(C){this.$L=A(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var k=D.prototype;return k.parse=function(C){this.$d=function(I){var M=I.date,L=I.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var z=M.match(m);if(z){var N=z[2]-1||0,U=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)):new Date(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date(M)}(C),this.init()},k.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},k.$utils=function(){return O},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(C,I){var M=B(C);return this.startOf(I)<=M&&M<=this.endOf(I)},k.isAfter=function(C,I){return B(C)<this.startOf(I)},k.isBefore=function(C,I){return this.endOf(I)<B(C)},k.$g=function(C,I,M){return O.u(C)?this[I]:this.set(M,C)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(C,I){var M=this,L=!!O.u(I)||I,z=O.p(C),N=function(pt,rt){var X=O.w(M.$u?Date.UTC(M.$y,rt,pt):new Date(M.$y,rt,pt),M);return L?X:X.endOf(u)},U=function(pt,rt){return O.w(M.toDate()[pt].apply(M.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(rt)),M)},V=this.$W,G=this.$M,Y=this.$D,Q="set"+(this.$u?"UTC":"");switch(z){case d:return L?N(1,0):N(31,11);case f:return L?N(1,G):N(0,G+1);case c:var yt=this.$locale().weekStart||0,ot=(V<yt?V+7:V)-yt;return N(L?Y-ot:Y+(6-ot),G);case u:case p:return U(Q+"Hours",0);case l:return U(Q+"Minutes",1);case s:return U(Q+"Seconds",2);case o:return U(Q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(C){return this.startOf(C,!1)},k.$set=function(C,I){var M,L=O.p(C),z="set"+(this.$u?"UTC":""),N=(M={},M[u]=z+"Date",M[p]=z+"Date",M[f]=z+"Month",M[d]=z+"FullYear",M[l]=z+"Hours",M[s]=z+"Minutes",M[o]=z+"Seconds",M[a]=z+"Milliseconds",M)[L],U=L===u?this.$D+(I-this.$W):I;if(L===f||L===d){var V=this.clone().set(p,1);V.$d[N](U),V.init(),this.$d=V.set(p,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](U);return this.init(),this},k.set=function(C,I){return this.clone().$set(C,I)},k.get=function(C){return this[O.p(C)]()},k.add=function(C,I){var M,L=this;C=Number(C);var z=O.p(I),N=function(G){var Y=B(L);return O.w(Y.date(Y.date()+Math.round(G*C)),L)};if(z===f)return this.set(f,this.$M+C);if(z===d)return this.set(d,this.$y+C);if(z===u)return N(1);if(z===c)return N(7);var U=(M={},M[s]=n,M[l]=i,M[o]=t,M)[z]||1,V=this.$d.getTime()+C*U;return O.w(V,this)},k.subtract=function(C,I){return this.add(-1*C,I)},k.format=function(C){var I=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var L=C||"YYYY-MM-DDTHH:mm:ssZ",z=O.z(this),N=this.$H,U=this.$m,V=this.$M,G=M.weekdays,Y=M.months,Q=M.meridiem,yt=function(rt,X,et,ut){return rt&&(rt[X]||rt(I,L))||et[X].slice(0,ut)},ot=function(rt){return O.s(N%12||12,rt,"0")},pt=Q||function(rt,X,et){var ut=rt<12?"AM":"PM";return et?ut.toLowerCase():ut};return L.replace(y,function(rt,X){return X||function(et){switch(et){case"YY":return String(I.$y).slice(-2);case"YYYY":return O.s(I.$y,4,"0");case"M":return V+1;case"MM":return O.s(V+1,2,"0");case"MMM":return yt(M.monthsShort,V,Y,3);case"MMMM":return yt(Y,V);case"D":return I.$D;case"DD":return O.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return yt(M.weekdaysMin,I.$W,G,2);case"ddd":return yt(M.weekdaysShort,I.$W,G,3);case"dddd":return G[I.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return pt(N,U,!0);case"A":return pt(N,U,!1);case"m":return String(U);case"mm":return O.s(U,2,"0");case"s":return String(I.$s);case"ss":return O.s(I.$s,2,"0");case"SSS":return O.s(I.$ms,3,"0");case"Z":return z}return null}(rt)||z.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(C,I,M){var L,z=this,N=O.p(I),U=B(C),V=(U.utcOffset()-this.utcOffset())*n,G=this-U,Y=function(){return O.m(z,U)};switch(N){case d:L=Y()/12;break;case f:L=Y();break;case h:L=Y()/3;break;case c:L=(G-V)/6048e5;break;case u:L=(G-V)/864e5;break;case l:L=G/i;break;case s:L=G/n;break;case o:L=G/t;break;default:L=G}return M?L:O.a(L)},k.daysInMonth=function(){return this.endOf(f).$D},k.$locale=function(){return x[this.$L]},k.locale=function(C,I){if(!C)return this.$L;var M=this.clone(),L=A(C,I,!0);return L&&(M.$L=L),M},k.clone=function(){return O.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},D}(),E=F.prototype;return B.prototype=E,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",p]].forEach(function(D){E[D[1]]=function(k){return this.$g(k,D[0],D[1])}}),B.extend=function(D,k){return D.$i||(D(k,F,B),D.$i=!0),B},B.locale=A,B.isDayjs=T,B.unix=function(D){return B(1e3*D)},B.en=x[_],B.Ls=x,B.p={},B})}(p4)),p4.exports}var wit=bit();const _it=m0(wit),xit=ai.useLoginState(ai.pinia),{loginUserInfo:BT}=ai.storeToRefs(xit),Sit=async r=>{var i,a,o,s,l,u,c,f,h,d,p,g,m,y,v,b,w,_,x,S,T,A,B,O,F,E,D,k,C,I,M,L;let e=[];(i=r==null?void 0:r.menuSelect)==null||i.forEach(z=>{});let t="",n;if(r!=null&&r.menuSelect&&(n=await Zh.menuToParent(r==null?void 0:r.menuSelect)),n==null||n.forEach(z=>{var N,U;(z==null?void 0:z.name)===(((U=(N=r==null?void 0:r.groupSelect)==null?void 0:N[0])==null?void 0:U.replaceAll("'",""))??"")&&(t=z==null?void 0:z.id)}),r!=null&&r.menuId){t=r==null?void 0:r.menuId;const z=await ai.getInsofDataApi({id:t}),N=(l=(s=(o=(a=z==null?void 0:z.data)==null?void 0:a.result)==null?void 0:o[0])==null?void 0:s.key)==null?void 0:l.pageKey;n=await Zh.getItemData(N,sessionStorage.getItem("systemKey"),"")}if(t!==""){const z=(f=(c=(u=n==null?void 0:n.find(V=>(V==null?void 0:V.id)===t))==null?void 0:u.compData)==null?void 0:c.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:f.contents;let N=0;z.every(V=>Array.isArray(V))?N=(h=z==null?void 0:z[0])==null?void 0:h.findIndex(V=>{var G,Y,Q;return(V==null?void 0:V.label)===((Q=(Y=(G=r==null?void 0:r.groupSelect)==null?void 0:G[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:Q.replaceAll("]",""))}):N=z==null?void 0:z.findIndex(V=>{var G,Y,Q;return(V==null?void 0:V.label)===((Q=(Y=(G=r==null?void 0:r.groupSelect)==null?void 0:G[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:Q.replaceAll("]",""))}),N===-1&&(N=0);let U=(m=(g=(p=(d=n==null?void 0:n.find(V=>(V==null?void 0:V.id)===t))==null?void 0:d.compData)==null?void 0:p.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:g.contents)==null?void 0:m.map(V=>(V=V==null?void 0:V.filter(G=>!(G!=null&&G.id)),V));if((r==null?void 0:r.filter)!==""){let V={};V[(v=(y=r==null?void 0:r.filter)==null?void 0:y.split("#"))==null?void 0:v[0]]=(w=(b=r==null?void 0:r.filter)==null?void 0:b.split("#"))==null?void 0:w[1];let G=(x=(_=r==null?void 0:r.filter)==null?void 0:_.split("#"))==null?void 0:x[1];G==="@loginUser"&&(G=((S=BT.value)==null?void 0:S.姓名)||((T=BT.value)==null?void 0:T.account)||((A=BT.value)==null?void 0:A.账号));let Y=z==null?void 0:z.findIndex(Q=>{var yt,ot;return(Q==null?void 0:Q.prop)===((ot=(yt=Object.keys(V))==null?void 0:yt[0])==null?void 0:ot.replaceAll("'",""))});U=U==null?void 0:U.filter(Q=>(Q==null?void 0:Q[Y])===G)}if((B=r==null?void 0:r.menuFilter)!=null&&B.find(V=>{var G;return(G=V==null?void 0:V.content)==null?void 0:G.includes("@Condition")})){let V=(D=(E=(F=(O=r==null?void 0:r.menuFilter)==null?void 0:O.find(Y=>{var Q;return(Q=Y==null?void 0:Y.content)==null?void 0:Q.includes("@Condition")}))==null?void 0:F.content)==null?void 0:E.split(":"))==null?void 0:D[1],G=(k=n==null?void 0:n.find(Y=>(Y==null?void 0:Y.id)===t))==null?void 0:k.compData;U=(L=(M=(I=(C=Zh.onConditionContents([G],V))==null?void 0:C[0])==null?void 0:I.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:L.map(Y=>(Y=Y==null?void 0:Y.filter(Q=>!(Q!=null&&Q.id)),Y))}U==null||U.forEach(V=>{e.push({label:V==null?void 0:V[N],value:V==null?void 0:V[N]})})}return e};/**!
2
2
  * Sortable 1.15.6
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
@@ -2,7 +2,7 @@ var oit = Object.defineProperty;
2
2
  var sit = (r, e, t) => e in r ? oit(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var Cr = (r, e, t) => sit(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { i as k9, o as hW, bA as lit, bB as dW, bC as pW, bD as uit, bE as cit, bF as fit, v as hit, bG as vW, bH as dit, bI as pit, h as uO, bJ as vit, bK as git, bL as mit, bM as cO, bN as yit, bO as bit, S as wit, g as _it, s as xit, u as Sit, p as kit, c as D1 } from "./index-CYp77kPp.js";
5
- import { aC as Tit, aD as Cit, p as Ait, aE as Eit, i as Mit, aF as Iit, O as T9 } from "./index.vue_vue_type_style_index_1_lang-CeaEXypd.js";
5
+ import { aC as Tit, aD as Cit, p as Ait, aE as Eit, i as Mit, aF as Iit, O as T9 } from "./index.vue_vue_type_style_index_1_lang-DtRssJWg.js";
6
6
  function Dit(r, e) {
7
7
  return Tit(Cit(r, e, Ait), r + "");
8
8
  }
@@ -1,13 +1,13 @@
1
1
  import { defineAsyncComponent as ne, computed as D, onMounted as z, resolveComponent as le, createBlock as U, openBlock as V, withCtx as ae, resolveDynamicComponent as oe, defineComponent as ue, defineProps as ce, ref as g, watch as ie, reactive as pe } from "vue";
2
2
  import { S as ge } from "./index-BHtNKL1L.js";
3
3
  import { bx as ve, p as he, s as fe, by as Me, g as me } from "./index-CYp77kPp.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DM8to6QE.js";
5
- import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-CeaEXypd.js";
6
- import { s as Ae } from "./index-Bxj1NF8c.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CmdURFaC.js";
5
+ import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-DtRssJWg.js";
6
+ import { s as Ae } from "./index-C3pD8VjA.js";
7
7
  import { useRouter as we } from "vue-router";
8
8
  import { e as Te, g as ke, h as Se, a as De, d as Pe } from "./index-C2usxP_Q.js";
9
- import { g as _e } from "./index-VAoviGiD.js";
10
- const b = ne(() => import("./index-BtktIcJr.js").then((p) => p.j));
9
+ import { g as _e } from "./index--cSKDs-m.js";
10
+ const b = ne(() => import("./index-DZ9voZQn.js").then((p) => p.j));
11
11
  b.install = (p) => {
12
12
  p.component("ssMenu", b);
13
13
  };
@@ -1 +1 @@
1
- "use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-1z9RrjZc.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DDk9QivU.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-D2WqwMCZ.cjs"),le=require("./index-D-aPtE2l.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-CZs4OK7B.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-B-78xMsr.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const U={__name:"index",props:{name:String},setup(v){const a=v,x=s.computed(()=>w.ElIcons[a.name]);return s.onMounted(()=>{}),(T,g)=>{const S=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(S,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(x.value)))]),_:1})}}},ce=s.defineComponent({name:"menu",components:{SvgIcon:ne.SvgIcon,ssMenu:P,DynamicIcon:U,ssDialog:le.ssDialog},setup(){const v=s.defineProps({mode:{type:String,default:"vertical"}}),a=R.useMenuState(),x=R.useModelComp(w.pinia),T=s.ref(0),g=oe.useRouter(),{asideMenus:S,menuTriggerType:V,platform:z}=w.storeToRefs(a),H=s.computed(()=>v==null?void 0:v.mode),B=s.computed(()=>{let e=[...S.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const t=G(e,L.value);return t.isFlag||(e=t==null?void 0:t.data),e}),W=async e=>{x.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},J=async e=>{const t=w.findNodeByPropInTree(B.value,"path",e);a.setActiveAsideMenu(t),x.setRouteToChildPath(""),V.value==="click"?T.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),T.value++},K=e=>{a.setActiveMenuPath(e)},h=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{T.value=1});const L=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>z.value,e=>{e==="browser"?h(k.browserVerticalMenuClasses):e==="client"?(h(k.clientHorizontalMenuClasses),h(k.clientVerticalMenuClasses)):e==="three"&&(h(k.threeHorizontalMenuClasses),h(k.threeVerticalMenuClasses))},{immediate:!0});const j=(e,t)=>{function o(u){u==null||u.forEach(r=>{var f,C;const c=(f=r==null?void 0:r.path)!=null&&f.startsWith("/")?(C=r==null?void 0:r.path)==null?void 0:C.substring(1):r==null?void 0:r.path;r.show=t==null?void 0:t.some(d=>d==null?void 0:d.includes(c)),r.children&&o(r.children)})}return o(e),e},G=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:j(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),I=e=>ue.getComponent(e),Q=s.ref({}),F=s.ref([]),X=async(e,t,o)=>{var C,d,E;if(!(e!=null&&e.structureIds)||((C=e==null?void 0:e.structureIds)==null?void 0:C.length)===0)return;const u=(E=(d=e==null?void 0:e.structureIds)==null?void 0:d.filter(n=>(n==null?void 0:n.key)==="dialogConfig"))==null?void 0:E.map(n=>n==null?void 0:n.id);let r=u==null?void 0:u.map(n=>w.getInsofDataApi({id:n}));const c=await Promise.all(r);if(c==null?void 0:c.every(n=>{var l;return((l=n==null?void 0:n.data)==null?void 0:l.code)===200})){const n=c==null?void 0:c.map(l=>{var _,m,i,A,D,O,N;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(N=(O=(D=(A=l==null?void 0:l.data)==null?void 0:A.result)==null?void 0:D[0])==null?void 0:O.value)==null?void 0:N.pageData}});t==="create"&&(F.value=n),t==="update"&&(F.value=n==null?void 0:n.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var A;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(A=i==null?void 0:i.contents)==null?void 0:A.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},y=s.ref({}),M=s.ref({}),Y=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},b=s.ref({}),$=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},Z=async(e,t)=>{p.type=Y(t==null?void 0:t.operateType),await X(t,p.type,e),M.value=e,b.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):R.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{$(e)})},ee=()=>{p.show=!1},te=e=>e==null?void 0:e.filter(t=>t.allowInherit),se=()=>{var o,u,r,c,f;let e;p.type==="create"&&(e=((o=M.value)==null?void 0:o.path)+"/"+y.value[(u=y.value)==null?void 0:u.prop]),p.type==="update"&&(e=(r=M.value)==null?void 0:r.path);const t={...M.value,config:te((c=M.value)==null?void 0:c.config),children:[],childMenus:[],title:y.value[(f=y.value)==null?void 0:f.prop],path:e};console.log("clickSubmitForm",b.value,M.value,t),$(t),p.show=!1},re=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(r=>r.key==="formContent");t&&(y.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((r,c)=>(r[c.key]=c.value,r.prop=c.key,r),{}))},q=s.ref(!1);return{isCollapse:q,handleMenuCollapse:()=>{q.value=!q.value},handleCompChange:re,dialogForm:Q,dialogRenderComps:F,getComponents:I,clickSubmitForm:se,dialogInfo:p,beforeDialogDestroy:ee,clickMenuIcon:Z,mode:H,renderMenuList:B,clickMenu:W,openMenu:J,closeMenu:K,changeMenuStyle:h}}});exports._sfc_main=ce;exports._sfc_main$1=U;exports.ssMenu=P;
1
+ "use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-1z9RrjZc.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0YQ6oGXD.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs"),le=require("./index-BZtXRbEZ.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-C8W8SOHQ.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-HNf73U8z.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const U={__name:"index",props:{name:String},setup(v){const a=v,x=s.computed(()=>w.ElIcons[a.name]);return s.onMounted(()=>{}),(T,g)=>{const S=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(S,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(x.value)))]),_:1})}}},ce=s.defineComponent({name:"menu",components:{SvgIcon:ne.SvgIcon,ssMenu:P,DynamicIcon:U,ssDialog:le.ssDialog},setup(){const v=s.defineProps({mode:{type:String,default:"vertical"}}),a=R.useMenuState(),x=R.useModelComp(w.pinia),T=s.ref(0),g=oe.useRouter(),{asideMenus:S,menuTriggerType:V,platform:z}=w.storeToRefs(a),H=s.computed(()=>v==null?void 0:v.mode),B=s.computed(()=>{let e=[...S.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const t=G(e,L.value);return t.isFlag||(e=t==null?void 0:t.data),e}),W=async e=>{x.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},J=async e=>{const t=w.findNodeByPropInTree(B.value,"path",e);a.setActiveAsideMenu(t),x.setRouteToChildPath(""),V.value==="click"?T.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),T.value++},K=e=>{a.setActiveMenuPath(e)},h=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{T.value=1});const L=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>z.value,e=>{e==="browser"?h(k.browserVerticalMenuClasses):e==="client"?(h(k.clientHorizontalMenuClasses),h(k.clientVerticalMenuClasses)):e==="three"&&(h(k.threeHorizontalMenuClasses),h(k.threeVerticalMenuClasses))},{immediate:!0});const j=(e,t)=>{function o(u){u==null||u.forEach(r=>{var f,C;const c=(f=r==null?void 0:r.path)!=null&&f.startsWith("/")?(C=r==null?void 0:r.path)==null?void 0:C.substring(1):r==null?void 0:r.path;r.show=t==null?void 0:t.some(d=>d==null?void 0:d.includes(c)),r.children&&o(r.children)})}return o(e),e},G=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:j(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),I=e=>ue.getComponent(e),Q=s.ref({}),F=s.ref([]),X=async(e,t,o)=>{var C,d,E;if(!(e!=null&&e.structureIds)||((C=e==null?void 0:e.structureIds)==null?void 0:C.length)===0)return;const u=(E=(d=e==null?void 0:e.structureIds)==null?void 0:d.filter(n=>(n==null?void 0:n.key)==="dialogConfig"))==null?void 0:E.map(n=>n==null?void 0:n.id);let r=u==null?void 0:u.map(n=>w.getInsofDataApi({id:n}));const c=await Promise.all(r);if(c==null?void 0:c.every(n=>{var l;return((l=n==null?void 0:n.data)==null?void 0:l.code)===200})){const n=c==null?void 0:c.map(l=>{var _,m,i,A,D,O,N;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(N=(O=(D=(A=l==null?void 0:l.data)==null?void 0:A.result)==null?void 0:D[0])==null?void 0:O.value)==null?void 0:N.pageData}});t==="create"&&(F.value=n),t==="update"&&(F.value=n==null?void 0:n.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var A;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(A=i==null?void 0:i.contents)==null?void 0:A.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},y=s.ref({}),M=s.ref({}),Y=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},b=s.ref({}),$=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},Z=async(e,t)=>{p.type=Y(t==null?void 0:t.operateType),await X(t,p.type,e),M.value=e,b.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):R.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{$(e)})},ee=()=>{p.show=!1},te=e=>e==null?void 0:e.filter(t=>t.allowInherit),se=()=>{var o,u,r,c,f;let e;p.type==="create"&&(e=((o=M.value)==null?void 0:o.path)+"/"+y.value[(u=y.value)==null?void 0:u.prop]),p.type==="update"&&(e=(r=M.value)==null?void 0:r.path);const t={...M.value,config:te((c=M.value)==null?void 0:c.config),children:[],childMenus:[],title:y.value[(f=y.value)==null?void 0:f.prop],path:e};console.log("clickSubmitForm",b.value,M.value,t),$(t),p.show=!1},re=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(r=>r.key==="formContent");t&&(y.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((r,c)=>(r[c.key]=c.value,r.prop=c.key,r),{}))},q=s.ref(!1);return{isCollapse:q,handleMenuCollapse:()=>{q.value=!q.value},handleCompChange:re,dialogForm:Q,dialogRenderComps:F,getComponents:I,clickSubmitForm:se,dialogInfo:p,beforeDialogDestroy:ee,clickMenuIcon:Z,mode:H,renderMenuList:B,clickMenu:W,openMenu:J,closeMenu:K,changeMenuStyle:h}}});exports._sfc_main=ce;exports._sfc_main$1=U;exports.ssMenu=P;