ss-component-new 1.2.239 → 1.2.240

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 (94) hide show
  1. package/dist/{MTLLoader-Dty52Kos.cjs → MTLLoader-BK7sCOKw.cjs} +1 -1
  2. package/dist/{MTLLoader-ZOJJ-Zca.js → MTLLoader-UTEzRiYH.js} +1 -1
  3. package/dist/{OrbitControls-fz1Q5z4o.js → OrbitControls-C4wOEoH5.js} +1 -1
  4. package/dist/{OrbitControls-B0AMmpiE.cjs → OrbitControls-DmVBM-Ud.cjs} +1 -1
  5. package/dist/{URDFLoader-Ancz7QVZ.cjs → URDFLoader-77AvV0WM.cjs} +1 -1
  6. package/dist/{URDFLoader-C3_kHBTh.js → URDFLoader-BAxsZiFV.js} +2 -2
  7. package/dist/{animationData-JHXk_SMb.js → animationData-DsDrgxIs.js} +1 -1
  8. package/dist/{animationData-D7z6SN34.cjs → animationData-DxQeR3lW.cjs} +1 -1
  9. package/dist/{array-B8jfTWdr.js → array-_9dR-jfG.js} +1 -1
  10. package/dist/{array-mOhrKMKc.cjs → array-gHdd6OE5.cjs} +1 -1
  11. package/dist/{iconfont-DeLrM3NF.js → iconfont-CCjP-T1w.js} +2 -2
  12. package/dist/{iconfont-Qm8bQNiI.cjs → iconfont-D4hZ8lQB.cjs} +1 -1
  13. package/dist/{index-mPCjoZzL.cjs → index-3a_FFP1r.cjs} +1 -1
  14. package/dist/{index-6cQWf9lg.cjs → index-B-ill49l.cjs} +1 -1
  15. package/dist/{index-DXc6VP0-.js → index-B4NaFshT.js} +1 -1
  16. package/dist/{index-DXahvDht.cjs → index-BGkKKMYM.cjs} +1 -1
  17. package/dist/{index-D9uP-j_f.js → index-BHB8_puL.js} +1 -1
  18. package/dist/{index-VXn4QQ6h.cjs → index-BHWo4qfG.cjs} +1 -1
  19. package/dist/{index-BLrtNHJw.cjs → index-BKj0fzZy.cjs} +1 -1
  20. package/dist/{index-BYyAqV5J.cjs → index-BOUCjrkn.cjs} +1 -1
  21. package/dist/{index-DW06_6Us.js → index-Bj_A0R0A.js} +3 -3
  22. package/dist/{index-DjD-V1yP.js → index-Bp-OGSaz.js} +7 -7
  23. package/dist/{index-CSoBuWPq.js → index-BpVqG5KK.js} +3 -3
  24. package/dist/{index-CaQkGd4w.cjs → index-ByAwqXPJ.cjs} +1 -1
  25. package/dist/{index-Cun2oG5e.js → index-C0EnW_nv.js} +4 -4
  26. package/dist/{index-Bt7zboia.js → index-CCBlxpGn.js} +1 -1
  27. package/dist/{index-C-GYH2e-.cjs → index-CEJrI-Nt.cjs} +1 -1
  28. package/dist/{index-CLIohYt2.cjs → index-COT_roXg.cjs} +1 -1
  29. package/dist/index-CQ52Awk5.js +4276 -0
  30. package/dist/{index-XAZJKL25.cjs → index-C_2bhy1j.cjs} +1 -1
  31. package/dist/{index-305au7cl.cjs → index-CjQ-w88j.cjs} +1 -1
  32. package/dist/{index-TnYAZpgF.js → index-CkKef9Xg.js} +2 -2
  33. package/dist/{index-DIv-wtkN.js → index-CmOyLg9f.js} +8 -8
  34. package/dist/{index--9gCNgdE.js → index-CqjjUEYP.js} +1 -1
  35. package/dist/{index-Ds4CAs9m.js → index-Csu4kumc.js} +4 -4
  36. package/dist/index-Cth3DRog.cjs +13 -0
  37. package/dist/{index-RBfbRP89.js → index-D-WFV7eu.js} +1 -1
  38. package/dist/{index-CB9123Ca.cjs → index-D5-t4UZk.cjs} +1 -1
  39. package/dist/{index-B7dQMnVH.js → index-D9L82EwE.js} +2 -2
  40. package/dist/{index-C_fnYWIg.cjs → index-DC2dPfGE.cjs} +1 -1
  41. package/dist/{index-BAahUD8z.cjs → index-DCCxsNGw.cjs} +1 -1
  42. package/dist/{index-DSmWhHh1.js → index-DFSBb_Up.js} +1 -1
  43. package/dist/{index-Y-qD2EKj.js → index-DNZm-g41.js} +1 -1
  44. package/dist/{index-B_R-9InB.cjs → index-DhWSyYn_.cjs} +1 -1
  45. package/dist/{index-CRoEK_jP.cjs → index-DrKyipWO.cjs} +1 -1
  46. package/dist/{index-CF8aoT7d.js → index-GCsmhk7R.js} +1 -1
  47. package/dist/{index-FjrBXhOF.js → index-IV9zWUQN.js} +1 -1
  48. package/dist/{index-DOCcOmco.js → index-JVlLPF3o.js} +1 -1
  49. package/dist/{index-D7CfJNBg.cjs → index-LSc_D7Br.cjs} +1 -1
  50. package/dist/{index-BwoWLLrS.cjs → index-QrPmlKwo.cjs} +1 -1
  51. package/dist/{index-cVN315Aw.cjs → index-Rsl-9SHE.cjs} +1 -1
  52. package/dist/{index-CL_SJFfm.js → index-WUwZkGTy.js} +4 -4
  53. package/dist/{index-BGQxV1Z0.js → index-YClaEzon.js} +1 -1
  54. package/dist/{index-BO9Xirjz.js → index-cajHEMXA.js} +16 -16
  55. package/dist/{index-CqcIJB7l.cjs → index-dP_btubw.cjs} +1 -1
  56. package/dist/{index-CIkvZBU9.cjs → index-frLe3S9h.cjs} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B--yNtf1.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DQlBopIf.js} +6 -6
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Ceu3XjdH.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-FomZb4vY.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D1EZRqgB.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B_ZyoH-c.cjs} +40 -40
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-oA5S09l2.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6Ct13p6.js} +1008 -1013
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-BmGjawag.js → index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-BzowNu9E.js} +4 -4
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-DNL_YdS9.cjs → index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-DZHKXyL_.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_style_index_1_lang-CDkVExU4.cjs → index.vue_vue_type_style_index_1_lang-CcCJPXIe.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_1_lang-CmRU0NlU.js → index.vue_vue_type_style_index_1_lang-DZE35KJA.js} +3 -3
  65. package/dist/{main-B7qUb3OO.js → main-BZ1jv6xE.js} +3 -3
  66. package/dist/{main-CzJfiOuQ.cjs → main-CWD_I3fY.cjs} +1 -1
  67. package/dist/ss-component.cjs +1 -1
  68. package/dist/ss-component.css +1 -1
  69. package/dist/ss-component.js +9 -9
  70. package/dist/ss-component2.cjs +1 -1
  71. package/dist/ss-component2.js +10 -10
  72. package/dist/{threeModel-B-WiRZsP.js → threeModel-CgO4hMA7.js} +4 -4
  73. package/dist/{threeModel-9244RH82.cjs → threeModel-DQL1qjlJ.cjs} +1 -1
  74. package/dist/{threePreview-CDVWPPqC.js → threePreview-NRT3zSEh.js} +3 -3
  75. package/dist/{threePreview-Cs-fXU15.cjs → threePreview-tIv-KGBG.cjs} +1 -1
  76. package/dist/{threeSceneView-D-QgnVtZ.cjs → threeSceneView-B1nFHsgF.cjs} +1 -1
  77. package/dist/{threeSceneView-BIVFCX44.js → threeSceneView-ftUAfAK7.js} +8 -8
  78. package/dist/{threeSceneViewForCPMPIP-CP4Z7-ku.cjs → threeSceneViewForCPMPIP-8ezFd1ZK.cjs} +1 -1
  79. package/dist/{threeSceneViewForCPMPIP-l_jYJCJ1.js → threeSceneViewForCPMPIP-CwJWPro2.js} +7 -7
  80. package/dist/{threeTrackPathView-DMTFKySx.cjs → threeTrackPathView-DmKEVnaj.cjs} +1 -1
  81. package/dist/{threeTrackPathView-CMTtFQwo.js → threeTrackPathView-SF7nRPxQ.js} +3 -3
  82. package/dist/{threeViewerHost-AibV8TLI.cjs → threeViewerHost-BQ2Nydiz.cjs} +1 -1
  83. package/dist/{threeViewerHost-CSfITlTw.js → threeViewerHost-EYzWF2vO.js} +2 -2
  84. package/dist/{urdfTree-Bg_hGuBV.js → urdfTree-2wTWJ6Bj.js} +1 -1
  85. package/dist/{urdfTree-C5RSefmZ.cjs → urdfTree-Dboa3l9g.cjs} +1 -1
  86. package/dist/{workpieceTreePanel-DxjKBScf.js → workpieceTreePanel-BGGioqup.js} +4 -4
  87. package/dist/{workpieceTreePanel-CGYnW5xz.cjs → workpieceTreePanel-DM1pjPI1.cjs} +1 -1
  88. package/package.json +1 -1
  89. package/dist/index-BnD8y-0W.cjs +0 -1
  90. package/dist/index-C-X7YmVi.js +0 -3722
  91. package/dist/obj/model.mtl +0 -42
  92. package/dist/obj/model.obj +0 -26110
  93. package/public/obj/model.mtl +0 -42
  94. package/public/obj/model.obj +0 -26110
@@ -1 +0,0 @@
1
- "use strict";const l=require("vue"),N=require("./index-DOItJqcJ.cjs"),ce=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D1EZRqgB.cjs"),kl=require("./index-VXn4QQ6h.cjs"),Nr=require("./threeViewerHost-AibV8TLI.cjs"),wa=require("./index-CXC0u8pm.cjs"),en=require("./index.vue_vue_type_style_index_1_lang-CDkVExU4.cjs"),Ua=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),la=require("./index-CqcIJB7l.cjs");require("./index-KaxOq1_-.cjs");const Dr=require("./isString-Do5yyRUw.cjs"),Ba=W=>W.match(/\((.*)\)/)[1],Er={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(W){const te=W,oe=l.ref(null),z=l.ref(!1),V=l.ref(null);return l.watch(()=>te==null?void 0:te.isVisible,()=>{z.value=te==null?void 0:te.isVisible},{deep:!0,immediate:!0}),l.watch(()=>V.value,()=>{l.nextTick(()=>{var s,de;(de=(s=oe.value)==null?void 0:s.updatePopper)==null||de.call(s)})},{deep:!0,immediate:!0}),(s,de)=>{const Be=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(Be,{visible:z.value,title:te==null?void 0:te.title,placement:te==null?void 0:te.placement,width:te==null?void 0:te.width,ref_key:"popOverRef",ref:oe},{reference:l.withCtx(()=>[l.createElementVNode("div",null,[l.renderSlot(s.$slots,"reference",{ref_key:"referenceRef",ref:V})])]),default:l.withCtx(()=>[l.createElementVNode("div",null,[l.renderSlot(s.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},ln={key:0,class:"extra-button-content"},an={class:"table-operator-wrap"},rn={key:0,class:"extra-button-filter"},on={class:"form-content-value"},nn={key:1,class:"extra-header"},sn={class:"drop-menu",style:{width:"120px"}},un={key:0},cn={key:1},tn={key:1,class:"extra-button-content tabs-button-wrapper"},dn={class:"table-operator-wrap"},pn={class:"extra-button-filter"},fn={class:"form-content-value"},hn={key:0,class:"extra-header"},yn={class:"drop-menu",style:{width:"120px"}},vn={key:0},gn={key:1},bn={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(W,{emit:te}){const oe=te,z=W,V=l.ref(""),s=l.ref(!1),de=l.ref([]),Be=l.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),qe=[{label:"新增",icon:"Plus"},{label:"导入",icon:"import"},{label:"导出",icon:"export"},{label:"OCR识别",icon:"ocr"}],Oe=fe=>{const Pe=fe.raw;if(!Pe)return;const Ge=new FileReader;Ge.onload=he=>{try{const Qe=new Uint8Array(he.target.result),He=ce.readSync(Qe,{type:"array"}),Kl=He.SheetNames[0],ne=He.Sheets[Kl],X=ce.utils.decode_range(ne["!ref"]).e.c+1,Y=new Array(X).fill(""),E=[];for(const Q in ne){if(Q[0]==="!")continue;const{r:be,c:Fe}=ce.utils.decode_cell(Q);let Ze=ne[Q].v;if(ne[Q].t==="n"&&Ze>0&&Ze<1e6&&(Ze=new Date((Ze-25569)*86400*1e3).toISOString().split("T")[0]),(Ze==null||Ze==="")&&(Ze=""),be===0)Y[Fe]=Ze;else{if(!E[be-1]){E[be-1]={};for(let Ll=0;Ll<X;Ll++)E[be-1][`col_${Ll}`]=""}E[be-1][`col_${Fe}`]=Ze}}for(let Q=0;Q<X;Q++)Y[Q]===void 0&&(Y[Q]="");const Ve=E==null?void 0:E[0];if(!(Ve!=null&&Ve.hasOwnProperty("col_0")))return N.ElMessage.error("导入的数据列不匹配,请检查是否错位");oe("getImportData",Y,E)}catch(Qe){throw N.ElMessage.error(Qe.message),new Error(Qe.message)}},Ge.readAsArrayBuffer(Pe)},ml=fe=>{var Ge;const Pe=(Ge=de.value)==null?void 0:Ge.reduce((he,Qe,He)=>(He===0?he[Qe.label]=fe:he[Qe.label]=Qe==null?void 0:Qe.value,he),{});oe("filter",Pe,fe,!0)},Ul=fe=>{oe("buttonClick",fe)},Rl=fe=>{var Pe,Ge;de.value=(Ge=(Pe=ce.getColumnChild(N.cloneDeep(fe)))==null?void 0:Pe.filter(he=>(he==null?void 0:he.label)!==""&&(he==null?void 0:he.label)!=="操作"))==null?void 0:Ge.map(he=>({label:(he==null?void 0:he.label)??"",value:"",name:(he==null?void 0:he.label)??"",isFormColHidden:he==null?void 0:he.isTableColHidden,width:2}))},Fl=l.ref(!1),Gl=fe=>{var Pe;if((fe==null?void 0:fe.buttonName)==="确认"&&(oe("filter",fe==null?void 0:fe.content),Fl.value=(fe==null?void 0:fe.content)&&Object.values(fe==null?void 0:fe.content).length>0),(fe==null?void 0:fe.buttonName)==="清空"){const Ge=N.cloneDeep(fe==null?void 0:fe.content);for(const he in Ge)Ge[he]="";de.value=(Pe=de.value)==null?void 0:Pe.map(he=>({...he,value:""})),oe("filter",Ge),Fl.value=!1}s.value=!1},Xl=()=>{var Pe,Ge;de.value=(Pe=de.value)==null?void 0:Pe.map(he=>({...he,value:""}));const fe=(Ge=de.value)==null?void 0:Ge.reduce((he,Qe)=>(he[Qe.label]=Qe.value,he),{});oe("filter",fe)};return l.onMounted(()=>{Rl(z.columns)}),l.watch(()=>z.columns,()=>{Rl(z.columns)},{deep:!0,immediate:!0}),(fe,Pe)=>{var ne,Ue,X,Y;const Ge=l.resolveComponent("el-icon"),he=l.resolveComponent("svg-icon"),Qe=l.resolveComponent("el-input"),He=l.resolveComponent("el-button"),Kl=l.resolveComponent("el-upload");return W.pageLayout==="vertical"?(l.openBlock(),l.createElementBlock("div",ln,[l.createElementVNode("div",{class:l.normalizeClass(W.compName?"table-name-wrap":""),style:l.normalizeStyle({background:(z==null?void 0:z.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((z==null?void 0:z.level)-1)*12+"px",fontWeight:600-((z==null?void 0:z.level)-1)*100>=400?600-((z==null?void 0:z.level)-1)*100:400,fontSize:17-(z==null?void 0:z.level)>=14?17-(z==null?void 0:z.level)+"px":"14px"})},l.toDisplayString(W.compName),7),l.createElementVNode("div",an,[z!=null&&z.filterShow?(l.openBlock(),l.createElementBlock("div",rn,[l.createVNode(Er,{title:"",width:800,placement:"bottom-start",isVisible:s.value},{reference:l.withCtx(()=>{var E,Ve,Q,be;return[l.createVNode(Qe,{modelValue:V.value,"onUpdate:modelValue":Pe[1]||(Pe[1]=Fe=>V.value=Fe),style:{"min-width":"80px"},placeholder:Fl.value?(Q=(Ve=(E=W.filterValues)==null?void 0:E.filter(Fe=>Fe))==null?void 0:Ve.slice(0,3))==null?void 0:Q.join("/"):"搜索","prefix-icon":l.unref(N.search_default),clearable:"",onInput:ml,disabled:((be=de.value)==null?void 0:be.length)===0},{suffix:l.withCtx(()=>{var Fe,Ze;return[!V.value&&((Ze=(Fe=W.filterValues)==null?void 0:Fe.filter(Ll=>Ll))!=null&&Ze.join("/"))?(l.openBlock(),l.createBlock(Ge,{key:0,style:{cursor:"pointer"},onClick:Xl},{default:l.withCtx(()=>[l.createVNode(l.unref(N.circle_close_default))]),_:1})):l.createCommentVNode("",!0)]}),append:l.withCtx(()=>[l.createElementVNode("span",{title:"条件查询",onClick:Pe[0]||(Pe[0]=Fe=>s.value=!s.value)},[l.createVNode(he,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:l.withCtx(()=>[l.createElementVNode("div",on,[(l.openBlock(),l.createBlock(kl.ssForm,{rowContents:de.value,buttonValue:Be.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:Be.value,isStartJustify:!1,onOnButtonClick:Gl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])):l.createCommentVNode("",!0),W.buttons&&((ne=W.buttons)==null?void 0:ne.length)>0?(l.openBlock(),l.createElementBlock("div",nn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((Ue=W.buttons)==null?void 0:Ue.filter(E=>W.isDevMode||(E==null?void 0:E.label)!=="修改模板"),(E,Ve)=>(l.openBlock(),l.createElementBlock("div",{class:"extra-contents",key:Ve},[(E==null?void 0:E.type)==="upload"?(l.openBlock(),l.createBlock(Kl,{key:0,class:"upload-button-wrap","on-change":Oe,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!W.lockingPage},{default:l.withCtx(()=>[l.createVNode(He,{disabled:!!W.lockingPage,style:l.normalizeStyle({background:(E==null?void 0:E.background)??"var(--ssbutton-theme-bg)",color:(E==null?void 0:E.color)??"var(--ssbutton-theme-color)"})},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(E==null?void 0:E.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):l.createCommentVNode("",!0),(E==null?void 0:E.type)==="popover"?(l.openBlock(),l.createBlock(kl._sfc_main,{key:1},{dropTitle:l.withCtx(()=>[(E==null?void 0:E.type)==="popover"?(l.openBlock(),l.createBlock(He,{key:0,disabled:!!W.lockingPage,style:l.normalizeStyle({background:(E==null?void 0:E.background)??"var(--ssbutton-theme-bg)",color:(E==null?void 0:E.color)??"var(--ssbutton-theme-color)"})},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(E==null?void 0:E.label),1)]),_:2},1032,["disabled","style"])):l.createCommentVNode("",!0)]),dropMenu:l.withCtx(()=>[l.createElementVNode("div",sn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(E==null?void 0:E.contents,Q=>(l.openBlock(),l.createBlock(He,{key:Q==null?void 0:Q.label,disabled:!!W.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:be=>Ul(Q==null?void 0:Q.label)},{default:l.withCtx(()=>{var be,Fe;return[l.createTextVNode(l.toDisplayString(Q==null?void 0:Q.label),1),(be=Q==null?void 0:Q.label)!=null&&be.includes("选中")?(l.openBlock(),l.createElementBlock("span",un,"("+l.toDisplayString(W.selectNums)+")",1)):l.createCommentVNode("",!0),(Fe=Q==null?void 0:Q.label)!=null&&Fe.includes("全部")?(l.openBlock(),l.createElementBlock("span",cn,"("+l.toDisplayString(W.dataNums)+")",1)):l.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):l.createCommentVNode("",!0),E!=null&&E.type?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(He,{key:2,id:"themeButton",disabled:!!W.lockingPage,style:l.normalizeStyle({background:(E==null?void 0:E.background)??"var(--ssbutton-theme-bg)",color:(E==null?void 0:E.color)??"var(--ssbutton-theme-color)"}),onClick:Q=>Ul(E==null?void 0:E.label)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(E==null?void 0:E.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):l.createCommentVNode("",!0)])])):(l.openBlock(),l.createElementBlock("div",tn,[l.createElementVNode("div",dn,[l.createElementVNode("div",pn,[l.createVNode(Er,{title:"",width:800,placement:"bottom-start",isVisible:s.value},{reference:l.withCtx(()=>{var E,Ve,Q,be;return[l.createVNode(Qe,{modelValue:V.value,"onUpdate:modelValue":Pe[3]||(Pe[3]=Fe=>V.value=Fe),style:{"min-width":"80px"},placeholder:Fl.value?(Q=(Ve=(E=W.filterValues)==null?void 0:E.filter(Fe=>Fe))==null?void 0:Ve.slice(0,3))==null?void 0:Q.join("/"):"搜索","prefix-icon":l.unref(N.search_default),clearable:"",onInput:ml,disabled:((be=de.value)==null?void 0:be.length)===0},{suffix:l.withCtx(()=>{var Fe,Ze;return[!V.value&&((Ze=(Fe=W.filterValues)==null?void 0:Fe.filter(Ll=>Ll))!=null&&Ze.join("/"))?(l.openBlock(),l.createBlock(Ge,{key:0,style:{cursor:"pointer"},onClick:Xl},{default:l.withCtx(()=>[l.createVNode(l.unref(N.circle_close_default))]),_:1})):l.createCommentVNode("",!0)]}),append:l.withCtx(()=>[l.createElementVNode("span",{title:"条件查询",onClick:Pe[2]||(Pe[2]=Fe=>s.value=!s.value)},[l.createVNode(he,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:l.withCtx(()=>[l.createElementVNode("div",fn,[(l.openBlock(),l.createBlock(kl.ssForm,{rowContents:de.value,buttonValue:Be.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:Be.value,isStartJustify:!1,onOnButtonClick:Gl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),W.buttons&&((X=W.buttons)==null?void 0:X.length)>0?(l.openBlock(),l.createElementBlock("div",hn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((Y=W.buttons)==null?void 0:Y.filter(E=>W.isDevMode||(E==null?void 0:E.label)!=="修改模板"),(E,Ve)=>(l.openBlock(),l.createElementBlock("div",{class:"extra-contents",key:Ve},[(E==null?void 0:E.type)==="upload"?(l.openBlock(),l.createBlock(Kl,{key:0,class:"upload-button-wrap","on-change":Oe,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:l.withCtx(()=>[l.createVNode(He,{style:{background:"transparent",color:"#666666"}},{icon:l.withCtx(()=>{var Q;return[l.createVNode(he,{name:(Q=qe==null?void 0:qe.find(be=>(be==null?void 0:be.label)===(E==null?void 0:E.label)))==null?void 0:Q.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(E==null?void 0:E.label),1)]),_:2},1024)]),_:2},1024)):l.createCommentVNode("",!0),(E==null?void 0:E.type)==="popover"?(l.openBlock(),l.createBlock(kl._sfc_main,{key:1},{dropTitle:l.withCtx(()=>[(E==null?void 0:E.type)==="popover"?(l.openBlock(),l.createBlock(He,{key:0,style:{background:"transparent",color:"#666666"}},{icon:l.withCtx(()=>{var Q;return[l.createVNode(he,{name:(Q=qe==null?void 0:qe.find(be=>(be==null?void 0:be.label)===(E==null?void 0:E.label)))==null?void 0:Q.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(E==null?void 0:E.label),1)]),_:2},1024)):l.createCommentVNode("",!0)]),dropMenu:l.withCtx(()=>[l.createElementVNode("div",yn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(E==null?void 0:E.contents,Q=>(l.openBlock(),l.createBlock(He,{key:Q==null?void 0:Q.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:be=>Ul(Q==null?void 0:Q.label)},{default:l.withCtx(()=>{var be,Fe;return[l.createTextVNode(l.toDisplayString(Q==null?void 0:Q.label),1),(be=Q==null?void 0:Q.label)!=null&&be.includes("选中")?(l.openBlock(),l.createElementBlock("span",vn,"("+l.toDisplayString(W.selectNums)+")",1)):l.createCommentVNode("",!0),(Fe=Q==null?void 0:Q.label)!=null&&Fe.includes("全部")?(l.openBlock(),l.createElementBlock("span",gn,"("+l.toDisplayString(W.dataNums)+")",1)):l.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):l.createCommentVNode("",!0),E!=null&&E.type?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(He,{key:2,id:"themeButton",style:l.normalizeStyle({background:"transparent",color:(E==null?void 0:E.label)==="新增"?"var(--ssbutton-theme-bg)":"#666666"}),onClick:Q=>Ul(E==null?void 0:E.label)},{icon:l.withCtx(()=>{var Q;return[l.createVNode(he,{name:(Q=qe==null?void 0:qe.find(be=>(be==null?void 0:be.label)===(E==null?void 0:E.label)))==null?void 0:Q.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(E==null?void 0:E.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):l.createCommentVNode("",!0)])]))}}},kn=Ua._export_sfc(bn,[["__scopeId","data-v-03b0d8fa"]]),mn=l.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(W,{emit:te}){const oe=W,z=te,V=de=>{z("buttonClick",de)},s=de=>{var Be;return de!=null&&de.includes("删除")?((Be=oe.selectTableItems)==null?void 0:Be.length)>0?"warning-active-type":"warning-type":"default-type"};return(de,Be)=>{const qe=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(W.buttons,Oe=>(l.openBlock(),l.createBlock(qe,{key:Oe==null?void 0:Oe.label,disabled:!!W.lockingPage,class:l.normalizeClass(s(Oe==null?void 0:Oe.label)),onClick:ml=>V(Oe==null?void 0:Oe.label)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(Oe==null?void 0:Oe.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),Sn=Ua._export_sfc(mn,[["__scopeId","data-v-70b12973"]]),Tr=N.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(W){this.selectArray=W},setSelectString(W){this.selectString=W}}}),Cn={class:"calculator-content"},xn={class:"calculator-child"},_n={class:"calculator-child"},An=l.defineComponent({__name:"calculator",setup(W){const te=l.ref(),oe=l.ref();return l.onMounted(()=>{te.value=[{type:"Upload",label:"输入",name:"input"}],oe.value=[{type:"Upload",label:"输出",name:"output"}]}),(z,V)=>(l.openBlock(),l.createElementBlock("div",Cn,[l.createElementVNode("div",xn,[l.createVNode(kl.ssForm,{rowContents:te.value,isRowFlex:!0},null,8,["rowContents"])]),l.createElementVNode("div",_n,[l.createVNode(kl.ssForm,{rowContents:oe.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Nn=Ua._export_sfc(An,[["__scopeId","data-v-73db0fe7"]]),Qa=(W,te)=>{let oe=W,z=te;return Array.isArray(oe)&&(oe=oe==null?void 0:oe.map((V,s)=>{if(Array.isArray(V)){let de={};return V=V==null?void 0:V.forEach((Be,qe)=>{var Oe;(Oe=z==null?void 0:z[qe])!=null&&Oe.prop?de[z[qe].prop]=Be:Array.isArray(Be)&&(de.children=Qa(Be,z))}),Object.assign(de,{id:s})}else return V})),oe},wr=(W,te,oe)=>{let z=W,V=te;return z=z==null?void 0:z.map((s,de)=>{var Be,qe;return!Array.isArray(s)||!((Be=V==null?void 0:V[de])!=null&&Be.label)&&!oe||(s.unshift(((qe=V==null?void 0:V[de])==null?void 0:qe.label)??""),s.some(Oe=>Array.isArray(Oe))&&(s=s==null?void 0:s.map(Oe=>{var ml;return Array.isArray(Oe)&&(Oe=wr(Oe,(ml=V==null?void 0:V[de])==null?void 0:ml.children,oe)),Oe}))),s}),z},Dn=(W,te,oe)=>{if(te==="")return W==null?void 0:W.filter(z=>(z==null?void 0:z.id)!==oe);{const z=te.split("-");return En(W,z,oe)}},En=(W,te,oe)=>{let z=W,V=te;return(V==null?void 0:V.length)===0?z=z==null?void 0:z.filter(s=>s.id!==oe):z=z==null?void 0:z.map(s=>(s.id.toString()===(V==null?void 0:V[0])&&(V==null||V.shift(),s=Br(s,V,oe)),s)),z},Br=(W,te,oe)=>{var s,de;let z=W,V=te;return(V==null?void 0:V.length)===0?z.children=(s=z.children)==null?void 0:s.filter(Be=>Be.id!==oe):z.children=(de=z.children)==null?void 0:de.map(Be=>(Be.id.toString()===(V==null?void 0:V[0])&&(V==null||V.shift(),Be=Br(Be,V,oe)),Be)),z},Tn=(W,te,oe)=>{if(te==="")return oe;{const z=te.split("-");return wn(W,z,oe)}},wn=(W,te,oe)=>{let z=W,V=te;return(V==null?void 0:V.length)===0?z=oe:z=z==null?void 0:z.map(s=>(s.id.toString()===(V==null?void 0:V[0])&&(V==null||V.shift(),s=Or(s,V,oe)),s)),z},Or=(W,te,oe)=>{var s;let z=W,V=te;return(V==null?void 0:V.length)===0?z.children=oe:z.children=(s=z.children)==null?void 0:s.map(de=>(de.id.toString()===(V==null?void 0:V[0])&&(V==null||V.shift(),de=Or(de,V,oe)),de)),z},Ur=N.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(W){this.objUrl=W},setBlobUrls(W){this.blobUrls=W}}}),Oa=async(W,te)=>{var de,Be,qe,Oe,ml,Ul,Rl,Fl,Gl,Xl,fe,Pe,Ge,he,Qe,He,Kl;let oe=(Be=(de=N.cloneDeep(W))==null?void 0:de.optionUrl)==null?void 0:Be.menuSelect,z=[];oe==null||oe.forEach(ne=>{});let V="",s=await ce.menuToParent(oe);if(s==null||s.forEach(ne=>{var Ue,X,Y,E;(ne==null?void 0:ne.name)===(((E=(Y=(X=(Ue=N.cloneDeep(W))==null?void 0:Ue.optionUrl)==null?void 0:X.groupSelect)==null?void 0:Y[0])==null?void 0:E.replaceAll("'",""))??"")&&(V=ne==null?void 0:ne.id)}),te){V=te;const ne=await N.getInsofDataApi({id:V}),Ue=(Ul=(ml=(Oe=(qe=ne==null?void 0:ne.data)==null?void 0:qe.result)==null?void 0:Oe[0])==null?void 0:ml.key)==null?void 0:Ul.pageKey;s=await ce.getItemData(Ue,sessionStorage.getItem("systemKey"),"")}if(V!==""){let ne;te?ne=(Rl=s==null?void 0:s.find(Y=>(Y==null?void 0:Y.id)===te))==null?void 0:Rl.compData:ne=(Fl=s==null?void 0:s.find(Y=>{var E,Ve,Q,be;return(Y==null?void 0:Y.name)===(((Ve=(E=W==null?void 0:W.groupSelect)==null?void 0:E.split(":"))==null?void 0:Ve[0])||((be=(Q=W==null?void 0:W.optionUrl)==null?void 0:Q.groupSelect)==null?void 0:be[0]))}))==null?void 0:Fl.compData;let Ue=(Xl=(Gl=ne==null?void 0:ne.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Gl.contents)==null?void 0:Xl.map(Y=>Y==null?void 0:Y.label);(Pe=(fe=ne==null?void 0:ne.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:fe.contents)!=null&&Pe.every(Y=>Array.isArray(Y))&&(Ue=(Qe=ce.getColumnChild((he=(Ge=ne==null?void 0:ne.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Ge.contents)==null?void 0:he[0]))==null?void 0:Qe.map(Y=>Y==null?void 0:Y.prop));let X=(Kl=(He=ne==null?void 0:ne.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:He.contents)==null?void 0:Kl.map(Y=>{if(Array.isArray(Y))Y=Y==null?void 0:Y.filter(E=>!(E!=null&&E.id));else{let E={};for(let Ve in Y)Ve!=="id"&&(E[Ve]=Y==null?void 0:Y[Ve]);Y=E}return Y});X==null||X.forEach(Y=>{Array.isArray(Y)?z.push(ce.getValueToObjectValue(Y,Ue)):z.push(Y)})}return z},Bn={class:"table-content"},On={class:"menu-config-wrap"},Un=["onClick"],Ln={key:0,class:"viewport-wrap"},jn=["onClick"],Pn={title:"选择显示列信息"},$n={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},Mn=["title"],Rn={class:"col-operate-wrap"},Fn={key:0,class:"col-operate-radio-wrapper"},Kn={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},zn={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},Vn={class:"pop-view"},qn={class:"pop-wrapper"},Jn={class:"file-list-pop"},Wn=["title","onClick"],Gn=["onClick"],Hn=["onClick"],Qn={class:"form-content"},Xn={key:0,class:"dialog-footer"},Yn={class:"dialog-footer"},Zn={"element-loading-text":"正在识别中 请稍后"},In={style:{display:"flex","justify-content":"space-between",width:"100%","align-items":"center"}},ei=["title"],li={class:"icon",style:{display:"flex",gap:"8px"}},ai={class:"dialog-footer"},ri={class:"ocr-preview-content"},oi={class:"ocr-preview-tip"},ni={class:"ocr-preview-table"},ii={style:{display:"flex","align-items":"center",gap:"8px"}},si={class:"dialog-footer"},ui={class:"form-content"},ci={__name:"index",props:{pageLayout:{type:String,default:"vertical"},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!1},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(W,{emit:te}){var Sr;const oe=l.ref([]),z=Ur(N.pinia),V=l.ref(null),s=W,de=l.ref(s==null?void 0:s.allowSelect),Be=l.ref((Sr=s==null?void 0:s.config)==null?void 0:Sr.showIndex),qe=l.ref(),Oe=l.ref(!0),ml=l.ref(!1),Ul={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},Rl=l.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),Fl=ce.useOriginalState(N.pinia);let Gl="$R";const{originalPath:Xl}=N.storeToRefs(Fl),fe=Xl.value,Pe=l.ref(!1),Ge=l.ref(!1),he=l.ref(!1),Qe=l.ref(!0),He=l.ref([]),Kl=l.reactive({column:{},status:!1,text:"合计"}),ne=l.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),Ue=te,X=l.ref([]),Y=l.ref([]),E=l.reactive({prop:"",order:null}),Ve=l.ref([]),Q=l.ref(!1),be=l.ref(!1),Fe=l.ref(null),{isUseBackdrop:Ze,initTrackFileType:Ll,getFileExtension:Xa,setData:La,getFileInfo:Ya,getFilesInfo:Lr}=Nr.useThreeSystem(),ja=l.ref([]),Yl=l.ref(!1),aa=l.ref(),il=wa.useMenuState(),{importLoading:di,activeMenuPath:$e,contentLoading:pi,linkMenuInfo:jr}=N.storeToRefs(il),Pr=ce.useTableComp(N.pinia),Xe=wa.useModelComp(N.pinia),{extraContents:Ke,cacheUpdatingData:ua,tableViewContents:ca,tableLoading:fi,pageMapState:ra,lockingPage:ma}=N.storeToRefs(Xe),Z=l.ref([]),jl=l.ref([]),xl=l.ref(new Map);l.ref(!1);const Pl=l.ref("");l.ref();const Sa=l.ref(!0),oa=l.ref(0),Za=l.ref(!0),Sl=l.ref(""),$l=l.ref(!1),$r=l.ref({label:"查看三维模型"}),Ca=l.ref(!1),Pa=l.ref(),Dl=l.ref([]),Hl=l.ref([]),xa=l.ref(!1),ta=l.ref([]),_l=l.ref([]),Al=l.ref([]),ke=l.ref([]),_a=l.ref(!1),Zl=l.ref(!1),zl=l.ref([]),Mr=l.ref(null),Aa=l.ref(!1),Na=l.ref([]),Ia=l.ref(""),$a=l.ref(""),Ma=l.ref(!1),na=l.ref([]),Ra=l.ref([]),Fa=l.ref([]),Ka=l.ref(null),Vl=l.ref([]),da=en.createOCRService(),Rr=l.computed(()=>da.getConfig()),El=l.ref(),yl=l.ref(),Fr=Tr(N.pinia),pa=l.ref(),za=l.ref(0),Kr=ce.useUnit(N.pinia),{selectIndex:zr,selectMenu:fa,selectTitle:hi}=N.storeToRefs(Kr),{selectString:Il}=N.storeToRefs(Fr),Vr=N.useLoginState(N.pinia),{loginUserInfo:ia}=N.storeToRefs(Vr),qr=l.ref(720),Tl=l.ref(!1),Da=l.ref(!1),wl=l.ref([]),Bl=l.ref(),ha=l.ref(!0),er=l.ref(!0),ea=l.ref([]),Jr=l.inject("contentRef");l.provide("contentRef",Jr),l.watch(()=>{var e;return(e=Z.value)==null?void 0:e.length},e=>{ne.total=e}),l.watch(()=>ca.value,async()=>{var c,t,i,p,k,_,v,A,L,P,$,S,M,R,O,C,w,u;if(((c=ca.value)==null?void 0:c.length)===0||!((t=s==null?void 0:s.itemData)!=null&&t.find(y=>(y==null?void 0:y.key)==="columnPath"))||!((i=s==null?void 0:s.itemData)!=null&&i.find(y=>(y==null?void 0:y.key)==="pageColumn")))return;let e=(L=(A=(v=(_=(k=(p=s==null?void 0:s.itemData)==null?void 0:p.find(y=>(y==null?void 0:y.key)==="pageColumn"))==null?void 0:k.contents)==null?void 0:_.split("["))==null?void 0:v[1])==null?void 0:A.split("]"))==null?void 0:L[0],a=((M=(S=($=(P=s==null?void 0:s.itemData)==null?void 0:P.find(y=>(y==null?void 0:y.key)==="pageColumn"))==null?void 0:$.contents)==null?void 0:S.split("["))==null?void 0:M[0])+((O=(R=ca.value)==null?void 0:R.find(y=>(y==null?void 0:y.key)===e))==null?void 0:O.value),r=((w=(C=s==null?void 0:s.itemData)==null?void 0:C.find(y=>(y==null?void 0:y.key)==="pageGroup"))==null?void 0:w.contents)??"",o=await ce.getItemData(a,sessionStorage.getItem("systemKey"),""),n=(u=o==null?void 0:o.find(y=>(y==null?void 0:y.name)===(r===""?s==null?void 0:s.compName:r)))==null?void 0:u.compData;kr(n,s.allMapContents)},{deep:!0});const Wr=async(e,a)=>{var r,o,n,c,t;try{const i=await N.getInsofDataApi({id:(s==null?void 0:s.parentTableId)||(s==null?void 0:s.index)});let p;((r=i==null?void 0:i.data)==null?void 0:r.code)===200&&(p=((n=(o=i==null?void 0:i.data)==null?void 0:o.result)==null?void 0:n[0])||null);const k={type:"data",pageKey:s!=null&&s.parentTableId?(c=p==null?void 0:p.key)==null?void 0:c.pageKey:$e.value,tableId:(s==null?void 0:s.parentTableId)||(s==null?void 0:s.index),systemKey:sessionStorage.getItem("systemKey")},_=a==null?void 0:a.map(L=>{const P=Object.keys(L),$={};return P.forEach((S,M)=>{$[e[M]]=L[S]}),$}),v=_==null?void 0:_.map(L=>({key:k,value:{tableData:L}})),A=await N.batchAddInsofDataApi({dataList:v});((t=A==null?void 0:A.data)==null?void 0:t.code)===200?(Xe.setRefreshCurStructure(!0),N.ElMessage.success("导入数据成功")):N.ElMessage.error("导入数据响应失败")}catch(i){throw N.ElMessage.error("导入数据处理失败"),new Error(i)}},Gr=async e=>{var c,t,i,p,k,_,v;let a=Y.value;a!=null&&a.find(A=>(e==null?void 0:e.key)===(A==null?void 0:A.key))&&(a=a==null?void 0:a.filter(A=>(e==null?void 0:e.key)!==(A==null?void 0:A.key))),a.push({key:e==null?void 0:e.key,value:[(t=e==null?void 0:e.value)==null?void 0:t[((c=e==null?void 0:e.value)==null?void 0:c.length)-1]]});let r=ke.value;r=r==null?void 0:r.map(A=>{var L,P;return(A==null?void 0:A.type)==="Select"&&(e==null?void 0:e.key)===(A==null?void 0:A.prop)&&Array.isArray(A.value)&&(L=A.value)!=null&&L.every($=>typeof $=="string")&&(A.selectValue=(P=a==null?void 0:a.find($=>($==null?void 0:$.key)===(A==null?void 0:A.prop)))==null?void 0:P.value),A});let o=(p=(i=r==null?void 0:r.find(A=>(A==null?void 0:A.prop)===(e==null?void 0:e.key)))==null?void 0:i.optionUrl)==null?void 0:p.menuId,n=r==null?void 0:r.find(A=>(A==null?void 0:A.prop)===(e==null?void 0:e.key));if(o){let A=await Oa(n==null?void 0:n.optionUrl,o),L,P=He.value,$=(v=(_=(k=ke.value)==null?void 0:k.find(S=>{var M;return(M=n==null?void 0:n.optionUrl)==null?void 0:M.menuId}))==null?void 0:_.selectValue)==null?void 0:v[0];if(A==null||A.forEach(S=>{var M,R,O,C,w,u,y,h,K,U;if(o){let J=(R=(M=ke.value)==null?void 0:M.find(T=>{var ie,F;return((ie=n==null?void 0:n.optionUrl)==null?void 0:ie.menuId)===((F=T==null?void 0:T.optionUrl)==null?void 0:F.menuId)}))==null?void 0:R.prop,d=(C=(O=r==null?void 0:r.find(T=>(T==null?void 0:T.prop)===J))==null?void 0:O.selectValue)==null?void 0:C[0];J!=null&&J.includes("·")&&(J=(w=J==null?void 0:J.split("·"))==null?void 0:w[0],d=(K=(h=(y=e==null?void 0:e.value)==null?void 0:y[((u=e==null?void 0:e.value)==null?void 0:u.length)-1])==null?void 0:h.split(" "))==null?void 0:K[0]),P!=null&&P.find(T=>(T==null?void 0:T.value)===$)?L=(U=P==null?void 0:P.find(T=>(T==null?void 0:T.value)===$))==null?void 0:U.objectValue:S[J]===d&&(L=S)}}),L){let S=r;S=S==null?void 0:S.map(M=>{var R,O,C,w,u,y;return o&&(L!=null&&L[M==null?void 0:M.prop])&&Sl.value==="新增"&&(M==null?void 0:M.prop)!==(n==null?void 0:n.prop)?M.value=(L==null?void 0:L[M==null?void 0:M.prop])||(L==null?void 0:L[(w=(C=(O=(R=M==null?void 0:M.optionUrl)==null?void 0:R.groupSelect)==null?void 0:O[1])==null?void 0:C.replaceAll("[",""))==null?void 0:w.replaceAll("]","")]):M.value=(y=(u=ke.value)==null?void 0:u.find(h=>(h==null?void 0:h.prop)===(M==null?void 0:M.prop)))==null?void 0:y.value,M}),ke.value=S}}Y.value=a},Hr=async e=>{var a,r,o,n,c;if((a=e==null?void 0:e.toString())!=null&&a.includes(".txt")||(r=e==null?void 0:e.toString())!=null&&r.includes(".cpt")||(o=e==null?void 0:e.toString())!=null&&o.includes(".cyd")){const t=await N.axios.get(e,{responseType:"blob",headers:{"Content-Type":"application/json"}}),i=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"});let p=URL.createObjectURL(i);aa.value=[{name:(c=e==null?void 0:e.split("/"))==null?void 0:c[((n=e==null?void 0:e.split("/"))==null?void 0:n.length)-1],blobUrl:p}],Yl.value=!0}};l.onBeforeUnmount(()=>{er.value=!1;let e=za.value;za.value=e+1});const lr=l.computed(()=>{var o,n;const e=(ne.currentPage-1)*ne.pageSize,a=e+ne.pageSize,r=(o=X.value)==null?void 0:o.find(c=>{var t;return(c==null?void 0:c.sortable)&&((t=c==null?void 0:c.label)==null?void 0:t.includes("时间"))});return r&&(E.order="descending",E.prop=r==null?void 0:r.prop),Ue("getSliceContLength",ne),(n=Z.value)==null?void 0:n.slice(e,a)}),Qr=e=>{ne.currentPage=e,Ue("getSliceContLength",ne)},Xr=e=>{var a;ne.pageSize=e,e*ne.currentPage>((a=Z.value)==null?void 0:a.length)&&(ne.currentPage=1,ne.pageSize=10,N.ElMessage.warning("分页无效,返回第一页")),Ue("getSliceContLength",ne)},Yr=(e,a)=>{var t,i;const r=(i=(t=X.value)==null?void 0:t.map(p=>p==null?void 0:p.prop))==null?void 0:i.filter(p=>p!=="operate");let o;const n=(e==null?void 0:e.length)===(r==null?void 0:r.length);if(e!=null&&e.includes("序号"))return N.ElMessage.error("导入的数据不需要包含序号列");if(o=n?e:e.slice(0,r==null?void 0:r.length),!(o==null?void 0:o.every(p=>r==null?void 0:r.find(k=>p===k))))return N.ElMessage.error("导入的数据表头不匹配");Wr(o,a)},Zr=(e,a)=>{var r;Xe.setRefreshCurStructure(!1),((r=X.value)==null?void 0:r.length)===0||Yr(e,a)},Ir=(e,a,r,o)=>{const n=[],c=[],t=k=>Object.keys(k).length;for(const k in e)if(e[k]!==void 0){const _=e[k],v=[];for(const[A,L]of Object.entries(_))v.push(L),c.length<t(_)&&c.push(A);n.push(v)}n.unshift(c);const i=ce.utils.aoa_to_sheet(n),p=ce.utils.book_new();ce.utils.book_append_sheet(p,i,o),ce.writeFileSync(p,`${a}.xlsx`),wl.value=[]},Ea=async(e,a,r,o=!1,n)=>{var c,t,i,p,k,_,v,A;try{Xe.setRefreshCurStructure(!1);const L=await N.getInsofDataApi({id:s==null?void 0:s.index});if(((c=L==null?void 0:L.data)==null?void 0:c.code)===200){let P=(k=(p=(i=(t=L==null?void 0:L.data)==null?void 0:t.result)==null?void 0:i[0])==null?void 0:p.value)==null?void 0:k.pageData;o?P={...P,compData:(v=P==null?void 0:P.compData)==null?void 0:v.map(S=>{var M;return(S==null?void 0:S.key)==="header"?{...S,contents:(M=S==null?void 0:S.contents)==null?void 0:M.map(R=>({...R,[e]:r}))}:S})}:P={...P,compData:(_=P==null?void 0:P.compData)==null?void 0:_.map(S=>{var M,R;return(S==null?void 0:S.key)==="header"?{...S,contents:(M=S==null?void 0:S.contents)==null?void 0:M.map(O=>{if(Array.isArray(O))O=O==null?void 0:O.map(C=>(C==null?void 0:C.prop)===(a==null?void 0:a.prop)?{...C,[e]:r}:C);else if((O==null?void 0:O.prop)===(a==null?void 0:a.prop))return{...O,[e]:r};return O})}:(S==null?void 0:S.key)==="tableToForm"&&n?{...S,contents:(R=S==null?void 0:S.contents)==null?void 0:R.map(O=>(O==null?void 0:O.prop)===(a==null?void 0:a.prop)?{...O,[n]:r}:O)}:S})};const $=await N.updateInsofDataApi({id:s==null?void 0:s.index,value:{pageData:P}});((A=$==null?void 0:$.data)==null?void 0:A.code)===200?(N.ElMessage.success("编辑成功"),Xe.setRefreshCurStructure(!0)):N.ElMessage.error("编辑响应失败")}}catch(L){N.ElMessage.error(L)}},eo=async(e,a)=>{await Ea("label",a,e)},lo=async(e,a)=>{await Ea("columnType",a,e,!1,"type")},ao=()=>{ua.value?Tl.value=!1:mr()},ro=e=>{wl.value=e},oo=(e,a)=>{Bl.value===a?ha.value=!1:ha.value=!0,Bl.value=a==null?void 0:a.changeProp},no=e=>{if(!e)return;const{item:a,value:r}=e,o=ke.value.find(n=>n.prop==a.prop);o&&o.contents.push({label:r,value:r})},ya=l.computed(()=>{var r,o,n;const e=(r=X.value)==null?void 0:r.some(c=>c==null?void 0:c.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",e?"inline-block":"none"),(n=(o=X.value)==null?void 0:o.filter(c=>(c==null?void 0:c.label)!=="操作"))==null?void 0:n.map(c=>({...c,filterable:!!(c!=null&&c.filterable),showSummary:!!(c!=null&&c.showSummary),operable:!!(c!=null&&c.operable),fixed:c==null?void 0:c.fixed}))}),ar=async(e,a,r)=>{const o=N.cloneDeep(X.value);await l.nextTick(),X.value=o==null?void 0:o.map(n=>(r==null?void 0:r.label)===(n==null?void 0:n.label)?{...n,[a]:e}:n),await Ea(a,r,e)},io=async(e,a)=>{await Ea(a,null,e,!0)},so=()=>{$l.value=!1},uo=e=>{Ue("clickTrigger",e)},rr=async e=>{var c,t,i,p,k,_,v,A,L,P,$,S,M,R,O;const a=e==null?void 0:e.row,r=e==null?void 0:e.rowData,o=e==null?void 0:e.suffix;if((c=a==null?void 0:a.toString())!=null&&c.includes(".urdf")||e!=null&&e.isUrdf||o!=null&&o.includes(".urdf")){if(a.includes(",")){N.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(Ze(a)){const w={files:[Ya(a)],data:{}};La(w);return}ta.value=[{url:a,extension:Xa(a)}],be.value=!0,Fe.value={data:N.cloneDeep(r)},Q.value=!0;return}let n=[];if((t=a==null?void 0:a.toString())!=null&&t.includes(".stl")||(i=a==null?void 0:a.toString())!=null&&i.includes(".STL")||(p=a==null?void 0:a.toString())!=null&&p.includes(".obj")||(k=a==null?void 0:a.toString())!=null&&k.includes(".mtl")){const C=(_=a==null?void 0:a.toString())==null?void 0:_.split(","),w=Lr(C),u=w==null?void 0:w[0];if(Ze(u==null?void 0:u.extension)){La({files:w,data:{}});return}ta.value=w,be.value=!1,Q.value=!0;return}if((v=a==null?void 0:a.toString())!=null&&v.includes(".stl")||(A=a==null?void 0:a.toString())!=null&&A.includes(".STL")||(L=a==null?void 0:a.toString())!=null&&L.includes(".obj")||(P=a==null?void 0:a.toString())!=null&&P.includes(".mtl")||o!=null&&o.includes(".stl")||o!=null&&o.includes(".STL")||o!=null&&o.includes(".obj")||o!=null&&o.includes(".mtl")){let C,w=[],u={};if(Array.isArray(a)?C=a:C=a==null?void 0:a.split(","),C==null||C.forEach(y=>{y.includes(".mtl")?w.push(y):u.blob=u.blob?u.blob+","+y:y}),(w==null?void 0:w.length)>0&&(u.mtlBlobs=w),o&&(u.suffix=o),(S=($=Object.values(u))==null?void 0:$[0])!=null&&S.includes("http:"))n.push(u);else{const y=new Blob([u.blob],{type:"application/octet-stream;charset=UTF-8"});let h=URL.createObjectURL(y),K="";(M=a==null?void 0:a.split("/"))==null||M.forEach((U,J)=>{var d;J===((d=a==null?void 0:a.split("/"))==null?void 0:d.length)-1&&(K=U)}),(R=u.blob)!=null&&R.includes(".stl")&&(K=(K==null?void 0:K.replaceAll(">",""))+".urdf"),aa.value=[{name:K,blobUrl:h}],Yl.value=!0}}else{const C=await N.axios.get(a,{responseType:"blob",headers:{"Content-Type":"application/json"}}),w=new Blob([C.data],{type:"application/octet-stream;charset=UTF-8"});let u=URL.createObjectURL(w),y="";if((O=a==null?void 0:a.split("/"))==null||O.forEach((h,K)=>{var U;K===((U=a==null?void 0:a.split("/"))==null?void 0:U.length)-1&&(y=h)}),Ze(y)){const h=Ll(y),K=Ya(a);La({files:[K],data:{trackFileType:h}});return}aa.value=[{name:y,blobUrl:u}],Yl.value=!0}(n==null?void 0:n.length)>0&&z.setBlobUrls(n)},va=e=>{var o,n,c,t;if(e!=null&&e.downloadUrl)return e==null?void 0:e.name;const a=(t=(o=e==null?void 0:e.url)==null?void 0:o.split("."))==null?void 0:t[((c=(n=e==null?void 0:e.url)==null?void 0:n.split("."))==null?void 0:c.length)-1];return(e==null?void 0:e.name)+"."+a},Va=e=>{if(!e)return"未知文件";try{const o=va(e);if(typeof o=="string"&&o.includes("."))return o}catch{}const a=(e==null?void 0:e.fileName)||(e==null?void 0:e.name)||"未知文件",r=(e==null?void 0:e.suffix)||"";return a.includes(".")?a:`${a}${r}`},or=e=>{if(e==null||typeof e=="number"||typeof e!="string")return e;const a=e.match(/^(\d+)\_(\d+)$/);if(!a)return e;const r=Number(a[1]),o=Number(a[2]);return!Number.isFinite(r)||!Number.isFinite(o)?e:String(r*1e3+o)},nr=async e=>{let a=null,r=null;if(e!=null&&e.id){const n=kl.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const c=await ce.downloadAvatarApi(e);a=URL.createObjectURL(c.data),r=Va(e)}finally{n.close()}}else if(e!=null&&e.downloadUrl){const n=await qa(),c=kl.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),t=await N.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:n,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{c.close()}),i=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(i),r=e==null?void 0:e.name}else{const n=await ce.downloadAvatarApi({url:e==null?void 0:e.url});!e.url.toUpperCase().includes(".OBJ")&&!e.url.toUpperCase().includes(".STL")&&!e.url.toUpperCase().includes(".MTL")&&!e.url.toUpperCase().includes(".URDF")?(a=URL.createObjectURL(n.data),r=va(e)):a=e==null?void 0:e.url}if(Ze(a)){const n={row:`${a}`,suffix:Xa(r)};rr(n);return}const o={name:r,blobUrl:a};aa.value=[o],Yl.value=!0},co=async e=>{let a=null,r=null;if(e!=null&&e.id){const c=await ce.downloadAvatarApi(e);a=URL.createObjectURL(c.data),r=Va(e)}else if(e!=null&&e.downloadUrl){const c=await qa(),t=await N.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:c,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),i=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(i),r=e==null?void 0:e.name}else{const c=await ce.downloadAvatarApi({url:e==null?void 0:e.url});a=URL.createObjectURL(c.data),r=va(e)}const o={name:r,blobUrl:a},n=document.createElement("a");n.href=o.blobUrl,n.download=o.name,n.style.display="none",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n)},100)},to=(e,a)=>{var o;if(Object.values(a).length===0)return;let r=e;return Object.values(a).find(n=>{var c,t,i;return((c=n==null?void 0:n.toString())==null?void 0:c.includes(".txt"))||((t=n==null?void 0:n.toString())==null?void 0:t.includes(".cpt"))||((i=n==null?void 0:n.toString())==null?void 0:i.includes(".obj"))})?r=[...e,$r.value]:(o=s==null?void 0:s.config)!=null&&o.allowMove&&(r=[...e,{label:"迁移"}]),r},po=(e,a={})=>[...e==null?void 0:e.values()].filter(r=>Object.keys(a).every(o=>{var t;const n=r[o],c=(t=a[o])==null?void 0:t.toLowerCase();return c&&n&&typeof n=="string"?n.toLowerCase().includes(c):!0})),fo=()=>{ml.value=!0},ir=l.ref([]),ho=async(e,a,r=!1)=>{var o;if(e){if(Xe.setTableLoading(!0),ir.value=Object.values(e),e&&((o=Object.values(e))!=null&&o.every(n=>!n)))return Z.value=jl.value;if(r){Z.value=[...xl.value.values()].filter(n=>Object.values(n).some(c=>typeof c=="string"?c==null?void 0:c.toLowerCase().includes(a==null?void 0:a.toLowerCase()):!1));return}Z.value=po(xl.value,e),Xe.setTableLoading(!1)}},yo=async e=>{},sr=async(e,a,r,o)=>{var n,c,t,i,p,k,_,v,A,L,P,$,S,M,R,O,C,w,u,y;if(Ue("clickMainKey",r),(o==null?void 0:o.isExistChild)===!0){let h=(n=o==null?void 0:o.columnType)==null?void 0:n.prop,K=o==null?void 0:o.data;if(ea.value=await ce.getItemData($e.value,sessionStorage.getItem("systemKey"),""),!ea.value){let J=(i=(t=(c=$e.value)==null?void 0:c.split("/"))==null?void 0:t.filter((d,T)=>{var ie,F;return T!==((F=(ie=$e.value)==null?void 0:ie.split("/"))==null?void 0:F.length)-1}))==null?void 0:i.join("/");ea.value=await ce.getItemData(J,sessionStorage.getItem("systemKey"),"")}let U=(p=ea.value)==null?void 0:p.filter(J=>(J==null?void 0:J.name)===h);ea.value=U==null?void 0:U.map(J=>{var d;return J.compData=(d=J.compData)==null?void 0:d.map(T=>{var ie,F;return(T==null?void 0:T.key)==="tableContents"&&(ie=T==null?void 0:T.contents)!=null&&ie.every(x=>x==null?void 0:x.find(j=>j==null?void 0:j.id))&&(T.contents=(F=T==null?void 0:T.contents)==null?void 0:F.filter(x=>(x==null?void 0:x[1])===K)),T}),J}),Ue("routeUrl",ea.value,{isEdit:!0,routerUrl:$e.value});return}if((o==null?void 0:o.data)==="查看"&&(e!=null&&e.every(h=>(h==null?void 0:h.url)&&(h==null?void 0:h.name)))){let h=N.cloneDeep(e);h=await((k=N.cloneDeep(h))==null?void 0:k.map(async U=>{var T,ie,F,x;const J=await ce.downloadAvatarApi({url:U==null?void 0:U.url});let d=URL.createObjectURL(J.data);return{name:(U==null?void 0:U.name)+"."+((x=(T=U==null?void 0:U.url)==null?void 0:T.split("."))==null?void 0:x[((F=(ie=U==null?void 0:U.url)==null?void 0:ie.split("."))==null?void 0:F.length)-1]),blobUrl:d}}));let K=await Promise.all(h);aa.value=K,Yl.value=!0}if(N.cloneDeep(X.value),(o==null?void 0:o.isMainKey)===!0){il.setActiveMenuPath(void 0),Xe.setRouteToChildPath(void 0),Xe.setFixMenuStatus(!0);let h=(v=(_=s.itemData)==null?void 0:_.find(U=>(U==null?void 0:U.key)==="contentTableId"))==null?void 0:v.contents,K=(L=(A=s.itemData)==null?void 0:A.find(U=>(U==null?void 0:U.key)==="relatedFilter"))==null?void 0:L.index;if(K!==0){let U=($=(P=X.value)==null?void 0:P[K])==null?void 0:$.prop;if((r==null?void 0:r[U])===(o==null?void 0:o.data)){let J=await N.getInsofDataApi({id:h}),d=(O=(R=(M=(S=J==null?void 0:J.data)==null?void 0:S.result)==null?void 0:M[0])==null?void 0:R.key)==null?void 0:O.pageKey;il.setActiveMenuPath(d+"/"+(o==null?void 0:o.data))}else{let J=await N.getInsofDataApi({key:{pageKey:N.cloneDeep($e).value+"/"+(o==null?void 0:o.data),systemKey:sessionStorage.getItem("systemKey")}});((w=(C=J==null?void 0:J.data)==null?void 0:C.result)==null?void 0:w.length)>0&&il.setActiveMenuPath(N.cloneDeep($e).value+"/"+(o==null?void 0:o.data))}}else{let U=await N.getInsofDataApi({key:{pageKey:N.cloneDeep($e).value+"/"+(o==null?void 0:o.data),systemKey:sessionStorage.getItem("systemKey")}});((y=(u=U==null?void 0:U.data)==null?void 0:u.result)==null?void 0:y.length)>0&&il.setActiveMenuPath(N.cloneDeep($e).value+"/"+(o==null?void 0:o.data))}}},vo=()=>{Yl.value=!1},go=e=>{Ue("rowClick",e)};l.watch(()=>s.changedContent,()=>{var r,o;if(!s.changedContent)return;let e=(r=Z.value)==null?void 0:r.map(n=>{var c;return n.id===((c=s.changedContent)==null?void 0:c.id)&&(n={...s.changedContent,id:s.changedContent.newId?s.changedContent.newId:s.changedContent.id},delete n.newId),n});const a=(o=s.itemData)==null?void 0:o.map(n=>((n==null?void 0:n.key)==="tableContents"&&(n.contents=e),n));Z.value=e,Ue("contentChange",{contents:a,index:s.index}),Ue("change",{content:e,index:s==null?void 0:s.index,buttonName:"",id:s==null?void 0:s.index})},{deep:!0,immediate:!0});const bo=()=>{},ko=async()=>{const e=$e.value,a=sessionStorage.getItem("systemKey"),r=await ce.getItemData(e,a,""),o=(r==null?void 0:r.find(i=>(i==null?void 0:i.name)==="方法明细"))||(r==null?void 0:r[0]),n=(o==null?void 0:o.compData)||[],c=n==null?void 0:n.find(i=>{const p=i==null?void 0:i.key;return p==="formContent"||p==="tableContents"});return c==null?void 0:c.contents},qa=async()=>`Bearer ${N.Local.get("access-token")}`,mo=async(e,{token:a,inputData:r}={})=>await N.axios.post(e,r,{headers:{Authorization:a}}).catch(n=>(il.setImportLoading(!1),Promise.reject(n))),So=e=>{var o;let a={};const r=[];return a.form={},(o=N.cloneDeep(e))==null||o.forEach((n,c)=>{var t,i,p,k,_,v,A,L,P,$,S,M,R,O;if((n==null?void 0:n.comp)==="Table"){(i=(t=n==null?void 0:n.compData)==null?void 0:t.find(y=>(y==null?void 0:y.key)==="header"))==null||i.contents;let C=(_=(k=(p=n==null?void 0:n.compData)==null?void 0:p.find(y=>(y==null?void 0:y.key)==="tableContents"))==null?void 0:k.contents)==null?void 0:_.map(y=>y.slice(1));($=(P=(L=(A=(v=n==null?void 0:n.compData)==null?void 0:v.find(y=>(y==null?void 0:y.key)==="header"))==null?void 0:A.contents)==null?void 0:L[0])==null?void 0:P[0])==null||$.label;let w=(M=(S=n==null?void 0:n.compData)==null?void 0:S.find(y=>(y==null?void 0:y.key)==="header"))==null?void 0:M.contents,u=[];C==null||C.forEach(y=>{let h=[];y==null||y.forEach((K,U)=>{var d;let J={};((d=w[U])==null?void 0:d.label)!=="操作"&&(J[w[U].label]=K,h.push(J))}),u.push(h)}),a[n.name]=u}else{const C=(O=(R=n.compData)==null?void 0:R.find(w=>(w==null?void 0:w.key)==="formContent"))==null?void 0:O.contents;C==null||C.forEach(w=>{var u,y;if(w.prop!==""){let h=w==null?void 0:w.value;Array.isArray(h)?h=((u=h==null?void 0:h[0])==null?void 0:u.oldUrl)||"http://222.92.178.198:62001/"+((y=h==null?void 0:h[0])==null?void 0:y.url):h=h.toString(),w={key:(w==null?void 0:w.prop)??(w==null?void 0:w.label),value:h},r.push(w)}})}}),a.form=ce.getFormContents(r),a},Co=e=>{const a=[],r=o=>{o&&typeof o=="object"&&!Array.isArray(o)?Object.values(o).forEach(r):a.push(o)};return r(e),a},xo=async(e,a,r)=>{var w,u,y,h,K,U,J,d,T,ie,F;il.setImportLoading(!0),Xe.setFreshContent(!1);let o=await ko().catch(x=>(il.setImportLoading(!1),Promise.reject(x)));o=o==null?void 0:o.filter(x=>{var j;return((j=x==null?void 0:x.find(le=>le==null?void 0:le.id))==null?void 0:j.id)===(a==null?void 0:a.id)});let n=ce.getEqualChild([(w=X.value)==null?void 0:w.filter(x=>(x==null?void 0:x.label)!=="操作")]);const c=(y=(u=ce.tableToForm(o,n))==null?void 0:u[0])==null?void 0:y.find(x=>{const j=x==null?void 0:x.key;return j==="Interface"||j==="方法体"}),t=c==null?void 0:c.value;if(!t){console.log("未搜索到isMain, 缺少算法执行接口"),il.setImportLoading(!1);return}const i=X.value?ce.getEqualChild([X.value]):[],p=i.find(x=>{const j=x==null?void 0:x.prop;return j==="Input1"||j==="输入数据.输入1"||j==="样本输入数据"}),k=p==null?void 0:p.prop;let _=a==null?void 0:a[k];const v=await qa().catch(x=>(il.setImportLoading(!1),Promise.reject(x)));let A=!0,L="";(h=X.value)==null||h.forEach(x=>{(x==null?void 0:x.prop)===k&&(A=!!(x!=null&&x.childPath),L=x==null?void 0:x.childPath)});let P="";if(A){let x=(U=(K=X.value)==null?void 0:K.find(ve=>(ve==null?void 0:ve.isMainKey)===!0))==null?void 0:U.prop;P=a==null?void 0:a[x];let j=L==null?void 0:L.split(fe),le=[];j==null||j.forEach((ve,Ae)=>{(j==null?void 0:j.length)-1===Ae&&le.push(P),le.push(ve)}),le=le==null?void 0:le[0];let ee=await ce.getItemData(le,sessionStorage.getItem("systemKey"),""),I=ee==null?void 0:ee.filter(ve=>(ve==null?void 0:ve.name)===k);I=I==null?void 0:I.map(ve=>{var Ae;return ve.compData=(Ae=ve==null?void 0:ve.compData)==null?void 0:Ae.map(G=>{var re;return(G==null?void 0:G.key)==="tableContents"&&(G.contents=(re=G==null?void 0:G.contents)==null?void 0:re.filter(Le=>(Le==null?void 0:Le[1])===(a==null?void 0:a[k]))),G}),ve}),(!I||(I==null?void 0:I.length)===0)&&(I=ee,I=I==null?void 0:I.map(ve=>{var Ae;return ve.compData=(Ae=ve==null?void 0:ve.compData)==null?void 0:Ae.map(G=>{var re;return(G==null?void 0:G.key)==="tableContents"&&(G.contents=(re=G==null?void 0:G.contents)==null?void 0:re.filter(Le=>{var se,pe;return(Le==null?void 0:Le[1])===(a==null?void 0:a[(pe=(se=X==null?void 0:X.value)==null?void 0:se[0])==null?void 0:pe.prop])})),G}),ve})),_=So(I)}const $=await mo(t,{token:v,inputData:_}).catch(x=>(il.setImportLoading(!1),Promise.reject(x))),S=(J=$==null?void 0:$.data)==null?void 0:J.data,M=i.find(x=>(x==null?void 0:x.prop)==="Output1"),R=M==null?void 0:M.prop;let O=[],C=[];if(S&&((d=Object.values(S))==null?void 0:d.length)>0){let x=[];const j=new FormData,le=(T=Co(S))==null?void 0:T.map(async I=>{var ve,Ae;if(!Array.isArray(I)&&(I!=null&&I.includes("http"))){let G=await N.axios.get(I,{responseType:"blob"}),re=(Ae=I==null?void 0:I.split("/"))==null?void 0:Ae[((ve=I==null?void 0:I.split("/"))==null?void 0:ve.length)-1];j.append("files",G.data,re)}else x.push(I)});if(await Promise.all(le),!ce.isFormDataEmpty(j)){let I=await ce.uploadAmountApi(j),ve=(F=(ie=I==null?void 0:I.data)==null?void 0:ie.result)==null?void 0:F.map(Ae=>{var G,re,Le,se,pe,xe;return{name:(xe=(pe=(se=(G=Ae==null?void 0:Ae.url)==null?void 0:G.split("/"))==null?void 0:se[((Le=(re=Ae==null?void 0:Ae.url)==null?void 0:re.split("/"))==null?void 0:Le.length)-1])==null?void 0:pe.split("."))==null?void 0:xe[0],url:Ae==null?void 0:Ae.url}});x=[...x,...ve]}let ee={};for(let I in a)I!=="id"&&(ee[I]=a[I]);ee[R]=x,C.push({id:a==null?void 0:a.id,value:{tableData:ee}})}(C==null?void 0:C.length)>0&&await N.batchUpdateInsofDataApi({dataList:C}),(O==null?void 0:O.length)>0&&await N.batchAddInsofDataApi({dataList:O}),ka(!0),il.setImportLoading(!1),Xe.setFreshContent(!0)},ur=(e,a)=>(e=e==null?void 0:e.map(r=>{var o,n;return r!=null&&r.children&&((o=r.children)!=null&&o.find(c=>c.id===(a==null?void 0:a.id))?r.children=(n=r.children)==null?void 0:n.filter(c=>(c==null?void 0:c.id)!==(a==null?void 0:a.id)):r.children=ur(r.children,a)),r}),e),Ye=l.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:s==null?void 0:s.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(e,a,r)=>{a===(s==null?void 0:s.index)?r(new Error("选择源不能和目标源一致")):r()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),_o=()=>{Ye.show=!1},Ao=e=>{var a,r;if((e==null?void 0:e.buttonName)==="取消")return Ye.show=!1;Ye.to=e==null?void 0:e.content,!(!(s!=null&&s.index)||!((a=Ye.to)!=null&&a.groupName))&&(s==null?void 0:s.index)!==((r=Ye.to)==null?void 0:r.groupName)&&(Ue("change",{buttonName:"迁移",value:{from:Ye.from,to:Ye.to,data:Ye.selectRow}}),Ye.show=!1)},No=e=>{if(e){if(!da.validateFileSize(e.raw)){N.ElMessage.warning(`文件大小不能超过 ${Rr.value.maxSize}MB`);return}if(!da.validateFileType(e.raw)){N.ElMessage.warning("请上传图片文件");return}}},Do=async()=>{var e,a;if(zl.value.length===0){N.ElMessage.warning("请先选择要上传的图片");return}Zl.value=!0;try{const r=zl.value.map(async v=>{var P;const A=new FormData;A.append("file",v.raw,v.name);const L=await kl.uploadFileApi(A);return((P=L==null?void 0:L.data)==null?void 0:P.result)||{name:v.name,url:"",fileName:v.name}}),o=await Promise.all(r),n=da.extractTableHeaders(X.value),c=o.map(v=>({name:(v==null?void 0:v.fileName)||(v==null?void 0:v.name),url:(v==null?void 0:v.url)||""})),t=await da.recognize(c,n),i=Array.isArray(t==null?void 0:t.result)?t.result:[];if(i.length===0){N.ElMessage.warning("OCR识别未返回有效数据"),Zl.value=!1;return}const p=new Set,k=[];i.forEach((v,A)=>{const L=v!=null&&v.数据&&typeof(v==null?void 0:v.数据)=="object"?v.数据:{},P={_index:A,_certType:(v==null?void 0:v.证书类型)||"",_certNo:(v==null?void 0:v.证书编号)||""};Object.entries(L).forEach(([$,S])=>{Array.isArray(S)&&S.length>=2?(P[$]=S[0]??"",P[`${$}_accuracy`]=S[1]??0,p.add($)):(P[$]=S??"",P[`${$}_accuracy`]=0,p.add($))}),k.push(P)});const _=[];p.forEach(v=>{_.push({prop:v,label:v,editable:!0,minWidth:120}),_.push({prop:`${v}_accuracy`,label:`${v}准确率`,editable:!1,minWidth:100,isAccuracy:!0})}),Ra.value=_,na.value=k,Fa.value=o,Ka.value=t,_a.value=!1,zl.value=[],Zl.value=!1,Ma.value=!0}catch(r){console.error("OCR处理失败:",r),N.ElMessage.error(((a=(e=r==null?void 0:r.response)==null?void 0:e.data)==null?void 0:a.message)||"OCR识别失败,请重试"),Zl.value=!1}},Eo=()=>{var P,$;const e=Fa.value,a=Ka.value,r=na.value;if(!r||r.length===0){N.ElMessage.warning("暂无数据可添加");return}const o=(P=ce.getAllLeafNodes(X.value)||[])==null?void 0:P.filter(S=>(S==null?void 0:S.type)!=="operate"&&(S==null?void 0:S.label)!=="操作"&&(S==null?void 0:S.prop)!=="operate"),n=new Map,c=new Map,t=($=o==null?void 0:o.find(S=>(S==null?void 0:S.label)==="OCR图片"))==null?void 0:$.prop;o==null||o.forEach(S=>{S!=null&&S.label&&(S!=null&&S.prop)&&(n.set(S.label,S.prop),c.set(S.prop,S.label))});const i=Date.now(),p=S=>String(i*1e3+S);let k=0,_=0;const v=[],A=[];r.forEach((S,M)=>{const R={id:p(M),_isOCRRow:!0,_ocrTableId:s==null?void 0:s.index};for(const[O,C]of n.entries())Object.prototype.hasOwnProperty.call(S,O)&&(R[C]=S[O]);if(t&&e[M]){const O=e[M];R[t]=[{...O,name:(O==null?void 0:O.fileName)||(O==null?void 0:O.name),url:(O==null?void 0:O.url)||""}]}if(Vl.value&&Vl.value.length>0){const O={};let C=!1;if(Vl.value.forEach(w=>{const u=n.get(w);u&&R[u]!==void 0&&R[u]!==null&&R[u]!==""&&(O[u]=R[u],C=!0)}),C){const w=Z.value.find(u=>Object.entries(O).every(([y,h])=>{const K=u[y];return String(K)===String(h)||K===h}));if(w){for(const[y,h]of n.entries())Object.prototype.hasOwnProperty.call(R,h)&&h!=="_isOCRRow"&&h!=="_ocrTableId"&&h!=="id"&&(w[h]=R[h]);if(t&&e[M]){const y=e[M];w[t]=[{...y,name:(y==null?void 0:y.fileName)||(y==null?void 0:y.name),url:(y==null?void 0:y.url)||""}]}const u=jl.value.find(y=>y.id===w.id);if(u){for(const[y,h]of n.entries())Object.prototype.hasOwnProperty.call(R,h)&&h!=="_isOCRRow"&&h!=="_ocrTableId"&&h!=="id"&&(u[h]=R[h]);if(t&&e[M]){const y=e[M];u[t]=[{...y,name:(y==null?void 0:y.fileName)||(y==null?void 0:y.name),url:(y==null?void 0:y.url)||""}]}}xl.value&&xl.value.set(w.id,w),A.push(JSON.parse(JSON.stringify(w))),k++;return}}}v.push(R),_++}),A.length>0&&(Z.value=[...Z.value||[]]),v.length>0&&(Z.value=[...Z.value||[],...v],jl.value=[...jl.value||[],...v],v.forEach(S=>{var M,R;return(R=(M=xl.value)==null?void 0:M.set)==null?void 0:R.call(M,S.id,S)})),pa.value=Z.value;let L="";k>0&&_>0?L=`成功匹配替换 ${k} 条数据,新增 ${_} 条OCR识别数据`:k>0?L=`成功匹配替换 ${k} 条数据`:L=`成功添加 ${_} 条OCR识别数据`,N.ElMessage.success(L),A.length>0&&Ue("change",{buttonName:"编辑",singleContent:A,content:Z.value,index:s==null?void 0:s.index,parentTableId:s==null?void 0:s.parentTableId,column:X.value}),v.length>0&&Ue("change",{buttonName:"OCR批量新增",content:Z.value,index:s==null?void 0:s.index,parentTableId:s==null?void 0:s.parentTableId,column:X.value,ocrRows:v,uploadedFiles:e,ocrResult:a,matchedCount:k,newCount:_}),Ja()},Ja=()=>{Ma.value=!1,na.value=[],Ra.value=[],Fa.value=[],Ka.value=null,Vl.value=[]},To=(e,a,r)=>{na.value[e]&&(na.value[e][a]=r)},wo=(e,a)=>{if(a)Vl.value.includes(e)||Vl.value.push(e);else{const r=Vl.value.indexOf(e);r>-1&&Vl.value.splice(r,1)}},Bo=e=>e==null||e===0?"-":`${(Number(e)*100).toFixed(1)}%`,Oo=e=>{if(e==null||e===0)return"#909399";const a=Number(e);return a>=.9?"#67c23a":a>=.7?"#e6a23c":"#f56c6c"},cr=()=>{_a.value=!1,zl.value=[],Mr.value=null},Uo=async e=>{Ia.value=e==null?void 0:e.name;const a=e.raw;$a.value=URL.createObjectURL(a),Na.value=[{name:Ia.value,blobUrl:$a.value}],Aa.value=!0},Lo=async e=>{const a=Zo(e);if(!a||a.length===0){N.ElMessage.warning("暂无图片");return}if(a.length===1){await nr(a[0]);return}try{const r=kl.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),o=await Promise.all(a.map(async n=>{const c=await ce.downloadAvatarApi(n),t=URL.createObjectURL(c.data);return{name:Va(n),blobUrl:t}}));r.close(),Na.value=o,Aa.value=!0}catch(r){console.error("预览图片失败:",r),N.ElMessage.error("预览图片失败,请重试")}},jo=()=>{Aa.value=!1,Na.value=[],$a.value=""},Po=e=>{zl.value=zl.value.filter((a,r)=>r!==e)},Ta=async(e,a,r)=>{var o,n,c,t,i,p,k,_,v,A,L,P,$,S,M;if(Pl.value="",xa.value=!0,Sa.value=!0,Ue("onButtonClick",e,a),He.value=[],e==="删除")wa.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var R,O;(R=Z.value)!=null&&R.find(C=>(C==null?void 0:C.id)===(a==null?void 0:a.id))?Z.value=(O=N.cloneDeep(Z.value))==null?void 0:O.filter(C=>(C==null?void 0:C.id)!==(a==null?void 0:a.id)):Z.value=ur(N.cloneDeep(Z.value),a),Dn(pa.value,fa.value,a==null?void 0:a.id),Xe.setTableLoading(s==null?void 0:s.index),Ue("change",{content:Z.value,singleContent:a,index:s==null?void 0:s.index,type:"delete",buttonName:e,column:X.value})});else if(e==="批量删除"){if(((o=wl.value)==null?void 0:o.length)===0)return N.ElMessage.warning("请先勾选操作的数据");wa.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var O,C;const R=(O=wl.value)==null?void 0:O.map(w=>w.id);Z.value=(C=N.cloneDeep(Z.value))==null?void 0:C.filter(w=>!(R!=null&&R.includes(w.id))),Xe.setTableLoading(s==null?void 0:s.index),Ue("change",{content:Z.value,singleContent:null,selectItems:wl.value,index:s==null?void 0:s.index,type:"batchDelete",buttonName:e,column:X.value})})}else if(e==="复制新增"){Sl.value="新增";const R=N.cloneDeep(a),O=(n=X.value)==null?void 0:n.find(u=>u==null?void 0:u.isMainKey),C=O||((c=X.value)==null?void 0:c[0]),w=(t=Al.value)==null?void 0:t.find(u=>(u==null?void 0:u.label)==="新建");await dr(!0,w,{data:R,firstCol:C})}else if(e==="新增")Sl.value="新增",ba(""),$l.value=!0;else if(e==="编辑")Sl.value="编辑",ba(a),$l.value=!0;else if(e==="查看")Sl.value="查看",ba(a),xa.value=!1,Sa.value=!1,$l.value=!0;else if(e==="查看三维模型"){const R={};for(let C in a)C!=="id"&&(R[C]=a[C]);let O=(i=Object.values(R))==null?void 0:i[1];Pr.setTableShowThree(O)}else if(((p=r==null?void 0:r.extra)==null?void 0:p.type)==="modelExample")Sl.value=e,Ca.value=!0;else if(e==="新建"){let R=ra.value,O=[];for(let h in R)h!=null&&h.includes(`loading${((k=ia.value)==null?void 0:k.account)||((_=ia.value)==null?void 0:_.账号)}`)&&(O=[...O,...h]);let C=[];for(let h in R)h!=null&&h.includes(`updateLoading${((v=ia.value)==null?void 0:v.account)||((A=ia.value)==null?void 0:A.账号)}`)&&(C=[...C,...h]);let w=O==null?void 0:O.map(h=>h==null?void 0:h.id);const u=C==null?void 0:C.map(h=>h==null?void 0:h.id);w=[...N.cloneDeep(w),...u],(w==null?void 0:w.length)>0&&(w!=null&&w.every(h=>h!==null&&h))&&await N.batchDeleteInsofDataApi({ids:w});const y=(L=Al.value)==null?void 0:L.find(h=>(h==null?void 0:h.label)==="新建");await dr(!1,y)}else if(e==="修改模板"){let R=N.cloneDeep($e).value;Xe.setRouteToChildPath(R),il.setActiveMenuPath(R+fe)}else if(e==="执行")xo(e,a);else if(e!=null&&e.includes("导出")){if(e==="导出选中"&&((P=wl.value)==null?void 0:P.length)===0)return N.ElMessage.warning(`请先勾选${e}的数据`);if(e==="导出全部"&&(($=Z.value)==null?void 0:$.length)===0)return N.ElMessage.warning("暂无数据导出");const R=(M=(S=X.value)==null?void 0:S.map(C=>C==null?void 0:C.label))==null?void 0:M.filter(C=>C!=="操作"),O=e==="导出全部"?N.cloneDeep(Z.value):N.cloneDeep(wl.value);O==null||O.forEach(C=>{C==null||delete C.id}),Ir(O,s==null?void 0:s.compName,R,s==null?void 0:s.compName)}else e==="OCR识别"?(_a.value=!0,zl.value=[]):e==="迁移"&&(Ye.selectRow=a,Ye.show=!0)},$o=async e=>{var r,o,n,c,t,i;const a=await N.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((r=a==null?void 0:a.data)==null?void 0:r.code)===200)return Array.isArray((o=a==null?void 0:a.data)==null?void 0:o.result)&&((c=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:c.length)>0?(i=(t=a==null?void 0:a.data)==null?void 0:t.result)==null?void 0:i.map(p=>{var k;return{id:p==null?void 0:p.id,...(k=p==null?void 0:p.value)==null?void 0:k.pageData}}):[]},Mo=async(e,a)=>{var r,o,n,c,t,i,p,k,_,v,A,L,P,$,S,M,R,O,C,w;try{let u,y;const h=(r=ra.value[$e.value+fe])==null?void 0:r.filter(x=>{var j;return((j=x==null?void 0:x.key)==null?void 0:j.type)==="structureMethod"}),K=(o=ra.value[$e.value+fe])==null?void 0:o.filter(x=>{var j;return((j=x==null?void 0:x.key)==null?void 0:j.type)==="structure"}),U=h==null?void 0:h.find(x=>{var j,le;return((le=(j=x==null?void 0:x.value)==null?void 0:j.pageData)==null?void 0:le.method)==="保存"});if(!U)return;const J=(i=(t=ra.value[(c=(n=U==null?void 0:U.value)==null?void 0:n.pageData)==null?void 0:c.path])==null?void 0:t.filter(x=>{var j;return((j=x==null?void 0:x.key)==null?void 0:j.type)==="data"}))==null?void 0:i.find(x=>{var j,le,ee,I;return((le=(j=x==null?void 0:x.value)==null?void 0:j.tableData)==null?void 0:le.算法名称)===((I=(ee=U==null?void 0:U.value)==null?void 0:ee.pageData)==null?void 0:I.method)});if(!J)return;const d={buttonName:(k=(p=U==null?void 0:U.value)==null?void 0:p.pageData)==null?void 0:k.method,api:(v=(_=J==null?void 0:J.value)==null?void 0:_.tableData)==null?void 0:v.算法体,content:K==null?void 0:K.map(x=>{var j;return(j=x==null?void 0:x.value)==null?void 0:j.pageData}),extraContent:[],extraValues:(L=(A=U==null?void 0:U.value)==null?void 0:A.pageData)==null?void 0:L.data,methodName:($=(P=U==null?void 0:U.value)==null?void 0:P.pageData)==null?void 0:$.path};if(!e)return;const T={...e,compData:(S=e==null?void 0:e.compData)==null?void 0:S.map(x=>{var j;return(x==null?void 0:x.key)==="formContent"?{...x,contents:(j=x==null?void 0:x.contents)==null?void 0:j.map(le=>(le==null?void 0:le.prop)===a?{...le,value:""}:le)}:x})},ie={key:{pageKey:$e.value+fe,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:T}},F=await N.axios.post(d.api,ie,{headers:{"Content-Type":"application/json"}});return((M=F==null?void 0:F.data)==null?void 0:M.code)===200&&(u=(O=(R=F==null?void 0:F.data)==null?void 0:R.result)==null?void 0:O.latestReportCode,y=(w=(C=F==null?void 0:F.data)==null?void 0:C.result)==null?void 0:w.status),{newMainKeyValue:u,newStatus:y}}catch(u){throw N.ElMessage.error(u),new Error(u)}},tr=(e,a,r,o)=>{var n;Ue("contentChange",{contents:(n=e==null?void 0:e.compData)==null?void 0:n.map(c=>{var t;return(c==null?void 0:c.key)==="formContent"?{...c,contents:(t=c==null?void 0:c.contents)==null?void 0:t.map(i=>(i==null?void 0:i.key)===a?{...i,value:r}:ga.value&&(i==null?void 0:i.prop)===ga.prop?{...i,value:ga.value}:i)}:c}),index:e==null?void 0:e.id},o)},ga=l.reactive({prop:"状态",value:""}),Ro=l.ref(["系统自动生成信息","审批意见"]),Fo=async(e,a,r)=>{var p,k;let o=e==null?void 0:e[a==null?void 0:a.prop],n=1,c,t;const i=N.cloneDeep($e).value+fe+o;if(i){ga.value="",c=(p=ra.value[i])==null?void 0:p.filter(A=>{var L;return((L=A==null?void 0:A.key)==null?void 0:L.type)==="structure"});const _=c==null?void 0:c.find(A=>{var L,P,$;return(($=(P=(L=A==null?void 0:A.value)==null?void 0:L.pageData)==null?void 0:P.comp)==null?void 0:$.toUpperCase())==="FORM"});t={...(k=_==null?void 0:_.value)==null?void 0:k.pageData,id:_==null?void 0:_.id};const v=await Mo(t,a==null?void 0:a.prop);if(ga.value=v==null?void 0:v.newStatus,v!=null&&v.newMainKeyValue)return v==null?void 0:v.newMainKeyValue}if(Z.value.some(_=>(_==null?void 0:_[a==null?void 0:a.prop])===o)){const _=o;for(;Z.value.some(v=>(v==null?void 0:v[a==null?void 0:a.prop])===`${_}(${n})`);)n++;o=`${_}(${n})`}return o},dr=async(e,a,r)=>{var t,i,p,k,_,v,A,L;let o,n;const c=await Fo(r==null?void 0:r.data,r==null?void 0:r.firstCol);if(e?(o=N.cloneDeep($e).value+fe+((k=r==null?void 0:r.data)==null?void 0:k[(p=r==null?void 0:r.firstCol)==null?void 0:p.prop]),n=N.cloneDeep($e).value+fe+c):(o=N.cloneDeep($e).value+fe,n=N.cloneDeep(o)+`loading${((t=ia.value)==null?void 0:t.account)||((i=ia.value)==null?void 0:i.账号)}`),a){const P=(v=(_=ra.value[n])==null?void 0:_.filter($=>{var S;return((S=$==null?void 0:$.key)==null?void 0:S.parentTable)===""}))==null?void 0:v.map($=>{var S;return{id:$==null?void 0:$.id,...(S=$==null?void 0:$.value)==null?void 0:S.pageData}});if((P==null?void 0:P.length)>0)if(e){const $=P==null?void 0:P.find(S=>{var M;return((M=S==null?void 0:S.comp)==null?void 0:M.toUpperCase())==="FORM"});$&&tr($,(A=r==null?void 0:r.firstCol)==null?void 0:A.label,c,$e.value)}else Xe.setRouteToChildPath(N.cloneDeep($e).value),il.setActiveMenuPath(n);else if(await ce.loadingConstruct(o,n,null,null,e?Ro.value:null),e){const $=await $o(n);if(($==null?void 0:$.length)>0){const S=$==null?void 0:$.find(M=>{var R;return((R=M==null?void 0:M.comp)==null?void 0:R.toUpperCase())==="FORM"});S&&tr(S,(L=r==null?void 0:r.firstCol)==null?void 0:L.label,c,$e.value)}}else Xe.setRouteToChildPath(N.cloneDeep($e).value),il.setActiveMenuPath(n)}else e?(Pl.value="",yl.value=r==null?void 0:r.data,ka(!0,r==null?void 0:r.firstCol,c)):(Xe.setRouteToChildPath(N.cloneDeep($e).value),il.setActiveMenuPath(n))},Ko=()=>{Q.value=!1,ta.value=[],be.value=!1},ba=e=>{var t,i,p,k,_,v,A,L,P,$,S,M,R,O,C,w,u,y,h,K,U,J;const a=[];let r=[];for(let d in e)Array.isArray(e==null?void 0:e[d])&&r.push(d);Ve.value=N.cloneDeep(X.value),(i=ce.getColumnChild((t=N.cloneDeep(X.value))==null?void 0:t.filter(d=>(d==null?void 0:d.label)!=="操作")))==null||i.forEach((d,T)=>{var ie,F,x;r.find(j=>j===(d==null?void 0:d.prop))||(d!=null&&d.formType&&((ie=d==null?void 0:d.formType)==null?void 0:ie.toUpperCase())==="SELECT"||d!=null&&d.menuId?a.push({label:(F=d==null?void 0:d.prop)!=null&&F.includes(".")?d==null?void 0:d.prop:(d==null?void 0:d.label)??(d==null?void 0:d.prop)??"",name:(d==null?void 0:d.prop)??"t"+T,prop:d==null?void 0:d.prop,type:"Select",value:(e==null?void 0:e[d==null?void 0:d.prop])??(d==null?void 0:d.value)??"",id:(d==null?void 0:d.id)??T,contents:(d==null?void 0:d.options)??[],width:1,isFormColHidden:d==null?void 0:d.isFormColHidden,relatedValueId:d==null?void 0:d.relatedValueId,disabled:d==null?void 0:d.disabled,optionUrl:{groupSelect:d==null?void 0:d.groupSelect,menuSelect:d==null?void 0:d.formMenuSelect,type:"Select",selectRelateType:d==null?void 0:d.selectRelateType,allSelectionContents:(d==null?void 0:d.allSelectionContents)??[],selectFilter:d==null?void 0:d.selectFilter,menuId:d==null?void 0:d.menuId,filterContent:d==null?void 0:d.filterContent}}):a.push({label:(x=d==null?void 0:d.prop)!=null&&x.includes(".")?d==null?void 0:d.prop:(d==null?void 0:d.label)??(d==null?void 0:d.prop)??"",prop:d==null?void 0:d.prop,name:(d==null?void 0:d.prop)??"t"+T,type:!(d!=null&&d.formType)||(d==null?void 0:d.formType)===""?"Input":d==null?void 0:d.formType,value:(e==null?void 0:e[d==null?void 0:d.prop])??(d==null?void 0:d.value)??"",id:(d==null?void 0:d.id)??T,contents:(d==null?void 0:d.options)??[],width:1,isFormColHidden:d==null?void 0:d.isFormColHidden,disabled:d==null?void 0:d.disabled,relatedValueId:d==null?void 0:d.relatedValueId}))}),e===""||!e||(Pl.value=(e==null?void 0:e.id)??"");let o=ce.getColumnChild((p=N.cloneDeep(X.value))==null?void 0:p.filter(d=>(d==null?void 0:d.label)!=="操作"));Dl.value&&((k=Dl.value)==null?void 0:k.length)>0&&(Dl.value=(_=N.cloneDeep(Dl).value)==null?void 0:_.map(d=>{var ie;let T=(d==null?void 0:d.prop)||((ie=o==null?void 0:o.find(F=>(F==null?void 0:F.label)===(d==null?void 0:d.label)))==null?void 0:ie.prop);return T&&(d.value=e[T]),d})),ke.value=Dl.value&&((v=Dl.value)==null?void 0:v.length)>0?ce.getTableFormToForm(Dl.value):a;let n=[],c=(A=s.itemData)==null?void 0:A.filter(d=>(d==null?void 0:d.key)==="filterAllType");if((c==null?void 0:c.length)>0&&(n=(c==null?void 0:c.map(T=>T==null?void 0:T.value)).flat()),(n==null?void 0:n.length)>0){let d=(P=n==null?void 0:n.filter(F=>{var x;return(x=F==null?void 0:F.content)==null?void 0:x.includes("@Type")}))==null?void 0:P[((L=n==null?void 0:n.filter(F=>{var x;return(x=F==null?void 0:F.content)==null?void 0:x.includes("@Type")}))==null?void 0:L.length)-1];if(d!=null&&d.content){let F=(M=(S=($=d==null?void 0:d.content)==null?void 0:$.replace(":",Gl))==null?void 0:S.split(Gl))==null?void 0:M[1];if(((R=F==null?void 0:F.trim())==null?void 0:R.toUpperCase())==="MANUAL"){let x=(y=(u=(O=s.itemData)==null?void 0:O.filter(j=>(j==null?void 0:j.key)==="contentTableId"))==null?void 0:u[((w=(C=s.itemData)==null?void 0:C.filter(j=>(j==null?void 0:j.key)==="contentTableId"))==null?void 0:w.length)-1])==null?void 0:y.contents;ke.value=(h=ke.value)==null?void 0:h.map((j,le)=>{var ee,I;return(ee=j==null?void 0:j.optionUrl)!=null&&ee.menuId&&(j.type="Select",(I=j==null?void 0:j.optionUrl)!=null&&I.menuId&&(j.optionUrl.menuId=j.optionUrl.menuId??x,j.optionUrl.menuFilter=n,Sl.value==="新增"&&(j.optionUrl.multiple=!0,j.optionUrl.multipleLimit=5))),j})}}let T=(K=ke.value)==null?void 0:K.filter(F=>{var x,j;return((x=F==null?void 0:F.optionUrl)==null?void 0:x.menuId)&&((j=F==null?void 0:F.optionUrl)==null?void 0:j.menuId)!==""}),ie;if(T==null||T.forEach(F=>{var j,le;if(ie!==void 0)return;let x=(j=F==null?void 0:F.optionUrl)==null?void 0:j.menuId;((le=T==null?void 0:T.filter(ee=>{var I;return((I=ee==null?void 0:ee.optionUrl)==null?void 0:I.menuId)===x}))==null?void 0:le.length)>1&&(ie=x)}),T=T==null?void 0:T.filter(F=>{var x;return((x=F==null?void 0:F.optionUrl)==null?void 0:x.menuId)===ie}),(T==null?void 0:T.length)>1){let F=T==null?void 0:T.map(ee=>ee==null?void 0:ee.prop),x=T==null?void 0:T.map(ee=>ee==null?void 0:ee.label),j=T==null?void 0:T.map(ee=>ee==null?void 0:ee.value),le=(U=N.cloneDeep(T))==null?void 0:U[0];le.label=x==null?void 0:x.join("·"),le.value=j==null?void 0:j.join(" "),le.value.trim()===""&&(le.value=""),le.prop=F==null?void 0:F.join("·"),le.usingType="parent",ke.value.unshift(le),ke.value=(J=ke.value)==null?void 0:J.map(ee=>(F!=null&&F.find(I=>I===(ee==null?void 0:ee.prop))&&(ee.isFormColHidden=!0),ee))}}},zo=()=>{var a;const e=(a=V.value)==null?void 0:a.$el;e&&ce.Sortable.create(e,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:r=>{var t;const{oldIndex:o,newIndex:n}=r;if(o===n)return;const c=ya.value.splice(o,1)[0];ya.value.splice(n,0,c),X.value=(t=X.value)==null?void 0:t.slice().sort((i,p)=>{if(i.label==="操作")return 1;if(p.label==="操作")return-1;const k=ya.value.findIndex(v=>v.label===i.label),_=ya.value.findIndex(v=>v.label===p.label);return k-_})}})};l.onMounted(()=>{Pa.value=window.innerWidth-240*2});const Vo=()=>{l.nextTick(()=>{zo()})},Wa=(e,a)=>{var o;if(!e&&!(e!=null&&e.children))return{contents:e,currentSelectContents:void 0};let r;return e.children=(o=e.children)==null?void 0:o.map(n=>{var c,t;if((n==null?void 0:n.id)===Pl.value){let i={};for(let p in n){let k=(c=a==null?void 0:a.find(_=>(_==null?void 0:_.prop)===p))==null?void 0:c.label;k?i[p]=(t=yl.value)==null?void 0:t[k]:i[p]=n[p]}n=Object.assign(i,yl.value),r=n}else{let i=Wa(n,a);n=i==null?void 0:i.contents,r=i==null?void 0:i.currentSelectContents}return n}),{contents:e,currentSelectContents:r}},pr=(e,a)=>{let r,o;return e!=null&&e.find(n=>(n==null?void 0:n.id)===Pl.value)?r=e==null?void 0:e.map(n=>{var c,t;if((n==null?void 0:n.id)===Pl.value){let i={};for(let p in n){let k=(c=a==null?void 0:a.find(_=>(_==null?void 0:_.prop)===p))==null?void 0:c.label;k?i[p]=(t=yl.value)==null?void 0:t[k]:i[p]=n[p]}n=Object.assign(i,yl.value),o=n}return n}):r=e==null?void 0:e.map(n=>{var c,t,i,p;if((n==null?void 0:n.id)===Pl.value){let k={};for(let _ in n){let v=(c=a==null?void 0:a.find(A=>(A==null?void 0:A.prop)===_))==null?void 0:c.label;v?k[_]=(t=yl.value)==null?void 0:t[v]:k[_]=n[_]}n=Object.assign(k,yl.value),o=n}else n=(i=Wa(n,a))==null?void 0:i.contents,o=(p=Wa(n,a))==null?void 0:p.currentSelectContents;return n}),{newContents:r,currentSelectContents:o}},fr=(e,a,r)=>{var o,n;return e[a==null?void 0:a.prop]=r,typeof e.id=="number"&&(e.id=(o=e.id)==null?void 0:o.toString()),e.children&&((n=e.children)==null?void 0:n.length)>0&&(e.children=e.children.map(fr)),e},Ga=e=>{var r;const a=[];return a.push({...e}),e!=null&&e.children&&Array.isArray(e.children)&&((r=e.children)==null||r.forEach(o=>{a.push(...Ga(o))})),(a==null?void 0:a.length)>0?a==null?void 0:a.map(o=>{const n={...o};return delete n.children,n}):[]},ka=(e=!0,a,r)=>{var k,_,v,A,L,P,$,S,M,R,O,C,w,u,y,h,K,U,J,d,T,ie,F,x,j,le,ee,I,ve,Ae;let o=ce.getColumnChild((k=N.cloneDeep(X.value))==null?void 0:k.filter(G=>(G==null?void 0:G.label)!=="操作")),n,c=N.cloneDeep(Z.value);if(!yl.value){$l.value=!1;return}if(Pl.value===""){oa.value++;let G;a&&r?G={id:oa.value.toString(),[a==null?void 0:a.prop]:r,children:yl.value.children}:G={id:oa.value.toString()},G!=null&&G.children&&(G={...G,children:(_=G.children)==null?void 0:_.map(re=>fr(re,a,r))}),c.push(Object.assign(yl.value,G)),n=Object.assign(yl.value,G)}else c=(v=pr(c,o))==null?void 0:v.newContents,n=(A=pr(c,o))==null?void 0:A.currentSelectContents;const t=(L=s.itemData)==null?void 0:L.filter(G=>(G==null?void 0:G.key)==="childTree")[0];if(((P=t==null?void 0:t.contents)==null?void 0:P.length)>0){Sl.value="编辑";const G=[];c==null||c.forEach((re,Le)=>{var pe;let se={};if(Array.isArray(re)){let xe=[];re==null||re.filter(ze=>!(ze!=null&&ze.id)).forEach((ze,D)=>{var H,Me,je,Je,f,ae,Te;if((Me=(H=El.value)==null?void 0:H[D])!=null&&Me.prop&&!Array.isArray(ze)){let m={};m[El.value[D].column]=ze,Ke!=null&&Ke.value&&((je=Ke==null?void 0:Ke.value)==null?void 0:je.length)>0&&((Je=Ke==null?void 0:Ke.value)!=null&&Je.find(ge=>JSON.stringify(ge==null?void 0:ge[0])===JSON.stringify(m)))&&(xe=(f=Ke==null?void 0:Ke.value)==null?void 0:f.find(ge=>JSON.stringify(ge==null?void 0:ge[0])===JSON.stringify(m))),xe&&xe.length>0?se[El.value[D].prop]=xe!=null&&xe.find(ge=>{var we;return((we=Object.keys(ge))==null?void 0:we[0])===El.value[D].column})?(ae=xe==null?void 0:xe.find(ge=>{var we;return((we=Object.keys(ge))==null?void 0:we[0])===El.value[D].column}))==null?void 0:ae[El.value[D].column]:ze:se[El.value[D].prop]=ze}else Array.isArray(ze)&&((Te=El.value[D])!=null&&Te.prop?se[El.value[D].prop]=ze:se.children=Qa(ze,El.value))})}else se=re;if(Array.isArray(re)&&re.some(xe=>xe==null?void 0:xe.id)){const xe=(pe=re==null?void 0:re.find(ze=>ze.id))==null?void 0:pe.id;G.push(Object.assign(se,{id:or(xe)}))}else se.id?G.push(se):G.push(Object.assign(se,{id:Le.toString()}))}),Z.value=br(G,t,X.value)}else Z.value=c;vr(Z.value),pa.value=Z.value;const i=Tn(pa.value,fa.value,c);let p=[];if(ua.value?(p=($=N.cloneDeep(ua).value.singleContent)==null?void 0:$.filter(G=>(G==null?void 0:G.id)!==(n==null?void 0:n.id)),p.push(n)):p=[n],Tl.value){const G={content:i,singleContent:((S=t==null?void 0:t.contents)==null?void 0:S.length)>0?p==null?void 0:p.flatMap(Ga):p,index:s==null?void 0:s.index,buttonName:"编辑",column:X.value,parentTableId:s==null?void 0:s.parentTableId};Xe.setCacheUpdatingData(G)}if(e){let G=(C=(O=(R=(M=s.itemData)==null?void 0:M.find(se=>(se==null?void 0:se.key)==="filterAllType"))==null?void 0:R.value)==null?void 0:O.find(se=>(se==null?void 0:se.value)==="onConditionContents"))==null?void 0:C.content,re=(w=s.itemData)==null?void 0:w.filter(se=>(se==null?void 0:se.key)==="filterAllType");re=Array.from(new Map(re.filter(Boolean).map((se,pe)=>[se.value,{...se,_idx:pe}])).values()).sort((se,pe)=>se._idx-pe._idx).map(({_idx:se,...pe})=>pe),re=(u=re==null?void 0:re[(re==null?void 0:re.length)-1])==null?void 0:u.value;const Le={content:i,singleContent:((y=t==null?void 0:t.contents)==null?void 0:y.length)>0?Ga(n):n,index:s==null?void 0:s.index,buttonName:Sl.value,column:X.value,parentTableId:s==null?void 0:s.parentTableId,filter:G,allFilter:re,pathIndex:(K=(h=s.itemData)==null?void 0:h.find(se=>(se==null?void 0:se.key)==="relatedFilter"))==null?void 0:K.index,rowContents:ke.value,addArrayValues:He.value};Xe.setTableLoading(s==null?void 0:s.index),$l.value=!1,yl.value=void 0,Ue("change",Le)}if((d=(J=(U=ke.value)==null?void 0:U[0])==null?void 0:J.optionUrl)!=null&&d.menuId){$l.value=!1;let G=(T=s.itemData)==null?void 0:T.filter(re=>(re==null?void 0:re.key)==="filterAllType");if((G==null?void 0:G.length)>0){let re=G==null?void 0:G.map(pe=>pe==null?void 0:pe.value),Le=(x=(F=(ie=re.flat().find(pe=>{var xe;return(xe=pe==null?void 0:pe.content)==null?void 0:xe.includes("@Num")}))==null?void 0:ie.content)==null?void 0:F.split(":"))==null?void 0:x[1];((ee=(le=(j=re.flat().find(pe=>{var xe;return(xe=pe==null?void 0:pe.content)==null?void 0:xe.includes("@Type:")}))==null?void 0:j.content)==null?void 0:le.split(":"))==null?void 0:ee[1])!=="Manual"&&(Le=parseInt(Le),Z.value=(Ae=Z.value)==null?void 0:Ae.slice(((I=Z.value)==null?void 0:I.length)-Le,(ve=Z.value)==null?void 0:ve.length))}}};l.onUnmounted(()=>{X.value=[],Z.value=[],Ve.value=[],ja.value=[],Dl.value=[],Hl.value=[],ta.value=[],_l.value=[],ke.value=[],wl.value=[],V.value=null});const hr=async(e,a,r)=>{var k,_,v,A,L,P,$,S,M,R,O;Bl.value=r==null?void 0:r.prop;const o=N.cloneDeep(s.itemData),n=o==null?void 0:o.map(C=>{var w;return(C==null?void 0:C.key)==="header"&&((w=C.contents)==null||w.map((u,y)=>{var h,K,U,J,d,T,ie,F,x,j,le,ee,I,ve,Ae,G,re,Le,se;return u.type=u!=null&&u.type?u.type:(J=(U=(K=(h=u==null?void 0:u.key)==null?void 0:h.split("$"))==null?void 0:K[1])==null?void 0:U.split("("))!=null&&J[0]?(T=(d=ce.FormType)==null?void 0:d.find(pe=>{var xe,ze,D,H;return(pe==null?void 0:pe.key)===((H=(D=(ze=(xe=u==null?void 0:u.key)==null?void 0:xe.split("$"))==null?void 0:ze[1])==null?void 0:D.split("("))==null?void 0:H[0])}))==null?void 0:T.value:"Input",u.options=u!=null&&u.options?u.options:((x=(F=(ie=u==null?void 0:u.key)==null?void 0:ie.split("$"))==null?void 0:F[1])==null?void 0:x.length)>0?(I=(ee=Ba((le=(j=u==null?void 0:u.key)==null?void 0:j.split("$"))==null?void 0:le[1]))==null?void 0:ee.split(","))==null?void 0:I.map(pe=>({label:pe,value:pe})):[],(ve=u==null?void 0:u.key)!=null&&ve.includes("$")&&(u.key=(G=(Ae=u==null?void 0:u.key)==null?void 0:Ae.split("$"))==null?void 0:G[0]),u.value=(re=Object.values(a))==null?void 0:re[y],u.optionUrl=u!=null&&u.formMenuSelect&&((Le=u==null?void 0:u.formMenuSelect)==null?void 0:Le.length)>0?{groupSelect:(se=u==null?void 0:u.groupSelect)==null?void 0:se.split(/[::]/).map(pe=>pe.trim()),menuSelect:u==null?void 0:u.formMenuSelect,selectRelateType:"",type:(u==null?void 0:u.formType)??(u!=null&&u.groupSelect?"Select":"")}:null,u})),C});let c=N.cloneDeep(ke.value),t=(_=(k=N.cloneDeep(n))==null?void 0:k.find(C=>(C==null?void 0:C.key)==="header"))==null?void 0:_.contents;c=c==null?void 0:c.map(C=>{var w;return C.value=(w=t==null?void 0:t.find((u,y)=>y===(C==null?void 0:C.id)))==null?void 0:w.value,C});let i="",p=(L=(A=(v=N.cloneDeep(n))==null?void 0:v.find(C=>(C==null?void 0:C.key)==="header"))==null?void 0:A.contents)==null?void 0:L.find((C,w)=>{var u,y,h;return(C==null?void 0:C.label)===Bl.value||(w==null?void 0:w.toString())===((h=(y=(u=Bl.value)==null?void 0:u.split("a"))==null?void 0:y[1])==null?void 0:h.toString())});if((S=($=(P=N.cloneDeep(n))==null?void 0:P.find(C=>(C==null?void 0:C.key)==="header"))==null?void 0:$.contents)==null||S.forEach(C=>{var w,u,y,h,K;i===""&&((y=(u=(w=C==null?void 0:C.optionUrl)==null?void 0:w.groupSelect)==null?void 0:u[1])!=null&&y.includes("["))&&(i=(K=(h=C==null?void 0:C.optionUrl)==null?void 0:h.groupSelect)==null?void 0:K[1])}),(M=p==null?void 0:p.optionUrl)!=null&&M.menuSelect){let C=await Oa(p),w;if(C==null||C.forEach(u=>{var y,h,K,U,J,d,T,ie,F,x;i===((h=(y=p==null?void 0:p.optionUrl)==null?void 0:y.groupSelect)==null?void 0:h[1])&&((J=(U=(K=p==null?void 0:p.optionUrl)==null?void 0:K.groupSelect)==null?void 0:U[1])!=null&&J.includes("["))&&((x=N.cloneDeep(u))==null?void 0:x[(F=(ie=(T=(d=p==null?void 0:p.optionUrl)==null?void 0:d.groupSelect)==null?void 0:T[1])==null?void 0:ie.replaceAll("[",""))==null?void 0:F.replaceAll("]","")])===(p==null?void 0:p.value)&&(w=u)}),w){let u=N.cloneDeep(c);u=u==null?void 0:u.map(h=>{var K,U,J,d,T,ie,F,x,j,le,ee;return(w!=null&&w[h==null?void 0:h.label]||w!=null&&w[(d=(J=(U=(K=h==null?void 0:h.optionUrl)==null?void 0:K.groupSelect)==null?void 0:U[1])==null?void 0:J.replaceAll("[",""))==null?void 0:d.replaceAll("]","")])&&((F=(ie=(T=h==null?void 0:h.optionUrl)==null?void 0:T.groupSelect)==null?void 0:ie[1])!=null&&F.includes("["))&&(h.value=(w==null?void 0:w[h==null?void 0:h.label])||(w==null?void 0:w[(ee=(le=(j=(x=h==null?void 0:h.optionUrl)==null?void 0:x.groupSelect)==null?void 0:j[1])==null?void 0:le.replaceAll("[",""))==null?void 0:ee.replaceAll("]","")])),h}),Z.value=(R=N.cloneDeep(Z.value))==null?void 0:R.map(h=>{if((h==null?void 0:h.id)===(a==null?void 0:a.id)){const K={};return u==null||u.forEach(U=>{K[U.name]=U.value}),K.id=h==null?void 0:h.id,K}return h});let y=N.cloneDeep(u);y=y==null?void 0:y.map(h=>{var K,U,J,d;return(U=(K=h==null?void 0:h.optionUrl)==null?void 0:K.menuSelect)!=null&&U.some(T=>T==null?void 0:T.includes)&&(h.optionUrl.menuSelect=(d=(J=h==null?void 0:h.optionUrl)==null?void 0:J.menuSelect)==null?void 0:d.map(T=>{var ie,F,x,j;if(T!=null&&T.includes("[")){let le=(F=(ie=T==null?void 0:T.replaceAll("[","").replaceAll("]",""))==null?void 0:ie.split(":"))==null?void 0:F[1];T=(j=(x=N.cloneDeep(u))==null?void 0:x.find(ee=>(ee==null?void 0:ee.label)===le))==null?void 0:j.value}return T})),h}),Z.value=(O=N.cloneDeep(Z.value))==null?void 0:O.map(h=>{if((h==null?void 0:h.id)===(a==null?void 0:a.id)){const K={};return y==null||y.forEach(U=>{K[U.name]=U.value}),K.id=h==null?void 0:h.id,K}return h})}}},qo=async e=>{var L,P,$,S,M,R,O,C,w,u,y,h,K,U,J,d,T,ie,F,x,j,le,ee,I,ve,Ae,G,re,Le,se,pe,xe,ze;if(!e)return;yl.value=e;const a=N.cloneDeep(s.itemData);let r=a==null?void 0:a.map(D=>{var H,Me,je,Je;return(D==null?void 0:D.key)==="header"&&(Array.isArray((H=D.contents)==null?void 0:H[0])?D.contents=(je=ce.getColumnChild((Me=D.contents)==null?void 0:Me[0]))==null?void 0:je.map((f,ae)=>{var Te,m,ge,we,el,ll,al,rl,ol,nl,Ie,Se,Ee,sl,pl,fl,gl,dl,b,q,_e,ul,Nl,cl;return f.type=f!=null&&f.type?f.type:(we=(ge=(m=(Te=f==null?void 0:f.key)==null?void 0:Te.split("$"))==null?void 0:m[1])==null?void 0:ge.split("("))!=null&&we[0]?(ll=(el=ce.FormType)==null?void 0:el.find(De=>{var bl,ye,B,g;return(De==null?void 0:De.key)===((g=(B=(ye=(bl=f==null?void 0:f.key)==null?void 0:bl.split("$"))==null?void 0:ye[1])==null?void 0:B.split("("))==null?void 0:g[0])}))==null?void 0:ll.value:"Input",f.options=f!=null&&f.options?f.options:((ol=(rl=(al=f==null?void 0:f.key)==null?void 0:al.split("$"))==null?void 0:rl[1])==null?void 0:ol.length)>0?(Ee=(Se=Ba((Ie=(nl=f==null?void 0:f.key)==null?void 0:nl.split("$"))==null?void 0:Ie[1]))==null?void 0:Se.split(","))==null?void 0:Ee.map(De=>({label:De,value:De})):[],(sl=f==null?void 0:f.key)!=null&&sl.includes("$")&&(f.key=(fl=(pl=f==null?void 0:f.key)==null?void 0:pl.split("$"))==null?void 0:fl[0]),((b=(dl=(gl=ke.value)==null?void 0:gl.find(De=>(De==null?void 0:De.prop)===(f==null?void 0:f.prop)))==null?void 0:dl.optionUrl)==null?void 0:b.multiple)===!0&&!Array.isArray((q=Object.values(e))==null?void 0:q[ae])?f.value=[(_e=Object.values(e))==null?void 0:_e[ae]]:f.value=(ul=Object.values(e))==null?void 0:ul[ae],f.optionUrl=f!=null&&f.formMenuSelect&&((Nl=f==null?void 0:f.formMenuSelect)==null?void 0:Nl.length)>0?{groupSelect:(cl=f==null?void 0:f.groupSelect)==null?void 0:cl.split(/[::]/).map(De=>De.trim()),menuSelect:f==null?void 0:f.formMenuSelect,selectRelateType:"",type:(f==null?void 0:f.formType)??(f!=null&&f.groupSelect?"Select":"")}:null,f}):D.contents=(Je=D.contents)==null?void 0:Je.map((f,ae)=>{var Te,m,ge,we,el,ll,al,rl,ol,nl,Ie,Se,Ee,sl,pl,fl,gl,dl,b,q,_e,ul,Nl,cl;return f.type=f!=null&&f.type?f.type:(we=(ge=(m=(Te=f==null?void 0:f.key)==null?void 0:Te.split("$"))==null?void 0:m[1])==null?void 0:ge.split("("))!=null&&we[0]?(ll=(el=ce.FormType)==null?void 0:el.find(De=>{var bl,ye,B,g;return(De==null?void 0:De.key)===((g=(B=(ye=(bl=f==null?void 0:f.key)==null?void 0:bl.split("$"))==null?void 0:ye[1])==null?void 0:B.split("("))==null?void 0:g[0])}))==null?void 0:ll.value:"Input",f.options=f!=null&&f.options?f.options:((ol=(rl=(al=f==null?void 0:f.key)==null?void 0:al.split("$"))==null?void 0:rl[1])==null?void 0:ol.length)>0?(Ee=(Se=Ba((Ie=(nl=f==null?void 0:f.key)==null?void 0:nl.split("$"))==null?void 0:Ie[1]))==null?void 0:Se.split(","))==null?void 0:Ee.map(De=>({label:De,value:De})):[],(sl=f==null?void 0:f.key)!=null&&sl.includes("$")&&(f.key=(fl=(pl=f==null?void 0:f.key)==null?void 0:pl.split("$"))==null?void 0:fl[0]),((b=(dl=(gl=ke.value)==null?void 0:gl.find(De=>(De==null?void 0:De.prop)===(f==null?void 0:f.prop)))==null?void 0:dl.optionUrl)==null?void 0:b.multiple)===!0&&!Array.isArray((q=Object.values(e))==null?void 0:q[ae])?f.value=[(_e=Object.values(e))==null?void 0:_e[ae]]:f.value=(ul=Object.values(e))==null?void 0:ul[ae],f.optionUrl=f!=null&&f.formMenuSelect&&((Nl=f==null?void 0:f.formMenuSelect)==null?void 0:Nl.length)>0?{groupSelect:(cl=f==null?void 0:f.groupSelect)==null?void 0:cl.split(/[::]/).map(De=>De.trim()),menuSelect:f==null?void 0:f.formMenuSelect,selectRelateType:"",type:(f==null?void 0:f.formType)??(f!=null&&f.groupSelect?"Select":"")}:null,f})),D}),o=ke.value,n=(P=(L=N.cloneDeep(r))==null?void 0:L.find(D=>(D==null?void 0:D.key)==="header"))==null?void 0:P.contents;if(n=n==null?void 0:n.filter(D=>(D==null?void 0:D.label)!=="操作"),n.push({label:"操作",type:"operate"}),o=o==null?void 0:o.map(D=>{var H;return D.value=D.value??((H=n==null?void 0:n.find((Me,je)=>(Me==null?void 0:Me.prop)===(D==null?void 0:D.name)))==null?void 0:H.value),D}),!ha.value)return;let c="",t=N.cloneDeep(Bl.value);($=Bl.value)!=null&&$.includes("·")&&(Bl.value=(M=(S=Bl.value)==null?void 0:S.split("·"))==null?void 0:M[0]);let i=(C=(O=(R=N.cloneDeep(r))==null?void 0:R.find(D=>(D==null?void 0:D.key)==="header"))==null?void 0:O.contents)==null?void 0:C.find((D,H)=>{var Me,je,Je;return(D==null?void 0:D.prop)===Bl.value||(H==null?void 0:H.toString())===((Je=(je=(Me=Bl.value)==null?void 0:Me.split("a"))==null?void 0:je[1])==null?void 0:Je.toString())}),p=(w=i==null?void 0:i.optionUrl)==null?void 0:w.menuSelect,k=!0;(h=(y=(u=N.cloneDeep(r))==null?void 0:u.find(D=>(D==null?void 0:D.key)==="header"))==null?void 0:y.contents)==null||h.forEach(D=>{var Me,je,Je,f,ae,Te,m;let H=(je=(Me=D==null?void 0:D.optionUrl)==null?void 0:Me.groupSelect)==null?void 0:je[1];!H&&!Array.isArray((Je=D==null?void 0:D.optionUrl)==null?void 0:Je.groupSelect)&&(H=(Te=(ae=(f=D==null?void 0:D.optionUrl)==null?void 0:f.groupSelect)==null?void 0:ae.split(":"))==null?void 0:Te[1]),k&&(H!=null&&H.includes("["))&&(c=H,JSON.stringify(p)===JSON.stringify((m=D==null?void 0:D.optionUrl)==null?void 0:m.menuSelect)&&(k=!1))});let _=N.cloneDeep(o),v=Y.value;v!=null&&v.find(D=>(i==null?void 0:i.prop)===(D==null?void 0:D.key))&&(v=v==null?void 0:v.filter(D=>(i==null?void 0:i.prop)!==(D==null?void 0:D.key))),v!=null&&v.find(D=>t===(D==null?void 0:D.key))&&(v=v==null?void 0:v.filter(D=>t!==(D==null?void 0:D.key))),_=_==null?void 0:_.map(D=>{var H,Me,je,Je,f,ae,Te,m,ge;return(D==null?void 0:D.type)==="Select"&&(((Me=(H=D==null?void 0:D.optionUrl)==null?void 0:H.allSelectionContents)==null?void 0:Me.length)>0&&(D.optionUrl.contactValue=e),((i==null?void 0:i.prop)===(D==null?void 0:D.prop)||t===(D==null?void 0:D.prop))&&i&&(Array.isArray(i.value)&&((je=i.value)==null?void 0:je.length)>0&&((Je=i.value)!=null&&Je.every(we=>typeof we=="string"))?(v.push({key:D==null?void 0:D.prop,value:[(ae=i.value)==null?void 0:ae[((f=i.value)==null?void 0:f.length)-1]]}),D.selectValue=(Te=v==null?void 0:v.find(we=>(we==null?void 0:we.key)===(D==null?void 0:D.prop)))==null?void 0:Te.value):Array.isArray(i.value)&&((m=i.value)==null?void 0:m.length)===0?(v=[],D.selectValue=[],e[D==null?void 0:D.prop]=""):Array.isArray(D.value)&&v.push({key:D==null?void 0:D.prop,value:[(ge=D.value)==null?void 0:ge[(D==null?void 0:D.length)-1]]}))),D.value=e==null?void 0:e[D==null?void 0:D.prop],D}),Y.value=v,ke.value=N.cloneDeep(_);let A=(i==null?void 0:i.menuId)??((J=(U=(K=ke.value)==null?void 0:K.find(D=>{var H;return(H=D==null?void 0:D.optionUrl)==null?void 0:H.menuId}))==null?void 0:U.optionUrl)==null?void 0:J.menuId);if((d=i==null?void 0:i.optionUrl)!=null&&d.menuSelect&&ha.value||A){let D=await Oa(i,A),H;if(D==null||D.forEach(f=>{var ae,Te,m,ge,we,el,ll,al,rl,ol,nl,Ie,Se,Ee,sl,pl,fl,gl,dl,b,q,_e,ul,Nl,cl,De,bl;if(!A&&c===((Te=(ae=i==null?void 0:i.optionUrl)==null?void 0:ae.groupSelect)==null?void 0:Te[1])&&((we=(ge=(m=i==null?void 0:i.optionUrl)==null?void 0:m.groupSelect)==null?void 0:ge[1])!=null&&we.includes("["))&&((ol=N.cloneDeep(f))==null?void 0:ol[(rl=(al=(ll=(el=i==null?void 0:i.optionUrl)==null?void 0:el.groupSelect)==null?void 0:ll[1])==null?void 0:al.replaceAll("[",""))==null?void 0:rl.replaceAll("]","")])===(i==null?void 0:i.value)&&(H=f),A){let ye=(Ie=(nl=ke.value)==null?void 0:nl.find(ue=>{var me;return(i==null?void 0:i.menuId)===((me=ue==null?void 0:ue.optionUrl)==null?void 0:me.menuId)}))==null?void 0:Ie.prop,B=e[ye];if(ye!=null&&ye.includes("·"))if(!Array.isArray(e[ye]))B=(Ee=(Se=e[ye])==null?void 0:Se.split(" "))==null?void 0:Ee[0],ye=(sl=ye==null?void 0:ye.split("·"))==null?void 0:sl[0];else{ye=(pl=ye==null?void 0:ye.split("·"))==null?void 0:pl[0];let ue=(gl=(fl=_==null?void 0:_.find(me=>(me==null?void 0:me.prop)===ye))==null?void 0:fl.selectValue)==null?void 0:gl[0];B=(dl=ue==null?void 0:ue.split(" "))==null?void 0:dl[0]}let g=(q=(b=_==null?void 0:_.find(ue=>{var me;return(ue==null?void 0:ue.prop)===ye||((me=ue==null?void 0:ue.prop)==null?void 0:me.includes("."+ye))}))==null?void 0:b.selectValue)==null?void 0:q[0];if(ye!=null&&ye.includes(".")&&!f[ye]&&(ye=(ul=ye==null?void 0:ye.split("."))==null?void 0:ul[((_e=ye==null?void 0:ye.split("."))==null?void 0:_e.length)-1]),Array.isArray(B)&&!g&&(g=B==null?void 0:B[0]),f[ye]===(Array.isArray(B)?g:B)&&(i==null?void 0:i.directiveLabel)==="#isMain"){if(t!=null&&t.includes("·")){let ue=t==null?void 0:t.split("·"),me=(bl=(De=(cl=Array.isArray(e==null?void 0:e[t])?(Nl=e==null?void 0:e[t])==null?void 0:Nl[0]:e==null?void 0:e[t])==null?void 0:cl.split(" "))==null?void 0:De.filter(Ne=>Ne&&Ne!==""))==null?void 0:bl.map(Ne=>Ne==null?void 0:Ne.trim());ue==null||ue.forEach((Ne,We)=>{f[Ne]=me==null?void 0:me[We]})}H=f}}}),ml.value&&(i==null?void 0:i.directiveLabel)==="#isMain"&&(He.value=[]),!H){if(ml.value&&(i==null?void 0:i.directiveLabel)==="#isMain")if(t!=null&&t.includes("·")){let f=e,ae=(F=(ie=(T=e==null?void 0:e[t])==null?void 0:T.split(" "))==null?void 0:ie.filter(m=>m&&m!==""))==null?void 0:F.map(m=>m==null?void 0:m.trim());(x=t==null?void 0:t.split("·"))==null||x.forEach((m,ge)=>{f[m]=ae[ge]});let Te=(j=ke.value)==null?void 0:j.find(m=>(m==null?void 0:m.prop)===t);f[Te.prop]=[Te.value],H=f}else{let f=(le=ke.value)==null?void 0:le.find(ae=>(ae==null?void 0:ae.prop)===(i==null?void 0:i.prop));e[f.prop]=[f.value],H=e}else if((i==null?void 0:i.directiveLabel)==="#isMain"){let f={};(ee=ke.value)==null||ee.forEach(ae=>{var Te,m;(ae==null?void 0:ae.prop)===t?f[ae.prop]=(Te=ae==null?void 0:ae.selectValue)!=null&&Te[0]?[(m=ae==null?void 0:ae.selectValue)==null?void 0:m[0]]:"":f[ae.prop]=""}),H=f}}if(H){let f=N.cloneDeep(o);f=f==null?void 0:f.map(m=>{var we,el,ll,al,rl,ol,nl,Ie,Se,Ee,sl,pl,fl,gl,dl,b,q,_e,ul,Nl,cl,De,bl,ye,B,g,ue,me,Ne,We,Re,Ml,ql,Jl,Ce,Cl,Ol,Wl,hl,Ql,Cr,xr,_r,Ar;if(((we=m==null?void 0:m.prop)!=null&&we.includes(".")&&(H!=null&&H[(rl=(el=m==null?void 0:m.prop)==null?void 0:el.split("."))==null?void 0:rl[((al=(ll=m==null?void 0:m.prop)==null?void 0:ll.split("."))==null?void 0:al.length)-1]])||H!=null&&H[m==null?void 0:m.prop]||H!=null&&H[(Se=(Ie=(nl=(ol=m==null?void 0:m.optionUrl)==null?void 0:ol.groupSelect)==null?void 0:nl[1])==null?void 0:Ie.replaceAll("[",""))==null?void 0:Se.replaceAll("]","")])&&((pl=(sl=(Ee=m==null?void 0:m.optionUrl)==null?void 0:Ee.groupSelect)==null?void 0:sl[1])!=null&&pl.includes("["))&&!(m!=null&&m.relatedValueId))return m.value=(H==null?void 0:H[m==null?void 0:m.prop])??(H==null?void 0:H[(b=(fl=m==null?void 0:m.prop)==null?void 0:fl.split("."))==null?void 0:b[((dl=(gl=m==null?void 0:m.prop)==null?void 0:gl.split("."))==null?void 0:dl.length)-1]])??(H==null?void 0:H[(Nl=(ul=(_e=(q=m==null?void 0:m.optionUrl)==null?void 0:q.groupSelect)==null?void 0:_e[1])==null?void 0:ul.replaceAll("[",""))==null?void 0:Nl.replaceAll("]","")]),m;let ge=H==null?void 0:H[m==null?void 0:m.prop];return(cl=m==null?void 0:m.prop)!=null&&cl.includes(".")&&!ge&&((bl=(De=i==null?void 0:i.prop)==null?void 0:De.split("."))==null?void 0:bl[0])===((B=(ye=m==null?void 0:m.prop)==null?void 0:ye.split("."))==null?void 0:B[0])&&(ge=(H==null?void 0:H[(Ne=(g=m==null?void 0:m.prop)==null?void 0:g.split("."))==null?void 0:Ne[((me=(ue=m==null?void 0:m.prop)==null?void 0:ue.split("."))==null?void 0:me.length)-1]])??(H==null?void 0:H[m==null?void 0:m.prop])),A&&(ge||ge==="")&&(m!=null&&m.relatedValueId)&&Sl.value==="新增"&&((m==null?void 0:m.prop)!==(i==null?void 0:i.prop)||t!=null&&t.includes((i==null?void 0:i.prop)+"·")||t!=null&&t.includes("·"+(m==null?void 0:m.prop)))?m.value=ge??(H==null?void 0:H[(ql=(Ml=(Re=(We=m==null?void 0:m.optionUrl)==null?void 0:We.groupSelect)==null?void 0:Re[1])==null?void 0:Ml.replaceAll("[",""))==null?void 0:ql.replaceAll("]","")]):(t!=null&&t.includes("·"+(m==null?void 0:m.prop))||t!=null&&t.includes("."))&&(m==null?void 0:m.prop)!==(i==null?void 0:i.prop)&&!Array.isArray((Ce=(Jl=ke.value)==null?void 0:Jl.find(tl=>(tl==null?void 0:tl.prop)===(m==null?void 0:m.prop)))==null?void 0:Ce.value)?m.value=ge??"":((Cl=m==null?void 0:m.optionUrl)==null?void 0:Cl.multiple)===!0&&!Array.isArray((Wl=(Ol=ke.value)==null?void 0:Ol.find(tl=>(tl==null?void 0:tl.prop)===(m==null?void 0:m.prop)))==null?void 0:Wl.value)?m.value=((Ql=(hl=ke.value)==null?void 0:hl.find(tl=>(tl==null?void 0:tl.prop)===(m==null?void 0:m.prop)))==null?void 0:Ql.value)===""?[]:[(xr=(Cr=ke.value)==null?void 0:Cr.find(tl=>(tl==null?void 0:tl.prop)===(m==null?void 0:m.prop)))==null?void 0:xr.value]:m.value=(Ar=(_r=ke.value)==null?void 0:_r.find(tl=>(tl==null?void 0:tl.prop)===(m==null?void 0:m.prop)))==null?void 0:Ar.value,m}),ke.value=N.cloneDeep(f);let ae=N.cloneDeep(f);ae=ae==null?void 0:ae.map(m=>{var ge,we,el,ll,al,rl,ol,nl,Ie;return(we=(ge=m==null?void 0:m.optionUrl)==null?void 0:ge.menuSelect)!=null&&we.some(Se=>Se==null?void 0:Se.includes("["))&&(m.optionUrl.oldMenuSelect=(ll=(el=N.cloneDeep(m))==null?void 0:el.optionUrl)==null?void 0:ll.menuSelect,m.optionUrl.menuSelect=(rl=(al=m==null?void 0:m.optionUrl)==null?void 0:al.menuSelect)==null?void 0:rl.map(Se=>{var Ee,sl,pl,fl;if(Se!=null&&Se.includes("[")){let gl=(sl=(Ee=Se==null?void 0:Se.replaceAll("[","").replaceAll("]",""))==null?void 0:Ee.split(":"))==null?void 0:sl[1];Se=(fl=(pl=N.cloneDeep(f))==null?void 0:pl.find(dl=>(dl==null?void 0:dl.label)===gl))==null?void 0:fl.value}return Se})),((i==null?void 0:i.prop)===(m==null?void 0:m.prop)||t===(m==null?void 0:m.prop))&&Array.isArray(i.value)&&(ol=i.value)!=null&&ol.every(Se=>typeof Se=="string")&&(m.selectValue=((nl=v==null?void 0:v.find(Se=>(Se==null?void 0:Se.key)===(m==null?void 0:m.prop)))==null?void 0:nl.value)??((Ie=m.value)==null?void 0:Ie[0])),m}),ke.value=ae;let Te={};(I=ke.value)==null||I.forEach(m=>{Te[m.prop]=m==null?void 0:m.value}),yl.value=Te}let Me=He.value,je={};(ve=ke.value)==null||ve.forEach(f=>{var ae,Te,m,ge,we,el,ll,al,rl,ol,nl;if(((f==null?void 0:f.directiveLabel)==="#isMain"||(ae=f==null?void 0:f.optionUrl)!=null&&ae.menuId)&&Array.isArray(f==null?void 0:f.value)){if(je[f.prop]||(je[f.prop]=(m=f.value)==null?void 0:m[((Te=f.value)==null?void 0:Te.length)-1]),(ge=f==null?void 0:f.prop)!=null&&ge.includes("·")){let Ie=(ll=(el=(we=f==null?void 0:f.prop)==null?void 0:we.split("·"))==null?void 0:el.filter(Ee=>Ee&&Ee!==""))==null?void 0:ll.map(Ee=>Ee==null?void 0:Ee.trim()),Se=(nl=(ol=(rl=(al=f==null?void 0:f.selectValue)==null?void 0:al[0])==null?void 0:rl.split(" "))==null?void 0:ol.filter(Ee=>Ee&&Ee!==""))==null?void 0:nl.map(Ee=>Ee==null?void 0:Ee.trim());Ie==null||Ie.forEach((Ee,sl)=>{je=Object.assign({},je,{[Ee]:Se==null?void 0:Se[sl]})})}}else je[f.prop]=(je==null?void 0:je[f==null?void 0:f.prop])??f.value});let Je=(Ae=ke.value)==null?void 0:Ae.find(f=>{var ae;return(f==null?void 0:f.directiveLabel)==="#isMain"||((ae=f==null?void 0:f.optionUrl)==null?void 0:ae.menuId)});(i==null?void 0:i.directiveLabel)==="#isMain"&&((re=i==null?void 0:i.value)==null?void 0:re[((G=i==null?void 0:i.value)==null?void 0:G.length)-1])!==""?Me.push({label:i==null?void 0:i.prop,value:(se=i==null?void 0:i.value)==null?void 0:se[((Le=i==null?void 0:i.value)==null?void 0:Le.length)-1],objectValue:je}):((pe=Je==null?void 0:Je.value)==null?void 0:pe.length)>0&&((ze=i==null?void 0:i.value)==null?void 0:ze[((xe=i==null?void 0:i.value)==null?void 0:xe.length)-1])!==""&&(Me=Me==null?void 0:Me.map(f=>{var ae;return(f==null?void 0:f.value)===((ae=Je==null?void 0:Je.selectValue)==null?void 0:ae[0])&&(f.objectValue=je),f})),He.value=Me}ha.value=!0,ml.value=!1},Jo=e=>e?(e==null?void 0:e.toUpperCase())==="INPUT"?"TEXTAREA":e:"TEXTAREA",Wo=e=>{var c,t;const a=(t=(c=Dl.value)==null?void 0:c.find(i=>(i==null?void 0:i.label)===(e==null?void 0:e.label)))==null?void 0:t.multiple,r=e==null?void 0:e.prop;if((e==null?void 0:e.formType)!="Select")return;Z.value.forEach(i=>{const p=i==null?void 0:i[r];a&&Dr.isString(p)&&(i[r]=[p]),!a&&!Dr.isString(p)&&(i[r]="")})},yr=(e,a)=>{var r;return a==null||a.forEach(o=>{e[o==null?void 0:o.prop]=o==null?void 0:o.value}),e.children&&((r=e.children)==null?void 0:r.length)>0&&(e.children=e.children.map(o=>yr(o,a))),e},Ha=e=>{var r,o,n,c,t,i;ba("");const a=(r=ke.value)==null?void 0:r.reduce((p,k)=>(p[k.name]=k.value,p),{});if(((o=Object.keys(a))==null?void 0:o.length)>0){yl.value=a,Pl.value="",oa.value=(n=Z.value)==null?void 0:n.length,_l.value=(c=Al.value)==null?void 0:c.filter(k=>(k==null?void 0:k.label)!=="新增");const p=(i=(t=Ve.value)==null?void 0:t.filter(k=>(k==null?void 0:k.label)!=="操作"))==null?void 0:i.map(k=>{var v,A,L;const _=(A=(v=Dl.value)==null?void 0:v.find(P=>(P==null?void 0:P.label)===(k==null?void 0:k.label)))==null?void 0:A.multiple;return Wo(k),{...k,contents:(k==null?void 0:k.options)??[],optionUrl:k!=null&&k.formMenuSelect&&((L=k==null?void 0:k.formMenuSelect)==null?void 0:L.length)>0?{groupSelect:k==null?void 0:k.groupSelect,menuSelect:k==null?void 0:k.formMenuSelect,selectRelateType:"",type:k==null?void 0:k.formType,multiple:_}:null}});X.value=p==null?void 0:p.map(k=>yr(k,[{prop:"type",value:"edit"},{prop:"columnType",value:Jo(k==null?void 0:k.formType)||(k==null?void 0:k.columnType)}])),e==="createClick"&&ka(!1)}},sa={START:"开始时间",END:"结束时间",HOURS:"工时"},Go=(e,a)=>Number(ce.dayjs(a).diff(ce.dayjs(e),"day",!0).toFixed(1)),vr=e=>{var c;const a=s.itemData,r=(c=a==null?void 0:a.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:c.contents,o=new Map;return r==null||r.forEach((t,i)=>{const{label:p}=t;o.set(p,i)}),!o.has(sa.START)||!o.has(sa.END)||!o.has(sa.HOURS)?e:e==null?void 0:e.map(t=>{const i=t==null?void 0:t[sa.START],p=t==null?void 0:t[sa.END],k=Go(i,p);return i&&p&&(t[sa.HOURS]=`${k}天`),t})},gr=(e,a,r=0)=>{if(r>((a==null?void 0:a.length)??""))return e;const o=a==null?void 0:a[r],n=new Map;for(const t of e){const i=t[o];n.has(i)||n.set(i,[]),n.get(i)&&n.get(i).push(t)}const c=[];for(const[t,i]of n){const[p,...k]=i,_={...p};r+1===((a==null?void 0:a.length)??"")?_.children=i==null?void 0:i.map(v=>(v.level=N.cloneDeep(r)+1,v)).filter((v,A)=>A!==0):k.length>0&&(_.children=gr(k,a,r+1)),_.level=r,c.push(_)}return c},br=(e,a,r)=>{var n;if(!(a!=null&&a.contents)||((n=a==null?void 0:a.contents)==null?void 0:n.length)===0)return e;let o=[];return o=gr(e,a==null?void 0:a.contents,0),o},kr=(e,a)=>{var L,P,$,S,M,R,O,C,w,u,y,h,K,U,J,d,T,ie,F,x,j,le,ee,I,ve,Ae,G,re,Le,se,pe,xe,ze,D,H,Me,je,Je,f,ae,Te,m,ge,we,el,ll,al,rl,ol,nl,Ie,Se,Ee,sl,pl,fl,gl,dl;const r=e==null?void 0:e.filter(b=>(b==null?void 0:b.key)==="header");e==null||e.filter(b=>(b==null?void 0:b.key)==="tableIndexColumn")[0];const o=e==null?void 0:e.filter(b=>(b==null?void 0:b.key)==="childTree")[0];let n=!0;if(($=(P=(L=e==null?void 0:e.find(b=>(b==null?void 0:b.key)==="filterAllType"))==null?void 0:L.value)==null?void 0:P.find(b=>(b==null?void 0:b.value)==="onPamButtonContents"))!=null&&$.content){let b=(R=(M=(S=e==null?void 0:e.find(q=>(q==null?void 0:q.key)==="filterAllType"))==null?void 0:S.value)==null?void 0:M.find(q=>(q==null?void 0:q.value)==="onPamButtonContents"))==null?void 0:R.content;b=(O=b==null?void 0:b.split(":"))==null?void 0:O[1],b=(C=b.slice(1,(b==null?void 0:b.length)-1))==null?void 0:C.split(","),n=!!(b!=null&&b.find(q=>q==="操作"))}let c=a;const t=e==null?void 0:e.find(b=>(b==null?void 0:b.key)==="page"),i=e==null?void 0:e.find(b=>(b==null?void 0:b.key)==="rowButton"),p=e==null?void 0:e.find(b=>(b==null?void 0:b.key)==="extraButton"),k=e==null?void 0:e.filter(b=>(b==null?void 0:b.key)==="tableContents"),_=e==null?void 0:e.filter(b=>(b==null?void 0:b.key)==="tableIndex");Dl.value=(u=(w=e==null?void 0:e.filter(b=>(b==null?void 0:b.key)==="tableToForm"))==null?void 0:w[0])==null?void 0:u.contents,Za.value=(t==null?void 0:t.contents)??!0;let v=[];Il.value===""?v=r==null?void 0:r[0]:v=(r==null?void 0:r.find(b=>(b==null?void 0:b.selectLabel)==="("+Il.value+")"))??(r==null?void 0:r.find(b=>!(b!=null&&b.selectLabel)));let A=[];if(Il.value===""?A=_==null?void 0:_[0]:A=(_==null?void 0:_.find(b=>(b==null?void 0:b.selectLabel)==="("+Il.value+")"))??(_==null?void 0:_.find(b=>!(b!=null&&b.selectLabel))),((y=v==null?void 0:v.contents)==null?void 0:y.length)>0){let b=[];if(v!=null&&v.contents.some(B=>Array.isArray(B)&&(B==null?void 0:B.find(g=>g.children))))fa.value===""?b=(K=(h=ce.getGradeColumns(v==null?void 0:v.contents,n,c))==null?void 0:h[0])==null?void 0:K.filter(B=>!Array.isArray(B)):(fa.value.split("-"),b=(U=ce.getGradeColumns(v==null?void 0:v.contents,n,c))==null?void 0:U[0]);else{let B=v!=null&&v.contents.some(g=>Array.isArray(g))?(J=v==null?void 0:v.contents)==null?void 0:J[0]:v==null?void 0:v.contents;B!=null&&B.find(g=>(g==null?void 0:g.label)==="操作")||B.push({label:"操作"}),B==null||B.forEach((g,ue)=>{var We,Re,Ml,ql,Jl;let me="";(Re=(We=$e.value)==null?void 0:We.split("/"))==null||Re.forEach(Ce=>{var Cl,Ol,Wl;if(Ce!==""){let hl=(Wl=(Ol=(Cl=Ce==null?void 0:Ce.split(fe+"updateLoading"))==null?void 0:Cl[0])==null?void 0:Ol.split(fe+"loading"))==null?void 0:Wl[0];me=me===""?me+hl:me+"/"+hl}}),me=me+"/";const Ne=(Ml=Dl.value)==null?void 0:Ml.find(Ce=>(Ce==null?void 0:Ce.prop)===(g==null?void 0:g.prop));b.push({label:(g==null?void 0:g.label)==="操作"?n?"操作":"":(g==null?void 0:g.label)??"",prop:(g==null?void 0:g.label)==="操作"?"operate":(g==null?void 0:g.prop)??"a"+ue,width:g!=null&&g.width?parseInt(g.width):"",fixed:(g==null?void 0:g.fixed)??void 0,sortable:(g==null?void 0:g.sortable)??!1,filterable:(g==null?void 0:g.filterable)??!1,operable:(g==null?void 0:g.operable)??!1,showSummary:(g==null?void 0:g.showSummary)??!1,align:(g==null?void 0:g.align)??"left",showOverflowTooltip:(g==null?void 0:g.showOverflowTooltip)??!0,isNotDrag:(g==null?void 0:g.isNotDrag)??!1,isEditCol:(g==null?void 0:g.isEditCol)??!1,isOperate:(g==null?void 0:g.isOperate)??!1,id:(g==null?void 0:g.id)??ue,type:(g==null?void 0:g.label)==="操作"?"operate":void 0,formType:(g==null?void 0:g.formType)??(g!=null&&g.groupSelect?"Select":""),isTableColHidden:g==null?void 0:g.isTableColHidden,isFormColHidden:g==null?void 0:g.isFormColHidden,disabled:g==null?void 0:g.disabled,options:(g==null?void 0:g.options)??[],value:(g==null?void 0:g.value)??"",formMenuSelect:(g==null?void 0:g.formMenuSelect)??[],isRoute:(g==null?void 0:g.isRoute)??!1,groupSelect:g!=null&&g.groupSelect?(ql=g==null?void 0:g.groupSelect)==null?void 0:ql.replaceAll('"',"").split(":"):[],isMainKey:(g==null?void 0:g.isMainKey)||(g==null?void 0:g.directiveLabel)==="#isMain",columnType:(Ne==null?void 0:Ne.type)||(g==null?void 0:g.columnType)||"TEXTAREA",directiveLabel:g==null?void 0:g.directiveLabel,directiveColor:(g==null?void 0:g.directiveColor)??!1,isExistChild:!!(g!=null&&g.directiveLabel&&(c!=null&&c[me])&&!((Jl=g==null?void 0:g.directiveLabel)!=null&&Jl.includes("@"))&&(g==null?void 0:g.directiveLabel)==="#isMain"),childPath:(g==null?void 0:g.directiveLabel)!=="#isMain"?me:void 0,allSelectionContents:(g==null?void 0:g.allSelectionContents)??[],selectFilter:g==null?void 0:g.selectFilter,menuId:g==null?void 0:g.menuId,filterContent:g==null?void 0:g.filterContent,relatedValueId:g==null?void 0:g.relatedValueId})})}X.value=ce.getNewColumnChild(b),ja.value=ce.getNewColumnChild(b),oe.value=(d=X.value)==null?void 0:d.map(B=>B==null?void 0:B.label),Ge.value=(T=X.value)==null?void 0:T.every(B=>B==null?void 0:B.filterable),he.value=(ie=X.value)==null?void 0:ie.every(B=>B==null?void 0:B.operable),Pe.value=(F=X.value)==null?void 0:F.every(B=>B==null?void 0:B.sortable);let q=(j=(x=ce.getAllLeafNodes(X.value))==null?void 0:x.filter(B=>(B==null?void 0:B.type)!=="operate"))==null?void 0:j.map((B,g)=>({prop:(B==null?void 0:B.prop)??"a"+g,column:B.label}));El.value=q;let _e=[];Il.value===""?_e=k==null?void 0:k[0]:_e=(k==null?void 0:k.find(B=>(B==null?void 0:B.selectLabel)==="("+Il.value+")"))??(k==null?void 0:k.find(B=>!(B!=null&&B.selectLabel)));let ul=Array.isArray((le=_e==null?void 0:_e.contents)==null?void 0:le[0])&&((ee=_e==null?void 0:_e.contents)!=null&&ee[0].every(B=>Array.isArray(B)))?(I=_e==null?void 0:_e.contents)==null?void 0:I[0]:_e==null?void 0:_e.contents;A!=null&&A.contents&&((ve=A==null?void 0:A.contents)==null?void 0:ve.length)!==0&&(ul=(Ae=N.cloneDeep(ul))==null?void 0:Ae.map((B,g)=>{if(!Array.isArray(B)){let ue={};for(let me in B)me!=="id"&&me!=="index"&&(ue[me]=B[me]);B=Object.values(ue)}return B}));const Nl=!!((G=X.value)!=null&&G.find(B=>B.prop==="index"));ul=wr(ul,A==null?void 0:A.contents,Nl);const cl=[];ul==null||ul.forEach((B,g)=>{var me;let ue={};if(Array.isArray(B)){let Ne=[];B==null||B.filter(We=>!(We!=null&&We.id)).forEach((We,Re)=>{var Ml,ql,Jl,Ce,Cl,Ol;if((Ml=q==null?void 0:q[Re])!=null&&Ml.prop&&!Array.isArray(We)){let Wl={};Wl[q[Re].column]=We,Ke!=null&&Ke.value&&((ql=Ke==null?void 0:Ke.value)==null?void 0:ql.length)>0&&((Jl=Ke==null?void 0:Ke.value)!=null&&Jl.find(hl=>JSON.stringify(hl==null?void 0:hl[0])===JSON.stringify(Wl)))&&(Ne=(Ce=Ke==null?void 0:Ke.value)==null?void 0:Ce.find(hl=>JSON.stringify(hl==null?void 0:hl[0])===JSON.stringify(Wl))),Ne&&Ne.length>0?ue[q[Re].prop]=Ne!=null&&Ne.find(hl=>{var Ql;return((Ql=Object.keys(hl))==null?void 0:Ql[0])===q[Re].column})?(Cl=Ne==null?void 0:Ne.find(hl=>{var Ql;return((Ql=Object.keys(hl))==null?void 0:Ql[0])===q[Re].column}))==null?void 0:Cl[q[Re].column]:We:ue[q[Re].prop]=We}else Array.isArray(We)&&((Ol=q[Re])!=null&&Ol.prop?ue[q[Re].prop]=We:ue.children=Qa(We,q))})}else ue=B;if(Array.isArray(B)&&B.some(Ne=>Ne==null?void 0:Ne.id)){const Ne=(me=B==null?void 0:B.find(We=>We.id))==null?void 0:me.id;cl.push(Object.assign(ue,{id:or(Ne)}))}else ue.id?cl.push(ue):cl.push(Object.assign(ue,{id:g.toString()}))});try{const B=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),g=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),ue=B==null?void 0:B.tableId,me=B==null?void 0:B.compIndex;if(ue&&Array.isArray(g)&&g.length>0&&String(ue)===String(s==null?void 0:s.parentTableId)&&String(me)===String(s==null?void 0:s.index)){const Ne=new Set(cl.map(Re=>String(Re==null?void 0:Re.id))),We=g.filter(Re=>!Ne.has(String(Re)));if(We.length>0){const Re=B==null?void 0:B.pageKey,Ml=Re!=null&&Re.startsWith("/")?Re.substring(1):Re;((a==null?void 0:a[Re])||(a==null?void 0:a[Ml])||[]).filter(Ce=>{var Cl,Ol;return((Cl=Ce==null?void 0:Ce.key)==null?void 0:Cl.type)==="data"&&String((Ol=Ce==null?void 0:Ce.key)==null?void 0:Ol.tableId)===String(ue)&&We.includes(Ce==null?void 0:Ce.id)}).forEach(Ce=>{var Cl;Ne.has(String(Ce==null?void 0:Ce.id))||(cl.push({id:Ce==null?void 0:Ce.id,...((Cl=Ce==null?void 0:Ce.value)==null?void 0:Cl.tableData)||{}}),Ne.add(String(Ce==null?void 0:Ce.id)))})}}}catch{}const De=Array.from(((re=xl.value)==null?void 0:re.values())||[]).filter(B=>(B==null?void 0:B._isOCRRow)&&(B==null?void 0:B._ocrTableId)===(s==null?void 0:s.index));Z.value=br(cl,o,X.value),jl.value=cl,(Le=jl.value)==null||Le.forEach(B=>{var g;(g=xl.value)==null||g.set(B.id,B)});const bl=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ye=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(bl&&Array.isArray(ye)&&ye.length>0&&String(bl==null?void 0:bl.compIndex)===String(s==null?void 0:s.index)){const B=new Set((jl.value||[]).map(g=>String(g==null?void 0:g.id)));ye.filter(g=>!B.has(String(g)))}if(De.length>0){const B=new Set((Z.value||[]).map(ue=>ue==null?void 0:ue.id)),g=De.filter(ue=>!B.has(ue.id));g.length>0&&(Z.value=[...Z.value||[],...g],jl.value=[...jl.value||[],...g],g.forEach(ue=>{var me;return(me=xl.value)==null?void 0:me.set(ue.id,ue)}))}}else X.value=[],Ve.value=[],Z.value=[],jl.value=[],xl.value=new Map;if(((se=i==null?void 0:i.contents)==null?void 0:se.length)>0)if((ze=(xe=(pe=e==null?void 0:e.find(b=>(b==null?void 0:b.key)==="filterAllType"))==null?void 0:pe.value)==null?void 0:xe.find(b=>(b==null?void 0:b.value)==="onRowButtonContents"))!=null&&ze.content){let b=(Me=(H=(D=e==null?void 0:e.find(q=>(q==null?void 0:q.key)==="filterAllType"))==null?void 0:D.value)==null?void 0:H.find(q=>(q==null?void 0:q.value)==="onButtonContents"))==null?void 0:Me.content;b=(je=b==null?void 0:b.split(":"))==null?void 0:je[1],b=(Je=b.slice(1,(b==null?void 0:b.length)-1))==null?void 0:Je.split(","),Hl.value=(f=i==null?void 0:i.contents)==null?void 0:f.filter(q=>b==null?void 0:b.find(_e=>_e===(q==null?void 0:q.label)))}else Hl.value=i==null?void 0:i.contents;else Hl.value=[];if(((ae=p==null?void 0:p.contents)==null?void 0:ae.length)>0)if((ge=(m=(Te=e==null?void 0:e.find(b=>(b==null?void 0:b.key)==="filterAllType"))==null?void 0:Te.value)==null?void 0:m.find(b=>(b==null?void 0:b.value)==="onButtonContents"))!=null&&ge.content){let b=(ll=(el=(we=e==null?void 0:e.find(q=>(q==null?void 0:q.key)==="filterAllType"))==null?void 0:we.value)==null?void 0:el.find(q=>(q==null?void 0:q.value)==="onButtonContents"))==null?void 0:ll.content;if(b=(al=b==null?void 0:b.split(":"))==null?void 0:al[1],b=(rl=b.slice(1,(b==null?void 0:b.length)-1))==null?void 0:rl.split(","),_l.value=(ol=p==null?void 0:p.contents)==null?void 0:ol.filter(q=>b==null?void 0:b.find(_e=>_e===(q==null?void 0:q.label))),Al.value=(nl=p==null?void 0:p.contents)==null?void 0:nl.filter(q=>b==null?void 0:b.find(_e=>_e===(q==null?void 0:q.label))),(Ie=p==null?void 0:p.contents)!=null&&Ie.some(q=>(q==null?void 0:q.label)==="OCR识别")&&!((Se=_l.value)!=null&&Se.some(q=>(q==null?void 0:q.label)==="OCR识别"))){const q=(Ee=p==null?void 0:p.contents)==null?void 0:Ee.find(_e=>(_e==null?void 0:_e.label)==="OCR识别");_l.value=[..._l.value,q],Al.value=[...Al.value,q]}Oe.value=!!(b!=null&&b.find(q=>q==="搜索")),Qe.value=!!(b!=null&&b.find(q=>q==="块状显示"))}else _l.value=p==null?void 0:p.contents,Al.value=p==null?void 0:p.contents;else _l.value=[],Al.value=[];(sl=_l.value)!=null&&sl.some(b=>(b==null?void 0:b.label)==="OCR识别")||(_l.value=[..._l.value||[],{label:"OCR识别"}]),(pl=Al.value)!=null&&pl.some(b=>(b==null?void 0:b.label)==="OCR识别")||(Al.value=[...Al.value||[],{label:"OCR识别"}]),oa.value=((fl=Z==null?void 0:Z.value)==null?void 0:fl.length)??0,vr(Z.value),pa.value=Z.value,Tl.value&&(X.value=(dl=(gl=Ve.value)==null?void 0:gl.filter(b=>(b==null?void 0:b.label)!=="操作"))==null?void 0:dl.map(b=>{var q;return{...b,type:"edit",optionUrl:b!=null&&b.formMenuSelect&&((q=b==null?void 0:b.formMenuSelect)==null?void 0:q.length)>0?{groupSelect:b==null?void 0:b.groupSelect,menuSelect:b==null?void 0:b.formMenuSelect,selectRelateType:"",type:b==null?void 0:b.formType}:null}}),Ha())};l.watch(()=>[s.itemData,Il.value,zr.value,fa.value,Ke==null?void 0:Ke.value],async()=>{var e,a,r,o,n,c;if((e=s==null?void 0:s.itemData)!=null&&e.find(t=>(t==null?void 0:t.key)==="columnPath")&&!((a=ca.value)!=null&&a.find(t=>{var i,p;return(t==null?void 0:t.key)===((p=(i=s==null?void 0:s.itemData)==null?void 0:i.find(k=>(k==null?void 0:k.key)==="columnPath"))==null?void 0:p.contents)}))){let t=ca.value,i={key:(o=(r=s==null?void 0:s.itemData)==null?void 0:r.find(p=>(p==null?void 0:p.key)==="columnPath"))==null?void 0:o.contents,value:(c=(n=s==null?void 0:s.itemData)==null?void 0:n.find(p=>(p==null?void 0:p.key)==="columnUsingPath"))==null?void 0:c.contents};t!=null&&t.find(p=>(p==null?void 0:p.key)===(i==null?void 0:i.key))?t=t==null?void 0:t.map(p=>((p==null?void 0:p.key)===(i==null?void 0:i.key)&&(p.value=i.value),p)):t.push(i),Xe.setTableViewContents(t)}kr(s.itemData,s.allMapContents)},{deep:!0,immediate:!0}),l.watch(()=>s==null?void 0:s.operatingForm,e=>{e!=null&&e.form&&(ba(e==null?void 0:e.form),Sl.value=e==null?void 0:e.dialogTitle,xa.value=!0,$l.value=!0)},{immediate:!0,deep:!0});const mr=()=>{var e;(e=qe.value)!=null&&e.includes("read")&&(Tl.value=!Tl.value)},Ho=()=>{Da.value=!Da.value};l.watch(()=>{var e;return(e=s==null?void 0:s.config)==null?void 0:e.viewport},e=>{var a;qe.value=e,(e==null?void 0:e.length)===0?Tl.value=!1:(e!=null&&e.includes("read")||(Tl.value=!0),e!=null&&e.includes("edit")||(Tl.value=!1)),Be.value=((a=s==null?void 0:s.config)==null?void 0:a.showIndex)||Tl.value},{immediate:!0}),l.watch(()=>Tl.value,e=>{var a;e?(Ha("viewChange"),Xe.setCacheUpdatingData(null)):(_l.value=Al.value,X.value=ja.value,ua.value&&(Xe.setTableLoading(s==null?void 0:s.index),Ue("change",ua.value))),de.value=e,Be.value=e||((a=s==null?void 0:s.config)==null?void 0:a.showIndex)},{immediate:!0}),l.watch(()=>{var e;return(e=lr.value)==null?void 0:e.length},e=>{e===0&&(ne.currentPage=1)}),l.watch(()=>s==null?void 0:s.compNames,e=>{Ye.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:e||[],width:1}]},{immediate:!0}),l.ref(!1);const Qo=(e,a)=>{var r;Ha("createClick"),a===ne.pageSize&&(ne.currentPage=Math.ceil(((r=Z.value)==null?void 0:r.length)/ne.pageSize))},Xo=(e,a,r)=>{var o;hr(r,e,a),yl.value=N.cloneDeep(e),Pl.value=e==null?void 0:e.id,oa.value=(o=Z.value)==null?void 0:o.length,Sl.value=typeof(e==null?void 0:e.id)=="string"?"新增":"编辑",ka(!1)},vl=e=>{var p,k,_,v,A,L,P,$,S,M;const{row:a,column:r,item:o,slotData:n}=e;let c=a!=null&&a[r==null?void 0:r.prop]||(a==null?void 0:a[r==null?void 0:r.prop])===0?((k=(p=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:p[0])==null?void 0:k.contents)??((a==null?void 0:a[r==null?void 0:r.prop])===0?"0":a==null?void 0:a[r==null?void 0:r.prop]):((v=(_=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:_[0])==null?void 0:v.contents)??(a==null?void 0:a[o==null?void 0:o.prop])??((L=(A=n==null?void 0:n[o==null?void 0:o.prop])==null?void 0:A[0])==null?void 0:L.contents)??(n==null?void 0:n[o==null?void 0:o.prop])??((S=($=a==null?void 0:a[(P=o==null?void 0:o.child)==null?void 0:P.prop])==null?void 0:$[0])==null?void 0:S.contents)??(a==null?void 0:a[(M=o==null?void 0:o.child)==null?void 0:M.prop]),i=Array.isArray(c)&&!(c!=null&&c.every(R=>typeof R=="string"||typeof R=="number"))?"查看":c;return i=Array.isArray(i)?i.join(","):i,i},Yo=e=>{var k,_,v,A,L,P,$,S,M,R;const{row:a,column:r,item:o,slotData:n}=e;let c=a!=null&&a[r==null?void 0:r.prop]?((_=(k=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:k[0])==null?void 0:_.contents)??(a==null?void 0:a[r==null?void 0:r.prop]):((A=(v=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:v[0])==null?void 0:A.contents)??(a==null?void 0:a[o==null?void 0:o.prop])??((P=(L=n==null?void 0:n[o==null?void 0:o.prop])==null?void 0:L[0])==null?void 0:P.contents)??(n==null?void 0:n[o==null?void 0:o.prop])??((M=(S=a==null?void 0:a[($=o==null?void 0:o.child)==null?void 0:$.prop])==null?void 0:S[0])==null?void 0:M.contents)??(a==null?void 0:a[(R=o==null?void 0:o.child)==null?void 0:R.prop]);const i=Array.isArray(c)&&!(c!=null&&c.every(O=>typeof O=="string"||typeof O=="number")),p=Array.isArray(c)&&(c==null?void 0:c.find(O=>O==null?void 0:O.url));return i&&p},Zo=e=>{var t,i,p,k,_,v,A,L,P,$;const{row:a,column:r,item:o,slotData:n}=e||{};let c=a!=null&&a[r==null?void 0:r.prop]?((i=(t=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:t[0])==null?void 0:i.contents)??(a==null?void 0:a[r==null?void 0:r.prop]):((k=(p=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:p[0])==null?void 0:k.contents)??(a==null?void 0:a[o==null?void 0:o.prop])??((v=(_=n==null?void 0:n[o==null?void 0:o.prop])==null?void 0:_[0])==null?void 0:v.contents)??(n==null?void 0:n[o==null?void 0:o.prop])??((P=(L=a==null?void 0:a[(A=o==null?void 0:o.child)==null?void 0:A.prop])==null?void 0:L[0])==null?void 0:P.contents)??(a==null?void 0:a[($=o==null?void 0:o.child)==null?void 0:$.prop]);return Array.isArray(c)?(c==null?void 0:c.filter(S=>(S==null?void 0:S.url)||(S==null?void 0:S.downloadUrl)))??[]:[]},Io=(e,a)=>e.find(r=>Object.values(r).some(o=>o===a));return l.watch(()=>jr.value,async e=>{if(e){il.setContentLoading(!0),await l.nextTick();const a=Io(Z.value,e==null?void 0:e.data);if(!a)return il.setContentLoading(!1);await sr(e==null?void 0:e.data,null,a,{data:e==null?void 0:e.data,isMainKey:!0}),il.setContentLoading(!1)}},{deep:!0,immediate:!0}),l.watch(()=>s==null?void 0:s.cacheNewData,e=>{var a;e&&(Array.isArray(e)?e.forEach(r=>{var o,n,c,t,i,p,k;if((r==null?void 0:r.compId)===(s==null?void 0:s.index)&&(r!=null&&r.resId)&&((o=r==null?void 0:r.data)!=null&&o.id)&&(Z.value=(n=Z.value)==null?void 0:n.map(_=>{var v;return(_==null?void 0:_.id)===((v=r==null?void 0:r.data)==null?void 0:v.id)?{..._,id:r==null?void 0:r.resId}:_}),(i=(c=xl.value)==null?void 0:c.has)!=null&&i.call(c,(t=r==null?void 0:r.data)==null?void 0:t.id))){const _=xl.value.get((p=r==null?void 0:r.data)==null?void 0:p.id);xl.value.delete((k=r==null?void 0:r.data)==null?void 0:k.id),xl.value.set(r==null?void 0:r.resId,{..._,id:r==null?void 0:r.resId})}}):(e==null?void 0:e.compId)===(s==null?void 0:s.index)&&(Z.value=(a=Z.value)==null?void 0:a.map(r=>{var o;return(r==null?void 0:r.id)===((o=e==null?void 0:e.data)==null?void 0:o.id)?{...r,id:e==null?void 0:e.resId}:r})))},{immediate:!0,deep:!0}),(e,a)=>{var R,O,C,w;const r=l.resolveComponent("svg-icon"),o=l.resolveComponent("el-popover"),n=l.resolveComponent("el-switch"),c=l.resolveComponent("el-checkbox"),t=l.resolveComponent("el-radio"),i=l.resolveComponent("el-radio-group"),p=l.resolveComponent("el-checkbox-group"),k=l.resolveComponent("el-button"),_=l.resolveComponent("LookComponent"),v=l.resolveComponent("el-icon"),A=l.resolveComponent("el-upload"),L=l.resolveComponent("el-alert"),P=l.resolveComponent("el-table-column"),$=l.resolveComponent("el-input"),S=l.resolveComponent("el-table"),M=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",Bn,[er.value?(l.openBlock(),l.createBlock(kl.ssTable,{id:"excel-table",pageObj:ne,showIndex:Be.value,isTree:(R=W.compItem)==null?void 0:R.isTree,summaryInfo:Kl,columns:X.value,defaultSort:E,isCardViewport:Da.value,checkedColumns:oe.value,key:za.value+JSON.stringify(X.value),tableData:lr.value,isEditViewport:Tl.value,isShowPagination:Za.value,isShowEdit:!1,isShowDelete:!1,allowSelect:de.value,onDbClickRow:yo,extraButton:_l.value,rowButton:Hl.value,cacheExtraButtons:Al.value,isClearSelection:((O=wl.value)==null?void 0:O.length)===0,onDoCurrentChange:Qr,onDoSizeChange:Xr,onContentClick:sr,onRowClick:go,onSelectChange:ro,onCellChange:Xo,onChange:hr,onPreview:rr,onSubmitEditingTable:ao,onHandleColEditChange:eo,onHandleColTypeChange:lo,onClickButton:Ta},l.createSlots({headerButton:l.withCtx(u=>{var y,h;return[W.showHeader?(l.openBlock(),l.createBlock(kn,{key:0,pageLayout:W.pageLayout,lockingPage:l.unref(ma)===l.unref($e),filterValues:ir.value,selectNums:(y=wl.value)==null?void 0:y.length,dataNums:(h=Z.value)==null?void 0:h.length,compName:W.compName,isDevMode:W.isDevMode,buttons:u.buttons,onButtonClick:a[1]||(a[1]=K=>Ta(K,"",{})),columns:X.value,onFilter:ho,onGetImportData:Zr,level:W.level,filterShow:Oe.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):l.createCommentVNode("",!0)]}),viewport:l.withCtx(()=>{var u,y,h,K;return[((u=Z.value)==null?void 0:u.length)>0&&W.allowOperate&&Qe.value?(l.openBlock(),l.createElementBlock("div",Ln,[(y=qe.value)!=null&&y.includes("read")&&((h=qe.value)!=null&&h.includes("edit"))&&((K=Hl.value)!=null&&K.some(U=>(U==null?void 0:U.label)==="编辑"))&&!Da.value&&l.unref(ma)!==l.unref($e)?(l.openBlock(),l.createElementBlock("span",{key:0,title:"编辑表格",onClick:mr},[l.createVNode(r,{name:"editTable",class:"view-icon"})])):l.createCommentVNode("",!0),l.createElementVNode("span",{title:"卡片视图",onClick:Ho},[l.createVNode(r,{name:"cardViewport",class:"view-icon"})])])):l.createCommentVNode("",!0)]}),rowCreate:l.withCtx(({row:u,index:y})=>[l.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:h=>Qo(u,y)},[l.createVNode(r,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,jn)]),operateCol:l.withCtx(()=>[l.createVNode(o,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Vo},{reference:l.withCtx(()=>[l.createElementVNode("span",Pn,[l.createVNode(r,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:l.withCtx(()=>[l.createElementVNode("div",$n,[a[13]||(a[13]=l.createElementVNode("div",{class:"group-title"},"表格操作",-1)),l.createVNode(n,{"model-value":Pe.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:a[3]||(a[3]=u=>io(u,"sortable"))},null,8,["model-value"]),a[14]||(a[14]=l.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),l.createVNode(p,{modelValue:oe.value,"onUpdate:modelValue":a[4]||(a[4]=u=>oe.value=u),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:V},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(ya.value,u=>(l.openBlock(),l.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:u.label},[l.createVNode(c,{value:u.label,style:{width:"100%",marginRight:0}},{default:l.withCtx(()=>[l.createElementVNode("span",{title:u.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},l.toDisplayString(u.label),9,Mn)]),_:2},1032,["value"]),l.createVNode(o,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:l.withCtx(()=>[l.createVNode(r,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:l.withCtx(()=>{var y;return[l.createElementVNode("div",Rn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((y=Object.keys(u))==null?void 0:y.filter(h=>{var K;return(K=Rl.value)==null?void 0:K.find(U=>(U==null?void 0:U.value)===h)}),h=>{var K,U;return l.openBlock(),l.createElementBlock("div",{key:h},[Ul[h]=="radio"?(l.openBlock(),l.createElementBlock("div",Fn,[a[12]||(a[12]=l.createElementVNode("div",null,"固定:",-1)),l.createVNode(i,{"model-value":u==null?void 0:u[h],onChange:J=>ar(J,h,u)},{default:l.withCtx(()=>{var J,d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=(J=Rl.value)==null?void 0:J.find(T=>(T==null?void 0:T.value)===h))==null?void 0:d.options,T=>(l.openBlock(),l.createBlock(t,{key:T==null?void 0:T.value,label:T==null?void 0:T.value,value:T==null?void 0:T.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):l.createCommentVNode("",!0),Ul[h]=="switch"?(l.openBlock(),l.createBlock(n,{key:1,"model-value":u==null?void 0:u[h],"active-text":(U=(K=Rl.value)==null?void 0:K.find(J=>(J==null?void 0:J.value)===h))==null?void 0:U.label,onChange:J=>ar(J,h,u)},null,8,["model-value","active-text","onChange"])):l.createCommentVNode("",!0)])}),128))])]}),_:2},1024),l.createElementVNode("span",Kn,[l.createVNode(r,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:l.withCtx(u=>{var y,h,K,U,J,d,T,ie,F,x,j,le,ee,I,ve,Ae,G,re,Le,se;return[((y=u==null?void 0:u.column)==null?void 0:y.label)==="OCR图片"||((h=u==null?void 0:u.column)==null?void 0:h.prop)==="OCR图片"?(l.openBlock(),l.createElementBlock("div",zn,[l.createVNode(r,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:l.withModifiers(pe=>Lo(u),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):Yo(u)?(l.openBlock(),l.createBlock(o,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:l.withCtx(()=>[l.createElementVNode("span",Vn,l.toDisplayString(vl(u)),1)]),default:l.withCtx(()=>{var pe,xe;return[l.createElementVNode("div",qn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((xe=u==null?void 0:u.row)==null?void 0:xe[(pe=u==null?void 0:u.column)==null?void 0:pe.prop],ze=>(l.openBlock(),l.createElementBlock("div",Jn,[l.createElementVNode("div",{class:"prop-url",title:va(ze),onClick:D=>nr(ze)},l.toDisplayString(va(ze)),9,Wn),l.createElementVNode("div",{class:"prop-download",onClick:D=>co(ze)}," 下载 ",8,Gn)]))),256))])]}),_:2},1024)):(l.openBlock(),l.createElementBlock("div",{key:2,style:l.normalizeStyle({color:!Array.isArray(vl(u))&&((U=(K=vl(u))==null?void 0:K.toString())!=null&&U.includes(".txt")||(d=(J=vl(u))==null?void 0:J.toString())!=null&&d.includes(".cpt")||(ie=(T=vl(u))==null?void 0:T.toString())!=null&&ie.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(vl(u))&&((x=(F=vl(u))==null?void 0:F.toString())!=null&&x.includes(".txt")||(le=(j=vl(u))==null?void 0:j.toString())!=null&&le.includes(".cpt")||(I=(ee=vl(u))==null?void 0:ee.toString())!=null&&I.includes(".cyd"))?"underline":"",cursor:!Array.isArray(vl(u))&&((Ae=(ve=vl(u))==null?void 0:ve.toString())!=null&&Ae.includes(".txt")||(re=(G=vl(u))==null?void 0:G.toString())!=null&&re.includes(".cpt")||(se=(Le=vl(u))==null?void 0:Le.toString())!=null&&se.includes(".cyd"))?"pointer":"",marginLeft:(u==null?void 0:u.colIndex)===0?`${((u==null?void 0:u.level)??0)*20}px`:0}),onClick:pe=>Hr(vl(u))},l.toDisplayString(vl(u)===0?"0":vl(u)),13,Hn))]}),_:2},[((C=Hl.value)==null?void 0:C.length)>0&&l.unref(ma)!==l.unref($e)?{name:"actions",fn:l.withCtx(({item:u})=>[l.createVNode(o,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:l.withCtx(()=>[l.createVNode(r,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:a[0]||(a[0]=l.withModifiers(()=>{},["stop"]))})]),default:l.withCtx(()=>[l.createElementVNode("div",On,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(to(Hl.value,u),(y,h)=>(l.openBlock(),l.createElementBlock("div",{class:"menu-config-item",key:h,onClick:l.withModifiers(K=>Ta(y==null?void 0:y.label,u,{extra:y}),["stop"])},[l.createElementVNode("div",{style:l.normalizeStyle({color:y==null?void 0:y.textColor}),class:"extra-button-label"},l.toDisplayString(y==null?void 0:y.label),5)],8,Un))),128))])]),_:2},1024)]),key:"0"}:void 0,((w=Z.value)==null?void 0:w.length)>0?{name:"batchButton",fn:l.withCtx(u=>[l.withDirectives(l.createVNode(Sn,{lockingPage:l.unref(ma)===l.unref($e),buttons:u.buttons,selectTableItems:wl.value,onButtonClick:a[2]||(a[2]=y=>Ta(y,"",{}))},null,8,["lockingPage","buttons","selectTableItems"]),[[l.vShow,de.value]]),l.withDirectives(l.createElementVNode("div",null,null,512),[[l.vShow,!de.value]])]),key:"1"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection"])):l.createCommentVNode("",!0),l.createVNode(la.ssDialog,{title:Sl.value,visible:$l.value,width:qr.value,onBeforeDestroy:so,style:{height:"74%"}},{default:l.withCtx(()=>[l.createElementVNode("div",Qn,[l.createVNode(kl.ssForm,{rowContents:ke.value,isEnableWrap:!1,showOperator:!1,onChange:qo,onFixChangeValue:fo,onClickTrigger:uo,isEdit:Sa.value,onBlurChange:oo,onCreate:no,onTagChange:Gr},null,8,["rowContents","isEdit"])])]),footer:l.withCtx(()=>[xa.value?(l.openBlock(),l.createElementBlock("div",Xn,[l.createVNode(k,{onClick:a[5]||(a[5]=u=>$l.value=!1),id:"themeBorderButton"},{default:l.withCtx(()=>a[15]||(a[15]=[l.createTextVNode(l.toDisplayString("取消"))])),_:1,__:[15]}),l.createVNode(k,{class:"ok-button",onClick:a[6]||(a[6]=u=>ka(!0)),id:"themeButton"},{default:l.withCtx(()=>a[16]||(a[16]=[l.createTextVNode(l.toDisplayString("确认"))])),_:1,__:[16]})])):l.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),l.createVNode(la.ssDialog,{title:Sl.value,visible:Ca.value,width:Pa.value,onBeforeDestroy:a[8]||(a[8]=u=>Ca.value=!1)},{default:l.withCtx(()=>[l.createVNode(Nn)]),footer:l.withCtx(()=>[l.createElementVNode("div",Yn,[l.createVNode(k,{onClick:a[7]||(a[7]=u=>Ca.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:l.withCtx(()=>a[17]||(a[17]=[l.createTextVNode(l.toDisplayString("取消"))])),_:1,__:[17]}),l.createVNode(k,{class:"ok-button",onClick:bo,id:"themeButton"},{default:l.withCtx(()=>a[18]||(a[18]=[l.createTextVNode(l.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["title","visible","width"]),Yl.value?(l.openBlock(),l.createBlock(kl.ssFilePreview,{key:1,fileDataList:aa.value,onDestroy:vo},null,8,["fileDataList"])):l.createCommentVNode("",!0),Q.value?(l.openBlock(),l.createBlock(la.ssDialog,{key:2,visible:Q.value,onBeforeDestroy:Ko,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:l.withCtx(()=>[l.createVNode(Nr.ThreeViewerHost,{files:ta.value,threeData:Fe.value},null,8,["files","threeData"])]),_:1},8,["visible"])):l.createCommentVNode("",!0),l.createVNode(la.ssDialog,{visible:e.componentVisible,onBeforeDestroy:a[9]||(a[9]=u=>e.componentVisible=!1),width:Pa.value,style:{height:"70vh"}},{default:l.withCtx(()=>[l.createVNode(_,{dialogItem:ea.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),l.createVNode(la.ssDialog,{title:"上传OCR图片",visible:_a.value,onBeforeDestroy:cr,width:"600px"},{default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",Zn,[l.createVNode(A,{"file-list":zl.value,"onUpdate:fileList":a[10]||(a[10]=u=>zl.value=u),multiple:"",drag:"",action:"","auto-upload":!1,limit:20,accept:"image/*","on-change":No,class:"upload-content"},{tip:l.withCtx(()=>a[19]||(a[19]=[l.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传图片文件,大小不超过10MB ",-1)])),default:l.withCtx(()=>[l.createVNode(v,{class:"el-icon--upload"},{default:l.withCtx(()=>[l.createVNode(l.unref(N.upload_filled_default))]),_:1}),a[20]||(a[20]=l.createElementVNode("div",{class:"el-upload__text"},[l.createTextVNode(" 将图片拖到此处或"),l.createElementVNode("em",null,"点击上传")],-1))]),file:l.withCtx(({file:u,index:y})=>[l.createElementVNode("div",In,[l.createElementVNode("div",{class:"upload-content-title",style:{flex:"1",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:u==null?void 0:u.name},l.toDisplayString(u==null?void 0:u.name),9,ei),l.createElementVNode("div",li,[l.createVNode(r,{class:"icon-blue",name:"EyeFill",style:{width:"15px",height:"15px",cursor:"pointer",color:"var(--ssform-label-color)"},onClick:h=>Uo(u),title:"预览"},null,8,["onClick"]),l.createVNode(r,{class:"icon-blue",name:"Cancel",style:{width:"15px",height:"15px",cursor:"pointer",color:"var(--ssform-label-color)"},onClick:h=>Po(y),title:"删除"},null,8,["onClick"])])])]),_:1},8,["file-list"])])),[[M,Zl.value]])]),footer:l.withCtx(()=>[l.createElementVNode("div",ai,[l.createVNode(k,{onClick:cr,id:"themeBorderButton",disabled:Zl.value},{default:l.withCtx(()=>a[21]||(a[21]=[l.createTextVNode("取消")])),_:1,__:[21]},8,["disabled"]),l.createVNode(k,{class:"ok-button",onClick:Do,id:"themeButton",disabled:Zl.value},{default:l.withCtx(()=>a[22]||(a[22]=[l.createTextVNode("确认")])),_:1,__:[22]},8,["disabled"])])]),_:1},8,["visible"]),Aa.value?(l.openBlock(),l.createBlock(kl.ssFilePreview,{key:3,fileDataList:Na.value,onDestroy:jo},null,8,["fileDataList"])):l.createCommentVNode("",!0),l.createVNode(la.ssDialog,{title:"OCR识别结果预览",visible:Ma.value,onBeforeDestroy:Ja,width:"90%",style:{maxWidth:"1200px"}},{default:l.withCtx(()=>[l.createElementVNode("div",ri,[l.createElementVNode("div",oi,[l.createVNode(L,{title:"请核对识别结果,您可以修改字段值后点击确认添加到表格。在表头勾选字段用于匹配并替换现有数据",type:"info",closable:!1,"show-icon":""})]),l.createElementVNode("div",ni,[l.createVNode(S,{data:na.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:l.withCtx(()=>[l.createVNode(P,{type:"index",label:"序号",width:"60",fixed:""}),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Ra.value,u=>(l.openBlock(),l.createBlock(P,{key:u.prop,prop:u.prop,"min-width":u.minWidth||120,"class-name":u.isAccuracy?"accuracy-column":""},{header:l.withCtx(()=>[l.createElementVNode("div",ii,[u.isAccuracy?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(c,{key:0,"model-value":Vl.value.includes(u.prop),onChange:y=>wo(u.prop,y),onClick:a[11]||(a[11]=l.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),l.createElementVNode("span",null,l.toDisplayString(u.label),1)])]),default:l.withCtx(({row:y,$index:h})=>[u.isAccuracy?(l.openBlock(),l.createElementBlock("span",{key:0,class:"accuracy-value",style:l.normalizeStyle({color:Oo(y[u.prop]),fontWeight:500})},l.toDisplayString(Bo(y[u.prop])),5)):(l.openBlock(),l.createBlock($,{key:1,modelValue:y[u.prop],"onUpdate:modelValue":K=>y[u.prop]=K,size:"small",placeholder:"请输入"+u.label,onChange:K=>To(h,u.prop,K)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:l.withCtx(()=>[l.createElementVNode("div",si,[l.createVNode(k,{onClick:Ja,id:"themeBorderButton"},{default:l.withCtx(()=>a[23]||(a[23]=[l.createTextVNode("取消")])),_:1,__:[23]}),l.createVNode(k,{class:"ok-button",onClick:Eo,id:"themeButton"},{default:l.withCtx(()=>a[24]||(a[24]=[l.createTextVNode("确认")])),_:1,__:[24]})])]),_:1},8,["visible"]),l.createVNode(la.ssDialog,{title:Ye.title,visible:Ye.show,width:Ye.width,onBeforeDestroy:_o},{default:l.withCtx(()=>[l.createElementVNode("div",ui,[l.createVNode(kl.ssForm,{rowContents:Ye==null?void 0:Ye.contents,formRules:Ye==null?void 0:Ye.formRules,showOperator:!1,buttonValue:Ye.buttonValue,isEdit:Sa.value,isStartJustify:!1,isEnableWrap:!1,onOnButtonClick:Ao},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"])])}}},ti=Ua._export_sfc(ci,[["__scopeId","data-v-bb042d9d"]]);exports.formGetOptions=Ba;exports.getSelectRow=Oa;exports.ssTable=ti;exports.useFormComp=Ur;exports.useFormToTableComp=Tr;