ss-component-new 1.3.113 → 1.3.114

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 (112) hide show
  1. package/dist/{MTLLoader-BviVUPWi.cjs → MTLLoader-DcIQb_s3.cjs} +1 -1
  2. package/dist/{MTLLoader-y4B1LPuT.js → MTLLoader-iRxhJhIF.js} +34 -34
  3. package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-9REskSZo.cjs} +1 -1
  4. package/dist/{OrbitControls-390k2OM3.js → OrbitControls-PQJZejy_.js} +1 -1
  5. package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BuABv8Tv.cjs} +1 -1
  6. package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-Buak6sTX.js} +222 -222
  7. package/dist/{animationData-DfDLy_M4.js → animationData-DJhhkfHw.js} +18 -18
  8. package/dist/{animationData-B1Jlpr7b.cjs → animationData-DiCszzEt.cjs} +1 -1
  9. package/dist/{array-DLBDgy0c.js → array-Be4dCwU5.js} +5 -5
  10. package/dist/{array-ymebeoXj.cjs → array-BsWbhqqH.cjs} +1 -1
  11. package/dist/{iconfont-cBX7rs7k.cjs → iconfont-CTi1EROO.cjs} +1 -1
  12. package/dist/{iconfont-BYa5tDrN.js → iconfont-Dkz3EhnP.js} +37 -37
  13. package/dist/{index-JJBPRJiI.cjs → index-1ATQxYGc.cjs} +1 -1
  14. package/dist/{index-UytjSmc1.cjs → index-69FRQH94.cjs} +1 -1
  15. package/dist/{index-4p0yEeUu.js → index-B2WIMplB.js} +1 -1
  16. package/dist/{index--hQDmx_x.js → index-B2pcDjLn.js} +2 -2
  17. package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
  18. package/dist/{index-DdCyGfF9.cjs → index-BBrdsI9W.cjs} +1 -1
  19. package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
  20. package/dist/{index-BXZlLwr6.cjs → index-Bd8mah99.cjs} +1 -1
  21. package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
  22. package/dist/{index-C2yeqxnB.js → index-BhPhyI8f.js} +3 -3
  23. package/dist/{index-bbJ9Y_oO.js → index-BhU0rWGt.js} +3 -3
  24. package/dist/index-BhsUBoCD.cjs +1 -0
  25. package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
  26. package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
  27. package/dist/{index-BfNg0B2v.js → index-BsoWrBpk.js} +33 -33
  28. package/dist/{index-DpIzJvIr.cjs → index-BuaAY6T_.cjs} +1 -1
  29. package/dist/{index-DaX27S_0.js → index-BugYnyXc.js} +31 -31
  30. package/dist/{index-DMzBNabY.js → index-Bz_ZsUz_.js} +1 -1
  31. package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
  32. package/dist/{index-CXkaTWVT.js → index-C3LqP4qY.js} +2 -2
  33. package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
  34. package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
  35. package/dist/{index-DLK6UU4l.cjs → index-C_CGGyPH.cjs} +1 -1
  36. package/dist/{index-CYXsxIou.js → index-CdOlTQZV.js} +1 -1
  37. package/dist/{index-CVwsrCrZ.cjs → index-CdzQfZvY.cjs} +12 -12
  38. package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
  39. package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
  40. package/dist/{index-BxmhgJuz.js → index-Cw0eFU8n.js} +1 -1
  41. package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
  42. package/dist/{index-Drd5_tIE.js → index-DHrzZlzn.js} +2 -2
  43. package/dist/{index-CEiscADV.cjs → index-DVhZbYfk.cjs} +1 -1
  44. package/dist/{index-CJiEoadC.js → index-Dar27fP9.js} +5 -5
  45. package/dist/index-DavcqNxP.cjs +1 -0
  46. package/dist/{index-DczQgLYk.cjs → index-DbAWw4as.cjs} +5 -5
  47. package/dist/{index-C6_KNp1M.cjs → index-DbnQZ22f.cjs} +1 -1
  48. package/dist/{index-CIoHy7Dg.js → index-Ddn_i6kt.js} +3 -3
  49. package/dist/index-DgBjwajW.js +456 -0
  50. package/dist/{index-SeEbZNcJ.cjs → index-DhFQdrUj.cjs} +1 -1
  51. package/dist/index-DiowIVZT.cjs +36 -0
  52. package/dist/{index-YwMY3Aya.js → index-DkgsdCot.js} +7 -7
  53. package/dist/{index-NdxRkX7O.js → index-Do9OpnU6.js} +316 -316
  54. package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
  55. package/dist/{index-mabPGJUl.js → index-DqljyATQ.js} +1924 -1902
  56. package/dist/{index-B9g8IV0C.cjs → index-Dxxg-n__.cjs} +1 -1
  57. package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
  58. package/dist/{index-BjAtlMRE.cjs → index-OS-qw-PB.cjs} +1 -1
  59. package/dist/{index-BVURmufk.js → index-RJF35C5O.js} +7 -7
  60. package/dist/index-SJHk-hwy.cjs +1 -0
  61. package/dist/index-TspEOSLc.cjs +1 -0
  62. package/dist/{index-DnJB2OQC.cjs → index-d198q36G.cjs} +1 -1
  63. package/dist/{index-CVySIgt4.cjs → index-eOampyhu.cjs} +1 -1
  64. package/dist/index-h4MsH7WN.cjs +1 -0
  65. package/dist/{index-DBdrmcqM.cjs → index-hSBc9pHD.cjs} +1 -1
  66. package/dist/index-kP2LUcSw.cjs +1 -0
  67. package/dist/{index-BIOl9xBh.js → index-p6bofhog.js} +2 -2
  68. package/dist/{index-D39f9FDD.cjs → index-rgLAMPYl.cjs} +1 -1
  69. package/dist/{index-8TMkI46d.js → index-tXc9-Dpz.js} +5 -5
  70. package/dist/{index-Cu75UXH1.js → index-wT_u7Sip.js} +2 -2
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Cp7jnXuw.js} +19045 -19450
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CuQjU1nB.cjs} +397 -397
  73. package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-AEdMqNIL.cjs} +2 -2
  74. package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-DzaXkSeA.js} +134 -134
  75. package/dist/{main-b1OREkjD.js → main-BuHWLsd1.js} +4 -4
  76. package/dist/{main-ChE0Sl1V.cjs → main-CvEytDJd.cjs} +1 -1
  77. package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
  78. package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +1 -1
  81. package/dist/ss-component.js +10 -10
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-BTiM-_yY.cjs → threeModel-BBPdmBqX.cjs} +1 -1
  85. package/dist/{threeModel-CUViA1pV.js → threeModel-qPRHxt0O.js} +62 -62
  86. package/dist/{threePreview-fEcukbqP.js → threePreview-BNspl3PQ.js} +102 -102
  87. package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BQfgRzYJ.cjs} +1 -1
  88. package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-BTG6qz5g.cjs} +1 -1
  89. package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-Dkw-3Lex.js} +133 -133
  90. package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-BUGbgcyW.js} +8 -8
  91. package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-DZtGuJLA.cjs} +1 -1
  92. package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-BMRciFya.cjs} +1 -1
  93. package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-D5aLq-PQ.js} +94 -94
  94. package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-B5ajpfKi.js} +17 -17
  95. package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-DZgqSUXb.cjs} +1 -1
  96. package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-CXoYn4F5.cjs} +1 -1
  97. package/dist/{urdfTree-B9gafrR3.js → urdfTree-DVRrRAEg.js} +1 -1
  98. package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel--Lz2aEfm.cjs} +1 -1
  99. package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-myjwdWI9.js} +81 -81
  100. package/package.json +1 -1
  101. package/dist/index-8ddlDjHL.js +0 -455
  102. package/dist/index-BLGT4-wX.cjs +0 -1
  103. package/dist/index-CTGhzBZx.cjs +0 -1
  104. package/dist/index-D7Ao1GyZ.cjs +0 -1
  105. package/dist/index-DUqjjluX.cjs +0 -1
  106. package/dist/index-NtRUaVwS.cjs +0 -1
  107. package/dist/index-aMvM6ti6.cjs +0 -1
  108. package/dist/index-kutaq0AT.cjs +0 -36
  109. package/dist/obj/model.mtl +0 -42
  110. package/dist/obj/model.obj +0 -26110
  111. package/public/obj/model.mtl +0 -42
  112. package/public/obj/model.obj +0 -26110
@@ -1 +0,0 @@
1
- "use strict";const ga=require("./index-DczQgLYk.cjs"),e=require("vue"),x=require("./index-kutaq0AT.cjs"),It=require("./index-CVwsrCrZ.cjs"),ct=require("./index-Dc6Q0f3F.cjs"),Ae=require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs"),Xt=require("./index-BXZlLwr6.cjs"),wo=require("./threeViewerHost-Dhc4vxhv.cjs"),Ra=require("./index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs"),zt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),hn=require("./index-Cg30L32X.cjs"),Co=require("./isString-DhPkQDQg.cjs"),Do=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),_o=require("./index-DUqjjluX.cjs"),Ol=require("./index-BpPyaNFa.cjs"),Ml=require("vue-router"),ma=require("./index-9hspBVrQ.cjs"),zl=require("./menuIndex-QovY60sY.cjs"),Za=require("./index-DJoiySWn.cjs"),En=require("./index-H7e3Aze4.cjs"),ir=require("./index-BVaHwt5f.cjs"),Fl=require("./index-UytjSmc1.cjs");var Rl=/\s/;function Pl(o){for(var i=o.length;i--&&Rl.test(o.charAt(i)););return i}var Ll=/^\s+/;function $l(o){return o&&o.slice(0,Pl(o)+1).replace(Ll,"")}var Eo=NaN,jl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Kl=/^0o[0-7]+$/i,Wl=parseInt;function So(o){if(typeof o=="number")return o;if(ct.isSymbol(o))return Eo;if(ct.isObject(o)){var i=typeof o.valueOf=="function"?o.valueOf():o;o=ct.isObject(i)?i+"":i}if(typeof o!="string")return o===0?o:+o;o=$l(o);var c=Ul.test(o);return c||Kl.test(o)?Wl(o.slice(2),c?2:8):jl.test(o)?Eo:+o}var Qa=function(){return ct.root.Date.now()},Hl="Expected a function",ql=Math.max,Gl=Math.min;function sr(o,i,c){var r,p,u,w,h,f,C=0,S=!1,O=!1,z=!0;if(typeof o!="function")throw new TypeError(Hl);i=So(i)||0,ct.isObject(c)&&(S=!!c.leading,O="maxWait"in c,u=O?ql(So(c.maxWait)||0,i):u,z="trailing"in c?!!c.trailing:z);function ee(b){var k=r,G=p;return r=p=void 0,C=b,w=o.apply(G,k),w}function P(b){return C=b,h=setTimeout(j,i),S?ee(b):w}function be(b){var k=b-f,G=b-C,he=i-k;return O?Gl(he,u-G):he}function T(b){var k=b-f,G=b-C;return f===void 0||k>=i||k<0||O&&G>=u}function j(){var b=Qa();if(T(b))return oe(b);h=setTimeout(j,be(b))}function oe(b){return h=void 0,z&&r?ee(b):(r=p=void 0,w)}function D(){h!==void 0&&clearTimeout(h),C=0,r=f=p=h=void 0}function F(){return h===void 0?w:oe(Qa())}function y(){var b=Qa(),k=T(b);if(r=arguments,p=this,f=b,k){if(h===void 0)return P(f);if(O)return clearTimeout(h),h=setTimeout(j,i),ee(f)}return h===void 0&&(h=setTimeout(j,i)),w}return y.cancel=D,y.flush=F,y}var Xl="[object Boolean]";function cr(o){return o===!0||o===!1||ct.isObjectLike(o)&&ct.baseGetTag(o)==Xl}function Yl(o){return o===void 0}const Jl={class:"statistics-cards-container"},Zl={class:"statistics-label"},Ql={class:"statistics-value"},ei=e.defineComponent({__name:"index",props:{items:{default:()=>[]}},setup(o){return(i,c)=>(e.openBlock(),e.createElementBlock("div",Jl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(r,p)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:p},[e.createElementVNode("div",Zl,e.toDisplayString(r==null?void 0:r.label),1),e.createElementVNode("div",Ql,e.toDisplayString((r==null?void 0:r.value)??0),1)]))),128))]))}}),ti=zt._export_sfc(ei,[["__scopeId","data-v-f54ed8af"]]),ni={class:"static-form-card"},ai={key:0,class:"static-form-body"},oi={class:"static-form-label"},ri={class:"static-form-value"},li={key:1},ii={key:1,class:"static-form-empty"},si=e.defineComponent({__name:"index",props:{itemData:{default:()=>[]},compName:{default:""},title:{default:""}},setup(o){const i=o,c=p=>{switch(p){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},r=e.computed(()=>{var w;const p=(w=i.itemData)==null?void 0:w.find(h=>(h==null?void 0:h.key)==="formContent");return((p==null?void 0:p.contents)||[]).filter(h=>!(h!=null&&h.isFormColHidden)&&(h==null?void 0:h.label)).map(h=>{let f=h==null?void 0:h.value;Array.isArray(f)&&(f=f.map(z=>z==null?"":typeof z=="object"?z.label??z.value??z.name??JSON.stringify(z):String(z)).filter(Boolean).join(",")),f!=null&&typeof f=="object"&&(f=f.label??f.value??f.name??JSON.stringify(f));const C=h.label??"",S=f??"",O=C==="使用状态";return{label:C,value:S,isStatus:O,tagType:O?c(S):""}})});return(p,u)=>{const w=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",ni,[r.value.length?(e.openBlock(),e.createElementBlock("div",ai,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"static-form-item"},[e.createElementVNode("div",oi,e.toDisplayString(h.label)+": ",1),e.createElementVNode("div",ri,[h.isStatus?(e.openBlock(),e.createBlock(w,{key:0,type:h.tagType,size:"Default",effect:"plain"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.value??"-"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",li,e.toDisplayString(h.value??"-"),1))])]))),128))])):(e.openBlock(),e.createElementBlock("div",ii," 暂无数据 "))])}}}),ur=zt._export_sfc(si,[["__scopeId","data-v-d92a85c0"]]),ci={class:"form-content"},ui={title:"选择标签"},di={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},pi={class:"col-operate-wrap"},fi={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},hi={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(o,{emit:i}){const c=()=>{w.value=!1,h.value=!1,f.value=[]},r=o;e.computed(()=>{var H;const L=(H=V.value)==null?void 0:H.split("/");return(L==null?void 0:L.some(ge=>(ge==null?void 0:ge.includes("updateLoading"))||(ge==null?void 0:ge.includes("loading"))))?!1:M.value==="view"});const p=i,u=e.ref([]),w=e.ref(!1),h=e.ref(!1),f=e.ref([]),{getFileExtension:C}=wo.useThreeSystem(),S=e.ref(),O=e.ref(!1),z=e.ref(!1),ee=x.useUnit(x.pinia),{chooseTitle:P}=x.storeToRefs(ee),be=e.ref([]),T=e.ref(),j=e.ref(!1),oe=e.ref([]),D=ga.useFormToTableComp(x.pinia),F=ga.useFormComp(x.pinia),y=e.ref(!1),b=e.ref(),k=x.useLoginState(x.pinia),{loginUserInfo:G}=x.storeToRefs(k),he=e.ref(),ot=e.ref(!0),Ee=x.useModelComp(x.pinia),{tableViewContents:He,itemData:$e,isEdit:M,routeToChildPath:ie,lockingPage:le}=x.storeToRefs(Ee),fe=e.ref(null),Xe=e.ref(!1),st=e.ref(!1),q=x.useMenuState(),{activeMenuPath:V}=x.storeToRefs(q),ve=Ae.useOriginalState(x.pinia),{originalPath:ke}=x.storeToRefs(ve),ze=e.computed(()=>V.value==="设备管理/试验设备"&&r.compName==="设备概要"),Se=e.ref([]),Ye=e.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),ae=async L=>{st.value=L,await X("disabled",null,L,!0)},xe=async L=>{await X("operable",null,L,!0)};e.watch(()=>V.value,async()=>{u.value=[],f.value=[]},{deep:!0,immediate:!0});const B=()=>{e.nextTick(()=>{ne()})},Le=L=>{var U;u.value=(U=u.value)==null?void 0:U.map(H=>({...H,isFormColHidden:!(L!=null&&L.includes(H.label))}))};e.onUnmounted(()=>{fe.value=null});const Fe=L=>{p("clickTrigger",L)},we=async L=>{var U,H,ge,ue,K,ce;if(L===""){let Q="";(U=u.value)==null||U.forEach(R=>{R!=null&&R.isMain&&(Q=R==null?void 0:R.value)});let Be=await Ae.getItemData(ie.value,sessionStorage.getItem("systemKey"),"");Q=((ce=(K=(ue=(ge=(H=Be==null?void 0:Be[0])==null?void 0:H.compData)==null?void 0:ge.find(R=>(R==null?void 0:R.key)==="mainRouters"))==null?void 0:ue.contents)==null?void 0:K[0])==null?void 0:ce.routerContent)+ke.value+Q;let _e=await Ae.getItemData(Q,sessionStorage.getItem("systemKey"),"");j.value=!0,oe.value=_e==null?void 0:_e.filter(R=>(R==null?void 0:R.comp)!=="methodButton"),p("routeUrl",oe.value)}},ne=()=>{var U;const L=(U=fe.value)==null?void 0:U.$el;L&&Ae.Sortable.create(L,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:H=>{const{oldIndex:ge,newIndex:ue}=H;if(ge===ue)return;const K=u.value.splice(ge,1)[0];u.value.splice(ue,0,K)}})},X=async(L,U,H,ge=!1)=>{try{Ee.setRefreshCurStructure(!1)}catch{ct.ElMessage.error("编辑处理失败")}},te=async(L,U)=>{await X()},Ce=async(L,U)=>{L&&await X()},Ge=async(L,U,H)=>{await X(U,H,L,!1)},dt=(L,U)=>{he.value===U?ot.value=!1:ot.value=!0,he.value=U==null?void 0:U.changeProp},v=async L=>{var H,ge,ue,K,ce,Q,Be,se,_e,R,Ie,de,je,it,qe;let U=[];if((H=L==null?void 0:L.toString())!=null&&H.includes(".urdf")){if(L.includes(",")){ct.ElMessage.error("当前版本仅允许单个urdf预览!");return}f.value=[{url:L,extension:C(L)}],h.value=!0,w.value=!0;return}if((ge=L==null?void 0:L.toString())!=null&&ge.includes(".stl")||(ue=L==null?void 0:L.toString())!=null&&ue.includes(".STL")||(K=L==null?void 0:L.toString())!=null&&K.includes(".obj")||(ce=L==null?void 0:L.toString())!=null&&ce.includes(".mtl")){const Te=((Q=L==null?void 0:L.toString())==null?void 0:Q.split(",")).map(pt=>({url:pt,extension:C(pt)}));f.value=Te,h.value=!1,w.value=!0;return}if((Be=L==null?void 0:L.toString())!=null&&Be.includes(".stl")||(se=L==null?void 0:L.toString())!=null&&se.includes(".STL")||(_e=L==null?void 0:L.toString())!=null&&_e.includes(".obj")||(R=L==null?void 0:L.toString())!=null&&R.includes(".mtl")){let Qe,Te=[],pt={};if(Array.isArray(L)?Qe=L:Qe=L==null?void 0:L.split(","),Qe==null||Qe.forEach(Je=>{Je.includes(".mtl")?Te.push(Je):pt.blob=pt.blob?pt.blob+","+Je:Je}),(Te==null?void 0:Te.length)>0&&(pt.mtlBlobs=Te),(de=(Ie=Object.values(pt))==null?void 0:Ie[0])!=null&&de.includes("http:"))U.push(pt);else{const Je=new Blob([pt.blob],{type:"application/octet-stream;charset=UTF-8"});let Ve=URL.createObjectURL(Je),rt="";(je=L==null?void 0:L.split("/"))==null||je.forEach((mt,xt)=>{var Ue;xt===((Ue=L==null?void 0:L.split("/"))==null?void 0:Ue.length)-1&&(rt=mt)}),(it=pt.blob)!=null&&it.includes(".stl")&&(rt=(rt==null?void 0:rt.replaceAll(">",""))+".urdf"),T.value=[{name:rt,blobUrl:Ve}],z.value=!0}}else{const Qe=It.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Te=await ct.axios.get(L,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Qe.close()}),pt=new Blob([Te.data],{type:"application/octet-stream;charset=UTF-8"});let Je=URL.createObjectURL(pt),Ve="";(qe=L==null?void 0:L.split("/"))==null||qe.forEach((rt,mt)=>{var xt;mt===((xt=L==null?void 0:L.split("/"))==null?void 0:xt.length)-1&&(Ve=rt)}),T.value=[{name:Ve,blobUrl:Je}],z.value=!0}(U==null?void 0:U.length)>0&&F.setBlobUrls(U)},E=()=>{z.value=!1},W=L=>{var K,ce,Q,Be;const U=(ce=(K=x.cloneDeep(r.itemData))==null?void 0:K.find(se=>(se==null?void 0:se.key)==="formContent"))==null?void 0:ce.contents,H=x.cloneDeep(L.content);let ge={};H&&((Q=Object.values(H))==null?void 0:Q.length)>0&&((Be=Object.values(H))==null||Be.forEach((se,_e)=>{ge[U[_e].key]=se}));const ue={content:ge,index:r==null?void 0:r.index,buttonName:L==null?void 0:L.buttonName};p("change",ue)},J=e.computed(()=>"http://222.92.178.198:62001"),_=async L=>{var Ie,de,je,it,qe,Qe,Te,pt,Je,Ve,rt,mt,xt,Ue,nt,yt;if(!L)return;(de=(Ie=r==null?void 0:r.itemData)==null?void 0:Ie.find(Me=>(Me==null?void 0:Me.key)==="parentFormPath"))==null||de.contents;let U=He.value;(U==null?void 0:U.length)>0&&(U=U==null?void 0:U.map(Me=>{var We,De,N,pe;let Pe=(We=Me==null?void 0:Me.key)==null?void 0:We.split("/");return(r==null?void 0:r.compName)===(Pe==null?void 0:Pe[0])&&(De=u.value)!=null&&De.find(me=>(me==null?void 0:me.prop)===(Pe==null?void 0:Pe[1]))&&(Me.value=(pe=(N=u.value)==null?void 0:N.find(me=>(me==null?void 0:me.prop)===(Pe==null?void 0:Pe[1])))==null?void 0:pe.value),Me}),Ee.setTableViewContents(U));const H=x.cloneDeep(r.itemData);let ge=H==null?void 0:H.map(Me=>{var Pe;return(Me==null?void 0:Me.key)==="formContent"&&((Pe=Me.contents)==null||Pe.map((We,De)=>{var N,pe,me,et,Ze,Dt,Ct,ut,ft,vt,gt,Pt,bt,Ft,Rt,Ut,Wt,Jt,Qt;return We.type=(pe=(N=u.value)==null?void 0:N.find($t=>($t==null?void 0:$t.prop)===(We==null?void 0:We.prop)))==null?void 0:pe.type,We.options=We!=null&&We.options?We.options:((Ze=(et=(me=We==null?void 0:We.key)==null?void 0:me.split("$"))==null?void 0:et[1])==null?void 0:Ze.length)>0?(ft=(ut=ga.formGetOptions((Ct=(Dt=We==null?void 0:We.key)==null?void 0:Dt.split("$"))==null?void 0:Ct[1]))==null?void 0:ut.split(","))==null?void 0:ft.map($t=>({label:$t,value:$t})):[],(vt=We==null?void 0:We.key)!=null&&vt.includes("$")&&(We.key=(Pt=(gt=We==null?void 0:We.key)==null?void 0:gt.split("$"))==null?void 0:Pt[0]),We.signature=(Ft=(bt=u.value)==null?void 0:bt.find($t=>($t==null?void 0:$t.prop)===(We==null?void 0:We.prop)))==null?void 0:Ft.signature,We.isLoginUser=(Ut=(Rt=u.value)==null?void 0:Rt.find($t=>($t==null?void 0:$t.prop)===(We==null?void 0:We.prop)))==null?void 0:Ut.isLoginUser,We.value=(Wt=Object.values(L))==null?void 0:Wt[De],We.isFormColHidden=(Qt=(Jt=u.value)==null?void 0:Jt.find($t=>($t==null?void 0:$t.prop)===(We==null?void 0:We.prop)))==null?void 0:Qt.isFormColHidden,We})),Me}),ue=u.value,K=(it=(je=x.cloneDeep(ge))==null?void 0:je.find(Me=>(Me==null?void 0:Me.key)==="formContent"))==null?void 0:it.contents;if(ue=ue==null?void 0:ue.map(Me=>{var Pe;return Me.value=(Pe=K==null?void 0:K.find((We,De)=>((We==null?void 0:We.id)??De)===(Me==null?void 0:Me.id)))==null?void 0:Pe.value,Me}),!ot.value){p("contentChange",{contents:ge,index:r.index});return}let ce="",Q=(Te=(Qe=(qe=x.cloneDeep(ge))==null?void 0:qe.find(Me=>(Me==null?void 0:Me.key)==="formContent"))==null?void 0:Qe.contents)==null?void 0:Te.find((Me,Pe)=>{var We,De,N;return(Me==null?void 0:Me.label)===he.value||Pe.toString()===((N=(De=(We=he.value)==null?void 0:We.split("t"))==null?void 0:De[1])==null?void 0:N.toString())}),Be=(pt=Q==null?void 0:Q.optionUrl)==null?void 0:pt.menuSelect,se=!0;if((rt=(Ve=(Je=x.cloneDeep(ge))==null?void 0:Je.find(Me=>(Me==null?void 0:Me.key)==="formContent"))==null?void 0:Ve.contents)==null||rt.forEach(Me=>{var Pe,We,De,N,pe,me;se&&((De=(We=(Pe=Me==null?void 0:Me.optionUrl)==null?void 0:Pe.groupSelect)==null?void 0:We[1])!=null&&De.includes("["))&&(ce=(pe=(N=Me==null?void 0:Me.optionUrl)==null?void 0:N.groupSelect)==null?void 0:pe[1],JSON.stringify(Be)===JSON.stringify((me=Me==null?void 0:Me.optionUrl)==null?void 0:me.menuSelect)&&(se=!1))}),(mt=Q==null?void 0:Q.optionUrl)!=null&&mt.menuSelect&&ot.value){let Me=await ga.getSelectRow(Q),Pe,We=(xt=Q==null?void 0:Q.optionUrl)==null?void 0:xt.menuSelect;if(Me==null||Me.forEach(De=>{var N,pe,me,et,Ze,Dt,Ct,ut,ft,vt;ce===((pe=(N=Q==null?void 0:Q.optionUrl)==null?void 0:N.groupSelect)==null?void 0:pe[1])&&((Ze=(et=(me=Q==null?void 0:Q.optionUrl)==null?void 0:me.groupSelect)==null?void 0:et[1])!=null&&Ze.includes("["))&&((vt=x.cloneDeep(De))==null?void 0:vt[(ft=(ut=(Ct=(Dt=Q==null?void 0:Q.optionUrl)==null?void 0:Dt.groupSelect)==null?void 0:Ct[1])==null?void 0:ut.replaceAll("[",""))==null?void 0:ft.replaceAll("]","")])===(Q==null?void 0:Q.value)&&(Pe=De)}),Pe){let De=x.cloneDeep(ue);De=De==null?void 0:De.map(pe=>{var me,et,Ze,Dt,Ct,ut,ft,vt,gt,Pt,bt;return(Pe!=null&&Pe[pe==null?void 0:pe.label]||Pe!=null&&Pe[(Dt=(Ze=(et=(me=pe==null?void 0:pe.optionUrl)==null?void 0:me.groupSelect)==null?void 0:et[1])==null?void 0:Ze.replaceAll("[",""))==null?void 0:Dt.replaceAll("]","")])&&((ft=(ut=(Ct=pe==null?void 0:pe.optionUrl)==null?void 0:Ct.groupSelect)==null?void 0:ut[1])!=null&&ft.includes("["))&&We!=null&&We.every(Ft=>{var Rt,Ut;return(Ut=(Rt=pe==null?void 0:pe.optionUrl)==null?void 0:Rt.menuSelect)==null?void 0:Ut.includes(Ft)})&&(pe.value=(Pe==null?void 0:Pe[pe==null?void 0:pe.label])||(Pe==null?void 0:Pe[(bt=(Pt=(gt=(vt=pe==null?void 0:pe.optionUrl)==null?void 0:vt.groupSelect)==null?void 0:gt[1])==null?void 0:Pt.replaceAll("[",""))==null?void 0:bt.replaceAll("]","")]),Array.isArray(pe.value)&&pe.value.every(Ft=>(Ft==null?void 0:Ft.url)&&(Ft==null?void 0:Ft.name))&&(pe.type="Upload")),pe}),De=De==null?void 0:De.map(pe=>{var me,et,Ze;return(me=pe==null?void 0:pe.optionUrl)!=null&&me.oldMenuSelect&&(pe.optionUrl.menuSelect=(Ze=(et=x.cloneDeep(pe))==null?void 0:et.optionUrl)==null?void 0:Ze.oldMenuSelect),pe}),u.value=x.cloneDeep(De);let N=x.cloneDeep(De);N=N==null?void 0:N.map(pe=>{var me,et,Ze,Dt,Ct,ut;return(et=(me=pe==null?void 0:pe.optionUrl)==null?void 0:me.menuSelect)!=null&&et.some(ft=>ft==null?void 0:ft.includes("["))&&(pe.optionUrl.oldMenuSelect=(Dt=(Ze=x.cloneDeep(pe))==null?void 0:Ze.optionUrl)==null?void 0:Dt.menuSelect,pe.optionUrl.menuSelect=(ut=(Ct=pe==null?void 0:pe.optionUrl)==null?void 0:Ct.menuSelect)==null?void 0:ut.map(ft=>{var vt,gt,Pt,bt;if(ft!=null&&ft.includes("[")){let Ft=(gt=(vt=ft==null?void 0:ft.replaceAll("[","").replaceAll("]",""))==null?void 0:vt.split(":"))==null?void 0:gt[1];ft=(bt=(Pt=x.cloneDeep(De))==null?void 0:Pt.find(Rt=>(Rt==null?void 0:Rt.label)===Ft))==null?void 0:bt.value}return ft})),pe}),u.value=N}else u.value=ue;ge=ge==null?void 0:ge.map(De=>{var N;return(De==null?void 0:De.key)==="formContent"&&(De.contents=(N=De.contents)==null?void 0:N.map(pe=>{var me,et,Ze,Dt;return pe.value=((et=(me=u.value)==null?void 0:me.find(Ct=>(Ct==null?void 0:Ct.label)===(pe==null?void 0:pe.key)))==null?void 0:et.value)??(pe==null?void 0:pe.value),pe.type=((Dt=(Ze=u.value)==null?void 0:Ze.find(Ct=>(Ct==null?void 0:Ct.prop)===(pe==null?void 0:pe.key)))==null?void 0:Dt.type)??(pe==null?void 0:pe.type),pe})),De})}ot.value=!1,p("contentChange",{contents:ge,index:r.index});let _e=[],R=[];if((nt=x.cloneDeep((Ue=ge==null?void 0:ge.find(Me=>(Me==null?void 0:Me.key)==="formContent"))==null?void 0:Ue.contents))==null||nt.forEach(Me=>{var Pe;Array.isArray(Me==null?void 0:Me.value)&&((Pe=Me==null?void 0:Me.value)!=null&&Pe.find(We=>{var De;return(De=We==null?void 0:We.url)==null?void 0:De.includes(".obj")}))&&(R=Me==null?void 0:Me.value)}),(R==null?void 0:R.length)>0){const Me=(yt=x.cloneDeep(R))==null?void 0:yt.filter(Pe=>{var We;return(We=Pe==null?void 0:Pe.url)==null?void 0:We.includes(".obj")});Me==null||Me.forEach(Pe=>{var De,N,pe,me;const We=(De=R==null?void 0:R.filter(et=>{var Ze;return(et==null?void 0:et.name)===(Pe==null?void 0:Pe.name)&&((Ze=et==null?void 0:et.url)==null?void 0:Ze.includes(".mtl"))}))==null?void 0:De.map(et=>et==null?void 0:et.url);_e.push({objUrl:Pe==null?void 0:Pe.url,mtlUrls:((N=R==null?void 0:R.filter(et=>{var Ze;return(et==null?void 0:et.name)===(Pe==null?void 0:Pe.name)&&((Ze=et==null?void 0:et.url)==null?void 0:Ze.includes(".mtl"))}))==null?void 0:N.length)===1?(me=(pe=R==null?void 0:R.filter(et=>{var Ze;return(et==null?void 0:et.name)===(Pe==null?void 0:Pe.name)&&((Ze=et==null?void 0:et.url)==null?void 0:Ze.includes(".mtl"))}))==null?void 0:pe[0])==null?void 0:me.url:We})}),F.setObjUrl(_e)}},re=L=>{if(!L)return;const U=[];let H="";for(let ge of L)(ge.includes("[")||H.includes("["))&&(H+=ge.trim(),x.cloneDeep(H).split("【").length-1===x.cloneDeep(H).split("】").length-1&&x.cloneDeep(H).split("[").length-1===x.cloneDeep(H).split("]").length-1&&(U.push(H.replace(/\/\*[\s\S]*?\*\//g,"")),H=""));return U},Ne=(L,U,H)=>{let ge="";const ue=U==null?void 0:U.map(K=>{var ce;return(ce=K==null?void 0:K.value)==null?void 0:ce.pageData});return ue==null||ue.forEach(K=>{var ce;(K==null?void 0:K.name)===(L==null?void 0:L[0])&&((ce=K==null?void 0:K.compData)==null||ce.forEach(Q=>{var Be;(Q==null?void 0:Q.key)==="formContent"&&((Be=Q==null?void 0:Q.contents)==null||Be.forEach(se=>{var _e;(se==null?void 0:se.prop)===(L==null?void 0:L[1])&&(ge=(se==null?void 0:se.value)===""?Ae.judgeContents((_e=x.cloneDeep(se))==null?void 0:_e.optionUrl,H):se==null?void 0:se.value)}))}))}),ge},Z=(L,U,H,ge)=>{var Q,Be;let ue="",K="";(Q=x.cloneDeep(U))==null||Q.forEach((se,_e)=>{se!=null&&se.includes("[")?K=K+ke.value+L[_e]:K=K===""?K+se:K+"/"+se});let ce=(Be=ge[K])==null?void 0:Be.map(se=>{var _e;return(_e=se==null?void 0:se.value)==null?void 0:_e.pageData});return ce==null||ce.forEach(se=>{var _e;(se==null?void 0:se.name)===(H==null?void 0:H[0])&&((_e=se==null?void 0:se.compData)==null||_e.forEach(R=>{var Ie;(R==null?void 0:R.key)==="formContent"&&((Ie=R==null?void 0:R.contents)==null||Ie.forEach(de=>{(de==null?void 0:de.prop)===(H==null?void 0:H[1])&&(ue=de==null?void 0:de.value)}))}))}),ue};return e.watch(()=>r.itemData,async()=>{var ce,Q,Be,se,_e,R,Ie,de,je,it,qe,Qe,Te,pt,Je,Ve,rt,mt,xt;const L=(ce=r.itemData)==null?void 0:ce.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"),U=(Q=x.cloneDeep(r.itemData))==null?void 0:Q.find(Ue=>(Ue==null?void 0:Ue.key)==="formButton"),H=(Be=x.cloneDeep(r.itemData))==null?void 0:Be.find(Ue=>(Ue==null?void 0:Ue.key)==="formFlex"),ge=(se=x.cloneDeep(r.itemData))==null?void 0:se.find(Ue=>(Ue==null?void 0:Ue.key)==="formWrap"),ue=(_e=x.cloneDeep(r.itemData))==null?void 0:_e.find(Ue=>(Ue==null?void 0:Ue.key)==="enableWrap");if((ge==null?void 0:ge.contents)==="纵向"?O.value=!1:O.value=!0,y.value=(ue==null?void 0:ue.contents)===void 0?!1:ue==null?void 0:ue.contents,b.value=typeof(H==null?void 0:H.contents)!="boolean"?!(!(H!=null&&H.contents)===""||((R=H==null?void 0:H.contents)==null?void 0:R.toUpperCase())==="VERTICAL"):H==null?void 0:H.contents,((Ie=L==null?void 0:L.contents)==null?void 0:Ie.length)>0&&Array.isArray(L==null?void 0:L.contents)){let Ue=r.allMapContents;const nt=(je=(de=x.cloneDeep(L))==null?void 0:de.contents)==null?void 0:je.map((N,pe)=>{var Ft,Rt,Ut,Wt,Jt,Qt,$t,Rn,bn,Pn,kn,Ln,$n,jn,Un,Kn,Tn,vn,un,xn,mn,rn,pn,Wn,Bn,In,wn,Hn,qn,Nn,Gn,Xn,An;let me=(N==null?void 0:N.label)??(N==null?void 0:N.key)??"",et=(N==null?void 0:N.type)??"",Ze=(N==null?void 0:N.options)??[];if((Ft=N==null?void 0:N.key)!=null&&Ft.includes("$")&&(me=(Rt=x.cloneDeep(N==null?void 0:N.key).split("$"))==null?void 0:Rt[0],((Wt=(Ut=x.cloneDeep(N==null?void 0:N.key).split("$"))==null?void 0:Ut[1])==null?void 0:Wt.length)>0)){const[_t,en]=(Qt=(Jt=x.cloneDeep(N==null?void 0:N.key).split("$"))==null?void 0:Jt[1])==null?void 0:Qt.split(/[()]/);et=(($t=Ae.FormType.find(tt=>(tt==null?void 0:tt.key)===_t))==null?void 0:$t.value)??"",((Rn=en==null?void 0:en.split(","))==null?void 0:Rn.length)>0&&(Ze=(bn=en==null?void 0:en.split(","))==null?void 0:bn.map(tt=>({label:tt,value:tt})))}let Dt=[];N!=null&&N.contents&&!Array.isArray(N==null?void 0:N.contents)&&(Dt=(kn=(Pn=N==null?void 0:N.contents)==null?void 0:Pn.split(","))==null?void 0:kn.map(_t=>({label:_t,value:_t}))),((Ln=N==null?void 0:N.optionUrl)==null?void 0:Ln.selectRelateType)==="自定义绑定"&&(Dt=(jn=($n=N==null?void 0:N.optionUrl)==null?void 0:$n.defaultSelect)==null?void 0:jn.map(_t=>({label:_t,value:_t})));let Ct=!1,ut=(N==null?void 0:N.isFormColHidden)??!1,ft=Ae.judgeContents((Un=x.cloneDeep(N))==null?void 0:Un.optionUrl,Ue),vt=ft!==void 0&&ft!==""?ft:N!=null&&N.originalContent&&(N==null?void 0:N.originalContent)!==""?N.originalContent:N!=null&&N.value?N.value:(Ze==null?void 0:Ze.length)>0?(Kn=Ze==null?void 0:Ze[0])==null?void 0:Kn.value:(N==null?void 0:N.value)??"",gt=!1,Pt=ft!==void 0||et===""?"Input":et;if((Array.isArray(ft)&&(ft!=null&&ft.every(_t=>(_t==null?void 0:_t.name)&&(_t==null?void 0:_t.url)))||Array.isArray(vt)&&(vt!=null&&vt.every(_t=>(_t==null?void 0:_t.name)&&(_t==null?void 0:_t.url))))&&(Pt="upload"),typeof vt=="string"&&(vt!=null&&vt.includes("loginUser"))&&!(vt!=null&&vt.includes("loginUserSign"))||N!=null&&N.isLoginUser)Ct=!0,vt=((Tn=G.value)==null?void 0:Tn.姓名)||((vn=G.value)==null?void 0:vn.account)||((un=G.value)==null?void 0:un.账号)||((xn=G.value)==null?void 0:xn.userName);else if(typeof vt=="string"&&(vt!=null&&vt.includes("loginUserSign"))||N!=null&&N.signature||N!=null&&N.isShow)if(gt=!0,(N==null?void 0:N.isShow)==="originalSignature")Pt="image",vt=J.value+"/"+((mn=G.value)==null?void 0:mn.signature);else{let _t=[...new Set(re(N.isShow))].map(Et=>{var Bt,Ot,Lt,Nt;return{key:(Nt=(Lt=(Ot=(Bt=Et==null?void 0:Et.split("["))==null?void 0:Bt[1])==null?void 0:Ot.split("]"))==null?void 0:Lt[0])==null?void 0:Nt.split(":"),value:""}});(rn=$e.value)==null||rn.forEach(Et=>{_t==null||_t.forEach((wt,Bt)=>{var Lt;let Ot=wt==null?void 0:wt.key;(Et==null?void 0:Et.name)===(Ot==null?void 0:Ot[0].replaceAll("'",""))&&((Lt=Et==null?void 0:Et.compData)==null||Lt.forEach(Nt=>{var tn;(Nt==null?void 0:Nt.key)==="formContent"&&((tn=Nt==null?void 0:Nt.contents)==null||tn.forEach(qt=>{(qt==null?void 0:qt.prop)===(Ot==null?void 0:Ot[1].replaceAll("'",""))&&(_t[Bt].value=qt==null?void 0:qt.value)}))}))})});let en=_t==null?void 0:_t.map(Et=>{var wt;return Et.key="["+((wt=Et.key)==null?void 0:wt.join(":"))+"]",Et}),tt=N==null?void 0:N.isShow;en==null||en.forEach(Et=>{Et!=null&&Et.value?tt=tt.replaceAll(Et==null?void 0:Et.key,"'"+(Et==null?void 0:Et.value)+"'"):tt=tt.replaceAll(Et==null?void 0:Et.key,"undefined")}),tt!=null&&tt.includes("(")||(tt!=null&&tt.includes("==")?tt=((pn=tt==null?void 0:tt.split("==="))==null?void 0:pn[0])+"==='"+((Wn=tt==null?void 0:tt.split("==="))==null?void 0:Wn[1])+"'":tt=((Bn=tt==null?void 0:tt.split("="))==null?void 0:Bn[0])+"='"+((In=tt==null?void 0:tt.split("="))==null?void 0:In[1])+"'"),tt!=null&&tt.includes("=")&&!(tt!=null&&tt.includes("=="))&&!(tt!=null&&tt.includes("==="))&&(tt=tt==null?void 0:tt.replaceAll("=","==")),new Function(`if (${tt}) { return true } else { return false }`)()?(ut=!1,Pt="image",vt=J.value+"/"+((wn=G.value)==null?void 0:wn.signature)):vt=""}return Array.isArray(vt)&&vt.every(_t=>(_t==null?void 0:_t.url)&&(_t==null?void 0:_t.name))&&(N.type="Upload"),N!=null&&N.isMainUrl&&(Pt="Url"),{label:me??"",name:"t"+pe,prop:x.cloneDeep(N==null?void 0:N.key),type:Pt,value:N!=null&&N.isSync?((qn=(Hn=P.value)==null?void 0:Hn[0])==null?void 0:qn.value)??((An=(Nn=V==null?void 0:V.value)==null?void 0:Nn.split("/"))==null?void 0:An[((Xn=(Gn=V==null?void 0:V.value)==null?void 0:Gn.split("/"))==null?void 0:Xn.length)-1]):N!=null&&N.isNewDate&&vt===""?new Date:vt,id:(N==null?void 0:N.id)??pe,contents:(Dt==null?void 0:Dt.length)>0?Dt:Ze??[],width:(N==null?void 0:N.width)??1,isLoginUser:Ct,config:N==null?void 0:N.config,optionUrl:(N==null?void 0:N.optionUrl)??N,isFormColHidden:ut,signature:gt,isMain:N==null?void 0:N.isMain,isMainUrl:N==null?void 0:N.isMainUrl,operable:(N==null?void 0:N.operable)??!1,disabled:(N==null?void 0:N.disabled)??!1,isSync:N==null?void 0:N.isSync}}),yt=nt==null?void 0:nt.map(N=>N==null?void 0:N.value);let Me="";yt==null||yt.forEach(N=>{N!==""&&N!==void 0&&(Me=Me===""?N:Me+"/"+N)}),D.setSelectArray(yt),D.setSelectString(Me);let Pe=(it=x.cloneDeep(nt))==null?void 0:it.map(N=>(N!=null&&N.value&&Ae.IsJson(N==null?void 0:N.value)&&Array.isArray(JSON.parse(N==null?void 0:N.value))&&(N.value=JSON.parse(N.value)),N));Pe=Pe==null?void 0:Pe.map(N=>{var pe,me,et,Ze,Dt,Ct,ut,ft;if((me=(pe=N==null?void 0:N.optionUrl)==null?void 0:pe.menuSelect)!=null&&me.some(vt=>vt==null?void 0:vt.includes("["))){let vt="";N.optionUrl.oldMenuSelect=(Ze=(et=x.cloneDeep(N))==null?void 0:et.optionUrl)==null?void 0:Ze.menuSelect,N.optionUrl.menuSelect=(Ct=(Dt=N==null?void 0:N.optionUrl)==null?void 0:Dt.menuSelect)==null?void 0:Ct.map(gt=>{var Pt,bt,Ft,Rt,Ut,Wt;if(gt!=null&&gt.includes("[")){let Jt=(bt=(Pt=gt==null?void 0:gt.replaceAll("[","").replaceAll("]",""))==null?void 0:Pt.split(":"))==null?void 0:bt[1];vt=Ne((Ft=gt==null?void 0:gt.replaceAll("[","").replaceAll("]",""))==null?void 0:Ft.split(":"),Ue==null?void 0:Ue[V.value],Ue),gt=((Ut=(Rt=x.cloneDeep(Pe))==null?void 0:Rt.find(Qt=>(Qt==null?void 0:Qt.label)===Jt))==null?void 0:Ut.value)||Ne((Wt=gt==null?void 0:gt.replaceAll("[","").replaceAll("]",""))==null?void 0:Wt.split(":"),Ue==null?void 0:Ue[V.value],Ue)}return gt}),vt!==""&&N.value===""&&(N.value=Z(N.optionUrl.menuSelect,N.optionUrl.oldMenuSelect,(ut=N==null?void 0:N.optionUrl)==null?void 0:ut.groupSelect,Ue),Array.isArray(N.value)&&((ft=N.value)!=null&&ft.every(gt=>gt==null?void 0:gt.url))&&(N.type="UPLOAD"))}return N}),u.value=Pe,st.value=((qe=u.value)==null?void 0:qe.every(N=>N==null?void 0:N.disabled))||le.value===V.value,Xe.value=(Qe=u.value)==null?void 0:Qe.every(N=>N==null?void 0:N.operable),Se.value=(Te=u.value)==null?void 0:Te.map(N=>N==null?void 0:N.label);let We=[],De=[];if((pt=x.cloneDeep(u.value))==null||pt.forEach(N=>{var pe;Array.isArray(N==null?void 0:N.value)&&((pe=N==null?void 0:N.value)!=null&&pe.find(me=>{var et;return(et=me==null?void 0:me.url)==null?void 0:et.includes(".obj")}))&&(De=N==null?void 0:N.value)}),(De==null?void 0:De.length)>0){const N=(Je=x.cloneDeep(De))==null?void 0:Je.filter(pe=>{var me;return(me=pe==null?void 0:pe.url)==null?void 0:me.includes(".obj")});N==null||N.forEach(pe=>{var et,Ze,Dt,Ct;const me=(et=De==null?void 0:De.filter(ut=>{var ft;return(ut==null?void 0:ut.name)===(pe==null?void 0:pe.name)&&((ft=ut==null?void 0:ut.url)==null?void 0:ft.includes(".mtl"))}))==null?void 0:et.map(ut=>ut==null?void 0:ut.url);We.push({objUrl:pe==null?void 0:pe.url,mtlUrls:((Ze=De==null?void 0:De.filter(ut=>{var ft;return(ut==null?void 0:ut.name)===(pe==null?void 0:pe.name)&&((ft=ut==null?void 0:ut.url)==null?void 0:ft.includes(".mtl"))}))==null?void 0:Ze.length)===1?(Ct=(Dt=De==null?void 0:De.filter(ut=>{var ft;return(ut==null?void 0:ut.name)===(pe==null?void 0:pe.name)&&((ft=ut==null?void 0:ut.url)==null?void 0:ft.includes(".mtl"))}))==null?void 0:Dt[0])==null?void 0:Ct.url:me})}),F.setObjUrl(We)}(Ve=x.cloneDeep(u.value))==null||Ve.forEach(N=>{var pe,me,et,Ze,Dt,Ct,ut,ft,vt,gt,Pt,bt,Ft;if((me=(pe=N==null?void 0:N.value)==null?void 0:pe.toString())!=null&&me.includes(".stl")||(Ze=(et=N==null?void 0:N.value)==null?void 0:et.toString())!=null&&Ze.includes(".STL")||(Ct=(Dt=N==null?void 0:N.value)==null?void 0:Dt.toString())!=null&&Ct.includes(".obj")||(ft=(ut=N==null?void 0:N.value)==null?void 0:ut.toString())!=null&&ft.includes(".mtl")||(gt=(vt=N==null?void 0:N.value)==null?void 0:vt.toString())!=null&&gt.includes(".urdf")){let Rt={},Ut=[],Wt;Array.isArray(N==null?void 0:N.value)?Wt=N==null?void 0:N.value:Wt=(Pt=N==null?void 0:N.value)==null?void 0:Pt.split(","),Wt==null||Wt.forEach(Jt=>{Jt.includes(".mtl")?Ut.push(Jt):Rt.blob=Rt.blob==="undefined"?Jt:Rt.blob+","+Jt}),(Ut==null?void 0:Ut.length)>0&&(Rt.mtlBlobs=Ut),(Ft=(bt=Object.values(Rt))==null?void 0:bt[0])!=null&&Ft.includes("http:")}})}else u.value=[];let K=He.value;if((K==null?void 0:K.length)>0&&(K=K==null?void 0:K.map(Ue=>{var yt,Me,Pe,We;let nt=(yt=Ue==null?void 0:Ue.key)==null?void 0:yt.split("/");return(r==null?void 0:r.compName)===(nt==null?void 0:nt[0])&&(Me=u.value)!=null&&Me.find(De=>(De==null?void 0:De.prop)===(nt==null?void 0:nt[1]))&&(Ue.value=(We=(Pe=u.value)==null?void 0:Pe.find(De=>(De==null?void 0:De.prop)===(nt==null?void 0:nt[1])))==null?void 0:We.value),Ue}),Ee.setTableViewContents(K)),r!=null&&r.formRules)S.value=r==null?void 0:r.formRules;else{let Ue={};(rt=x.cloneDeep(u).value)==null||rt.forEach(nt=>{(nt==null?void 0:nt.isMain)===!0&&(Ue[(nt==null?void 0:nt.prop)??(nt==null?void 0:nt.name)]=[{required:!0,message:`${(nt==null?void 0:nt.prop)||(nt==null?void 0:nt.name)}不能为空`}])}),S.value=Ue}if(((mt=U==null?void 0:U.contents)==null?void 0:mt.length)>0){const Ue=[];(xt=U==null?void 0:U.contents)==null||xt.forEach((nt,yt)=>{(nt==null?void 0:nt.label)!==""&&Ue.push({label:(nt==null?void 0:nt.label)??"",id:(nt==null?void 0:nt.id)??yt,type:(nt==null?void 0:nt.type)??"",background:nt==null?void 0:nt.background})}),be.value=Ue}else be.value=[]},{deep:!0,immediate:!0}),e.watch(()=>le.value,L=>{st.value=L===V.value},{immediate:!0}),(L,U)=>{var Q,Be;const H=e.resolveComponent("svg-icon"),ge=e.resolveComponent("el-switch"),ue=e.resolveComponent("el-checkbox"),K=e.resolveComponent("el-popover"),ce=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",ci,[y.value===!1?(e.openBlock(),e.createBlock(ti,{key:0,items:(Be=(Q=u.value)==null?void 0:Q.filter(se=>!(se!=null&&se.isFormColHidden)))==null?void 0:Be.map(se=>({label:se==null?void 0:se.label,value:se==null?void 0:se.value}))},null,8,["items"])):ze.value?(e.openBlock(),e.createBlock(ur,{key:1,itemData:o.itemData,compName:o.compName},null,8,["itemData","compName"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"form-shadow-box":y.value})},[e.createVNode(It.ssForm,{rowContents:u.value,formRules:S.value,buttonValue:be.value,isRowFlex:!1,isEnableWrap:y.value,onOnButtonClick:W,onChange:_,formDisabled:st.value,formLabelsOperable:Xe.value,isButtonRow:O.value,onPreview:v,onBlurChange:dt,onHandleColEditChange:te,onHandleColTypeChange:Ce,onRouteUrl:we,onClickTrigger:Fe},{operateCol:e.withCtx(({renderColumns:se,formDisabled:_e,formLabelsOperable:R})=>[e.createVNode(K,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:B},{reference:e.withCtx(()=>[e.createElementVNode("span",ui,[e.createVNode(H,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",di,[U[1]||(U[1]=e.createElementVNode("div",{class:"group-title"},"表单操作",-1)),e.createVNode(ge,{"model-value":_e,"active-text":"禁用","inactive-text":"",onChange:ae,style:{"margin-right":"8px"}},null,8,["model-value"]),e.createVNode(ge,{"model-value":R,"active-text":"编辑所有标签","inactive-text":"",onChange:xe},null,8,["model-value"]),U[2]||(U[2]=e.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),e.createVNode(ce,{modelValue:Se.value,"onUpdate:modelValue":U[0]||(U[0]=Ie=>Se.value=Ie),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:fe,onChange:Le},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(se,Ie=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:Ie.label},[e.createVNode(ue,{value:Ie.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(Ie.label),1)]),_:2},1032,["value"]),e.createVNode(K,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(H,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var de;return[e.createElementVNode("div",pi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((de=Object.keys(Ie))==null?void 0:de.filter(je=>{var it;return(it=Ye.value)==null?void 0:it.find(qe=>(qe==null?void 0:qe.value)===je)}),je=>{var it,qe;return e.openBlock(),e.createElementBlock("div",{key:je},[e.createVNode(It._sfc_main$1,{value:Ie==null?void 0:Ie[je],"active-text":(qe=(it=Ye.value)==null?void 0:it.find(Qe=>(Qe==null?void 0:Qe.value)===je))==null?void 0:qe.label,inactiveText:"",onChange:Qe=>Ge(Qe,je,Ie)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",fi,[e.createVNode(H,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","isEnableWrap","formDisabled","formLabelsOperable","isButtonRow"])],2)),z.value?(e.openBlock(),e.createBlock(It.ssFilePreview,{key:3,fileDataList:T.value,onDestroy:E},null,8,["fileDataList"])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createBlock(Xt.ssDialog,{key:4,visible:w.value,onBeforeDestroy:c,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(wo.ThreeViewerHost,{files:f.value,onGetAnimationData:L.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0)])}}},To=zt._export_sfc(hi,[["__scopeId","data-v-354b0fba"]]),Pa=e.ref(0),dr=o=>{var i;return!o||(o==null?void 0:o.length)===0?[]:(i=x.cloneDeep(o))==null?void 0:i.map(r=>(Pa.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??Pa.value,children:dr(r==null?void 0:r.children)},r))},vi=o=>{var c;return(c=x.cloneDeep(o))==null?void 0:c.map(r=>(Pa.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??Pa.value,children:dr(r==null?void 0:r.children)},r))},pr=(o,i)=>{var c;return o!=null&&o.find(r=>(r==null?void 0:r.id)===i)?(c=x.cloneDeep(o))==null?void 0:c.filter(p=>(p==null?void 0:p.id)!==i):(o=o==null?void 0:o.map(r=>(r.children=pr(r==null?void 0:r.children,i),r)),o)},fr=(o,i)=>{var c;return o!=null&&o.find(r=>(r==null?void 0:r.id)===(i==null?void 0:i.id))?(c=x.cloneDeep(o))==null?void 0:c.map(p=>((p==null?void 0:p.id)===(i==null?void 0:i.id)&&(p=i),p)):(o=o==null?void 0:o.map(r=>(r.children=fr(r==null?void 0:r.children,i),r)),o)},hr=(o,i)=>{var c;return o!=null&&o.find(r=>{var p;return(r==null?void 0:r.id)===((p=i==null?void 0:i.contents)==null?void 0:p.id)})?(c=x.cloneDeep(o))==null?void 0:c.map(p=>{var u;return(p==null?void 0:p.id)===((u=i==null?void 0:i.contents)==null?void 0:u.id)&&(p=i==null?void 0:i.contents),p}):(o=o==null?void 0:o.map(r=>(r.children=hr(r==null?void 0:r.children,i),r)),o)},vr=(o,i)=>{var c;return o!=null&&o.find(r=>(r==null?void 0:r.id)===(i==null?void 0:i.id))?(c=x.cloneDeep(o))==null?void 0:c.map(p=>((p==null?void 0:p.id)===(i==null?void 0:i.id)&&(p!=null&&p.children||(p.children=[]),p.children.push(i.contents)),p)):(o=o==null?void 0:o.map(r=>(r.children=vr(r==null?void 0:r.children,i),r)),o)},Vt=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],mi=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],gi=[{label:"新增",value:"add"}],Dn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:gi},{key:"background",label:"按钮背景色",type:"Color"}],_n=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:mi},{key:"textColor",label:"按钮颜色",type:"Color"}],yi={class:"table-header-child"},bi={class:"table-header-child-main"},ki={class:"table-header-child-content"},xi={class:"table-header-child-content-item"},wi={class:"fix-button"},Ci={key:0},Di={class:"form-content"},_i={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(o,{emit:i}){const c=o,r=i,p=e.ref(!1),u=e.ref(""),w=Ae.useTableComp(x.pinia),{tableIndex:h}=x.storeToRefs(w);e.ref(0);const f=e.ref(""),C=e.ref([]),S=e.ref([]),O=D=>{var y;p.value=!0;let F=[];Vt==null||Vt.forEach(b=>{let k=x.cloneDeep(h.value)+1;w.setTableIndex(k),F.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:D[b.key],id:h.value,contents:b==null?void 0:b.options})}),D!=null&&D.children&&((y=D==null?void 0:D.children)==null?void 0:y.length)>0&&F.push({children:D==null?void 0:D.children,isFormColHidden:!0}),f.value=D==null?void 0:D.id,C.value=F,S.value=F},z=D=>{r("fixChange",x.cloneDeep(D))},ee=D=>{r("deleteChange",x.cloneDeep(D))},P=D=>{p.value=!0;let F=[];Vt==null||Vt.forEach(y=>{let b=x.cloneDeep(h.value)+1;w.setTableIndex(b),F.push({label:y==null?void 0:y.label,name:y==null?void 0:y.label,type:y.type,value:"",id:h.value,contents:y==null?void 0:y.options})}),u.value=D==null?void 0:D.id,C.value=F,S.value=F},be=D=>{let F=x.cloneDeep(S.value);F=F==null?void 0:F.map(y=>(y.children||(y.value=D==null?void 0:D[y.name]),y)),S.value=F},T=()=>{var F,y;C.value=S.value;let D={};if(f.value!=="")D.id=f.value,(F=C.value)==null||F.forEach(b=>{const k=Vt==null?void 0:Vt.find(G=>(G==null?void 0:G.label)===(b==null?void 0:b.label));k?D[k.key]=b.value:b!=null&&b.children&&b.children.length>0&&(D.children=b.children)}),p.value=!1,r("fixChange",{contents:x.cloneDeep(D),id:u.value,type:"fix"});else{let b=x.cloneDeep(h.value)+1;w.setTableIndex(b),D.id="id"+h.value,(y=C.value)==null||y.forEach(k=>{const G=Vt==null?void 0:Vt.find(he=>(he==null?void 0:he.label)===(k==null?void 0:k.label));G?D[G.key]=k.value:k!=null&&k.children&&k.children.length>0&&(D.children=k.children)}),p.value=!1,r("fixChange",{contents:x.cloneDeep(D),id:u.value,type:"add"})}f.value="",C.value=[],S.value=[]},j=()=>{p.value=!1,f.value="",u.value="",C.value=[],S.value=[]},oe=D=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",D),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(D,F)=>{const y=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",yi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c==null?void 0:c.tableChildContents,(b,k)=>(e.openBlock(),e.createElementBlock("div",bi,[e.createElementVNode("div",ki,[e.createElementVNode("div",xi,e.toDisplayString(b.label),1),e.createElementVNode("div",wi,[e.createVNode(y,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:G=>P(b)},null,8,["onClick"]),e.createVNode(y,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:G=>O(b)},null,8,["onClick"]),e.createVNode(y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:G=>oe(b)},null,8,["onClick"])])]),b!=null&&b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("div",Ci,[e.createVNode(mr,{tableChildContents:b==null?void 0:b.children,onDeleteChange:ee,onFixChange:z},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Xt.ssDialog,{visible:p.value,onBeforeDestroy:j,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Di,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:be},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:j,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:T},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Ei=zt._export_sfc(_i,[["__scopeId","data-v-e0fef72d"]]),Si={class:"table-header-child"},Ti={class:"table-header-child-main"},Bi={class:"table-header-child-content"},Ii={class:"table-header-child-content-item"},Ni={class:"fix-button"},Ai={key:0},Vi={class:"form-content"},Oi={class:"dialog-footer"},Mi={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(o,{emit:i}){const c=o,r=i,p=e.ref(!1),u=e.ref(""),w=Ae.useTableComp(x.pinia),{tableIndex:h}=x.storeToRefs(w),f=e.ref(""),C=e.ref([]),S=e.ref([]),O=D=>{r("fixChange",x.cloneDeep(D))},z=D=>{var y;p.value=!0;let F=[];Vt==null||Vt.forEach(b=>{let k=x.cloneDeep(h.value)+1;w.setTableIndex(k),F.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:D[b.key],id:h.value,contents:b==null?void 0:b.options})}),D!=null&&D.children&&((y=D==null?void 0:D.children)==null?void 0:y.length)>0&&F.push({children:D==null?void 0:D.children,isFormColHidden:!0}),f.value=D==null?void 0:D.id,C.value=F,S.value=F},ee=D=>{p.value=!0;let F=[];Vt==null||Vt.forEach(y=>{let b=x.cloneDeep(h.value)+1;w.setTableIndex(b),F.push({label:y==null?void 0:y.label,name:y==null?void 0:y.label,type:y.type,value:"",id:h.value,contents:y==null?void 0:y.options})}),u.value=D==null?void 0:D.id,C.value=F,S.value=F},P=D=>{let F=x.cloneDeep(S.value);F=F==null?void 0:F.map(y=>(y.children||(y.value=D==null?void 0:D[y.name]),y)),S.value=F},be=()=>{var F,y;C.value=S.value;let D={};if(f.value!=="")D.id=f.value,(F=C.value)==null||F.forEach(b=>{const k=Vt==null?void 0:Vt.find(G=>(G==null?void 0:G.label)===(b==null?void 0:b.label));k?D[k.key]=b.value:b!=null&&b.children&&b.children.length>0&&(D.children=b.children)}),p.value=!1,r("fixChange",{contents:x.cloneDeep(D),id:u.value,type:"fix"});else{let b=x.cloneDeep(h.value)+1;w.setTableIndex(b),D.id="idChild"+h.value,(y=C.value)==null||y.forEach(k=>{const G=Vt==null?void 0:Vt.find(he=>(he==null?void 0:he.label)===(k==null?void 0:k.label));G?D[G.key]=k.value:k!=null&&k.children&&k.children.length>0&&(D.children=k.children)}),p.value=!1,r("fixChange",{contents:x.cloneDeep(D),id:u.value,type:"add"})}f.value="",C.value=[],S.value=[]},T=()=>{p.value=!1,f.value="",u.value="",C.value=[],S.value=[]},j=D=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",D),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},oe=D=>{r("deleteChange",D)};return(D,F)=>{const y=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Si,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c==null?void 0:c.tableChildContents,(k,G)=>(e.openBlock(),e.createElementBlock("div",Ti,[e.createElementVNode("div",Bi,[e.createElementVNode("div",Ii,e.toDisplayString(k.label),1),e.createElementVNode("div",Ni,[e.createVNode(y,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>ee(k)},null,8,["onClick"]),e.createVNode(y,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>z(k)},null,8,["onClick"]),e.createVNode(y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>j(k)},null,8,["onClick"])])]),k!=null&&k.children&&k.children.length>0?(e.openBlock(),e.createElementBlock("div",Ai,[e.createVNode(Ei,{tableChildContents:k==null?void 0:k.children,onDeleteChange:oe,onFixChange:O},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Xt.ssDialog,{visible:p.value,onBeforeDestroy:T,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Vi,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:P},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Oi,[e.createVNode(b,{onClick:T,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[0]||(F[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(b,{class:"ok-button button",onClick:be,id:"themeButton"},{default:e.withCtx(()=>F[1]||(F[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},mr=zt._export_sfc(Mi,[["__scopeId","data-v-ebd68fa1"]]),zi={class:"table-operate-content"},Fi={class:"table-operate-item"},Ri={class:"operate-title"},Pi={class:"operate-content"},Li={class:"fix-content"},$i={class:"fix-content-label"},ji={class:"fix-button"},Ui={key:0},Ki={class:"operate-title"},Wi={class:"operate-content"},Hi={class:"fix-content"},qi={class:"fix-content-label"},Gi={class:"fix-button"},Xi={class:"operate-title"},Yi={class:"operate-content"},Ji={class:"fix-content"},Zi={class:"fix-content-label"},Qi={class:"fix-button"},es={class:"operate-title"},ts={class:"operate-content"},ns={class:"fix-content"},as={class:"fix-content-label"},os={class:"fix-button"},rs={class:"operate-content"},ls={style:{display:"flex","justify-content":"space-between"}},is={class:"form-content"},ss={class:"dialog-footer"},cs={class:"form-content"},us={class:"dialog-footer"},ds={class:"form-content"},ps={class:"dialog-footer"},fs={class:"form-content"},hs={class:"dialog-footer"},vs={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(o,{emit:i}){const c=o,r=i,p=e.ref([]),u=e.ref(!1),w=e.ref(!1),h=e.ref([]),f=e.ref(!1),C=e.ref([]),S=e.ref(!1),O=e.ref([]),z=e.ref(""),ee=e.ref(""),P=e.ref([]),be=e.ref([]),T=e.ref([]),j=e.ref([]),oe=e.ref(!1),D=e.ref([]),F=e.ref([]),y=e.ref(0),b=e.ref([]),k=e.ref([]),G=e.ref([]),he=()=>{oe.value=!0;let v=[];Dn==null||Dn.forEach(E=>{y.value++,v.push({label:E==null?void 0:E.label,name:E==null?void 0:E.label,type:E.type,value:(E==null?void 0:E.key)==="background"?"var(--ssComponent-primary-color)":"",id:y.value,contents:E==null?void 0:E.options})}),D.value=v,F.value=v},ot=()=>{var E,W,J;w.value=!0;let v=[];(J=(W=(E=Ae.FormContent)==null?void 0:E.find(_=>(_==null?void 0:_.key)==="Input"))==null?void 0:W.value)==null||J.forEach(_=>{y.value++,v.push({label:_==null?void 0:_.label,name:(_==null?void 0:_.name)||(_==null?void 0:_.label),type:_.type,value:(_==null?void 0:_.label)==="类型"?"Input":"",id:y.value,contents:_==null?void 0:_.options})}),b.value=v,k.value=v},Ee=v=>{v||(b.value=k.value)},He=async v=>{var E,W,J,_,re,Ne,Z,L,U,H,ge,ue;if((v==null?void 0:v.类型)!==((W=(E=k.value)==null?void 0:E.find(K=>(K==null?void 0:K.label)==="类型"))==null?void 0:W.value)){let K=[],ce=await((re=(_=(J=Ae.FormContent)==null?void 0:J.find(Q=>(Q==null?void 0:Q.key)===((v==null?void 0:v.类型)===""?"Input":v==null?void 0:v.类型)))==null?void 0:_.value)==null?void 0:re.value)?await((H=(U=(L=Ae.FormContent)==null?void 0:L.find(Q=>(Q==null?void 0:Q.key)===((v==null?void 0:v.类型)===""?"Input":v==null?void 0:v.类型)))==null?void 0:U.value)==null?void 0:H.value):(Z=(Ne=Ae.FormContent)==null?void 0:Ne.find(Q=>(Q==null?void 0:Q.key)===((v==null?void 0:v.类型)===""?"Input":v==null?void 0:v.类型)))==null?void 0:Z.value;if(ce==null||ce.forEach(Q=>{y.value++,K.push({label:Q==null?void 0:Q.label,name:(Q==null?void 0:Q.name)||(Q==null?void 0:Q.label),type:Q.type,value:Q!=null&&Q.属性名?(v==null?void 0:v.prop)||(v==null?void 0:v.name)||(v==null?void 0:v.label):(v==null?void 0:v[Q.label])??"",id:y.value,contents:Q==null?void 0:Q.options,prop:(Q==null?void 0:Q.prop)||(Q==null?void 0:Q.name)||(Q==null?void 0:Q.label)})}),v!=null&&v.菜单选项&&((ge=v==null?void 0:v.菜单选项)==null?void 0:ge.length)>0){const Q=await Ae.menuToContentType(v==null?void 0:v.菜单选项);K=K==null?void 0:K.map(Be=>((Be==null?void 0:Be.name)==="组信息选项"&&(Be.contents=Q),Be))}k.value=await Ae.selectToBase(x.cloneDeep(K)),b.value=await Ae.selectToBase(x.cloneDeep(K))}else{let K=x.cloneDeep(b.value);if(K=K==null?void 0:K.map(ce=>(ce.value=v==null?void 0:v[ce.name],ce)),v!=null&&v.菜单选项&&((ue=v==null?void 0:v.菜单选项)==null?void 0:ue.length)>0){const ce=await Ae.menuToContentType(v==null?void 0:v.菜单选项);K=K==null?void 0:K.map(Q=>((Q==null?void 0:Q.name)==="组信息选项"&&(Q.contents=ce),Q))}K=Ae.formToOptionsContents(K),k.value=await Ae.selectToBase(x.cloneDeep(K))}},$e=async v=>{await He(v),b.value=k.value},M=(v,E)=>{if((E==null?void 0:E.type)=="Select"&&(v==null?void 0:v.key)==="selectRelateType"){const W=E==null?void 0:E.optionUrl;return(W==null?void 0:W.selectRelateType)||E[v.key]}if((E==null?void 0:E.type)=="Select"&&(v==null?void 0:v.key)==="menuSelect"){const W=E==null?void 0:E.optionUrl;return(W==null?void 0:W.menuSelect)||E[v.key]}if((E==null?void 0:E.type)=="Select"&&(v==null?void 0:v.key)==="groupSelect"){const W=E==null?void 0:E.optionUrl;return(W==null?void 0:W.groupSelect)||E[v.key]}if((E==null?void 0:E.type)=="Select"&&(v==null?void 0:v.key)==="originalContent")return(E==null?void 0:E.value)||E[v.key];if((E==null?void 0:E.type)=="Select"&&(v==null?void 0:v.key)==="multiple"){const W=E[v.key];return cr(W)?W:v.default}return(v==null?void 0:v.label)==="类型"&&E[v.key]===""?"Input":(v==null?void 0:v.key)==="isFormColHidden"&&!E[v.key]?!1:E[v.key]},ie=async v=>{var J,_,re,Ne,Z,L,U,H,ge;w.value=!0;let E=[];const W=await((re=(_=(J=Ae.FormContent)==null?void 0:J.find(ue=>(ue==null?void 0:ue.key)===((v==null?void 0:v.type)===""?"Input":v==null?void 0:v.type)))==null?void 0:_.value)==null?void 0:re.value)?await((H=(U=(L=Ae.FormContent)==null?void 0:L.find(ue=>(ue==null?void 0:ue.key)===((v==null?void 0:v.type)===""?"Input":v==null?void 0:v.type)))==null?void 0:U.value)==null?void 0:H.value):(Z=(Ne=Ae.FormContent)==null?void 0:Ne.find(ue=>(ue==null?void 0:ue.key)===((v==null?void 0:v.type)===""?"Input":v==null?void 0:v.type)))==null?void 0:Z.value;if(W==null||W.forEach(ue=>{y.value++,E.push({label:ue==null?void 0:ue.label,name:(ue==null?void 0:ue.name)||(ue==null?void 0:ue.label),type:ue.type,value:(ue==null?void 0:ue.label)==="属性名"?(v==null?void 0:v.prop)||(v==null?void 0:v.name)||(v==null?void 0:v.label):M(ue,v),id:y.value,contents:ue==null?void 0:ue.options})}),v!=null&&v.menuSelect&&((ge=v==null?void 0:v.menuSelect)==null?void 0:ge.length)>0){const ue=await Ae.menuToContentType(v==null?void 0:v.menuSelect);E=E==null?void 0:E.map(K=>((K==null?void 0:K.name)==="组信息选项"&&(K.contents=ue),K))}z.value=v==null?void 0:v.id,b.value=await Ae.selectToBase(Ae.formToOptionsContents(E)),k.value=await Ae.selectToBase(Ae.formToOptionsContents(E))},le=v=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var E,W;G.value=(E=x.cloneDeep(G.value))==null?void 0:E.filter(J=>(J==null?void 0:J.id)!==(v==null?void 0:v.id)),r("change",(W=x.cloneDeep(c.originalItemContents))==null?void 0:W.map(J=>((J==null?void 0:J.key)==="tableToForm"&&(J.contents=G.value),J))),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},fe=()=>{w.value=!1,b.value=[],z.value=""},Xe=async()=>{var J,_,re,Ne,Z,L,U,H,ge,ue;b.value=k.value;let v={};z.value!==""?v.id=z.value:(y.value++,v.id="id"+y.value);let E=await((re=(_=(J=Ae.FormContent)==null?void 0:J.find(K=>{var ce,Q;return(K==null?void 0:K.key)===(((Q=(ce=b.value)==null?void 0:ce.find(Be=>(Be==null?void 0:Be.label)==="类型"))==null?void 0:Q.value)??"label")}))==null?void 0:_.value)==null?void 0:re.value)??((Z=(Ne=Ae.FormContent)==null?void 0:Ne.find(K=>{var ce,Q;return(K==null?void 0:K.key)===(((Q=(ce=b.value)==null?void 0:ce.find(Be=>(Be==null?void 0:Be.label)==="类型"))==null?void 0:Q.value)??"label")}))==null?void 0:Z.value);if((L=b.value)==null||L.forEach(K=>{const ce=E==null?void 0:E.find(Q=>(Q==null?void 0:Q.label)===(K==null?void 0:K.label));ce&&(v[ce.key]=K.value)}),v.name=v.label,(U=G.value)!=null&&U.find(K=>K.id===v.id))G.value=(H=G.value)==null?void 0:H.map(K=>(K.id===v.id&&(K=v),K));else{let K=x.cloneDeep(G.value);G.value||(G.value=[]),K.push(v),G.value=K}G.value=G.value.map(({id:K,...ce})=>ce),w.value=!1,z.value="";let W=x.cloneDeep(c.originalItemContents);(ge=x.cloneDeep(c.originalItemContents))!=null&&ge.find(K=>(K==null?void 0:K.key)==="tableToForm")?W=(ue=x.cloneDeep(c.originalItemContents))==null?void 0:ue.map(K=>((K==null?void 0:K.key)==="tableToForm"&&(K.contents=G.value),K)):W.push({key:"tableToForm",contents:G.value}),r("change",W)},st=v=>{oe.value=!0;let E=[];Dn==null||Dn.forEach(W=>{y.value++,E.push({label:W==null?void 0:W.label,name:W==null?void 0:W.label,type:W.type,value:v[W.key],id:y.value,contents:W==null?void 0:W.options})}),z.value=v==null?void 0:v.id,D.value=E,F.value=E};e.watch(()=>S.value,()=>{var E,W;let v=x.cloneDeep(c.originalItemContents);(E=x.cloneDeep(c.originalItemContents))!=null&&E.find(J=>(J==null?void 0:J.key)==="page")?v=(W=x.cloneDeep(c.originalItemContents))==null?void 0:W.map(J=>((J==null?void 0:J.key)==="page"&&(J.contents=S.value),J)):v.push({key:"page",contents:S.value}),r("change",v)},{deep:!0});const q=v=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var E,W;be.value=(E=x.cloneDeep(be.value))==null?void 0:E.filter(J=>(J==null?void 0:J.id)!==(v==null?void 0:v.id)),r("change",(W=x.cloneDeep(c.originalItemContents))==null?void 0:W.map(J=>((J==null?void 0:J.key)==="extraButton"&&(J.contents=be.value),J))),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},V=()=>{var W,J,_,re,Ne;D.value=F.value;let v={};if(z.value!==""?v.id=z.value:(y.value++,v.id="id"+y.value),(W=D.value)==null||W.forEach(Z=>{const L=Dn==null?void 0:Dn.find(U=>(U==null?void 0:U.label)===(Z==null?void 0:Z.label));L?v[L.key]=Z.value:Z!=null&&Z.children&&Z.children.length>0&&(v.children=Z.children)}),(J=be.value)!=null&&J.find(Z=>Z.id===v.id))be.value=(_=be.value)==null?void 0:_.map(Z=>(Z.id===v.id&&(Z=v),Z));else{let Z=x.cloneDeep(be.value)??[];Z.push(v),be.value=Z}oe.value=!1,z.value="";let E=x.cloneDeep(c.originalItemContents);(re=x.cloneDeep(c.originalItemContents))!=null&&re.find(Z=>(Z==null?void 0:Z.key)==="extraButton")?E=(Ne=x.cloneDeep(c.originalItemContents))==null?void 0:Ne.map(Z=>((Z==null?void 0:Z.key)==="extraButton"&&(Z.contents=be.value),Z)):E.push({key:"extraButton",contents:be.value}),r("change",E)},ve=v=>{let E=x.cloneDeep(F.value);E=E==null?void 0:E.map(W=>(W.children||(W.value=v==null?void 0:v[W.name]),W)),F.value=E},ke=()=>{oe.value=!1,D.value=[],z.value=""},ze=v=>{f.value=!0;let E=[];_n==null||_n.forEach(W=>{y.value++,E.push({label:W==null?void 0:W.label,name:W==null?void 0:W.label,type:W.type,value:v[W.key],id:y.value,contents:W==null?void 0:W.options})}),z.value=v==null?void 0:v.id,T.value=E,j.value=E},Se=v=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var E,W;P.value=(E=x.cloneDeep(P.value))==null?void 0:E.filter(J=>(J==null?void 0:J.id)!==(v==null?void 0:v.id)),r("change",(W=x.cloneDeep(c.originalItemContents))==null?void 0:W.map(J=>((J==null?void 0:J.key)==="rowButton"&&(J.contents=P.value),J))),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Ye=()=>{u.value=!0;let v=[];Vt==null||Vt.forEach(E=>{y.value++,v.push({label:E==null?void 0:E.label,name:E==null?void 0:E.label,type:E.type,value:"",id:y.value,contents:E==null?void 0:E.options})}),C.value=v,O.value=v},ae=()=>{f.value=!0;let v=[];_n==null||_n.forEach(E=>{y.value++,v.push({label:E==null?void 0:E.label,name:E==null?void 0:E.label,type:E.type,value:"",id:y.value,contents:E==null?void 0:E.options})}),T.value=v,j.value=v},xe=v=>{let E=x.cloneDeep(j.value);E=E==null?void 0:E.map(W=>(W.children||(W.value=v==null?void 0:v[W.name]),W)),j.value=E},B=()=>{var W,J,_,re,Ne;T.value=j.value;let v={};if(z.value!==""?v.id=z.value:(y.value++,v.id="id"+y.value),(W=T.value)==null||W.forEach(Z=>{const L=_n==null?void 0:_n.find(U=>(U==null?void 0:U.label)===(Z==null?void 0:Z.label));L?v[L.key]=Z.value:Z!=null&&Z.children&&Z.children.length>0&&(v.children=Z.children)}),(J=P.value)!=null&&J.find(Z=>Z.id===v.id))P.value=(_=P.value)==null?void 0:_.map(Z=>(Z.id===v.id&&(Z=v),Z));else{let Z=x.cloneDeep(P.value);Z.push(v),P.value=Z}f.value=!1,z.value="";let E=x.cloneDeep(c.originalItemContents);(re=x.cloneDeep(c.originalItemContents))!=null&&re.find(Z=>(Z==null?void 0:Z.key)==="rowButton")?E=(Ne=x.cloneDeep(c.originalItemContents))==null?void 0:Ne.map(Z=>((Z==null?void 0:Z.key)==="rowButton"&&(Z.contents=P.value),Z)):E.push({key:"rowButton",contents:P.value}),r("change",E)},Le=()=>{f.value=!1,z.value="",j.value=[],T.value=[]},Fe=v=>{u.value=!0;let E=[];Vt==null||Vt.forEach(W=>{y.value++,E.push({label:W==null?void 0:W.label,name:W==null?void 0:W.label,type:W.type,value:"",id:y.value,contents:W==null?void 0:W.options})}),C.value=E,ee.value=v==null?void 0:v.id,O.value=E},we=v=>{var E;h.value=pr(x.cloneDeep(h.value),v==null?void 0:v.id),r("change",(E=x.cloneDeep(c.originalItemContents))==null?void 0:E.map(W=>{var J;return(W==null?void 0:W.key)==="header"&&(W.contents=(J=h.value)!=null&&J.some(_=>_==null?void 0:_.children)?[h.value]:h.value),W}))},ne=v=>{var W,J,_;v.type==="fix"?v.id!==""?h.value=hr(h.value,v):h.value=fr(h.value,v==null?void 0:v.contents):h.value=vr(h.value,v),h.value=(W=h.value)!=null&&W.some(re=>re==null?void 0:re.children)?[h.value]:h.value,z.value="";let E=x.cloneDeep(c.originalItemContents);(J=x.cloneDeep(c.originalItemContents))!=null&&J.find(re=>(re==null?void 0:re.key)==="header")?E=(_=x.cloneDeep(c.originalItemContents))==null?void 0:_.map(re=>((re==null?void 0:re.key)==="header"&&(re.contents=h.value),re)):E.push({key:"header",contents:h.value}),r("change",E)},X=v=>{var W;u.value=!0;let E=[];Vt==null||Vt.forEach(J=>{y.value++,E.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:v[J.key],id:y.value,contents:J==null?void 0:J.options})}),v!=null&&v.children&&((W=v==null?void 0:v.children)==null?void 0:W.length)>0&&E.push({children:v==null?void 0:v.children,isFormColHidden:!0}),z.value=v==null?void 0:v.id,ee.value="",C.value=E,O.value=E},te=v=>{let E=x.cloneDeep(O.value);E=E==null?void 0:E.map(W=>(W.children||(W.value=v==null?void 0:v[W.name]),W)),O.value=E},Ce=()=>{u.value=!1,z.value="",ee.value="",O.value=[]},Ge=()=>{var W,J,_,re,Ne,Z;C.value=O.value;let v={};if(z.value!==""?v.id=z.value:(y.value++,v.id="id"+y.value),(W=C.value)==null||W.forEach(L=>{const U=Vt==null?void 0:Vt.find(H=>(H==null?void 0:H.label)===(L==null?void 0:L.label));U?v[U.key]=L.value:L!=null&&L.children&&L.children.length>0&&(v.children=L.children)}),(J=h.value)!=null&&J.find(L=>L.id===v.id))h.value=(_=h.value)==null?void 0:_.map(L=>(L.id===v.id&&(L=v),L));else{let L=x.cloneDeep(h.value)??[];ee.value===""?L.push(v):L=L==null?void 0:L.map(U=>(U.id===ee.value&&(U.children||(U.children=[]),U.children.push(v)),U)),h.value=L}h.value=(re=h.value)!=null&&re.some(L=>L==null?void 0:L.children)?[h.value]:h.value,u.value=!1,z.value="",ee.value="";let E=x.cloneDeep(c.originalItemContents);(Ne=x.cloneDeep(c.originalItemContents))!=null&&Ne.find(L=>(L==null?void 0:L.key)==="header")?E=(Z=x.cloneDeep(c.originalItemContents))==null?void 0:Z.map(L=>((L==null?void 0:L.key)==="header"&&(L.contents=h.value),L)):E.push({key:"header",contents:h.value}),r("change",E)},dt=v=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var E,W;h.value=(E=x.cloneDeep(h.value))==null?void 0:E.filter(J=>(J==null?void 0:J.id)!==(v==null?void 0:v.id)),r("change",(W=x.cloneDeep(c.originalItemContents))==null?void 0:W.map(J=>{var _;return(J==null?void 0:J.key)==="header"&&(J.contents=(_=h.value)!=null&&_.some(re=>re==null?void 0:re.children)?[h.value]:h.value),J})),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>c.originalItemContents,()=>{var v,E,W,J,_,re,Ne,Z,L,U,H,ge,ue,K,ce,Q,Be,se,_e;if(!(!c.originalItemContents||c.originalItemContents.length===0))if(p.value=x.cloneDeep(c.originalItemContents),h.value=(E=(v=p.value)==null?void 0:v.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:E.contents,P.value=(J=(W=p.value)==null?void 0:W.find(R=>(R==null?void 0:R.key)==="rowButton"))==null?void 0:J.contents,be.value=(re=(_=p.value)==null?void 0:_.find(R=>(R==null?void 0:R.key)==="extraButton"))==null?void 0:re.contents,S.value=(Z=(Ne=p.value)==null?void 0:Ne.find(R=>(R==null?void 0:R.key)==="page"))!=null&&Z.contents?!!((U=(L=p.value)==null?void 0:L.find(R=>(R==null?void 0:R.key)==="page"))!=null&&U.contents):!1,G.value=(ge=(H=p.value)==null?void 0:H.find(R=>(R==null?void 0:R.key)==="tableToForm"))==null?void 0:ge.contents,h.value=(ue=h.value)==null?void 0:ue.map((R,Ie)=>(Array.isArray(R)?R=vi(R):R={label:(R==null?void 0:R.label)??"",prop:(R==null?void 0:R.label)==="操作"?"operate":R==null?void 0:R.prop,width:R!=null&&R.width?parseInt(R.width):"",fixed:(R==null?void 0:R.fixed)??void 0,sortable:(R==null?void 0:R.sortable)??!1,align:(R==null?void 0:R.align)??"left",showOverflowTooltip:(R==null?void 0:R.showOverflowTooltip)??!0,isNotDrag:(R==null?void 0:R.isNotDrag)??!1,isEditCol:(R==null?void 0:R.isEditCol)??!1,isOperate:(R==null?void 0:R.isOperate)??!1,id:(R==null?void 0:R.id)??Ie,formMenuSelect:(R==null?void 0:R.formMenuSelect)??void 0,groupSelect:(R==null?void 0:R.groupSelect)??void 0},R)),h.value=(K=h.value)!=null&&K.every(R=>Array.isArray(R))?(ce=h.value)==null?void 0:ce[0]:h.value,P.value=(Q=P.value)==null?void 0:Q.map((R,Ie)=>R={label:(R==null?void 0:R.label)??"",type:(R==null?void 0:R.type)??"",textColor:(R==null?void 0:R.textColor)??"#000000",id:(R==null?void 0:R.id)??Ie}),be.value=(Be=be.value)==null?void 0:Be.map((R,Ie)=>R={label:(R==null?void 0:R.label)??"",type:(R==null?void 0:R.type)??"",background:(R==null?void 0:R.background)??"var(--ssComponent-primary-color)",id:(R==null?void 0:R.id)??Ie}),G.value)G.value=(_e=G.value)==null?void 0:_e.map(R=>{y.value++;let Ie=R;return Ie.id=y.value,Ie});else{let R=[];const Ie=(se=Ae.getColumnChild(x.cloneDeep(h.value)))==null?void 0:se.filter(de=>(de==null?void 0:de.prop)!=="operate");Ie==null||Ie.forEach(de=>{var je;y.value++,R.push({label:de==null?void 0:de.label,name:(de==null?void 0:de.prop)||(de==null?void 0:de.label),type:de!=null&&de.groupSelect?"Select":"Input",value:"",id:y.value,contents:de==null?void 0:de.options,menuSelect:de==null?void 0:de.formMenuSelect,groupSelect:(je=de==null?void 0:de.groupSelect)==null?void 0:je.split(":"),selectRelateType:"关联绑定列"})}),G.value=R}},{deep:!0,immediate:!0}),(v,E)=>{const W=e.resolveComponent("svg-icon"),J=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",zi,[e.createElementVNode("div",Fi,[e.createElementVNode("div",Ri,[E[2]||(E[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(J,{class:"icon-content",onClick:Ye,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(W,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[E[1]||(E[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",Pi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(_,re)=>(e.openBlock(),e.createElementBlock("div",{key:re},[e.createElementVNode("div",Li,[e.createElementVNode("div",$i,e.toDisplayString(_==null?void 0:_.label),1),e.createElementVNode("div",ji,[e.createVNode(W,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Ne=>Fe(_)},null,8,["onClick"]),e.createVNode(W,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Ne=>X(_)},null,8,["onClick"]),e.createVNode(W,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Ne=>dt(_)},null,8,["onClick"])])]),_!=null&&_.children&&_.children.length>0?(e.openBlock(),e.createElementBlock("div",Ui,[e.createVNode(mr,{tableChildContents:_==null?void 0:_.children,onDeleteChange:we,onFixChange:ne},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Ki,[E[4]||(E[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(J,{class:"icon-content",id:"themeButton",onClick:ae},{icon:e.withCtx(()=>[e.createVNode(W,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[E[3]||(E[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",Wi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(_,re)=>(e.openBlock(),e.createElementBlock("div",{key:re},[e.createElementVNode("div",Hi,[e.createElementVNode("div",qi,e.toDisplayString(_==null?void 0:_.label),1),e.createElementVNode("div",Gi,[e.createVNode(W,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Ne=>ze(_)},null,8,["onClick"]),e.createVNode(W,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Ne=>Se(_)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Xi,[E[6]||(E[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(J,{class:"icon-content",id:"themeButton",onClick:he},{icon:e.withCtx(()=>[e.createVNode(W,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[E[5]||(E[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",Yi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(be.value,(_,re)=>(e.openBlock(),e.createElementBlock("div",{key:re},[e.createElementVNode("div",Ji,[e.createElementVNode("div",Zi,e.toDisplayString(_==null?void 0:_.label),1),e.createElementVNode("div",Qi,[e.createVNode(W,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Ne=>st(_)},null,8,["onClick"]),e.createVNode(W,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Ne=>q(_)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",es,[E[8]||(E[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(J,{class:"icon-content",id:"themeButton",onClick:ot},{icon:e.withCtx(()=>[e.createVNode(W,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[E[7]||(E[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",ts,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(_,re)=>(e.openBlock(),e.createElementBlock("div",{key:re},[e.createElementVNode("div",ns,[e.createElementVNode("div",as,e.toDisplayString(_==null?void 0:_.label),1),e.createElementVNode("div",os,[e.createVNode(W,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Ne=>ie(_)},null,8,["onClick"]),e.createVNode(W,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Ne=>le(_)},null,8,["onClick"])])])]))),128))]),E[10]||(E[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",rs,[e.createElementVNode("div",ls,[E[9]||(E[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(It._sfc_main$1,{modelValue:S.value,"onUpdate:modelValue":E[0]||(E[0]=_=>S.value=_)},null,8,["modelValue"])])])]),e.createVNode(Xt.ssDialog,{visible:u.value,onBeforeDestroy:Ce,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",is,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:te},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",ss,[e.createVNode(J,{onClick:Ce,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>E[11]||(E[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(J,{class:"ok-button button",onClick:Ge,id:"themeButton"},{default:e.withCtx(()=>E[12]||(E[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(Xt.ssDialog,{visible:f.value,onBeforeDestroy:Le,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",cs,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:T.value,key:T.value,isEnableWrap:!0,onChange:xe},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",us,[e.createVNode(J,{onClick:Le,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>E[13]||(E[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(J,{class:"ok-button button",onClick:B,id:"themeButton"},{default:e.withCtx(()=>E[14]||(E[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(Xt.ssDialog,{visible:oe.value,onBeforeDestroy:ke,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",ds,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:ve},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",ps,[e.createVNode(J,{onClick:ke,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>E[15]||(E[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(J,{class:"ok-button button",onClick:V,id:"themeButton"},{default:e.withCtx(()=>E[16]||(E[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(Xt.ssDialog,{visible:w.value,onBeforeDestroy:fe,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",fs,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:He,onChangeVisible:Ee,onBlurChange:$e},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",hs,[e.createVNode(J,{onClick:fe,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>E[17]||(E[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(J,{class:"ok-button button",onClick:Xe,id:"themeButton"},{default:e.withCtx(()=>E[18]||(E[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},ms=zt._export_sfc(vs,[["__scopeId","data-v-7a6b87b5"]]),gs=x.useModelComp(x.pinia),{pageMapState:ys}=x.storeToRefs(gs),bs=x.useMenuState(x.pinia),{activeMenuPath:ks}=x.storeToRefs(bs),xs=e.ref(24),ws=e.ref(6),Cs=e.ref(70),Ds=e.ref(.18),_s=e.ref(45),Es=(o,i,c,r)=>{var p,u,w,h,f,C,S,O,z,ee,P,be,T,j,oe,D;return{x:((u=(p=o==null?void 0:o.value)==null?void 0:p.tableData)==null?void 0:u.x)||i%2*12,y:((h=(w=o==null?void 0:o.value)==null?void 0:w.tableData)==null?void 0:h.y)||i,w:((C=(f=o==null?void 0:o.value)==null?void 0:f.tableData)==null?void 0:C.w)||xs.value,h:((O=(S=o==null?void 0:o.value)==null?void 0:S.tableData)==null?void 0:O.h)||c,minW:((ee=(z=o==null?void 0:o.value)==null?void 0:z.tableData)==null?void 0:ee.minW)||ws.value,minH:((be=(P=o==null?void 0:o.value)==null?void 0:P.tableData)==null?void 0:be.minH)||Ds.value,maxH:((j=(T=o==null?void 0:o.value)==null?void 0:T.tableData)==null?void 0:j.maxH)||_s.value,i:((D=(oe=o==null?void 0:o.value)==null?void 0:oe.tableData)==null?void 0:D.i)||i,id:(o==null?void 0:o.id)||i+"",component:r}},Ss=(o,i)=>{var r,p,u,w,h,f,C,S;let c=1;if(o!=null&&o.compData&&Array.isArray(o==null?void 0:o.compData))if(((r=o==null?void 0:o.comp)==null?void 0:r.toUpperCase())==="TABLE"){if(((w=(u=(p=o==null?void 0:o.compData)==null?void 0:p.find(z=>(z==null?void 0:z.key)==="tableContents"))==null?void 0:u.contents)==null?void 0:w.length)===0)return 2}else((h=o==null?void 0:o.comp)==null?void 0:h.toUpperCase())==="FORM"&&(c=((S=(C=(f=o==null?void 0:o.compData)==null?void 0:f.find(z=>(z==null?void 0:z.key)==="formContent"))==null?void 0:C.contents)==null?void 0:S.length)/5);return c*2},gr=(o,i,c)=>{var w,h;const r=(h=(w=ys.value)==null?void 0:w[ks.value])==null?void 0:h.filter(f=>{var C;return((C=f==null?void 0:f.key)==null?void 0:C.type)==="gridLayout"}),p=r==null?void 0:r.find(f=>{var C,S,O;return((O=(S=(C=f==null?void 0:f.value)==null?void 0:C.tableData)==null?void 0:S.component)==null?void 0:O.id)===o.id}),u=Ss(o);return o!=null&&o.children&&(o==null?void 0:o.children.length)>0&&(o.children=o.children.map((f,C)=>gr(f,C))),{...Es(p,i,u,o)}},Ts=(o,i)=>{if((o==null?void 0:o.length)===0)return[];const c=x.cloneDeep(o);return Array.isArray(o)?c==null?void 0:c.map((r,p)=>gr(r,p)):[]},Bs=o=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),Is=(o,i)=>o==null?void 0:o.map(c=>{for(const r in i)if(r===(c==null?void 0:c.prop))return{...c,value:i[r]};return c}),Ns=e.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(o,{emit:i}){const c=o,r=i,p=e.ref([]);e.watch(()=>c.compType,h=>{var S;const f=Bs(c==null?void 0:c.optionItems),C=h?(S=f[h==null?void 0:h.toUpperCase()])==null?void 0:S[c==null?void 0:c.target]:[];p.value=C==null?void 0:C.map(O=>{for(const[z,ee]of Object.entries((c==null?void 0:c.comp)||{}))if((O==null?void 0:O.prop)===z)return{...O,value:ee};return O})},{immediate:!0});const u=h=>It.getComponent(h),w=h=>{var f,C;(h==null?void 0:h.prop)==="layout"&&(h==null?void 0:h.value)==="horizontal"?p.value=(f=p.value)==null?void 0:f.map(S=>{var O;return(S==null?void 0:S.prop)==="isStepLayout"?{...S,options:(O=S==null?void 0:S.options)==null?void 0:O.map(z=>({...z,disabled:!0}))}:(S==null?void 0:S.prop)==="isGridLayout"?{...S,disabled:!0}:S}):p.value=(C=p.value)==null?void 0:C.map(S=>{var O;return(S==null?void 0:S.prop)==="isStepLayout"?{...S,options:(O=S==null?void 0:S.options)==null?void 0:O.map(z=>({...z,disabled:!1}))}:(S==null?void 0:S.prop)==="isGridLayout"?{...S,disabled:!1}:S}),r("change",{target:c==null?void 0:c.target,styleConfigs:p.value,prop:h==null?void 0:h.prop})};return(h,f)=>{const C=e.resolveComponent("el-col"),S=e.resolveComponent("el-row");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,O=>(e.openBlock(),e.createBlock(S,{class:"style-row",key:O==null?void 0:O.prop},{default:e.withCtx(()=>[e.createVNode(C,{span:6,class:"style-row-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O==null?void 0:O.label)+":",1)]),_:2},1024),e.createVNode(C,{span:18,style:{display:"flex"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u(O.type)),{modelValue:O.value,"onUpdate:modelValue":z=>O.value=z,content:O==null?void 0:O.options,optionUrl:O==null?void 0:O.optionUrl,disabled:O==null?void 0:O.disabled,activeText:O==null?void 0:O.activeText,inactiveText:O==null?void 0:O.inactiveText,onChange:z=>w(O)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),As=zt._export_sfc(Ns,[["__scopeId","data-v-6c233914"]]),Vs=e.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(o,{emit:i}){const c=o,r=i,p=[{required:!0,message:"输入不能为空",trigger:"blur"}],u=e.ref([]),w=j=>j==null?void 0:j.reduce((oe,D)=>(oe[D==null?void 0:D.prop]=D==null?void 0:D.rule,oe),{}),h=e.computed(()=>({formRules:w(u.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),f=e.ref([]),C=e.ref(""),S=(j,oe,D)=>{var b;let F=[];(c==null?void 0:c.activeTabName)==="任务配置"?(F=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:j},{label:"按钮名称",value:"按钮名称",children:oe}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],u.value=[{prop:"任务名称",rule:p},{prop:"任务关键词",rule:p},{prop:"执行任务",rule:p},{prop:"执行动作",rule:p},{prop:"执行交互",rule:p}]):(c==null?void 0:c.activeTabName)==="任务关联"&&(F=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(b=c==null?void 0:c.relatedData)==null?void 0:b.map(k=>({label:k==null?void 0:k.任务名称,value:k==null?void 0:k.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],u.value=[{prop:"关联名称",rule:p},{prop:"关联状态",rule:p},{prop:"关联形式",rule:p},{prop:"关联任务集合",rule:p}]);let y;return D&&(D==null?void 0:D.length)>0?y=[...F,...O(j,oe,D)]:y=F,y},O=(j,oe,D)=>{const F=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return D?F==null?void 0:F.filter(y=>D==null?void 0:D.includes(y==null?void 0:y.prop)):F},z=(j,oe)=>{var k,G,he,ot,Ee,He,$e,M,ie;const D=((Ee=(ot=(he=(G=(k=c==null?void 0:c.comp)==null?void 0:k.compData)==null?void 0:G.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:he.contents)==null?void 0:ot.filter(le=>(le==null?void 0:le.label)!=="操作"))==null?void 0:Ee.map(le=>({value:le==null?void 0:le.prop,label:le.label})))||[],F=/button/i,y=((ie=(M=($e=(He=c==null?void 0:c.comp)==null?void 0:He.compData)==null?void 0:$e.filter(le=>F.test(le==null?void 0:le.key)))==null?void 0:M.flatMap(le=>le==null?void 0:le.contents))==null?void 0:ie.map(le=>({value:le==null?void 0:le.label,label:le.label})))||[],b=S(D,y,j);f.value=oe?Is(b,oe):b,j&&(j==null?void 0:j.length)>0&&u.value.push(...j==null?void 0:j.map(le=>({prop:le,rule:p})))};e.onMounted(()=>{z(null,c==null?void 0:c.extendItem)});const ee=j=>{const oe=j==null?void 0:j[C.value];if(C.value==="执行任务"){if(!(oe!=null&&oe.join("/")))return;const D=oe==null?void 0:oe.join("/");z(D==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:D==="进度设置/进度条"?["进度关键词"]:null,j)}},P=j=>{r("change",{target:c==null?void 0:c.target,extendConfigs:j})},be=(j,oe)=>{C.value=oe==null?void 0:oe.changeProp,ee(j)},T=j=>{r("onButtonClick",j)};return(j,oe)=>(e.openBlock(),e.createBlock(It.ssForm,{rowContents:f.value,key:f.value,isStartJustify:!1,isEnableWrap:!1,formRules:h.value.formRules,buttonValue:h.value.buttonValue,onChange:P,onBlurChange:be,onOnButtonClick:T},null,8,["rowContents","formRules","buttonValue"]))}}),Os=zt._export_sfc(Vs,[["__scopeId","data-v-7c660c1f"]]),Ms={};function zs(o,i){return null}const Fs=zt._export_sfc(Ms,[["render",zs]]),Rs={class:"form-operate-content"},Ps={class:"form-operate-item"},Ls={class:"operate-title"},$s={class:"operate-content"},js={class:"fix-content"},Us={class:"fix-button"},Ks={class:"operate-title"},Ws={class:"operate-content"},Hs={class:"fix-content"},qs={class:"fix-button"},Gs={style:{display:"flex","justify-content":"space-between"}},Xs={class:"form-content"},Ys={class:"dialog-footer"},Js={class:"form-content"},Zs={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(o,{emit:i}){const c=o,r=i,p=e.ref(!1),u=e.ref([]),w=e.ref([]),h=e.ref(!1),f=e.ref([]),C=e.ref([]),S=e.ref(""),O=e.ref(!1),z=e.ref(0),ee=e.ref([]),P=e.ref([]),be=(M,ie)=>{if((ie==null?void 0:ie.type)=="Select"&&(M==null?void 0:M.key)==="selectRelateType"){const le=ie==null?void 0:ie.optionUrl;return(le==null?void 0:le.selectRelateType)||ie[M.key]}if((ie==null?void 0:ie.type)=="Select"&&(M==null?void 0:M.key)==="menuSelect"){const le=ie==null?void 0:ie.optionUrl;return(le==null?void 0:le.menuSelect)||ie[M.key]}if((ie==null?void 0:ie.type)=="Select"&&(M==null?void 0:M.key)==="groupSelect"){const le=ie==null?void 0:ie.optionUrl;return(le==null?void 0:le.groupSelect)||ie[M.key]}if((ie==null?void 0:ie.type)=="Select"&&(M==null?void 0:M.key)==="originalContent")return(ie==null?void 0:ie.value)||ie[M.key];if((ie==null?void 0:ie.type)=="Select"&&(M==null?void 0:M.key)==="multiple"){const le=ie[M.key];return cr(le)?le:M.default}return(M==null?void 0:M.label)==="类型"&&ie[M.key]===""?"Input":(M==null?void 0:M.key)==="isFormColHidden"&&!ie[M.key]?!1:ie[M.key]},T=async M=>{var fe,Xe,st,q,V,ve;p.value=!0;let ie=[];const le=await((st=(Xe=(fe=Ae.FormContent)==null?void 0:fe.find(ke=>(ke==null?void 0:ke.key)===((M==null?void 0:M.type)===""?"Input":M==null?void 0:M.type)))==null?void 0:Xe.value)==null?void 0:st.value)??((V=(q=Ae.FormContent)==null?void 0:q.find(ke=>(ke==null?void 0:ke.key)===((M==null?void 0:M.type)===""?"Input":M==null?void 0:M.type)))==null?void 0:V.value);if(le==null||le.forEach(ke=>{z.value++,ie.push({label:ke==null?void 0:ke.label,name:ke==null?void 0:ke.label,type:ke.type,prop:ke==null?void 0:ke.prop,value:be(ke,M),id:z.value,contents:ke==null?void 0:ke.options,width:(M==null?void 0:M.width)??1})}),M!=null&&M.menuSelect&&((ve=M==null?void 0:M.menuSelect)==null?void 0:ve.length)>0){const ke=await Ae.menuToContentType(M==null?void 0:M.menuSelect);ie=ie==null?void 0:ie.map(ze=>((ze==null?void 0:ze.name)==="组信息选项"&&(ze.contents=ke),ze))}S.value=M==null?void 0:M.id,u.value=await Ae.selectToBase(Ae.formToOptionsContents(ie)),w.value=await Ae.selectToBase(Ae.formToOptionsContents(ie))},j=M=>{var le;h.value=!0;let ie=[];(le=Ae.FormButton)==null||le.forEach(fe=>{z.value++,ie.push({label:fe==null?void 0:fe.label,name:fe==null?void 0:fe.label,type:fe.type,value:(fe==null?void 0:fe.label)==="类型"&&M[fe.key]===""?"normal":M[fe.key],id:z.value,contents:fe==null?void 0:fe.options})}),ee.value=ie,P.value=ie,S.value=M==null?void 0:M.id};e.watch(()=>O.value,()=>{var ie,le;let M=x.cloneDeep(c.originalItemContents);(ie=x.cloneDeep(c.originalItemContents))!=null&&ie.find(fe=>(fe==null?void 0:fe.key)==="enableWrap")?M=(le=x.cloneDeep(c.originalItemContents))==null?void 0:le.map(fe=>((fe==null?void 0:fe.key)==="enableWrap"&&(fe.contents=!O.value),fe)):M.push({key:"enableWrap",contents:!O.value}),r("change",M)},{deep:!0});const oe=()=>{var le,fe,Xe,st,q;ee.value=P.value;let M={};if(S.value!==""?M.id=S.value:(z.value++,M.id="id"+z.value),(le=ee.value)==null||le.forEach(V=>{var ke;const ve=(ke=Ae.FormButton)==null?void 0:ke.find(ze=>(ze==null?void 0:ze.label)===(V==null?void 0:V.label));ve&&(M[ve.key]=V.value)}),(fe=f.value)!=null&&fe.find(V=>V.id===M.id))f.value=(Xe=f.value)==null?void 0:Xe.map(V=>(V.id===M.id&&(V=M),V));else{let V=x.cloneDeep(f.value);f.value||(f.value=[]),V.push(M),f.value=V}h.value=!1,S.value="";let ie=x.cloneDeep(c.originalItemContents);(st=x.cloneDeep(c.originalItemContents))!=null&&st.find(V=>(V==null?void 0:V.key)==="formButton")?ie=(q=x.cloneDeep(c.originalItemContents))==null?void 0:q.map(V=>((V==null?void 0:V.key)==="formButton"&&(V.contents=f.value),V)):ie.push({key:"formButton",contents:f.value}),r("change",ie)},D=M=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ie,le;C.value=(ie=x.cloneDeep(C.value))==null?void 0:ie.filter(fe=>(fe==null?void 0:fe.id)!==(M==null?void 0:M.id)),r("change",(le=x.cloneDeep(c.originalItemContents))==null?void 0:le.map(fe=>((fe==null?void 0:fe.key)==="formContent"&&(fe.contents=C.value),fe))),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},F=M=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ie,le;f.value=(ie=x.cloneDeep(f.value))==null?void 0:ie.filter(fe=>(fe==null?void 0:fe.id)!==(M==null?void 0:M.id)),r("change",(le=x.cloneDeep(c.originalItemContents))==null?void 0:le.map(fe=>((fe==null?void 0:fe.key)==="formButton"&&(fe.contents=f.value),fe))),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},y=()=>{var ie;h.value=!0;let M=[];(ie=Ae.FormButton)==null||ie.forEach(le=>{z.value++,M.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:(le==null?void 0:le.label)==="类型"?"normal":"",id:z.value,contents:le==null?void 0:le.options})}),ee.value=M,P.value=M},b=()=>{var ie,le,fe;p.value=!0;let M=[];(fe=(le=(ie=Ae.FormContent)==null?void 0:ie.find(Xe=>(Xe==null?void 0:Xe.key)==="Input"))==null?void 0:le.value)==null||fe.forEach(Xe=>{z.value++,M.push({label:Xe==null?void 0:Xe.label,name:Xe==null?void 0:Xe.label,type:Xe.type,value:(Xe==null?void 0:Xe.label)==="类型"?"Input":"",id:z.value,contents:Xe==null?void 0:Xe.options})}),u.value=M,w.value=M},k=M=>{let ie=x.cloneDeep(P.value);ie=ie==null?void 0:ie.map(le=>(le.value=M==null?void 0:M[le.name],le)),P.value=ie},G=M=>{const ie=M.find(Xe=>(Xe==null?void 0:Xe.name)==="类型");if((ie==null?void 0:ie.value)!="Select")return;const le=M.find(Xe=>(Xe==null?void 0:Xe.name)==="多选"),fe=M.find(Xe=>(Xe==null?void 0:Xe.name)==="初始值");le!=null&&le.value&&Co.isString(fe.value)&&(fe.value=[fe.value]),!(le!=null&&le.value)&&!Co.isString(fe.value)&&(fe.value="")},he=async M=>{var ie,le,fe,Xe,st,q,V,ve,ke,ze,Se,Ye;if((M==null?void 0:M.类型)!==((le=(ie=w.value)==null?void 0:ie.find(ae=>(ae==null?void 0:ae.label)==="类型"))==null?void 0:le.value)){let ae=[];const xe=await((st=(Xe=(fe=Ae.FormContent)==null?void 0:fe.find(B=>(B==null?void 0:B.key)===((M==null?void 0:M.类型)===""?"Input":M==null?void 0:M.类型)))==null?void 0:Xe.value)==null?void 0:st.value)?await((ze=(ke=(ve=Ae.FormContent)==null?void 0:ve.find(B=>(B==null?void 0:B.key)===((M==null?void 0:M.类型)===""?"Input":M==null?void 0:M.类型)))==null?void 0:ke.value)==null?void 0:ze.value):(V=(q=Ae.FormContent)==null?void 0:q.find(B=>(B==null?void 0:B.key)===((M==null?void 0:M.类型)===""?"Input":M==null?void 0:M.类型)))==null?void 0:V.value;if(xe==null||xe.forEach(B=>{var Fe,we;z.value++;const Le=Yl(B==null?void 0:B.default)?(M==null?void 0:M[B.label])??B.value??"":B==null?void 0:B.default;ae.push({label:B==null?void 0:B.label,name:B==null?void 0:B.label,type:B.type,value:Le,prop:B==null?void 0:B.prop,id:z.value,contents:B==null?void 0:B.options,width:((we=(Fe=w.value)==null?void 0:Fe[0])==null?void 0:we.width)??1})}),M!=null&&M.菜单选项&&((Se=M==null?void 0:M.菜单选项)==null?void 0:Se.length)>0){const B=await Ae.menuToContentType(M==null?void 0:M.菜单选项);ae=ae==null?void 0:ae.map(Le=>((Le==null?void 0:Le.name)==="组信息选项"&&(Le.contents=B),Le))}G(ae),w.value=await Ae.selectToBase(x.cloneDeep(ae)),u.value=await Ae.selectToBase(x.cloneDeep(ae))}else{let ae=x.cloneDeep(w.value);if(ae=ae==null?void 0:ae.map(xe=>(xe.value=M==null?void 0:M[xe.name],xe)),M!=null&&M.菜单选项&&((Ye=M==null?void 0:M.菜单选项)==null?void 0:Ye.length)>0){const xe=await Ae.menuToContentType(M==null?void 0:M.菜单选项);ae=ae==null?void 0:ae.map(B=>((B==null?void 0:B.name)==="组信息选项"&&(B.contents=xe),B))}ae=Ae.formToOptionsContents(ae),G(ae),w.value=await Ae.selectToBase(x.cloneDeep(ae))}},ot=M=>{M||(u.value=w.value)},Ee=async M=>{await he(M),u.value=w.value},He=sr(async()=>{var fe,Xe,st,q,V,ve,ke,ze,Se,Ye,ae,xe;u.value=w.value;let M={};M.width=((Xe=(fe=u.value)==null?void 0:fe[0])==null?void 0:Xe.width)??1,S.value!==""?M.id=S.value:(z.value++,M.id="id"+z.value);let ie=await((V=(q=(st=Ae.FormContent)==null?void 0:st.find(B=>{var Le,Fe;return(B==null?void 0:B.key)===(((Fe=(Le=u.value)==null?void 0:Le.find(we=>(we==null?void 0:we.label)==="类型"))==null?void 0:Fe.value)??"label")}))==null?void 0:q.value)==null?void 0:V.value)??((ke=(ve=Ae.FormContent)==null?void 0:ve.find(B=>{var Le,Fe;return(B==null?void 0:B.key)===(((Fe=(Le=u.value)==null?void 0:Le.find(we=>(we==null?void 0:we.label)==="类型"))==null?void 0:Fe.value)??"label")}))==null?void 0:ke.value);if((ze=u.value)==null||ze.forEach(B=>{const Le=ie==null?void 0:ie.find(Fe=>(Fe==null?void 0:Fe.label)===(B==null?void 0:B.label));Le&&(M[Le.key]=B.value)}),M.width=M.width?M.width:1,M.key=M==null?void 0:M.label,M.isFormColHidden=M==null?void 0:M.isFormColHidden,(Se=C.value)!=null&&Se.find(B=>B.id===M.id))C.value=(Ye=C.value)==null?void 0:Ye.map(B=>(B.id===M.id&&(B=M),B));else{let B=x.cloneDeep(C.value);B.push(M),C.value=B}C.value=C.value.map(({id:B,...Le})=>Le),p.value=!1,S.value="";let le=x.cloneDeep(c.originalItemContents);(ae=x.cloneDeep(c.originalItemContents))!=null&&ae.find(B=>(B==null?void 0:B.key)==="formContent")?le=(xe=x.cloneDeep(c.originalItemContents))==null?void 0:xe.map(B=>((B==null?void 0:B.key)==="formContent"&&(B.contents=C.value),B)):le.push({key:"formContent",contents:C.value}),r("change",le)},300),$e=()=>{p.value=!1,h.value=!1,S.value="",w.value=[],P.value=[]};return e.watch(()=>c.originalItemContents,()=>{var ie,le,fe,Xe,st,q;if(!c.originalItemContents||c.originalItemContents.length===0)return;const M=x.cloneDeep(c.originalItemContents);C.value=((ie=M==null?void 0:M.find(V=>(V==null?void 0:V.key)==="formContent"))==null?void 0:ie.contents)??[],f.value=((le=M==null?void 0:M.find(V=>(V==null?void 0:V.key)==="formButton"))==null?void 0:le.contents)??[],O.value=(fe=M==null?void 0:M.find(V=>(V==null?void 0:V.key)==="enableWrap"))!=null&&fe.contents?!((Xe=M==null?void 0:M.find(V=>(V==null?void 0:V.key)==="enableWrap"))!=null&&Xe.contents):!0,C.value=(st=x.cloneDeep(C.value))==null?void 0:st.map((V,ve)=>{var ze;let ke=V;return ke.id=(V==null?void 0:V.id)??ve,V!=null&&V.label||(V.label=(V==null?void 0:V.key)??(V==null?void 0:V.label)??""),V!=null&&V.type||(V.type=(V==null?void 0:V.type)??""),V.contents=((ze=V==null?void 0:V.options)==null?void 0:ze.length)===0?(V==null?void 0:V.contents)??"":V==null?void 0:V.options,ke}),C.value=Ae.formToOptionsContents(C.value),f.value=(q=f.value)==null?void 0:q.map((V,ve)=>V={label:(V==null?void 0:V.label)??"",type:(V==null?void 0:V.type)??"",background:(V==null?void 0:V.background)??"var(--ssComponent-primary-color)",id:ve})},{deep:!0,immediate:!0}),(M,ie)=>{const le=e.resolveComponent("svg-icon"),fe=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Rs,[e.createElementVNode("div",Ps,[e.createElementVNode("div",Ls,[ie[2]||(ie[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(fe,{class:"icon-content",id:"themeButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(le,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[ie[1]||(ie[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",$s,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(Xe,st)=>(e.openBlock(),e.createElementBlock("div",{key:st},[e.createElementVNode("div",js,[e.createElementVNode("div",null,e.toDisplayString(Xe.label),1),e.createElementVNode("div",Us,[e.createVNode(le,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>T(Xe)},null,8,["onClick"]),e.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>D(Xe)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Ks,[ie[4]||(ie[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(fe,{class:"icon-content",id:"themeButton",onClick:y},{icon:e.withCtx(()=>[e.createVNode(le,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[ie[3]||(ie[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",Ws,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(Xe,st)=>(e.openBlock(),e.createElementBlock("div",{key:st},[e.createElementVNode("div",Hs,[e.createElementVNode("div",null,e.toDisplayString(Xe.label),1),e.createElementVNode("div",qs,[e.createVNode(le,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>j(Xe)},null,8,["onClick"]),e.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>F(Xe)},null,8,["onClick"])])])]))),128))]),ie[6]||(ie[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",Gs,[ie[5]||(ie[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(It._sfc_main$1,{modelValue:O.value,"onUpdate:modelValue":ie[0]||(ie[0]=Xe=>O.value=Xe)},null,8,["modelValue"])])]),e.createVNode(Xt.ssDialog,{visible:p.value,onBeforeDestroy:$e,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Xs,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!0,onChange:he,onChangeVisible:ot,onBlurChange:Ee},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ys,[e.createVNode(fe,{onClick:$e,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>ie[7]||(ie[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(fe,{class:"ok-button button",onClick:e.unref(He),id:"themeButton"},{default:e.withCtx(()=>ie[8]||(ie[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),e.createVNode(Xt.ssDialog,{visible:h.value,onBeforeDestroy:$e,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Js,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:ee.value,key:ee.value,isEnableWrap:!0,onChange:k},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:$e,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:oe},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Bo=zt._export_sfc(Zs,[["__scopeId","data-v-20850524"]]),Qs={class:"step-module content"},ec={class:"module-data"},tc={class:"step-module layout"},nc={class:"form-content"},ac=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(o,{emit:i}){const c=o,r=i,p=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),u=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),w=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=e.reactive({visible:!1,width:"40%",title:"步骤条"}),f=e.ref("create"),C=e.ref({}),S=e.ref([]),O=T=>{var j;C.value=T,r("change",(j=P())==null?void 0:j.compData)},z=(T,j)=>{var oe,D;switch(T){case"create":(oe=u.value)==null||oe.forEach(F=>{F.value=""}),f.value="create",h.visible=!0;break;case"update":(D=u.value)==null||D.forEach(F=>{F.value=j[F==null?void 0:F.prop]}),f.value="update",h.visible=!0;break;case"delete":S.value.splice(j,1),f.value="delete";break}},ee=T=>{var j,oe,D;if((T==null?void 0:T.buttonName)==="确认"){const F=x.cloneDeep(T==null?void 0:T.content);switch(Object.keys(F).forEach(y=>{F[y]===""&&delete F[y]}),f.value){case"create":S.value.push({...F,index:((j=S.value)==null?void 0:j.length)+1});break;case"update":S.value=(oe=S.value)==null?void 0:oe.map(y=>y.index===(F==null?void 0:F.index)?{...y,title:F==null?void 0:F.title,description:F==null?void 0:F.description}:y);break}r("change",(D=P())==null?void 0:D.compData),h.visible=!1}else h.visible=!1},P=()=>({comp:"Step",compData:[{key:"stepList",contents:S.value},{key:"stepConfig",contents:C.value}]}),be=()=>{h.visible=!1};return e.watch(()=>c==null?void 0:c.itemContents,T=>{var j,oe;T&&(C.value=((j=T==null?void 0:T.find(D=>D.key==="stepConfig"))==null?void 0:j.contents)??{},S.value=((oe=T==null?void 0:T.find(D=>D.key==="stepList"))==null?void 0:oe.contents)??[])},{immediate:!0}),(T,j)=>{const oe=e.resolveComponent("svg-icon"),D=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",Qs,[j[2]||(j[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(D,{class:"module-icon",id:"themeButton",onClick:j[0]||(j[0]=F=>z("create"))},{icon:e.withCtx(()=>[e.createVNode(oe,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[1]||(j[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",ec,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(F,y)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:y},[e.createElementVNode("span",null,e.toDisplayString(F==null?void 0:F.title),1),e.createElementVNode("div",null,[e.createVNode(D,{type:"primary",size:"small",onClick:b=>z("update",{...F,index:y+1})},{default:e.withCtx(()=>j[3]||(j[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(D,{type:"danger",size:"small",onClick:b=>z("delete",y)},{default:e.withCtx(()=>j[4]||(j[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",tc,[j[5]||(j[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(It.ssForm,{rowContents:p.value,onChange:O},null,8,["rowContents"])])]),e.createVNode(Xt.ssDialog,{visible:h.visible,title:h.title,onBeforeDestroy:be,width:h.width},{default:e.withCtx(()=>[e.createElementVNode("div",nc,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:w.value,onOnButtonClick:ee},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),oc=zt._export_sfc(ac,[["__scopeId","data-v-7dbd17f2"]]),rc={class:"step-module content"},lc={class:"module-data"},ic={class:"step-module layout"},sc={class:"form-content"},cc=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(o,{emit:i}){const c=o,r=i,p=e.ref("create"),u=e.ref({}),w=e.ref([]),h=e.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),f=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),C=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),S=e.reactive({visible:!1,width:"40%",title:"时间线"}),O=T=>{var j;u.value=T,r("change",(j=P())==null?void 0:j.compData)},z=(T,j)=>{var oe,D;switch(T){case"create":(oe=f.value)==null||oe.forEach(F=>{F.value=""}),p.value="create",S.visible=!0;break;case"update":(D=f.value)==null||D.forEach(F=>{F.value=j[F==null?void 0:F.prop]}),p.value="update",S.visible=!0;break;case"delete":w.value.splice(j,1),p.value="delete";break}},ee=T=>{var j,oe,D,F;if((T==null?void 0:T.buttonName)==="确认"){const y=x.cloneDeep(T==null?void 0:T.content);switch(Object.keys(y).forEach(b=>{y[b]===""&&delete y[b]}),p.value){case"create":(oe=w.value)==null||oe.push({...y,index:((j=w.value)==null?void 0:j.length)+1});break;case"update":w.value=(D=w.value)==null?void 0:D.map(b=>b.index===(y==null?void 0:y.index)?{...b,content:y==null?void 0:y.content,timestamp:y==null?void 0:y.timestamp}:b);break}r("change",(F=P())==null?void 0:F.compData),S.visible=!1}else S.visible=!1},P=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:w.value},{key:"timeLineConfig",contents:u.value}]}),be=()=>{S.visible=!1};return e.watch(()=>c==null?void 0:c.itemContents,T=>{var j,oe;T&&(u.value=((j=T==null?void 0:T.find(D=>D.key==="timeLineConfig"))==null?void 0:j.contents)??{},w.value=((oe=T==null?void 0:T.find(D=>D.key==="timeLineList"))==null?void 0:oe.contents)??[])},{immediate:!0}),(T,j)=>{const oe=e.resolveComponent("svg-icon"),D=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",rc,[j[2]||(j[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(D,{class:"module-icon",id:"themeButton",onClick:j[0]||(j[0]=F=>z("create"))},{icon:e.withCtx(()=>[e.createVNode(oe,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[1]||(j[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",lc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(F,y)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:y},[e.createElementVNode("span",null,e.toDisplayString(F==null?void 0:F.content),1),e.createElementVNode("div",null,[e.createVNode(D,{type:"primary",size:"small",onClick:b=>z("update",{...F,index:y+1})},{default:e.withCtx(()=>j[3]||(j[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(D,{type:"danger",size:"small",onClick:b=>z("delete",y)},{default:e.withCtx(()=>j[4]||(j[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",ic,[j[5]||(j[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(It.ssForm,{rowContents:h.value,onChange:O},null,8,["rowContents"])])]),e.createVNode(Xt.ssDialog,{visible:S.visible,title:S.title,onBeforeDestroy:be,width:S.width},{default:e.withCtx(()=>[e.createElementVNode("div",sc,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:f.value,key:f.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:C.value,onOnButtonClick:ee},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),uc=zt._export_sfc(cc,[["__scopeId","data-v-39ffc861"]]),dc={};function pc(o,i){return e.openBlock(),e.createElementBlock("div")}const fc=zt._export_sfc(dc,[["render",pc]]),hc={class:"extra-content"},vc={key:0},mc={key:1},gc={class:"dialog-footer"},yc={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(o,{emit:i}){const c=o,r=e.ref(0),p=e.ref(),u=e.ref(),w=i,h=e.ref(!1),f=e.ref({}),C=e.ref({}),S=e.ref();e.watch(()=>[c.itemData],()=>{var F;const D=x.cloneDeep(c.itemData);p.value=(F=x.cloneDeep(D))==null?void 0:F.map(y=>{var b;if(y.key==="extra"){let k=[];(b=y.value)==null||b.forEach(G=>{var he;k.push((he=Object.values(G))==null?void 0:he[0])}),y.value=k}return y})},{deep:!0,immediate:!0});const O=(D,F,y,b)=>{var G;let k={};((G=D==null?void 0:D[0])==null?void 0:G.contents)==="详情"&&(h.value=!0,k[F]=D,u.value=D==null?void 0:D.filter(he=>(he==null?void 0:he.key)!=="tableContentName"),f.value=k,C.value=y,S.value=b.id)},z=D=>{var he,ot,Ee,He;const F=(ot=(he=Object.values(x.cloneDeep(f.value)))==null?void 0:he[0])==null?void 0:ot.filter($e=>($e==null?void 0:$e.key)==="tableContentName"),y=(He=(Ee=Object.values(x.cloneDeep(f.value)))==null?void 0:Ee[0])==null?void 0:He.filter($e=>($e==null?void 0:$e.key)!=="tableContentName"),b=y==null?void 0:y.map(($e,M)=>{var ie;return M===D.index&&($e==null?void 0:$e.comp)==="Table"&&($e.compData=(ie=$e.compData)==null?void 0:ie.map(le=>{var fe,Xe;return(le==null?void 0:le.key)==="tableContents"&&(le.contents=(Xe=(fe=D.content)==null?void 0:fe.map(st=>{let q={};for(let V in st)V!=="id"&&(q[V]=st[V]);return q}))==null?void 0:Xe.map(st=>Object.values(st))),le})),$e});b.unshift(F==null?void 0:F[0]);let k=x.cloneDeep(f.value),G={};for(let $e in k)G[$e]=b;f.value=G},ee=()=>{h.value=!1,f.value={},C.value={},S.value=void 0,r.value++},P=D=>{var he,ot,Ee,He;const F=(ot=(he=Object.values(x.cloneDeep(f.value)))==null?void 0:he[0])==null?void 0:ot.filter($e=>($e==null?void 0:$e.key)==="tableContentName"),y=(He=(Ee=Object.values(x.cloneDeep(f.value)))==null?void 0:Ee[0])==null?void 0:He.filter($e=>($e==null?void 0:$e.key)!=="tableContentName"),b=y==null?void 0:y.map(($e,M)=>(M===D.index&&($e.compData=D.contents),$e));b.unshift(F==null?void 0:F[0]);let k=x.cloneDeep(f.value),G={};for(let $e in k)G[$e]=b;f.value=G},be=()=>{var F,y;let D={};for(let b in C.value)b===((F=Object.keys(f.value))==null?void 0:F[0])?D[b]=(y=Object.values(f.value))==null?void 0:y[0]:D[b]=C.value[b];w("change",{buttonName:"编辑",index:S.value,singleContent:D},"methodData"),h.value=!1,f.value={},C.value={},S.value=void 0},T=()=>{h.value=!1,f.value={},C.value={},S.value=void 0},j=D=>{w("change",D,"methodData")},oe=D=>oa(D);return(D,F)=>{const y=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",hc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(b,k)=>(e.openBlock(),e.createElementBlock("div",{key:r.value},[(b==null?void 0:b.key)==="extra"?(e.openBlock(),e.createElementBlock("div",vc)):(e.openBlock(),e.createElementBlock("div",mc,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(oe(b.comp)),{itemData:b==null?void 0:b.compData,childItemData:b==null?void 0:b.itemChildData,key:k,index:(b==null?void 0:b.id)??k,onContentClick:O,onChange:j},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(Xt.ssDialog,{visible:h.value,onBeforeDestroy:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(b,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(oe(b.comp)),{itemData:b==null?void 0:b.compData,onChange:z,childItemData:b==null?void 0:b.itemChildData,key:k,onContentChange:P,index:(b==null?void 0:b.id)??k,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",gc,[e.createVNode(y,{class:"cancel-button footer-button",onClick:ee,id:"themeBorderButton"},{default:e.withCtx(()=>F[0]||(F[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(y,{class:"confirm-button footer-button",onClick:be,id:"themeButton"},{default:e.withCtx(()=>F[1]||(F[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},bc=zt._export_sfc(yc,[["__scopeId","data-v-2d9c5ab2"]]),kc={key:0,class:"method-content"},xc={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(o){const i=e.ref([]),c=Ae.useOriginalState(x.pinia),{originalPath:r}=x.storeToRefs(c),p=o,u=e.ref(!1),w=e.ref(),h=Ae.useTableComp(x.pinia),{multipleTableConst:f}=x.storeToRefs(h),C=x.useModelComp(x.pinia),S=e.ref(!1),O=x.useMenuState(x.pinia),z=x.useLoginState(x.pinia),{itemData:ee,isEdit:P,routeToChildPath:be,tableViewContents:T,lockingPage:j,payloadTypes:oe}=x.storeToRefs(C),{activeMenuPath:D,platform:F,childMenu:y}=x.storeToRefs(O),{loginUserInfo:b}=x.storeToRefs(z),k=e.ref(!1),G=async()=>{var q,V;(q=i.value)!=null&&q.find(ve=>(ve==null?void 0:ve.buttonName)==="保存")&&await le((V=i.value)==null?void 0:V.find(ve=>(ve==null?void 0:ve.buttonName)==="保存")),await Ae.onSaveBack()};e.watch(()=>ee.value,async()=>{P.value==="view"&&!k.value&&await st(x.cloneDeep(p.itemData)),k.value=!1},{deep:!0});const he=()=>{u.value=!1,w.value=void 0},ot=q=>q.map(V=>{const ve={};for(const ke in V){const ze=V[ke];if(ke.includes(f.value)){const Se=ke.split(f.value);let Ye=ve;Se.forEach((ae,xe)=>{xe===Se.length-1?Ye[ae]=ze:(Ye[ae]||(Ye[ae]={}),Ye=Ye[ae])})}else ve[ke]=ze}return ve}),Ee=async(q,V,ve=[])=>{var ze,Se,Ye,ae,xe,B,Le,Fe,we,ne,X,te,Ce,Ge,dt;let ke=(ze=x.cloneDeep(V))==null?void 0:ze.filter(v=>(v==null?void 0:v.comp)!=="methodButton");if(q!=null&&q.includes("[")){let v=(B=(xe=(ae=(Ye=(Se=x.cloneDeep(q))==null?void 0:Se.split("["))==null?void 0:Ye[1])==null?void 0:ae.split("]"))==null?void 0:xe[0])==null?void 0:B.split(":"),E="";if(v!=null&&v[0]){let W=(Le=ke==null?void 0:ke.find(J=>(J==null?void 0:J.name)===(v==null?void 0:v[0])))==null?void 0:Le.compData;if(!W){let J=(Fe=q==null?void 0:q.split("["))==null?void 0:Fe[0],_=await Ae.getItemData(J,sessionStorage.getItem("systemKey"),"",!1,"","",ve);W=(we=_==null?void 0:_.find(re=>(re==null?void 0:re.name)===(v==null?void 0:v[0])))==null?void 0:we.compData}W==null||W.forEach(J=>{var _,re,Ne,Z,L,U;if((J==null?void 0:J.key)==="formContent")(_=J==null?void 0:J.contents)==null||_.forEach(H=>{var ge;(H==null?void 0:H.key)===(v==null?void 0:v[1])&&(Array.isArray(H==null?void 0:H.value)?E=H==null?void 0:H.value:E=(ge=H==null?void 0:H.value)==null?void 0:ge.toString())});else if((J==null?void 0:J.key)==="tableContents"){let H=[],ge=(re=W==null?void 0:W.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:re.contents,ue=(v==null?void 0:v[1])??"";if(ge!=null&&ge.every(K=>Array.isArray(K))){let K=Ae.getColumnChild((L=ge==null?void 0:ge[0])==null?void 0:L.filter(ce=>(ce==null?void 0:ce.label)!=="操作"));(U=J.contents)==null||U.forEach(ce=>{let Q={};ce=ce==null?void 0:ce.filter(Be=>!(Be!=null&&Be.id)),K==null||K.forEach((Be,se)=>{let _e=ce[se];typeof ce[se]=="number"&&(_e=ce[se].toString()),(ue===""||ue===Be.prop)&&(Q[Be.prop]=_e)}),H.push(Q)}),H=ot(H)}else{let K=(Ne=ge==null?void 0:ge.map(ce=>ce==null?void 0:ce.label))==null?void 0:Ne.filter(ce=>ce!=="操作");(Z=J.contents)==null||Z.forEach(ce=>{let Q={};ce=ce==null?void 0:ce.filter(Be=>!(Be!=null&&Be.id)),K==null||K.forEach((Be,se)=>{let _e=ce[se];typeof ce[se]=="number"&&(_e=ce[se].toString()),(ue===""||ue===Be)&&(Q[Be]=_e)}),H.push(Q)})}E=H}})}return E}else if(q!=null&&q.includes("/")){let v={};return(ne=x.cloneDeep(ke))==null||ne.forEach((E,W)=>{var J,_,re,Ne,Z,L,U,H,ge,ue,K,ce,Q,Be,se,_e,R,Ie,de;if((E==null?void 0:E.comp)==="Table"){let je=Array.isArray((re=(_=(J=E==null?void 0:E.compData)==null?void 0:J.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:_.contents)==null?void 0:re[0])?(U=(L=(Z=(Ne=E==null?void 0:E.compData)==null?void 0:Ne.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:Z.contents)==null?void 0:L[0])==null?void 0:U.some(Te=>Te==null?void 0:Te.children):[],it=(ue=(ge=(H=E==null?void 0:E.compData)==null?void 0:H.find(Te=>(Te==null?void 0:Te.key)==="tableContents"))==null?void 0:ge.contents)==null?void 0:ue.map(Te=>(Te!=null&&Te.find(pt=>pt==null?void 0:pt.id)&&(Te=Te.slice(1)),Te)),qe=(se=(Be=(Q=(ce=(K=E==null?void 0:E.compData)==null?void 0:K.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:ce.contents)==null?void 0:Q[0])==null?void 0:Be[0])==null?void 0:se.label,Qe=(R=(_e=E==null?void 0:E.compData)==null?void 0:_e.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:R.contents;if(je)(je==null?void 0:je.length)===0?v[E.name]=v!=null&&v[E.name]?v[E.name]:Ae.tableToForm(it,Qe):v[qe]=Ae.tableToForm(it,Qe);else{const Te=[];Qe=Qe.slice(1,Qe.length-1),Qe==null||Qe.forEach((pt,Je)=>{it==null||it.forEach(Ve=>{Te.push({key:pt.label+Ve[0],value:Ve[Je+1]})})}),v["form"+W]=Te}}else{const je=(de=(Ie=E.compData)==null?void 0:Ie.find(qe=>(qe==null?void 0:qe.key)==="formContent"))==null?void 0:de.contents;v!=null&&v.form||(v.form=[]);const it=[];je==null||je.forEach(qe=>{qe.key!==""&&(qe={key:(qe==null?void 0:qe.key)??(qe==null?void 0:qe.label),value:qe==null?void 0:qe.value},it.push(qe))}),v.form=[...it,...x.cloneDeep(v==null?void 0:v.form)]}}),v}else{if(q==="createInsofDataApi"){let v=(X=x.cloneDeep(V))==null?void 0:X[0];return v={comp:(te=x.cloneDeep(v))==null?void 0:te.comp,compData:(Ce=x.cloneDeep(v))==null?void 0:Ce.compData,name:(Ge=x.cloneDeep(v))==null?void 0:Ge.name,isShow:(dt=x.cloneDeep(v))==null?void 0:dt.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:D.value},value:{pageData:v}}}return q}},He=async(q,V,ve)=>{var Se,Ye,ae;let ke=await Ae.getItemData(V,sessionStorage.getItem("systemKey"),""),ze=ke==null?void 0:ke.find(xe=>(xe==null?void 0:xe.name)===(ve==null?void 0:ve[0]));if(ze){if((ze==null?void 0:ze.comp)==="Table"){let xe={};for(let te in x.cloneDeep(q))x.cloneDeep(q)[te]!=="loginUser"?xe[te]=x.cloneDeep(q)[te]:xe[te]=((Se=b.value)==null?void 0:Se.account)||((Ye=b.value)==null?void 0:Ye.账号);let B=[],Le=xe;Array.isArray(q)||(Le=[xe]),Le==null||Le.forEach(te=>{B.push({[te[ve[1]]]:te})});let Fe=[],we=B==null?void 0:B.map(te=>{var Ce;return(Ce=Object.keys(te))==null?void 0:Ce[0]});ke==null||ke.forEach(te=>{var Ce;(te==null?void 0:te.name)===(ve==null?void 0:ve[0])&&((Ce=te==null?void 0:te.compData)==null||Ce.forEach(Ge=>{var dt;(Ge==null?void 0:Ge.key)==="tableContents"&&((dt=Ge==null?void 0:Ge.contents)==null||dt.forEach(v=>{v!=null&&v.some(E=>we.includes(E))&&Fe.push({[v.find(E=>E.id).id]:v.find(E=>we.includes(E))})}))}))});let ne=Fe==null?void 0:Fe.map(te=>{var Ce;return(Ce=Object.keys(te))==null?void 0:Ce[0]}),X=[];if(ne==null||ne.forEach(te=>{var dt;let Ce=(dt=Fe==null?void 0:Fe.find(v=>{var E;return((E=Object.keys(v))==null?void 0:E[0].toString())===te.toString()}))==null?void 0:dt[te],Ge=B==null?void 0:B.find(v=>{var E;return((E=Object.keys(v))==null?void 0:E[0])===Ce});X.push({id:parseInt(te),value:{tableData:Ge[Ce]}})}),(X==null?void 0:X.length)>0)return X}else if((ze==null?void 0:ze.comp)==="Form"){let xe=x.cloneDeep(ze);xe.compData=(ae=xe.compData)==null?void 0:ae.map(Fe=>{var we;return(Fe==null?void 0:Fe.key)==="formContent"&&(Fe.contents=(we=Fe.contents)==null?void 0:we.map(ne=>((ne==null?void 0:ne.key)===(ve==null?void 0:ve[1])&&(ne.value=(q==null?void 0:q[ne==null?void 0:ne.prop])||q),ne))),Fe});let B={};for(let Fe in xe)Fe!=="id"&&(B[Fe]=xe[Fe]);let Le=[];if(Le.push({id:ze==null?void 0:ze.id,keyType:ve==null?void 0:ve[1],value:{pageData:B}}),(Le==null?void 0:Le.length)>0)return Le}}},$e=async(q,V,ve)=>{var Se,Ye,ae,xe,B,Le,Fe,we,ne,X;let ke=await Ae.getItemData(V,sessionStorage.getItem("systemKey"),""),ze=ke==null?void 0:ke.find(te=>(te==null?void 0:te.name)===(ve==null?void 0:ve[0]));if(ze){if((ze==null?void 0:ze.comp)==="Table"){let te={};for(let Ce in x.cloneDeep(q))x.cloneDeep(q)[Ce]!=="loginUser"?te[Ce]=x.cloneDeep(q)[Ce]:te[Ce]=((Se=b.value)==null?void 0:Se.account)||((Ye=b.value)==null?void 0:Ye.账号);await ct.createInsofDataApi({key:{type:"data",pageKey:V,tableId:ze==null?void 0:ze.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:te}})}else if((ze==null?void 0:ze.comp)==="Form"){let te=x.cloneDeep(ze),Ce=Object.keys(q),Ge="";(xe=(ae=x.cloneDeep(te))==null?void 0:ae.compData)==null||xe.forEach(_=>{var re,Ne;(_==null?void 0:_.key)==="formContent"&&((Ne=(re=x.cloneDeep(_))==null?void 0:re.contents)==null||Ne.forEach(Z=>{var L;Ce.includes(Z==null?void 0:Z.key)&&(Z==null?void 0:Z.value)===((L=b.value)==null?void 0:L.姓名)&&(Ge=Z==null?void 0:Z.key)}))});let dt=[];(B=Object.values(q[Ge]))==null||B.forEach(_=>{_!=null&&_.includes("(")&&dt.push(_)}),dt=[...new Set(dt)];const v=dt==null?void 0:dt.map(async _=>{var U,H,ge,ue,K,ce,Q,Be,se,_e,R,Ie;let re="";(ce=(K=(ue=(ge=(H=(U=x.cloneDeep(_))==null?void 0:U.split("("))==null?void 0:H[1])==null?void 0:ge.split(")"))==null?void 0:ue[0])==null?void 0:K.split(":"))==null||ce.forEach(de=>{re=re===""?re+de.replaceAll("'",""):re+"/"+de.replaceAll("'","")});let Ne=[];(Ie=(R=(_e=(se=(Be=(Q=x.cloneDeep(_))==null?void 0:Q.split("<"))==null?void 0:Be[1])==null?void 0:se.split(">"))==null?void 0:_e[0])==null?void 0:R.split(":"))==null||Ie.forEach(de=>{Ne.push(de.replaceAll("'",""))});const Z=await Ae.getItemData(re,sessionStorage.getItem("systemKey"),"");let L="";return Z==null||Z.forEach(de=>{var je;de.name===(Ne==null?void 0:Ne[0])&&((je=de==null?void 0:de.compData)==null||je.forEach(it=>{var qe;(it==null?void 0:it.key)==="formContent"&&((qe=it.contents)==null||qe.forEach(Qe=>{(Qe==null?void 0:Qe.key)===(Ne==null?void 0:Ne[1])&&(L=Qe==null?void 0:Qe.value)}))}))}),{[_]:L}}),E=await Promise.all(v);te.compData=(Fe=(Le=x.cloneDeep(te))==null?void 0:Le.compData)==null?void 0:Fe.map(_=>{var re,Ne;return(_==null?void 0:_.key)==="formContent"&&(_.contents=(Ne=(re=x.cloneDeep(_))==null?void 0:re.contents)==null?void 0:Ne.map(Z=>{var L,U,H,ge;return(L=q[Ge])!=null&&L[Z==null?void 0:Z.key]&&(q[Ge][Z==null?void 0:Z.key].includes("(")?Z.value=(U=E==null?void 0:E.find(ue=>{var K;return((K=Object.keys(ue))==null?void 0:K[0])===q[Ge][Z==null?void 0:Z.key]}))==null?void 0:U[q[Ge][Z==null?void 0:Z.key]]:Z.value=(ge=(H=x.cloneDeep(q))==null?void 0:H[Ge])==null?void 0:ge[Z==null?void 0:Z.key]),Z})),_});const W=await ct.getInsofDataApi({key:{type:"structure",pageKey:V,systemKey:sessionStorage.getItem("systemKey")}});let J="";((we=W==null?void 0:W.data)==null?void 0:we.type)==="success"&&((X=(ne=W==null?void 0:W.data)==null?void 0:ne.result)==null||X.forEach(_=>{var re,Ne;((Ne=(re=_==null?void 0:_.value)==null?void 0:re.pageData)==null?void 0:Ne.name)===(ve==null?void 0:ve[0])&&(J=_.id)}),await ct.updateInsofDataApi({id:J,value:{pageData:te}}))}}},M=(q,V="",ve={})=>{for(const[ke,ze]of Object.entries(q)){const Se=V?`${V}.${ke}`:ke;ze!==null&&typeof ze=="object"&&!Array.isArray(ze)&&Object.prototype.toString.call(ze)!=="[object Date]"?M(ze,Se,ve):ve[Se]=ze}return ve},ie=async(q,V,ve,ke)=>{var Ye,ae,xe,B,Le,Fe,we,ne,X,te,Ce,Ge,dt,v,E,W,J,_,re,Ne,Z,L,U,H,ge;let ze=await Ae.getItemData(V,sessionStorage.getItem("systemKey"),""),Se=ze==null?void 0:ze.find(ue=>(ue==null?void 0:ue.name)===(ve==null?void 0:ve[0]));if(Se){if(!(ve!=null&&ve[1])&&(Se==null?void 0:Se.comp)==="Table"){let ue={},K=[],ce=(ae=(Ye=Se==null?void 0:Se.compData)==null?void 0:Ye.find(se=>(se==null?void 0:se.key)==="header"))==null?void 0:ae.contents;ce!=null&&ce.every(se=>Array.isArray(se))?K=(B=Ae.getColumnChild((xe=ce==null?void 0:ce[0])==null?void 0:xe.filter(se=>(se==null?void 0:se.label)!=="操作")))==null?void 0:B.map(se=>se==null?void 0:se.prop):K=ce==null?void 0:ce.map(se=>se==null?void 0:se.label);for(let se in x.cloneDeep(q))if(x.cloneDeep(q)[se]!=="loginUser"){let _e=M(x.cloneDeep(q)[se]),R={};for(let Ie in _e)if(K!=null&&K.find(de=>de===Ie))R[Ie]=_e[Ie];else if(K!=null&&K.find(de=>(de==null?void 0:de.toUpperCase())===(Ie==null?void 0:Ie.toUpperCase()))){let de=K==null?void 0:K.find(je=>(je==null?void 0:je.toUpperCase())===(Ie==null?void 0:Ie.toUpperCase()));R[de]=_e[Ie]}ue[se]=R}else ue[se]=((Le=b.value)==null?void 0:Le.account)||((Fe=b.value)==null?void 0:Fe.账号);let Q=await ct.getInsofDataApi({keyLikes:{tableId:Se==null?void 0:Se.id}});if(((ne=(we=Q==null?void 0:Q.data)==null?void 0:we.result)==null?void 0:ne.length)>0){let se=(te=(X=Q==null?void 0:Q.data)==null?void 0:X.result)==null?void 0:te.map(_e=>_e==null?void 0:_e.id);(se==null?void 0:se.length)>0&&await ct.batchDeleteInsofDataApi({ids:se})}let Be=[];if((Ce=Se==null?void 0:Se.compData)!=null&&Ce.find(se=>(se==null?void 0:se.key)==="pageColumn")&&((v=(dt=(Ge=Se==null?void 0:Se.compData)==null?void 0:Ge.find(se=>(se==null?void 0:se.key)==="pageColumn"))==null?void 0:dt.contents)!=null&&v.includes("["))){const se=await ct.getInsofDataApi({id:Se==null?void 0:Se.tableId});let _e=((_=(J=(W=(E=se==null?void 0:se.data)==null?void 0:E.result)==null?void 0:W[0])==null?void 0:J.key)==null?void 0:_.pageKey)??"";(re=Object.values(ue))==null||re.forEach(R=>{Be.push({key:{type:"data",pageKey:_e,tableId:Se==null?void 0:Se.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:R}})})}else(Ne=Object.values(ue))==null||Ne.forEach(se=>{Be.push({key:{type:"data",pageKey:V,tableId:Se==null?void 0:Se.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:se}})});(Be==null?void 0:Be.length)>0&&await ct.batchAddInsofDataApi({dataList:Be})}else if(!(ve!=null&&ve[1])&&(Se==null?void 0:Se.comp)==="Form"){let ue=x.cloneDeep(Se);ue.compData=(L=(Z=x.cloneDeep(ue))==null?void 0:Z.compData)==null?void 0:L.map(Q=>{var Be,se;return(Q==null?void 0:Q.key)==="formContent"&&(Q.contents=(se=(Be=x.cloneDeep(Q))==null?void 0:Be.contents)==null?void 0:se.map(_e=>{var R,Ie;return(R=x.cloneDeep(q))!=null&&R[_e==null?void 0:_e.key]&&(_e.value=(Ie=x.cloneDeep(q))==null?void 0:Ie[_e==null?void 0:_e.key]),_e})),Q});const K=await ct.getInsofDataApi({key:{type:"structure",pageKey:V,systemKey:sessionStorage.getItem("systemKey")}});let ce="";((U=K==null?void 0:K.data)==null?void 0:U.type)==="success"&&((ge=(H=K==null?void 0:K.data)==null?void 0:H.result)==null||ge.forEach(Q=>{var Be,se;((se=(Be=Q==null?void 0:Q.value)==null?void 0:Be.pageData)==null?void 0:se.name)===(ve==null?void 0:ve[0])&&(ce=Q.id)}),await ct.updateInsofDataApi({id:ce,value:{pageData:ue}}))}}},le=async q=>{var V,ve,ke,ze,Se,Ye,ae,xe,B,Le,Fe,we,ne,X,te,Ce;O.setImportLoading(!0);try{if(q.api){let Ge=new WeakMap;(ve=(V=(await ct.getPageInsofDataApi({systemKey:sessionStorage.getItem("systemKey"),type:oe.value})).data.result)==null?void 0:V.filter(U=>{var H,ge;return((H=U==null?void 0:U.key)==null?void 0:H.pageKey)!=="menu"&&((ge=U==null?void 0:U.key)==null?void 0:ge.pageKey)!=="secret"}))==null||ve.forEach(U=>{Ge[U.key.pageKey]?Ge[U.key.pageKey]=[...Ge[U.key.pageKey],U]:Ge[U.key.pageKey]=[U]});let v=await Ae.getItemData((y==null?void 0:y.value)===""?D.value:y==null?void 0:y.value,sessionStorage.getItem("systemKey"),"",!1,"","",Ge),E="";if(v=v==null?void 0:v.map(U=>{var H,ge,ue,K,ce,Q,Be,se,_e,R,Ie,de;if((U==null?void 0:U.comp)==="Form")U.compData=(H=U.compData)==null?void 0:H.map(je=>{var it;return(je==null?void 0:je.key)==="formContent"&&(je.contents=(it=je.contents)==null?void 0:it.map(qe=>{var Qe;if((qe==null?void 0:qe.value)===""&&(qe==null?void 0:qe.type)==="Select"){let Te=Ae.judgeContents((Qe=x.cloneDeep(qe))==null?void 0:Qe.optionUrl,Ge);qe.value=qe.value||Te}return qe})),je});else if((U==null?void 0:U.comp)==="Table"&&(ge=U.compData)!=null&&ge.find(je=>(je==null?void 0:je.key)==="pageColumn")){let je=(K=(ue=U.compData)==null?void 0:ue.find(Te=>(Te==null?void 0:Te.key)==="pageColumn"))==null?void 0:K.contents,it=((Q=(ce=U.compData)==null?void 0:ce.find(Te=>(Te==null?void 0:Te.key)==="pageGroup"))==null?void 0:Q.contents)??"",qe=(_e=(se=(Be=je==null?void 0:je.split("["))==null?void 0:Be[1])==null?void 0:se.split("]"))==null?void 0:_e[0];E=((R=je==null?void 0:je.split("["))==null?void 0:R[0])+((de=(Ie=T.value)==null?void 0:Ie.find(Te=>(Te==null?void 0:Te.key)===qe))==null?void 0:de.value)}return U}),!(E===""||E==="")){const U=await Ae.getItemData(E,sessionStorage.getItem("systemKey"),"",!1,"","",Ge);v=v==null?void 0:v.map(H=>{var ge,ue,K,ce,Q,Be,se,_e,R,Ie,de,je,it;if((H==null?void 0:H.comp)==="Table"&&(ge=H.compData)!=null&&ge.find(qe=>(qe==null?void 0:qe.key)==="pageColumn")){let qe=(K=(ue=H.compData)==null?void 0:ue.find(Ve=>(Ve==null?void 0:Ve.key)==="pageColumn"))==null?void 0:K.contents,Qe=((Q=(ce=H.compData)==null?void 0:ce.find(Ve=>(Ve==null?void 0:Ve.key)==="pageGroup"))==null?void 0:Q.contents)??"",Te=(_e=(se=(Be=qe==null?void 0:qe.split("["))==null?void 0:Be[1])==null?void 0:se.split("]"))==null?void 0:_e[0],pt=((R=qe==null?void 0:qe.split("["))==null?void 0:R[0])+((de=(Ie=T.value)==null?void 0:Ie.find(Ve=>(Ve==null?void 0:Ve.key)===Te))==null?void 0:de.value),Je=(je=U==null?void 0:U.find(Ve=>(Ve==null?void 0:Ve.name)===(Qe===""?p==null?void 0:p.compName:Qe)))==null?void 0:je.compData;H.compData=(it=H.compData)==null?void 0:it.map(Ve=>{var rt;return(Ve==null?void 0:Ve.key)==="tableContents"&&(Ve.contents=(rt=Je==null?void 0:Je.find(mt=>(mt==null?void 0:mt.key)==="tableContents"))==null?void 0:rt.contents),Ve})}return H})}let W={};if(((ze=(ke=q==null?void 0:q.extraValues)==null?void 0:ke.input)==null?void 0:ze.length)>0){const U=(Ye=(Se=q==null?void 0:q.extraValues)==null?void 0:Se.input)==null?void 0:Ye.map(async H=>{var ge;fe!=null&&fe.find(ue=>ue===H)?W=await Ee(H,v):W[Object.keys(H)[0]]=await Ee((ge=Object.values(H))==null?void 0:ge[0],v,Ge)});await Promise.all(U)}else W=await Ee("/",v);let J=!1;(xe=(ae=q==null?void 0:q.extraValues)==null?void 0:ae.output)==null||xe.forEach(U=>{var H,ge;(ge=(H=Object.values(U))==null?void 0:H[0])!=null&&ge.includes(".doc")&&(J=!0)});let _;if(J){const U=It.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});_=await ct.axios.post(q.api,W,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{U.close()})}else _=await ct.axios.post(q.api,W,{headers:{"Content-Type":"application/json"}});let re=(we=(Fe=(Le=(B=x.cloneDeep(q))==null?void 0:B.extraValues)==null?void 0:Le.output)==null?void 0:Fe.map(U=>{var H,ge,ue,K,ce,Q,Be,se,_e,R,Ie,de,je,it,qe,Qe;if(!((ge=(H=Object.values(U))==null?void 0:H[0])!=null&&ge.includes(".doc"))){let Te=(R=(_e=(se=(K=x.cloneDeep((ue=Object.values(U))==null?void 0:ue[0]))==null?void 0:K.split("["))==null?void 0:se[((Be=(Q=x.cloneDeep((ce=Object.values(U))==null?void 0:ce[0]))==null?void 0:Q.split("["))==null?void 0:Be.length)-1])==null?void 0:_e.split("]"))==null?void 0:R[0],pt=Te==null?void 0:Te.split(":"),Je=(je=x.cloneDeep((Ie=Object.values(U))==null?void 0:Ie[0]))==null?void 0:je.substring(0,x.cloneDeep((de=Object.values(U))==null?void 0:de[0]).lastIndexOf("["));if(Je=(qe=x.cloneDeep(Je))==null?void 0:qe.slice(0,((it=x.cloneDeep(Je))==null?void 0:it.length)-1),Je!=null&&Je.includes("[")){let Ve="";if((Qe=Ae.contentTransArrayToAll(Je,"/"))==null||Qe.forEach(rt=>{var mt,xt,Ue,nt,yt,Me,Pe;if(!(rt!=null&&rt.includes("[")))Ve=Ve===""?Ve+rt.replaceAll("/",""):Ve+"/"+rt.replaceAll("/","");else{let We=x.cloneDeep(rt).slice(1,((mt=x.cloneDeep(rt))==null?void 0:mt.length)-1),De=(Me=(yt=(nt=(Ue=(xt=x.cloneDeep(We))==null?void 0:xt.split("["))==null?void 0:Ue[1])==null?void 0:nt.split("]"))==null?void 0:yt[0])==null?void 0:Me.split(":"),N="",pe=(Pe=v==null?void 0:v.find(me=>(me==null?void 0:me.name)===(De==null?void 0:De[0])))==null?void 0:Pe.compData;pe==null||pe.forEach(me=>{var et;(me==null?void 0:me.key)==="formContent"&&((et=me==null?void 0:me.contents)==null||et.forEach(Ze=>{(Ze==null?void 0:Ze.key)===(De==null?void 0:De[1])&&(N=Ze==null?void 0:Ze.value)}))}),Ve=Ve===""?Ve+N.replaceAll("/",""):Ve+"/"+N.replaceAll("/","")}}),Je=Ve,Je[(Je==null?void 0:Je.length)-1]!=="/")return Je}}}))==null?void 0:we.filter(U=>U);re=[...new Set(x.cloneDeep(re))];let Ne=re==null?void 0:re.map(async U=>{let H=await Ae.getItemData(U,sessionStorage.getItem("systemKey"),"",!1,"","",Ge);if((H==null?void 0:H.length)===0)return await Ae.getParentContents(U)});await Promise.all(Ne);let Z=[],L=(te=(X=(ne=x.cloneDeep(q))==null?void 0:ne.extraValues)==null?void 0:X.output)==null?void 0:te.map(async U=>{var se,_e,R,Ie,de,je,it,qe,Qe,Te,pt,Je,Ve,rt,mt,xt,Ue,nt,yt,Me,Pe,We,De,N,pe,me,et,Ze,Dt,Ct,ut,ft,vt,gt,Pt,bt,Ft,Rt,Ut,Wt,Jt,Qt,$t,Rn,bn,Pn,kn,Ln,$n,jn,Un,Kn,Tn,vn,un,xn,mn,rn,pn,Wn,Bn,In,wn,Hn,qn,Nn,Gn,Xn,An,_t;if((_e=(se=Object.values(U))==null?void 0:se[0])!=null&&_e.includes(".doc")){var H=new Blob([_.data],{type:"application/octet-stream;charset=UTF-8"}),ge=_.headers["content-disposition"],ue=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),K=ue.exec(ge),ce=K==null?void 0:K[1],Q=document.createElement("a"),Be=window.URL.createObjectURL(H);w.value=[{name:ce,blobUrl:Be}],u.value=!0}else{let en=(Te=(Qe=(qe=(Ie=x.cloneDeep((R=Object.values(U))==null?void 0:R[0]))==null?void 0:Ie.split("["))==null?void 0:qe[((it=(je=x.cloneDeep((de=Object.values(U))==null?void 0:de[0]))==null?void 0:je.split("["))==null?void 0:it.length)-1])==null?void 0:Qe.split("]"))==null?void 0:Te[0],tt=en==null?void 0:en.split(":"),Ht=(Ve=x.cloneDeep((pt=Object.values(U))==null?void 0:pt[0]))==null?void 0:Ve.substring(0,x.cloneDeep((Je=Object.values(U))==null?void 0:Je[0]).lastIndexOf("["));if(Ht!=null&&Ht.includes("[")?Ht=(mt=x.cloneDeep(Ht))==null?void 0:mt.slice(0,((rt=x.cloneDeep(Ht))==null?void 0:rt.length)-1):Ht===""&&(Ht=D.value),Ht=Ht.replaceAll("<","[").replaceAll(">","]"),Ht!=null&&Ht.includes("[")){let wt="";(xt=Ae.contentTransArrayToAll(Ht,"/"))==null||xt.forEach((Bt,Ot)=>{var Lt,Nt,tn,qt,Vn,Yn,On,Jn,_a,ra,pa;if(!(Bt!=null&&Bt.includes("[")))wt=wt===""?wt+Bt.replaceAll("/",""):wt+"/"+Bt.replaceAll("/","");else{let la="",dn="";(Lt=x.cloneDeep(Bt))!=null&&Lt.includes("]")?(la=x.cloneDeep(Bt).slice(1,((Nt=x.cloneDeep(Bt))==null?void 0:Nt.length)-1),dn=(On=(Yn=(Vn=(qt=(tn=x.cloneDeep(la))==null?void 0:tn.split("["))==null?void 0:qt[1])==null?void 0:Vn.split("]"))==null?void 0:Yn[0])==null?void 0:On.split(":")):(la=x.cloneDeep(Bt).slice(1,(Jn=x.cloneDeep(Bt))==null?void 0:Jn.length),dn=(_a=x.cloneDeep(la))==null?void 0:_a.split("/"));let Zn="",ia=(ra=v==null?void 0:v.find(ln=>(ln==null?void 0:ln.name)===(dn==null?void 0:dn[0])))==null?void 0:ra.compData;ia==null||ia.forEach(ln=>{var Ea;(ln==null?void 0:ln.key)==="formContent"&&((Ea=ln==null?void 0:ln.contents)==null||Ea.forEach(Mn=>{(Mn==null?void 0:Mn.key)===(dn==null?void 0:dn[1])&&(Zn=Mn==null?void 0:Mn.value)}))}),((pa=Ae.contentTransArrayToAll(Ht,"/"))==null?void 0:pa.length)-1!==Ot?wt=wt===""?wt+Zn.replaceAll("/",""):wt+"/"+Zn.replaceAll("/",""):wt=wt+r.value+Zn.replaceAll("/","")}}),(Ue=D.value)!=null&&Ue.includes(wt)?Ht=D.value:Ht=wt}let Et=x.cloneDeep((nt=Object.keys(U))==null?void 0:nt[0]);if(((yt=_==null?void 0:_.data)==null?void 0:yt.statusCode)===200||((Me=_==null?void 0:_.data)==null?void 0:Me.code)===200){if(((We=(Pe=_==null?void 0:_.data)==null?void 0:Pe.data)!=null&&We[Et]||(N=(De=_==null?void 0:_.data)==null?void 0:De.result)!=null&&N[Et])&&(tt==null?void 0:tt.length)===1)return await ie(((me=(pe=_==null?void 0:_.data)==null?void 0:pe.data)==null?void 0:me[Et])||((Ze=(et=_==null?void 0:_.data)==null?void 0:et.result)==null?void 0:Ze[Et]),x.cloneDeep(Ht),tt,E);if((Ct=(Dt=_==null?void 0:_.data)==null?void 0:Dt.data)!=null&&Ct[Et]||(ft=(ut=_==null?void 0:_.data)==null?void 0:ut.result)!=null&&ft[Et]){let wt=await He(((gt=(vt=_==null?void 0:_.data)==null?void 0:vt.data)==null?void 0:gt[Et])||((bt=(Pt=_==null?void 0:_.data)==null?void 0:Pt.result)==null?void 0:bt[Et]),x.cloneDeep(Ht),tt);return wt&&(Z=[...Z,...wt]),wt}else{if(!((Ft=_==null?void 0:_.data)!=null&&Ft.data)){let wt=await Ae.getItemData(D.value,sessionStorage.getItem("systemKey"),"",!1,"","",Ge);wt=wt==null?void 0:wt.map(Ot=>{var Lt;return(Ot==null?void 0:Ot.name)===(tt==null?void 0:tt[0])&&(Ot.compData=(Lt=Ot.compData)==null?void 0:Lt.map(Nt=>{var tn;return(Nt==null?void 0:Nt.key)==="formContent"&&(Nt.contents=(tn=Nt.contents)==null?void 0:tn.map(qt=>{var Vn,Yn;return(qt==null?void 0:qt.key)===(tt==null?void 0:tt[1])&&(qt.value=(Yn=(Vn=_==null?void 0:_.data)==null?void 0:Vn.result)==null?void 0:Yn[Et==null?void 0:Et.replaceAll(":","")]),qt})),Nt})),Ot});let Bt=[];(Rt=wt==null?void 0:wt.filter(Ot=>(Ot==null?void 0:Ot.comp)==="Form"))==null||Rt.forEach(async Ot=>{let Lt={};for(let Nt in Ot)Nt!=="id"&&(Lt[Nt]=Ot[Nt]);Bt.push({id:Ot==null?void 0:Ot.id,value:{pageData:Lt}})}),(Bt==null?void 0:Bt.length)>0&&await ct.batchUpdateInsofDataApi({dataList:Bt});return}if((tt==null?void 0:tt.length)===1){const wt=(Jt=(Wt=(Ut=_==null?void 0:_.data)==null?void 0:Ut.data)==null?void 0:Wt.path)==null?void 0:Jt.path;let Bt="";(Pn=(bn=(Rn=($t=(Qt=wt==null?void 0:wt.split("("))==null?void 0:Qt[1])==null?void 0:$t.split(")"))==null?void 0:Rn[0])==null?void 0:bn.split(":"))==null||Pn.forEach(Nt=>{var tn,qt;Bt=Bt===""?Bt+((tn=Nt==null?void 0:Nt.replaceAll("'",""))==null?void 0:tn.trim()):Bt+"/"+((qt=Nt==null?void 0:Nt.replaceAll("'",""))==null?void 0:qt.trim())});let Ot=[(Un=(jn=($n=(Ln=(kn=wt==null?void 0:wt.split("<"))==null?void 0:kn[1])==null?void 0:Ln.split(">"))==null?void 0:$n[0])==null?void 0:jn.replaceAll("'",""))==null?void 0:Un.trim()],Lt;return(vn=(Tn=(Kn=_==null?void 0:_.data)==null?void 0:Kn.data)==null?void 0:Tn.data)!=null&&vn[tt==null?void 0:tt[0]]?Lt=await ie((mn=(xn=(un=_==null?void 0:_.data)==null?void 0:un.data)==null?void 0:xn.data)==null?void 0:mn[tt==null?void 0:tt[0]],Bt,tt,E):Lt=await $e((pn=(rn=_==null?void 0:_.data)==null?void 0:rn.data)==null?void 0:pn.data,Bt,Ot,Ge),Lt}else{const wt=(In=(Bn=(Wn=_==null?void 0:_.data)==null?void 0:Wn.data)==null?void 0:Bn.path)==null?void 0:In.path;let Bt="";return(Gn=(Nn=(qn=(Hn=(wn=wt==null?void 0:wt.split("("))==null?void 0:wn[1])==null?void 0:Hn.split(")"))==null?void 0:qn[0])==null?void 0:Nn.split(":"))==null||Gn.forEach(Lt=>{var Nt,tn;Bt=Bt===""?Bt+((Nt=Lt==null?void 0:Lt.replaceAll("'",""))==null?void 0:Nt.trim()):Bt+"/"+((tn=Lt==null?void 0:Lt.replaceAll("'",""))==null?void 0:tn.trim())}),await He((_t=(An=(Xn=_==null?void 0:_.data)==null?void 0:Xn.data)==null?void 0:An.data)==null?void 0:_t[tt==null?void 0:tt[0]],Bt,tt)}}}}});if(await Promise.all(L),(Z==null?void 0:Z.length)>0){let U=[];Z==null||Z.forEach(ue=>{U!=null&&U.find(K=>{var ce,Q,Be,se;return((Q=(ce=K==null?void 0:K.value)==null?void 0:ce.pageData)==null?void 0:Q.name)===((se=(Be=ue==null?void 0:ue.value)==null?void 0:Be.pageData)==null?void 0:se.name)})||U.push(ue)});let H=[];U==null||U.forEach(ue=>{var Q,Be,se,_e;let K=x.cloneDeep(ue);K.value.pageData.compData=(Q=K.value.pageData.compData)==null?void 0:Q.map(R=>{var Ie;return(R==null?void 0:R.key)==="formContent"&&(R.contents=(Ie=R.contents)==null?void 0:Ie.map(de=>{var it,qe,Qe,Te;let je=(it=x.cloneDeep(Z))==null?void 0:it.find(pt=>(pt==null?void 0:pt.keyType)===(de==null?void 0:de.key));if(je){let pt=(Te=(Qe=(qe=je.value.pageData.compData)==null?void 0:qe.find(Je=>(Je==null?void 0:Je.key)==="formContent"))==null?void 0:Qe.contents)==null?void 0:Te.find(Je=>(Je==null?void 0:Je.key)===(de==null?void 0:de.key));de.value=pt==null?void 0:pt.value}return de})),R}),H.push({id:K==null?void 0:K.id,value:K==null?void 0:K.value});let ce=[];(_e=(se=(Be=K==null?void 0:K.value)==null?void 0:Be.pageData)==null?void 0:se.compData)==null||_e.forEach(R=>{var Ie;(R==null?void 0:R.key)==="formContent"&&((Ie=R==null?void 0:R.contents)==null||Ie.forEach(de=>{var je,it,qe,Qe,Te,pt;if((it=(je=de==null?void 0:de.optionUrl)==null?void 0:je.menuSelect)!=null&&it.find(Je=>Je==null?void 0:Je.includes("[")))if(ce!=null&&ce.find(Je=>{var Ve,rt,mt;return((Ve=Je==null?void 0:Je.key)==null?void 0:Ve.join(","))===((mt=(rt=de==null?void 0:de.optionUrl)==null?void 0:rt.menuSelect)==null?void 0:mt.join(","))})){let Je=(qe=ce==null?void 0:ce.find(Ve=>{var rt,mt,xt;return((rt=Ve==null?void 0:Ve.key)==null?void 0:rt.join(","))===((xt=(mt=de==null?void 0:de.optionUrl)==null?void 0:mt.menuSelect)==null?void 0:xt.join(","))}))==null?void 0:qe.value;Je.push({key:de==null?void 0:de.prop,groups:(Qe=de==null?void 0:de.optionUrl)==null?void 0:Qe.groupSelect,value:de==null?void 0:de.value}),ce=ce==null?void 0:ce.map(Ve=>{var rt,mt,xt;return((rt=Ve==null?void 0:Ve.key)==null?void 0:rt.join(","))===((xt=(mt=de==null?void 0:de.optionUrl)==null?void 0:mt.menuSelect)==null?void 0:xt.join(","))&&(Ve.value=Je),Ve})}else ce.push({key:(Te=de==null?void 0:de.optionUrl)==null?void 0:Te.menuSelect,value:[{key:de==null?void 0:de.prop,groups:(pt=de==null?void 0:de.optionUrl)==null?void 0:pt.groupSelect,value:de==null?void 0:de.value}]})}))}),(ce==null?void 0:ce.length)>0&&(ce=ce==null?void 0:ce.map(R=>{var de;let Ie="";return(de=R==null?void 0:R.key)==null||de.forEach(je=>{var it;if(!(je!=null&&je.includes("[")))Ie=Ie===""?Ie+je:Ie+"/"+je;else{let qe="",Qe=(it=je==null?void 0:je.replaceAll("[","").replaceAll("]",""))==null?void 0:it.split(":");v==null||v.forEach(Te=>{var pt;(Te==null?void 0:Te.name)===(Qe==null?void 0:Qe[0])&&((pt=Te==null?void 0:Te.compData)==null||pt.forEach(Je=>{var Ve;(Je==null?void 0:Je.key)==="formContent"&&((Ve=Je==null?void 0:Je.contents)==null||Ve.forEach(rt=>{(rt==null?void 0:rt.prop)===(Qe==null?void 0:Qe[1])&&(qe=rt==null?void 0:rt.value)}))}))}),Ie=Ie+r.value+qe}}),R.key=Ie,R})),ce==null||ce.forEach(R=>{var it,qe,Qe;let Ie=(it=Ge[R.key])==null?void 0:it.find(Te=>{var pt,Je,Ve,rt,mt,xt,Ue;return((Je=(pt=Te==null?void 0:Te.value)==null?void 0:pt.pageData)==null?void 0:Je.name)===((mt=(rt=(Ve=R==null?void 0:R.value)==null?void 0:Ve[0])==null?void 0:rt.groups)==null?void 0:mt[0])&&((Ue=(xt=Te==null?void 0:Te.value)==null?void 0:xt.pageData)==null?void 0:Ue.name)!==void 0}),de=Ie==null?void 0:Ie.id,je=(qe=Ie==null?void 0:Ie.value)==null?void 0:qe.pageData;je.compData=(Qe=je.compData)==null?void 0:Qe.map(Te=>{var pt;return(Te==null?void 0:Te.key)==="formContent"&&(Te.contents=(pt=Te.contents)==null?void 0:pt.map(Je=>{var rt;let Ve=(rt=R.value)==null?void 0:rt.find(mt=>(mt==null?void 0:mt.key)===(Je==null?void 0:Je.prop));return Ve&&(Je.value=Ve.value),Je})),Te}),H.push({id:de,value:{pageData:je}})})});let ge=(Ce=x.cloneDeep(Z))==null?void 0:Ce[0];(H==null?void 0:H.length)>0&&await ct.batchUpdateInsofDataApi({dataList:H})}C.setFreshContent(!0)}O.setImportLoading(!1)}catch{ct.ElMessage.error("方法执行错误,请查看方法!"),O.setImportLoading(!1)}k.value=!0},fe=["createInsofDataApi"],Xe=sr(async q=>{le(q)},100),st=async q=>{var ae,xe,B,Le,Fe;const V=x.cloneDeep(q);let ve,ke=new WeakMap,ze=await ct.getPageInsofDataApi({systemKey:sessionStorage.getItem("systemKey"),type:oe.value});(xe=(ae=ze.data.result)==null?void 0:ae.filter(we=>{var ne,X;return((ne=we==null?void 0:we.key)==null?void 0:ne.pageKey)!=="menu"&&((X=we==null?void 0:we.key)==null?void 0:X.pageKey)!=="secret"}))==null||xe.forEach(we=>{ke[we.key.pageKey]?ke[we.key.pageKey]=[...ke[we.key.pageKey],we]:ke[we.key.pageKey]=[we]}),q!=null&&q[0].path&&(ve=await(V==null?void 0:V.map(async(we,ne)=>{var W,J,_,re,Ne,Z,L,U,H,ge,ue,K,ce,Q,Be,se;const te=(W=ke[we==null?void 0:we.path])==null?void 0:W.filter(_e=>{var R;return((R=_e==null?void 0:_e.key)==null?void 0:R.type)==="data"});let Ce="";const Ge=await Ae.getItemData(D.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ke);te==null||te.forEach(_e=>{var R,Ie,de,je,it;((Ie=(R=_e==null?void 0:_e.value)==null?void 0:R.tableData)==null?void 0:Ie.算法名称)===((de=V==null?void 0:V[ne])==null?void 0:de.method)&&(Ce=(it=(je=_e==null?void 0:_e.value)==null?void 0:je.tableData)==null?void 0:it.算法体)});const dt=await Ae.getItemData(we==null?void 0:we.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,ke);let v="",E=(Ne=(re=(_=(J=dt==null?void 0:dt[0])==null?void 0:J.compData)==null?void 0:_.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:re.contents)==null?void 0:Ne.findIndex(_e=>(_e==null?void 0:_e.prop)==="算法体");return(L=(Z=dt==null?void 0:dt[0])==null?void 0:Z.compData)==null||L.forEach(_e=>{var R;(_e==null?void 0:_e.key)==="tableContents"&&((R=_e==null?void 0:_e.contents)==null||R.forEach(Ie=>{Ie!=null&&Ie.find(de=>de===(we==null?void 0:we.method))&&(v=Ie[E])}))}),{buttonName:((U=V==null?void 0:V[ne])==null?void 0:U.method)||((ue=(ge=(H=te==null?void 0:te[0])==null?void 0:H.value)==null?void 0:ge.tableData)==null?void 0:ue.算法名称),api:(Ce===""?(Q=(ce=(K=te==null?void 0:te[0])==null?void 0:K.value)==null?void 0:ce.tableData)==null?void 0:Q.算法体:Ce)||v,content:Ge==null?void 0:Ge.filter(_e=>_e.comp!=="methodButton"),extraContent:(Be=x.cloneDeep(we.value))==null?void 0:Be.slice(1),methodName:(we==null?void 0:we.path)??"",extraValues:(se=V==null?void 0:V[ne])==null?void 0:se.data}})));const Se=V==null?void 0:V.map(async we=>{var dt,v,E,W,J,_;const ne=(dt=ze.data.result)==null?void 0:dt.filter(re=>{var Ne,Z,L;return((Ne=re==null?void 0:re.key)==null?void 0:Ne.parentTable)===""&&((Z=re==null?void 0:re.key)==null?void 0:Z.type)==="method"&&((L=re==null?void 0:re.key)==null?void 0:L.methodName)===re.method}),X=ne==null?void 0:ne[0],te=(v=ze.data.result)==null?void 0:v.filter(re=>{var Ne,Z;return((Ne=re==null?void 0:re.key)==null?void 0:Ne.type)==="methodData"&&((Z=re==null?void 0:re.key)==null?void 0:Z.tableId)===(X==null?void 0:X.id)}),Ce=await Ae.getItemData(D.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ke),Ge=te==null?void 0:te[0];return{buttonName:(E=X==null?void 0:X.key)==null?void 0:E.methodKey,api:(J=(W=Ge==null?void 0:Ge.value)==null?void 0:W.tableData)==null?void 0:J[0],content:Ce==null?void 0:Ce.filter(re=>re.comp!=="methodButton"),extraContent:(_=x.cloneDeep(we.value))==null?void 0:_.slice(1),methodName:(we==null?void 0:we.method)??""}}),Ye=(B=q==null?void 0:q[0])!=null&&B.path&&((Le=q==null?void 0:q[0])==null?void 0:Le.path)!==""?await Promise.all(ve):await Promise.all(Se);i.value=Ye==null?void 0:Ye.filter(we=>we==null?void 0:we.extraContent),(Fe=i.value)==null||Fe.forEach(we=>{var ne;we.api===""&&((ne=we.content)==null||ne.forEach(X=>{var te;X.comp=="Table"&&C.setExtraContents(Ae.methodTableToContent(X.compData,(te=we.extraContent)==null?void 0:te[0]))}))})};return e.watch(()=>p.itemData,async()=>{P.value=="view"&&!k.value&&await st(x.cloneDeep(p.itemData)),k.value=!1},{immediate:!0,deep:!0}),(q,V)=>{var ve,ke,ze;return e.unref(P)!=="edit"?(e.openBlock(),e.createElementBlock("div",kc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ve=i.value)==null?void 0:ve.filter(Se=>(Se==null?void 0:Se.buttonName)!=="保存"),Se=>{var Ye;return e.openBlock(),e.createElementBlock("div",null,[Se.api!==""?(e.openBlock(),e.createBlock(e.unref(Do._sfc_main),{key:0,disabled:e.unref(j)===e.unref(D)&&!((Ye=Se==null?void 0:Se.buttonName)!=null&&Ye.includes("预览")),class:"calculator-content",modelValue:Se.buttonName,onClickTrigger:ae=>e.unref(Xe)(Se),loading:S.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)])}),256)),e.createElementVNode("div",null,[e.unref(be)!==""&&((ze=e.unref(D))==null?void 0:ze[((ke=e.unref(D))==null?void 0:ke.length)-1])!==e.unref(r)?(e.openBlock(),e.createBlock(e.unref(Do._sfc_main),{key:0,class:"calculator-content",onClickTrigger:G,modelValue:"保存"})):e.createCommentVNode("",!0)]),u.value?(e.openBlock(),e.createBlock(It.ssFilePreview,{key:0,fileDataList:w.value,onDestroy:he},null,8,["fileDataList"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},wc=zt._export_sfc(xc,[["__scopeId","data-v-11fca7e0"]]),Cc={};function Dc(o,i){return" 567 "}const _c=zt._export_sfc(Cc,[["render",Dc]]),Ec={class:"module content"},Sc={class:"module data"},Tc={class:"module layout"},Bc={class:"form-content"},Ic=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(o,{emit:i}){const c=o,r=i,p=e.reactive({visible:!1,width:"40%",title:"签名配置"}),u=e.ref("create"),w=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=e.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),f=e.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),C=e.ref({}),S=e.ref([]),O=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:S.value},{key:"signConfig",contents:C.value}]}),z=T=>{var j;C.value=x.cloneDeep(T),r("change",(j=O())==null?void 0:j.compData)},ee=T=>{var j,oe;if((T==null?void 0:T.buttonName)==="确认"){const D=x.cloneDeep(T==null?void 0:T.content);switch(u.value){case"create":S.value.push({...D,index:((j=S.value)==null?void 0:j.length)+1});break}r("change",(oe=O())==null?void 0:oe.compData),p.visible=!1}else p.visible=!1},P=(T,j)=>{var oe,D;switch(T){case"create":(oe=f.value)==null||oe.forEach(F=>{F.value=""}),u.value="create",p.visible=!0;break;case"update":(D=f.value)==null||D.forEach(F=>{F.value=j[F==null?void 0:F.prop]}),u.value="update",p.visible=!0;break;case"delete":S.value.splice(j,1),u.value="delete";break}},be=()=>{p.visible=!1};return e.watch(()=>c==null?void 0:c.itemContents,T=>{var j,oe;T&&(C.value=((j=T==null?void 0:T.find(D=>D.key==="signConfig"))==null?void 0:j.contents)??{},S.value=((oe=T==null?void 0:T.find(D=>D.key==="signTypeList"))==null?void 0:oe.contents)??[])},{immediate:!0}),(T,j)=>{const oe=e.resolveComponent("svg-icon"),D=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",Ec,[j[2]||(j[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(D,{class:"module-icon",id:"themeButton",onClick:j[0]||(j[0]=F=>P("create"))},{icon:e.withCtx(()=>[e.createVNode(oe,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[1]||(j[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",Sc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(F,y)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:y},[e.createElementVNode("span",null,e.toDisplayString(F==null?void 0:F.label),1),e.createElementVNode("div",null,[e.createVNode(D,{type:"primary",size:"small",onClick:b=>P("update",{...F,index:y+1})},{default:e.withCtx(()=>j[3]||(j[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(D,{type:"danger",size:"small",onClick:b=>P("delete",y)},{default:e.withCtx(()=>j[4]||(j[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",Tc,[e.createVNode(It.ssForm,{rowContents:h.value,onChange:z},null,8,["rowContents"])])]),e.createVNode(Xt.ssDialog,{visible:p.visible,title:p.title,onBeforeDestroy:be,width:p.width},{default:e.withCtx(()=>[e.createElementVNode("div",Bc,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:f.value,key:f.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:w.value,onOnButtonClick:ee},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Nc=zt._export_sfc(Ic,[["__scopeId","data-v-487e0536"]]),Ac=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(o,{emit:i}){const c=o,r=i,p=e.ref(1),u=e.computed(()=>{var O,z;return(O=c==null?void 0:c.stepConfig)!=null&&O.allowTrigger?p.value:(z=c==null?void 0:c.stepConfig)==null?void 0:z.active}),w=(O,z)=>{p.value=z,r("clickStep",O,z)},h=O=>It.getComponent(O),f=()=>{var z;const O=(z=c==null?void 0:c.stepList)==null?void 0:z.find((ee,P)=>P+1===u.value);return console.log("findStep",O),O?O==null?void 0:O.children:[]},C=O=>{r("clickTrigger",O)},S=O=>{r("changeTrigger",O)};return(O,z)=>{var be,T,j,oe,D;const ee=e.resolveComponent("el-step"),P=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(P,{direction:(be=o.stepConfig)==null?void 0:be.direction,active:u.value,"finish-status":"success",simple:(T=o.stepConfig)==null?void 0:T.simple,"align-center":((j=o.stepConfig)==null?void 0:j.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.stepList,(F,y)=>(e.openBlock(),e.createBlock(ee,{key:y,class:"step-item",onClick:b=>w(F,y+1)},{title:e.withCtx(()=>[e.renderSlot(O.$slots,"title",{title:F==null?void 0:F.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(O.$slots,"description",{description:F==null?void 0:F.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(oe=o.stepConfig)!=null&&oe.allowTrigger&&((D=o.stepConfig)!=null&&D.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(f(),(F,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h(F==null?void 0:F.type)),{modelValue:F.value,"onUpdate:modelValue":b=>F.value=b,onClickTrigger:C,onChangeTrigger:S,content:F==null?void 0:F.content},e.createSlots({_:2},[e.renderList(O.$slots,(b,k)=>({name:k,fn:e.withCtx(G=>[e.renderSlot(O.$slots,k,e.mergeProps({ref_for:!0},G||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),Vc=zt._export_sfc(Ac,[["__scopeId","data-v-d7c99969"]]),Oc=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(o,{emit:i}){const c=o,r=i,p=e.ref({}),u=e.ref([]),w=(h,f)=>{r("clickStep",h,f)};return e.watch(()=>c==null?void 0:c.itemData,h=>{var f,C;u.value=(f=h==null?void 0:h.find(S=>(S==null?void 0:S.key)==="stepList"))==null?void 0:f.contents,p.value=(C=h==null?void 0:h.find(S=>(S==null?void 0:S.key)==="stepConfig"))==null?void 0:C.contents},{immediate:!0,deep:!0}),(h,f)=>{const C=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(Vc,{stepConfig:p.value,stepList:u.value,onClickStep:w},{icon:e.withCtx(()=>[e.createVNode(C,{name:"import"})]),title:e.withCtx(({title:S})=>[e.createTextVNode(e.toDisplayString(S),1)]),description:e.withCtx(({description:S})=>[e.createTextVNode(e.toDisplayString(S),1)]),_:1},8,["stepConfig","stepList"])}}}),Mc=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(o){return(i,c)=>{const r=e.resolveComponent("el-timeline-item"),p=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(p,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.activities,(u,w)=>(e.openBlock(),e.createBlock(r,{key:w,timestamp:u.timestamp,placement:o.timeLineConfig.placement,center:o.timeLineConfig.isCenter,"hide-timestamp":!0,type:o.timeLineConfig.type,color:o.timeLineConfig.color,size:o.timeLineConfig.size,icon:o.timeLineConfig.icon,hollow:o.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"content",{content:u==null?void 0:u.content,timestamp:u==null?void 0:u.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),zc=zt._export_sfc(Mc,[["__scopeId","data-v-4172a886"]]),Fc={class:"line-content"},Rc={class:"line-time"},Pc=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(o){const i=o,c=e.ref({}),r=e.ref([]);return e.watch(()=>i==null?void 0:i.itemData,p=>{var u,w;r.value=(u=p==null?void 0:p.find(h=>(h==null?void 0:h.key)==="timeLineList"))==null?void 0:u.contents,c.value=(w=p==null?void 0:p.find(h=>(h==null?void 0:h.key)==="timeLineConfig"))==null?void 0:w.contents},{immediate:!0}),(p,u)=>(e.openBlock(),e.createBlock(zc,{activities:r.value,timeLineConfig:c.value},{content:e.withCtx(({content:w,timestamp:h})=>[e.createElementVNode("span",Fc,e.toDisplayString(w),1),e.createElementVNode("span",Rc,e.toDisplayString(h),1)]),_:1},8,["activities","timeLineConfig"]))}}),Lc=zt._export_sfc(Pc,[["__scopeId","data-v-b4d9deed"]]);var Ma={exports:{}},$c=Ma.exports,Io;function jc(){return Io||(Io=1,function(o,i){(function(c,r){r()})($c,function(){function c(C,S){return typeof S>"u"?S={autoBom:!1}:typeof S!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),S={autoBom:!S}),S.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(C.type)?new Blob(["\uFEFF",C],{type:C.type}):C}function r(C,S,O){var z=new XMLHttpRequest;z.open("GET",C),z.responseType="blob",z.onload=function(){f(z.response,S,O)},z.onerror=function(){console.error("could not download file")},z.send()}function p(C){var S=new XMLHttpRequest;S.open("HEAD",C,!1);try{S.send()}catch{}return 200<=S.status&&299>=S.status}function u(C){try{C.dispatchEvent(new MouseEvent("click"))}catch{var S=document.createEvent("MouseEvents");S.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),C.dispatchEvent(S)}}var w=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ae.commonjsGlobal=="object"&&Ae.commonjsGlobal.global===Ae.commonjsGlobal?Ae.commonjsGlobal:void 0,h=w.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=w.saveAs||(typeof window!="object"||window!==w?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(C,S,O){var z=w.URL||w.webkitURL,ee=document.createElement("a");S=S||C.name||"download",ee.download=S,ee.rel="noopener",typeof C=="string"?(ee.href=C,ee.origin===location.origin?u(ee):p(ee.href)?r(C,S,O):u(ee,ee.target="_blank")):(ee.href=z.createObjectURL(C),setTimeout(function(){z.revokeObjectURL(ee.href)},4e4),setTimeout(function(){u(ee)},0))}:"msSaveOrOpenBlob"in navigator?function(C,S,O){if(S=S||C.name||"download",typeof C!="string")navigator.msSaveOrOpenBlob(c(C,O),S);else if(p(C))r(C,S,O);else{var z=document.createElement("a");z.href=C,z.target="_blank",setTimeout(function(){u(z)})}}:function(C,S,O,z){if(z=z||open("","_blank"),z&&(z.document.title=z.document.body.innerText="downloading..."),typeof C=="string")return r(C,S,O);var ee=C.type==="application/octet-stream",P=/constructor/i.test(w.HTMLElement)||w.safari,be=/CriOS\/[\d]+/.test(navigator.userAgent);if((be||ee&&P||h)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var D=T.result;D=be?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=D:location=D,z=null},T.readAsDataURL(C)}else{var j=w.URL||w.webkitURL,oe=j.createObjectURL(C);z?z.location=oe:location.href=oe,z=null,setTimeout(function(){j.revokeObjectURL(oe)},4e4)}});w.saveAs=f.saveAs=f,o.exports=f})}(Ma)),Ma.exports}jc();const La=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CVwsrCrZ.cjs")).then(o=>o.index));La.install=o=>{o.component("ssMenu",La)};const yr={__name:"index",props:{name:String},setup(o){const i=o,c=e.computed(()=>ct.ElIcons[i.name]);return e.onMounted(()=>{}),(r,p)=>{const u=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(u,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value)))]),_:1})}}},br=(o,i,c=0)=>{let r=o;return r!=null&&r.every(p=>Array.isArray(p))&&(r!=null&&r.every(p=>Array.isArray(p)&&p.length===1)?r=r==null?void 0:r.filter(p=>(p==null?void 0:p[0])!==(i==null?void 0:i[c])):r=r==null?void 0:r.map(p=>{if(p!=null&&p.find(u=>u===(i==null?void 0:i[c]))&&(i==null?void 0:i.length)!==1){let u=x.cloneDeep(i),w=p==null?void 0:p.filter(S=>S!==(u==null?void 0:u[c])),h=c+1,f=br(w,u,h),C=[];C.push(p==null?void 0:p[0]),f==null||f.forEach(S=>{C.push(S)}),p=C}return p})),r},kr=(o,i,c,r=0)=>{let p=o;return p!=null&&p.every(u=>Array.isArray(u))&&(p!=null&&p.every(u=>Array.isArray(u)&&u.length===1)?p.push([c]):p=p==null?void 0:p.map(u=>{if(u!=null&&u.find(w=>w===(i==null?void 0:i[r]))&&(i==null?void 0:i.length)!==1){let w=x.cloneDeep(i),h=u==null?void 0:u.filter(O=>O!==(w==null?void 0:w[r])),f=r+1,C=kr(h,w,c,f),S=[];S.push(u==null?void 0:u[0]),C==null||C.forEach(O=>{S.push(O)}),u=S}return u})),p},xr=(o,i,c,r,p=0)=>{let u=o;return u!=null&&u.every(w=>Array.isArray(w))&&(u!=null&&u.every(w=>Array.isArray(w)&&w.length===1)?u=u==null?void 0:u.map(w=>((w==null?void 0:w[0])===c&&(w=[r]),w)):u=u==null?void 0:u.map(w=>{if(w!=null&&w.find(h=>h===(i==null?void 0:i[p]))&&(i==null?void 0:i.length)!==1){let h=x.cloneDeep(i),f=w==null?void 0:w.filter(z=>z!==(h==null?void 0:h[p])),C=p+1,S=xr(f,h,c,r,C),O=[];O.push(w==null?void 0:w[0]),S==null||S.forEach(z=>{O.push(z)}),w=O}return w})),u};function wr(o="menu"){return{name:o,components:{SvgIcon:Ol.SvgIcon,ssMenu:La,DynamicIcon:yr,ssDialog:Xt.ssDialog,ssInput:It._sfc_main$2},setup(i,{emit:c}){const r=e.defineProps({mode:{type:String,default:"vertical"}}),p=e.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),u=x.useMenuState(),w=x.useModelComp(x.pinia),h=x.useLoginState(x.pinia),{loginUserInfo:f}=x.storeToRefs(h),C=e.ref(0),S=Ml.useRouter(),O=e.ref(),{asideMenus:z,menuTriggerType:ee,platform:P}=x.storeToRefs(u),{fixMenuStatus:be}=x.storeToRefs(w),T=e.computed(()=>r==null?void 0:r.mode),j=ae=>ae==null?void 0:ae.map(B=>{var Le,Fe;return!(B!=null&&B.children)||((Le=B==null?void 0:B.children)==null?void 0:Le.length)===0?B.config=p.value:B!=null&&B.children&&((Fe=B==null?void 0:B.children)==null?void 0:Fe.length)>0&&(B.children=j(B.children)),B}),oe=e.computed(()=>{let ae=[...z.value];if((ae==null?void 0:ae.length)===0)return S.push("/"),[];const xe=G(ae,k.value);return xe.isFlag||(ae=xe==null?void 0:xe.data),ae=ae==null?void 0:ae.map(B=>{var Le,Fe;return!(B!=null&&B.children)||((Le=B==null?void 0:B.children)==null?void 0:Le.length)===0?B.config=p.value:B!=null&&B.children&&((Fe=B==null?void 0:B.children)==null?void 0:Fe.length)>0&&(B.children=j(B.children)),B}),ae}),D=async(ae,xe)=>{w.setRouteToChildPath(""),u.setMenuTriggerType("click"),u.setActiveMenuPath(ae==null?void 0:ae.path),u.setActiveAsideMenu(ae),ae.isRouter?S.push(ae.path):S.push("/"),c("node-click",ae,xe)},F=async ae=>{const xe=zl.findNodeByPropInTree(oe.value,"path",ae);u.setActiveAsideMenu(xe),w.setRouteToChildPath(""),be.value?w.setFixMenuStatus(!1):(Se.value&&(ee.value="open"),ee.value==="click"?C.value===1?u.setActiveMenuPath(sessionStorage.getItem("pageKey")):u.setActiveMenuPath(ae):Se.value||(u.setMenuTriggerType("click"),u.setActiveMenuPath(ae))),ae!=null&&ae.startsWith("/")?S.push(ae):S.push("/"),C.value++},y=ae=>{Se.value||u.setActiveMenuPath(ae)},b=ae=>{const xe=document.documentElement;ae==null||ae.forEach(B=>{xe.style.setProperty(B.name,B.value)})};e.onMounted(()=>{C.value=1});const k=e.computed(()=>{const ae=sessionStorage.getItem("authority");return ae?JSON.parse(ae):[]});e.watch(()=>P.value,ae=>{ae==="browser"?b(ma.browserVerticalMenuClasses):ae==="client"?(b(ma.clientHorizontalMenuClasses),b(ma.clientVerticalMenuClasses)):ae==="three"&&(b(ma.threeHorizontalMenuClasses),b(ma.threeVerticalMenuClasses))},{immediate:!0});const G=(ae,xe)=>({isFlag:!0}),he=e.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),ot=ae=>oa(ae),Ee=e.ref({}),He=e.ref([]),$e=e.ref({}),M=e.ref({}),ie=ae=>{switch(ae){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},le=e.ref({}),fe=ae=>{u.setCacheInputMenu({type:he.type,data:ae}),u.setIsRefreshMenus(!0)},Xe=async(ae,xe,B)=>{var Le,Fe,we,ne,X,te,Ce,Ge,dt,v,E,W,J,_,re,Ne,Z,L,U,H,ge,ue,K,ce,Q,Be,se,_e,R,Ie,de,je,it,qe,Qe,Te,pt,Je,Ve,rt,mt,xt;if(xe==="create"){let Ue=(B==null?void 0:B.title)+"(1)",nt=await ct.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),yt=(Fe=(Le=nt==null?void 0:nt.data)==null?void 0:Le.result)==null?void 0:Fe[0],Me=(we=yt==null?void 0:yt.value)==null?void 0:we.pageData;Me.compData=(ne=Me.compData)==null?void 0:ne.map(De=>{var N;return(De==null?void 0:De.key)==="menuContents"&&(De.contents=kr(De.contents,(N=B==null?void 0:B.path)==null?void 0:N.split("/"),Ue)),De}),await ct.updateInsofDataApi({id:yt==null?void 0:yt.id,value:{pageData:Me}});let Pe=(te=(X=B==null?void 0:B.path)==null?void 0:X.split("/"))==null?void 0:te.filter((De,N)=>{var pe,me;return N!==((me=(pe=B==null?void 0:B.path)==null?void 0:pe.split("/"))==null?void 0:me.length)-1}),We=await Ae.getItemData((dt=(Ge=(Ce=B==null?void 0:B.path)==null?void 0:Ce.split("/"))==null?void 0:Ge.filter((De,N)=>{var pe,me;return N!==((me=(pe=B==null?void 0:B.path)==null?void 0:pe.split("/"))==null?void 0:me.length)-1}))==null?void 0:dt.join("/"),sessionStorage.getItem("systemKey"),"");if(Pe.push(Ue),Pe=Pe==null?void 0:Pe.join("/"),(We==null?void 0:We.length)>0){let De=We==null?void 0:We[0],N=(E=(v=De==null?void 0:De.compData)==null?void 0:v.find(pe=>(pe==null?void 0:pe.key)==="header"))==null?void 0:E.contents;if(((W=N==null?void 0:N[0])==null?void 0:W.directiveLabel)==="#isMain"){let pe=(J=N==null?void 0:N[0])==null?void 0:J.prop,me=(re=(_=De==null?void 0:De.compData)==null?void 0:_.find(Ze=>(Ze==null?void 0:Ze.key)==="tableContents"))==null?void 0:re.contents,et;me==null||me.forEach(Ze=>{var Dt,Ct;if(Ze.length===1)((Dt=Ze==null?void 0:Ze[0])==null?void 0:Dt[pe])===(B==null?void 0:B.title)&&(et=Ze==null?void 0:Ze[0],et[pe]=Ue);else{let ut=(Ct=N==null?void 0:N.filter(gt=>gt!=="操作"))==null?void 0:Ct.map(gt=>gt==null?void 0:gt.prop),ft=Ze==null?void 0:Ze.filter(gt=>!(gt!=null&&gt.id)),vt=Ae.getValueToObjectValue(ft,ut);vt[pe]=Ue,et=vt}}),await ct.createInsofDataApi({key:{type:"data",pageKey:(L=(Z=(Ne=B==null?void 0:B.path)==null?void 0:Ne.split("/"))==null?void 0:Z.filter((Ze,Dt)=>{var Ct,ut;return Dt!==((ut=(Ct=B==null?void 0:B.path)==null?void 0:Ct.split("/"))==null?void 0:ut.length)-1}))==null?void 0:L.join("/"),tableId:De==null?void 0:De.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(U=f.value)==null?void 0:U.id,createUserLayer:((H=f.value)==null?void 0:H.dept)||((ge=f.value)==null?void 0:ge.部门名称)},value:{tableData:et}})}}await Ae.newLoadingConstruct(B==null?void 0:B.path,Pe),u.setUpdateMenuStatus(!1),await Za.verifyStructureDataToStore(),u.setActiveMenuPath((ce=(K=(ue=B==null?void 0:B.path)==null?void 0:ue.split("/"))==null?void 0:K.filter((De,N)=>{var pe,me;return N!==((me=(pe=B==null?void 0:B.path)==null?void 0:pe.split("/"))==null?void 0:me.length)-1}))==null?void 0:ce.join("/")),u.setActiveTopMenuPath((Be=(Q=B==null?void 0:B.path)==null?void 0:Q.split("/"))==null?void 0:Be[0]),u.setIsRefreshMenus(!1),u.setIsRefreshMenus(!0)}else if(xe==="update")O.value=B;else if(xe==="delete"){let Ue=await ct.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:B==null?void 0:B.path}}),nt=await ct.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),yt=(_e=(se=nt==null?void 0:nt.data)==null?void 0:se.result)==null?void 0:_e[0],Me=(R=yt==null?void 0:yt.value)==null?void 0:R.pageData;if(Me.compData=(Ie=Me.compData)==null?void 0:Ie.map(De=>{var N;return(De==null?void 0:De.key)==="menuContents"&&(De.contents=br(De.contents,(N=B==null?void 0:B.path)==null?void 0:N.split("/"))),De}),await ct.updateInsofDataApi({id:yt==null?void 0:yt.id,value:{pageData:Me}}),((je=(de=Ue==null?void 0:Ue.data)==null?void 0:de.result)==null?void 0:je.length)>0){let De=(qe=(it=Ue==null?void 0:Ue.data)==null?void 0:it.result)==null?void 0:qe.map(N=>N==null?void 0:N.id);(De==null?void 0:De.length)>0&&await ct.batchDeleteInsofDataApi({ids:De})}let Pe=await Ae.getItemData((pt=(Te=(Qe=B==null?void 0:B.path)==null?void 0:Qe.split("/"))==null?void 0:Te.filter((De,N)=>{var pe,me;return N!==((me=(pe=B==null?void 0:B.path)==null?void 0:pe.split("/"))==null?void 0:me.length)-1}))==null?void 0:pt.join("/"),sessionStorage.getItem("systemKey"),""),We=[];(Pe==null?void 0:Pe.length)>0&&(Pe==null||Pe.forEach(De=>{var pe,me,et,Ze,Dt,Ct,ut,ft,vt,gt,Pt;let N=(Ze=(et=(me=(pe=De==null?void 0:De.compData)==null?void 0:pe.find(bt=>(bt==null?void 0:bt.key)==="header"))==null?void 0:me.contents)==null?void 0:et[0])==null?void 0:Ze.prop;((ft=(ut=(Ct=(Dt=De==null?void 0:De.compData)==null?void 0:Dt.find(bt=>(bt==null?void 0:bt.key)==="header"))==null?void 0:Ct.contents)==null?void 0:ut[0])==null?void 0:ft.directiveLabel)==="#isMain"&&((Pt=(gt=(vt=De==null?void 0:De.compData)==null?void 0:vt.find(bt=>(bt==null?void 0:bt.key)==="tableContents"))==null?void 0:gt.contents)==null||Pt.forEach(bt=>{var Ft,Rt,Ut;(bt==null?void 0:bt.length)>1?(bt==null?void 0:bt[1])===(B==null?void 0:B.title)&&We.push((Ft=bt==null?void 0:bt[0])==null?void 0:Ft.id):((Rt=bt==null?void 0:bt[0])==null?void 0:Rt[N])===(B==null?void 0:B.title)&&We.push((Ut=bt==null?void 0:bt[0])==null?void 0:Ut.id)}))})),(We==null?void 0:We.length)>0&&await ct.batchDeleteInsofDataApi({ids:We}),u.setUpdateMenuStatus(!1),await Za.verifyStructureDataToStore(),u.setActiveMenuPath((rt=(Ve=(Je=B==null?void 0:B.path)==null?void 0:Je.split("/"))==null?void 0:Ve.filter((De,N)=>{var pe,me;return N!==((me=(pe=B==null?void 0:B.path)==null?void 0:pe.split("/"))==null?void 0:me.length)-1}))==null?void 0:rt.join("/")),u.setActiveTopMenuPath((xt=(mt=B==null?void 0:B.path)==null?void 0:mt.split("/"))==null?void 0:xt[0]),u.setIsRefreshMenus(!1),u.setIsRefreshMenus(!0)}},st=async(ae,xe)=>{var Ge,dt,v,E,W,J,_,re,Ne,Z,L,U,H,ge,ue,K,ce,Q,Be,se,_e,R,Ie,de,je,it,qe,Qe,Te,pt,Je;let B=await ct.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),Le=(dt=(Ge=B==null?void 0:B.data)==null?void 0:Ge.result)==null?void 0:dt[0],Fe=(v=Le==null?void 0:Le.value)==null?void 0:v.pageData;Fe.compData=(E=Fe.compData)==null?void 0:E.map(Ve=>{var rt,mt;return(Ve==null?void 0:Ve.key)==="menuContents"&&(Ve.contents=xr(Ve.contents,(rt=xe==null?void 0:xe.path)==null?void 0:rt.split("/"),xe==null?void 0:xe.title,(mt=ae==null?void 0:ae.target)==null?void 0:mt.value)),Ve}),Le!=null&&Le.id&&await ct.updateInsofDataApi({id:Le==null?void 0:Le.id,value:{pageData:Fe}});let we=(J=(W=xe==null?void 0:xe.path)==null?void 0:W.split("/"))==null?void 0:J.filter((Ve,rt)=>{var mt,xt;return rt!==((xt=(mt=xe==null?void 0:xe.path)==null?void 0:mt.split("/"))==null?void 0:xt.length)-1}),ne=we==null?void 0:we.join("/");we.push((_=ae==null?void 0:ae.target)==null?void 0:_.value),we=we==null?void 0:we.join("/");let X=await Ae.getItemData(ne,sessionStorage.getItem("systemKey"),"");if(((U=(L=(Z=(Ne=(re=X==null?void 0:X[0])==null?void 0:re.compData)==null?void 0:Ne.find(Ve=>(Ve==null?void 0:Ve.key)==="header"))==null?void 0:Z.contents)==null?void 0:L[0])==null?void 0:U.directiveLabel)==="#isMain"){let Ve=(ce=(K=(ue=(ge=(H=X==null?void 0:X[0])==null?void 0:H.compData)==null?void 0:ge.find(Ue=>(Ue==null?void 0:Ue.key)==="header"))==null?void 0:ue.contents)==null?void 0:K[0])==null?void 0:ce.prop,rt=(se=(Be=(Q=X==null?void 0:X[0])==null?void 0:Q.compData)==null?void 0:Be.find(Ue=>(Ue==null?void 0:Ue.key)==="tableContents"))==null?void 0:se.contents,mt=(de=(Ie=(R=(_e=X==null?void 0:X[0])==null?void 0:_e.compData)==null?void 0:R.find(Ue=>(Ue==null?void 0:Ue.key)==="header"))==null?void 0:Ie.contents)==null?void 0:de.map(Ue=>Ue==null?void 0:Ue.prop),xt;if(rt==null||rt.forEach(Ue=>{var yt;let nt=Ae.getValueToObjectValue(Ue,mt);(nt==null?void 0:nt[Ve])===xe.title&&(xt=nt,xt[Ve]=(yt=ae==null?void 0:ae.target)==null?void 0:yt.value)}),xt){let Ue={};for(let yt in xt)yt!=="id"&&(Ue[yt]=xt==null?void 0:xt[yt]);let nt=[{id:xt==null?void 0:xt.id,value:{tableData:Ue}}];await ct.batchUpdateInsofDataApi({dataList:nt})}}let te=await ct.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:xe==null?void 0:xe.path}}),Ce=(it=(je=te==null?void 0:te.data)==null?void 0:je.result)==null?void 0:it.map(Ve=>({id:Ve==null?void 0:Ve.id,key:Ve==null?void 0:Ve.key}));Ce=Ce==null?void 0:Ce.map(Ve=>(Ve.key.pageKey=we,Ve)),(Ce==null?void 0:Ce.length)>0&&await ct.batchUpdateInsofDataApi({dataList:Ce}),u.setUpdateMenuStatus(!1),await Za.verifyStructureDataToStore(),u.setActiveMenuPath((Te=(Qe=(qe=xe==null?void 0:xe.path)==null?void 0:qe.split("/"))==null?void 0:Qe.filter((Ve,rt)=>{var mt,xt;return rt!==((xt=(mt=xe==null?void 0:xe.path)==null?void 0:mt.split("/"))==null?void 0:xt.length)-1}))==null?void 0:Te.join("/")),u.setActiveTopMenuPath((Je=(pt=xe==null?void 0:xe.path)==null?void 0:pt.split("/"))==null?void 0:Je[0]),u.setIsRefreshMenus(!1),u.setIsRefreshMenus(!0),O.value=void 0},q=async(ae,xe)=>{he.type=ie(xe==null?void 0:xe.operateType),await Xe(xe,he.type,ae),M.value=ae,le.value=xe},V=()=>{he.show=!1},ve=ae=>ae==null?void 0:ae.filter(xe=>xe.allowInherit),ke=()=>{var B,Le,Fe,we,ne;let ae;he.type==="create"&&(ae=((B=M.value)==null?void 0:B.path)+"/"+$e.value[(Le=$e.value)==null?void 0:Le.prop]),he.type==="update"&&(ae=(Fe=M.value)==null?void 0:Fe.path);const xe={...M.value,config:ve((we=M.value)==null?void 0:we.config),children:[],childMenus:[],title:$e.value[(ne=$e.value)==null?void 0:ne.prop],path:ae};console.log("clickSubmitForm",le.value,M.value,xe),fe(xe),he.show=!1},ze=ae=>{var B,Le;const xe=(B=ae==null?void 0:ae.contents)==null?void 0:B.find(Fe=>Fe.key==="formContent");xe&&($e.value=(Le=xe==null?void 0:xe.contents)==null?void 0:Le.reduce((Fe,we)=>(Fe[we.key]=we.value,Fe.prop=we.key,Fe),{}))},Se=e.ref(!1);return{isCollapse:Se,handleMenuCollapse:()=>{Se.value=!Se.value},handleCompChange:ze,dialogForm:Ee,dialogRenderComps:He,getComponents:ot,clickSubmitForm:ke,dialogInfo:he,beforeDialogDestroy:V,clickMenuIcon:q,mode:T,renderMenuList:oe,clickMenu:D,openMenu:F,closeMenu:y,changeMenuStyle:b,fixElement:O,onBlur:st}}}}e.defineComponent(wr());const Uc=x.useLoginState(),{loginUserInfo:jt}=x.storeToRefs(Uc),Gt=x.useModelComp(x.pinia),Kc=e.ref(!1),{itemData:Wc,itemGridData:ea,curStructureCompIds:No,isSubmitCurStructure:Hc,isRefreshCurStructure:Zp,routeToChildPath:qc,pageMapState:oo,itemExtendData:Na,refreshTable:Gc}=x.storeToRefs(Gt),Zt=x.useMenuState(x.pinia),qa=e.ref(),{activeTopMenuPath:Xc,activeMenuPath:Yt,platform:Qp,activeAsideMenu:ef,buttonTriggerType:Yc,menus:tf,currentMenuPath:nf}=x.storeToRefs(Zt),yn=x.useUnit(x.pinia),{selectTitle:co,chooseTitle:Ao}=x.storeToRefs(yn),Jc=Ae.useOriginalState(x.pinia),{originalPath:af}=x.storeToRefs(Jc);e.ref();x.useAuthorityState(x.pinia);const $a=e.ref(!0),da=e.ref(0),ro=e.ref([]);e.ref(!1);const uo=e.ref(!1),wa=e.ref(),Cr=e.ref(),Dr=e.ref(),Zc=()=>{Gt.setItemGridData([]),Gt.setIsEdit("edit"),Gt.setSubmitCurStructure(Yt.value!=="/平台管理/菜单管理")},Qc=()=>{Gt.setIsEdit("view"),Gt.setRefreshCurStructure(!0)},eu=async o=>{var p;let i=co.value,c=i==null?void 0:i.findIndex(u=>(u==null?void 0:u.value)===(o==null?void 0:o.value)),r=i==null?void 0:i.filter((u,w)=>w<=c);yn.setSelectTitle(x.cloneDeep(r)),r=(p=r==null?void 0:r.map(u=>u==null?void 0:u.value))==null?void 0:p.join("/"),Zt.setActiveMenuPath(null),Zt.setActiveMenuPath(r)},eo=async(o,i,c,r="contentConfig")=>{var p;try{if(!Array.isArray(o))return;let u,w;i==="create"?(u={dataList:o==null?void 0:o.map(f=>{var C;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:c!=null&&c.startsWith("/")?c==null?void 0:c.substring(1):c,type:"structure",structureBelong:r,parentTable:"",version:1},value:{pageData:{...f,compData:(C=f==null?void 0:f.compData)==null?void 0:C.filter(S=>(S==null?void 0:S.key)!=="tableContents")}}}})},w=ct.batchAddInsofDataApi):i==="update"?(u={dataList:o==null?void 0:o.map(f=>{var C;return{id:f==null?void 0:f.id,value:{pageData:{...f,compData:(C=f==null?void 0:f.compData)==null?void 0:C.filter(S=>(S==null?void 0:S.key)!=="tableContents")}}}})},w=ct.batchUpdateInsofDataApi):i==="delete"&&(u={ids:o},w=ct.batchDeleteInsofDataApi);const h=await w(u);if(((p=h==null?void 0:h.data)==null?void 0:p.code)===200)return h.data.result;throw ct.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{ct.ElMessage.error("保存响应失败")}},Vo=async(o,i,c,r)=>{var p,u,w,h,f,C,S,O,z,ee,P;try{const be=(u=(p=o==null?void 0:o.results)==null?void 0:p.filter(y=>!(y!=null&&y.id)||typeof(y==null?void 0:y.id)=="string"))==null?void 0:u.map(y=>({key:{pageKey:o==null?void 0:o.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:i,relatedInfo:c},value:{tableData:y}})),T=(h=(w=o==null?void 0:o.results)==null?void 0:w.filter(y=>(y==null?void 0:y.id)&&typeof(y==null?void 0:y.id)=="number"))==null?void 0:h.map(y=>({id:y==null?void 0:y.id,value:{tableData:y}})),j=JSON.parse(x.cloneDeep(JSON.stringify(o))),oe=(f=j==null?void 0:j.results)==null?void 0:f.map(y=>y.id);let D;c?D=(O=(S=(C=oo.value)==null?void 0:C[Yt.value])==null?void 0:S.filter(y=>{var b,k,G;return((b=y==null?void 0:y.key)==null?void 0:b.type)===i&&((G=(k=y==null?void 0:y.key)==null?void 0:k.relatedInfo)==null?void 0:G.target)===r}))==null?void 0:O.map(y=>y==null?void 0:y.id):D=(P=(ee=(z=oo.value)==null?void 0:z[Yt.value])==null?void 0:ee.filter(y=>{var b;return((b=y==null?void 0:y.key)==null?void 0:b.type)===i}))==null?void 0:P.map(y=>y==null?void 0:y.id);const F=D==null?void 0:D.filter(y=>!(oe!=null&&oe.includes(y))&&typeof y=="number");(be==null?void 0:be.length)>0&&await ct.batchAddInsofDataApi({dataList:be}),(T==null?void 0:T.length)>0&&await ct.batchUpdateInsofDataApi({dataList:T}),(F==null?void 0:F.length)>0&&await ct.batchDeleteInsofDataApi({ids:F})}catch(be){throw new Error(be)}},tu=async o=>{var C,S,O,z,ee,P,be,T,j,oe;Zt.setContentLoading(!0);const i=JSON.parse(x.cloneDeep(JSON.stringify(Wc.value)));if(!Hc.value)return Zt.setCacheStructures({key:Yc.value,data:i}),ct.ElMessage.success("已暂存");const c=i==null?void 0:i.map(D=>D.id),r=c.filter(D=>{var F;return!((F=No.value)!=null&&F.includes(D))}),p=(C=No.value)==null?void 0:C.filter(D=>!c.includes(D)),u=[...r,...p].filter(D=>typeof D!==null&&typeof D<"u"),w=i==null?void 0:i.filter(D=>!D.id),h=i==null?void 0:i.filter(D=>D.id);let f=[];if(u&&(u==null?void 0:u.length)>0&&f.push(eo(u,"delete",o)),w&&(w==null?void 0:w.length)>0&&f.push(eo(w,"create",o)),h&&(h==null?void 0:h.length)>0&&f.push(eo(h,"update",o)),ea.value&&((S=ea.value)!=null&&S.isDelete&&((z=(O=ea.value)==null?void 0:O.results)==null?void 0:z.length)>0&&((P=(ee=ea.value)==null?void 0:ee.results)!=null&&P.every(D=>typeof D=="number"))?await ct.batchDeleteInsofDataApi({ids:(be=ea.value)==null?void 0:be.results}):(console.log("itemGridData.value",ea.value),f.push(await Vo(ea.value,"gridLayout")))),Na.value)for(const D in Na.value)f.push(await Vo((T=Na.value)==null?void 0:T[D],"extend",{target:D,compId:(oe=(j=Na.value)==null?void 0:j[D])==null?void 0:oe.compId},D));await Promise.all(f).then(()=>{ct.ElMessage.success("保存成功"),Gt.setRefreshCurStructure(!0)}).catch(D=>{ct.ElMessage.success(D)}),Zt.setContentLoading(!1)},Ca=o=>oa(o),Mt=e.ref([]),nu=e.computed(()=>{var o;return(o=Mt.value)==null?void 0:o.filter(i=>(i==null?void 0:i.affix)&&(i==null?void 0:i.affix)!=="default")}),_r=e.computed(()=>{var o;return(o=Mt.value)==null?void 0:o.filter(i=>!(i!=null&&i.affix)||(i==null?void 0:i.affix)==="default")}),Er=e.ref(0),Sr=e.ref(null),ja=async(o,i="data",c)=>{var r,p,u,w,h,f,C,S,O,z,ee,P,be,T,j,oe,D,F;if((o==null?void 0:o.buttonName)==="新增"){let y=(r=o==null?void 0:o.fixContent)==null?void 0:r.map(k=>{let G={};for(let he in k)Array.isArray(k==null?void 0:k[he])?G[he]=JSON.stringify(k==null?void 0:k[he]):G[he]=k==null?void 0:k[he];return G}),b=[{tableName:(p=o==null?void 0:o.relatedContents)==null?void 0:p.find(k=>k==null?void 0:k.includes("content")),tableContents:y}];await En.pageBatchAddApi({platId:parseInt((u=jt==null?void 0:jt.value)==null?void 0:u.plat_id),changeContents:b})}if((o==null?void 0:o.buttonName)==="OCR批量新增"){const y=((o==null?void 0:o.ocrRows)||[]).map(k=>{const G={...k};return delete G._isOCRRow,delete G._ocrTableId,Object.keys(G).forEach(he=>{he==="证书附件"&&Array.isArray(G[he])&&(G[he]=JSON.stringify(G[he]))}),G});let b=[{tableName:(w=o==null?void 0:o.relatedContents)==null?void 0:w.find(k=>k==null?void 0:k.includes("content")),tableContents:y}];await En.pageBatchAddApi({platId:parseInt((h=jt==null?void 0:jt.value)==null?void 0:h.plat_id),changeContents:b})}if((o==null?void 0:o.buttonName)==="编辑"){const b=((o==null?void 0:o.fixContent)||(o==null?void 0:o.singleContent)||[]||[]).map(he=>{const ot={...he};return delete ot._isOCRRow,delete ot._ocrTableId,delete ot._isTemp,delete ot.tableEditType,delete ot.index,ot});let k=b==null?void 0:b.map(he=>{let ot={};for(let Ee in he)Array.isArray(he==null?void 0:he[Ee])?ot[Ee]=JSON.stringify(he==null?void 0:he[Ee]):ot[Ee]=he==null?void 0:he[Ee];return ot}),G=[{tableName:(f=o==null?void 0:o.relatedContents)==null?void 0:f.find(he=>he==null?void 0:he.includes("content")),tableContents:k}];await En.pageBatchUpdateApi({platId:parseInt((C=jt==null?void 0:jt.value)==null?void 0:C.plat_id),changeContents:G})}if((o==null?void 0:o.buttonName)==="删除"){let y=[{tableName:(S=o==null?void 0:o.relatedContents)==null?void 0:S.find(b=>b==null?void 0:b.includes("content")),tableContents:o==null?void 0:o.fixContent}];await En.pageBatchDeleteApi({platId:parseInt((O=jt==null?void 0:jt.value)==null?void 0:O.plat_id),changeContents:y})}if((o==null?void 0:o.buttonName)==="复制新增"){let y=await En.getPageDataApi({platId:parseInt((z=jt==null?void 0:jt.value)==null?void 0:z.plat_id),pageName:"menu"});if(y=(ee=y==null?void 0:y.data)==null?void 0:ee.result,y!=null&&y.find(b=>(b==null?void 0:b.father_name)===Yt.value+"/")){Dr.value=o,Cr.value=y==null?void 0:y.filter(G=>(G==null?void 0:G.father_name)===Yt.value+"/");let b=(be=(P=o==null?void 0:o.columns)==null?void 0:P.find(G=>G==null?void 0:G.mainKey))==null?void 0:be.prop,k=(j=(T=o==null?void 0:o.fixContent)==null?void 0:T[0])==null?void 0:j[b];uo.value=!0,wa.value=[{prop:b,label:b,name:b,value:k}]}else{let b=(oe=o==null?void 0:o.fixContent)==null?void 0:oe.map(G=>{let he={};for(let ot in G)Array.isArray(G==null?void 0:G[ot])?he[ot]=JSON.stringify(G==null?void 0:G[ot]):he[ot]=G==null?void 0:G[ot];return he}),k=[{tableName:(D=o==null?void 0:o.relatedContents)==null?void 0:D.find(G=>G==null?void 0:G.includes("content")),tableContents:b}];await En.pageBatchAddApi({platId:parseInt((F=jt==null?void 0:jt.value)==null?void 0:F.plat_id),changeContents:k})}}Gt.setRefreshCurStructure(!0)},au=o=>{let i=wa.value;wa.value=i==null?void 0:i.map(c=>(c.value=o==null?void 0:o[c==null?void 0:c.prop],c))},ou=async()=>{var z,ee,P,be,T,j,oe,D,F,y;let o=Dr.value,i=Cr.value,c=(ee=(z=o==null?void 0:o.columns)==null?void 0:z.find(b=>b==null?void 0:b.mainKey))==null?void 0:ee.prop,r=(be=(P=wa.value)==null?void 0:P[0])==null?void 0:be.value,p=(T=o==null?void 0:o.fixContent)==null?void 0:T.map(b=>{var G;let k={};for(let he in b)Array.isArray(b==null?void 0:b[he])?k[he]=JSON.stringify(b==null?void 0:b[he]):k[he]=b==null?void 0:b[he];return(G=o==null?void 0:o.columns)==null||G.forEach(he=>{(he==null?void 0:he.formType)==="Upload"&&(k==null?void 0:k[he==null?void 0:he.prop])===""&&(k[he==null?void 0:he.prop]="{}")}),k[c]=r,k}),u=[{tableName:(j=o==null?void 0:o.relatedContents)==null?void 0:j.find(b=>b==null?void 0:b.includes("content")),tableContents:p}];await En.pageBatchAddApi({platId:parseInt((oe=jt==null?void 0:jt.value)==null?void 0:oe.plat_id),changeContents:u}),i=i==null?void 0:i.filter(b=>{var k,G,he;return(he=b==null?void 0:b.object_name)==null?void 0:he.includes((G=(k=o==null?void 0:o.fixContent)==null?void 0:k[0])==null?void 0:G[c])});let w=[],h=new Map;i==null||i.forEach(b=>{w.push(`content_${b==null?void 0:b.object_id}`),w.push(`struct_${b==null?void 0:b.object_id}`),h.set(b==null?void 0:b.object_id,b)});let f=await En.getAllTables({platId:parseInt((D=jt==null?void 0:jt.value)==null?void 0:D.plat_id),tableNames:w});f=(F=f==null?void 0:f.data)==null?void 0:F.result;let C=[],S=[];f=Xt.chunk(f,2),f==null||f.forEach(b=>{var he,ot,Ee,He,$e,M,ie,le,fe,Xe,st,q,V,ve,ke,ze,Se,Ye,ae,xe,B;let k=h.get((He=(Ee=(ot=(he=b==null?void 0:b[1])==null?void 0:he[0])==null?void 0:ot.source_table)==null?void 0:Ee.split("_"))==null?void 0:He[1]),G=(ie=(M=($e=k==null?void 0:k.object_name)==null?void 0:$e.split("/"))==null?void 0:M.filter((Le,Fe)=>{var we,ne;return((ne=(we=k==null?void 0:k.object_name)==null?void 0:we.split("/"))==null?void 0:ne.length)-1!==Fe}))==null?void 0:ie.join("/");if(G=G+"/"+r,S!=null&&S.find(Le=>(Le==null?void 0:Le.path)===G)||S.push({fatherPath:k==null?void 0:k.father_name,isShow:k==null?void 0:k.is_show,path:G}),((fe=(le=b==null?void 0:b[1])==null?void 0:le[0])==null?void 0:fe.类型)==="Table"){let Le=((q=(st=(Xe=b==null?void 0:b[1])==null?void 0:Xe[0])==null?void 0:st.结构)==null?void 0:q.contents)??[],Fe=x.cloneDeep(Le);Array.isArray(Fe==null?void 0:Fe[0])&&(Fe=Ae.getColumnChild(Fe==null?void 0:Fe[0]));let we=[];if(((V=b==null?void 0:b[0])==null?void 0:V.length)>0&&(we=(ve=b==null?void 0:b[0])==null?void 0:ve.map(ne=>Fe==null?void 0:Fe.map(te=>(te=(ne==null?void 0:ne[te==null?void 0:te.prop])??"",te)))),C!=null&&C.find(ne=>(ne==null?void 0:ne.key)===G)){let ne=(ke=C==null?void 0:C.find(te=>(te==null?void 0:te.key)===G))==null?void 0:ke.contents;ne.push({isShow:k==null?void 0:k.is_show,filter:((Ye=(Se=(ze=b==null?void 0:b[1])==null?void 0:ze[0])==null?void 0:Se.引用)==null?void 0:Ye.contents)??"",key:"Table",name:Object.values(k==null?void 0:k.name),tableColumns:Le,tableContents:we});let X=C==null?void 0:C.findIndex(te=>(te==null?void 0:te.key)===G);C[X].contents=ne}else C.push({key:G,contents:[{isShow:k==null?void 0:k.is_show,filter:((B=(xe=(ae=b==null?void 0:b[1])==null?void 0:ae[0])==null?void 0:xe.引用)==null?void 0:B.contents)??"",key:"Table",name:Object.values(k==null?void 0:k.name),tableColumns:Le,tableContents:we}]})}});let O=[];O.push({key:"menuPath",contents:S}),O=[...O,...C],await En.createPlatFormDataApi({platId:parseInt((y=jt==null?void 0:jt.value)==null?void 0:y.plat_id),changeData:O}),uo.value=!1,Gt.setRefreshTable(!0)},Ua=async(o,i)=>{},Ka=async o=>{Mt.value=await Ae.getDeepDiffItems(o),Gt.setItemData(Mt.value),Gt.setOriginalData(Mt.value)};e.ref();const ru=e.ref(null),lu=()=>{var o,i;console.log("倒计时结束时"),hn.ElMessageBox.alert(`超时未提交,【${(i=(o=Yt.value)==null?void 0:o.split("/"))==null?void 0:i[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},Tr=e.ref([]),iu=e.computed(()=>{var o,i;return(i=(o=oo.value)==null?void 0:o[Yt.value])==null?void 0:i.filter(c=>{var r;return((r=c==null?void 0:c.key)==null?void 0:r.type)==="gridLayout"})});e.watch(()=>[Xc.value],()=>{yn.setSelectTitle([]),yn.setChooseTitle([])},{deep:!0});e.watch(()=>[Ao.value],async()=>{var i,c,r;let o=(i=Ao.value)==null?void 0:i.filter(p=>(p==null?void 0:p.condition)==="child"&&(p==null?void 0:p.value)!==""&&(p==null?void 0:p.parentContent)!==Yt.value);if((o==null?void 0:o.length)>0){Zt.setContentLoading(!0);let p=Yt.value+"/"+((c=o==null?void 0:o[0])==null?void 0:c.value),u=!!((r=o==null?void 0:o[0])!=null&&r.parentContent),w=await Ra.getPageData(p,u,{originPath:Yt.value});w=w==null?void 0:w.map(h=>(h.isShow=!0,h)),console.log(w,"loadingContents"),Mt.value=await Ae.getDeepDiffItems(w),qa.value=Mt.value,console.log(Mt.value,"showItems.value"),Zt.setContentLoading(!1)}});const su=o=>{var i;Mt.value=(i=qa.value)==null?void 0:i.filter(c=>!(c!=null&&c.choiceName)||(c==null?void 0:c.choiceName)===o)};e.watch(()=>[Yt.value,Gc.value],async o=>{var w,h,f;if(!Yt.value)return;Zt.setCurrentMenuPath(Yt.value),Gt.setLockingPage(""),Mt.value=[];let i=e.getCurrentInstance();(w=i==null?void 0:i.scope)==null||w.stop(),i=null,$a.value=!1,Zt.setContentLoading(!0),Kc.value=!0;let c=o==null?void 0:o[0],r=c,p=(h=co.value)==null?void 0:h.filter(C=>(C==null?void 0:C.condition)==="child"&&(C==null?void 0:C.value)!==""&&(C==null?void 0:C.parentContent)!==Yt.value&&!(C!=null&&C.relatedContent));(p==null?void 0:p.length)>0&&(c=c+"/"+((f=p==null?void 0:p[0])==null?void 0:f.value));let u=await Ra.getPageData(c,!0,{originPath:r});u=u==null?void 0:u.map(C=>(C.isShow=!0,C)),Mt.value=await Ae.getDeepDiffItems(u),qa.value=Mt.value,Zt.setContentLoading(!1),Gt.setExtraContents([]),yn.setSelectIndex(""),yn.setSelectMenu(""),Gt.setItemData(Mt.value),Gt.setOriginalData(Mt.value),Gt.setRefreshTable(!1),e.nextTick(()=>{da.value=da.value++,$a.value=!0})},{immediate:!0});const cu=async()=>{Zt.setLinkMenuInfo(null),Zt.setActiveMenuPath(qc.value),Mt.value=null,Gt.setRouteToChildPath(""),Zt.setChildMenu("")},uu=o=>new RegExp("button","i").test(o),du=o=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(o),Br=o=>{if(du(o)){const i=o==null?void 0:o.split("^");(i==null?void 0:i.length)>0&&(i!=null&&i[0])&&Zt.setLinkMenuInfo({path:i==null?void 0:i[0],data:i==null?void 0:i[1]})}},Ir=async(o,i)=>{var f,C,S,O,z,ee,P,be;Zt.setCurrentMenuPath(Yt.value+"/"+o),Zt.setContentLoading(!0),Mt.value=await Ra.getPageData(Yt.value+"/"+o,!0,{originPath:Yt.value+"/",row:i});let c=await Ra.getPageData(Yt.value,!1);Mt.value=(f=Mt.value)==null?void 0:f.map(T=>(T.isShow=!0,T));let r=(C=c==null?void 0:c.filter(T=>(T==null?void 0:T.comp)==="Table"))==null?void 0:C[0],p=(ee=(z=(O=(S=r==null?void 0:r.compData)==null?void 0:S.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:O.contents)==null?void 0:z[0])==null?void 0:ee.prop,u=(be=(P=r==null?void 0:r.compData)==null?void 0:P.find(T=>(T==null?void 0:T.key)==="tableContents"))==null?void 0:be.contents;u=u==null?void 0:u.map(T=>({label:T==null?void 0:T[p],value:T==null?void 0:T[p]}));let w=co.value,h={value:o,condition:"child",options:u,relatedContent:Yt.value,isShow:!0};w.push(h),yn.setSelectTitle(w),yn.setChooseTitle([h]),Mt.value=await Ae.getDeepDiffItems(Mt.value),qa.value=Mt.value,Zt.setContentLoading(!1),Gt.setExtraContents([]),yn.setSelectIndex(""),yn.setSelectMenu(""),Gt.setItemData(Mt.value),Gt.setOriginalData(Mt.value)},pu=o=>{Er.value=o},ca=e.reactive({index:0,comp:null}),fu=e.computed(()=>{var o;return(o=Mt.value)==null?void 0:o.map((i,c)=>({id:i.id,name:i.name,status:hu(i,c)}))}),Nr=(o,i)=>{var f,C,S,O,z;const c=i?o:o-2,r=(f=Mt.value)==null?void 0:f[c],p=(S=(C=r==null?void 0:r.compData)==null?void 0:C.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:S.contents,u=p==null?void 0:p.findIndex(ee=>(ee==null?void 0:ee.isMainKey)&&(ee==null?void 0:ee.label)!=="操作"),w=u===-1?0:u,h=(z=(O=r==null?void 0:r.compData)==null?void 0:O.find(ee=>(ee==null?void 0:ee.key)==="tableContents"))==null?void 0:z.contents;return{valid:h==null?void 0:h.every(ee=>ee==null?void 0:ee[w+1]),length:(h==null?void 0:h.length)||0}},hu=(o,i)=>{var r;let c="process";if(((r=o==null?void 0:o.comp)==null?void 0:r.toUpperCase())==="TABLE"){const{valid:p,length:u}=Nr(i,!0);ca.index===i?c="process":u===0?c="wait":c=p?"success":"error"}return c},Ar=o=>{var c,r,p,u,w;const i=o+1;if(i>1&&((p=(r=(c=Mt.value)==null?void 0:c[o])==null?void 0:r.comp)==null?void 0:p.toUpperCase())==="TABLE"){const{valid:h}=Nr(i);h?(ca.index=i,ca.comp=(u=Mt.value)==null?void 0:u[o]):ct.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else ca.index=i,ca.comp=(w=Mt.value)==null?void 0:w[o]},Vr=e.computed(()=>{var o,i;return(i=(o=_r.value)==null?void 0:o[0])==null?void 0:i.isStepLayout});e.watch(()=>Vr.value,o=>{o&&Ar(0)},{immediate:!0});const vu={class:"tabs-content"},mu=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(o,{emit:i}){const c=o,r=i,p=e.ref();e.watch(()=>c==null?void 0:c.itemData,()=>{p.value=c==null?void 0:c.itemData},{immediate:!0,deep:!0});const u=z=>{r("change",z)},w=(z,ee)=>{r("contentChange",z,ee)},h=z=>{r("pageChange",z)},f=z=>{r("rowClick",z)},C=(z,ee)=>{r("routeUrl",z,ee)},S=z=>{r("clickTrigger",z)},O=(z,ee)=>{r("clickMainKey",z,ee)};return(z,ee)=>(e.openBlock(),e.createElementBlock("div",vu,[e.createVNode(It.ssTab,{tabsContents:p.value},{pane:e.withCtx(({tab:P,index:be})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Ca)(P==null?void 0:P.comp)),{related:P==null?void 0:P.relatedTables,compNames:c==null?void 0:c.compNames,compName:P==null?void 0:P.name,cacheNewData:c==null?void 0:c.cacheNewData,isDevMode:o.isDevMode,itemData:P==null?void 0:P.compData,childItemData:P==null?void 0:P.itemChildData,onChange:u,index:(P==null?void 0:P.id)??be,config:{showIndex:P==null?void 0:P.showIndex,allowMove:P==null?void 0:P.allowMove,viewport:P==null?void 0:P.viewport},onContentChange:w,onPageChange:h,onRowClick:f,onRouteUrl:C,parentTableId:P==null?void 0:P.tableId,allMapContents:o.allMapContents,children:P==null?void 0:P.children,level:1,onClickTrigger:S,onClickMainKey:O},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])]))}}),gu=zt._export_sfc(mu,[["__scopeId","data-v-47b165f5"]]),Ga=x.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[]}),actions:{setItemData(o){this.itemData=o},setCurStructureCompIds(o){this.curStructureCompIds=o},setRefreshCurStructure(o){this.isRefreshCurStructure=o},setOriginalData(o){this.originalData=o},setExtraContents(o){this.extraContents=o},setNodeDev(o){this.nodeDev=o},setIsEdit(o){this.isEdit=o}}}),yu={class:"type-select"},bu=["onClick"],ku={class:"list-icon"},xu={__name:"modelSelect",setup(o){const i=Ga(x.pinia),{itemData:c}=x.storeToRefs(i),r=p=>{const u=x.cloneDeep(c.value);u.push({comp:p.comp,name:p.name,compData:[]}),i.setItemData(u)};return(p,u)=>{const w=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",yu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(tl),(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:f},[e.createElementVNode("div",{class:"list-content",onClick:C=>r(h)},[e.createElementVNode("div",ku,[e.createVNode(w,{name:h.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(h.name),1)],8,bu)]))),128))])}}},wu=zt._export_sfc(xu,[["__scopeId","data-v-91799bf8"]]),Cu={class:"fill-content"},Du={class:"operate-content"},_u={class:"collapse-title-content"},Eu={class:"collapse-title-item"},Su={key:1},Tu=["onClick"],Bu={class:"icon-content"},Iu={key:0,class:"edit-content"},Nu=["onClick"],Au={class:"comp-child"},Vu={__name:"modelFill",setup(o){const i=Ga(x.pinia),{itemData:c,originalData:r}=x.storeToRefs(i),p=e.ref([]);e.ref([]);const u=e.ref([]),w=e.ref([]),h=ee=>{var be;let P=(be=x.cloneDeep(w.value))==null?void 0:be.map((T,j)=>(ee===j&&(T.content=!0),T));w.value=P},f=ee=>{var be;let P=(be=x.cloneDeep(w.value))==null?void 0:be.map((T,j)=>(ee===j&&(T.content=!1),T));w.value=P,p.value=x.cloneDeep(c.value)},C=(ee,P)=>{var oe;let be=(oe=x.cloneDeep(w.value))==null?void 0:oe.map((D,F)=>(ee===F&&(D.content=!1),D));w.value=be;const T=x.cloneDeep(c.value),j=T==null?void 0:T.filter((D,F)=>(F===ee&&(D.name=P),D));i.setOriginalData(j),i.setItemData(j)};e.watch(()=>c.value,()=>{var ee,P,be;!c.value||((ee=c.value)==null?void 0:ee.length)===0?p.value=[]:p.value=(P=x.cloneDeep(c.value))==null?void 0:P.filter(T=>(T==null?void 0:T.comp)!=="methodButton"),u.value=p.value,w.value=(be=x.cloneDeep(u.value))==null?void 0:be.map((T,j)=>({id:j,content:!1}))},{deep:!0,immediate:!0});const S=ee=>oa(ee),O=(ee,P,be)=>{var j,oe;if(!ee)return;let T=x.cloneDeep(c.value);T=(j=T==null?void 0:T.map((D,F)=>(F===be&&(D.compData=ee),D)))==null?void 0:j.filter(D=>(D==null?void 0:D.comp)!=="methodButton"),w.value=(oe=x.cloneDeep(T))==null?void 0:oe.map((D,F)=>({id:F,content:!1})),i.setOriginalData(T),i.setItemData(T)},z=ee=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const P=x.cloneDeep(c.value),be=P==null?void 0:P.filter((T,j)=>j!==ee);i.setOriginalData(be),i.setItemData(be),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(ee,P)=>{const be=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Cu,[P[1]||(P[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",Du,[e.createVNode(ir.default,{class:"collapse-content",collapseContents:p.value},{title:e.withCtx(({item:T,index:j})=>{var oe,D,F,y,b,k,G,he,ot,Ee;return[e.createElementVNode("div",_u,[e.createElementVNode("div",Eu,[(D=(oe=w.value)==null?void 0:oe.find(He=>He.id===j))!=null&&D.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:T.name&&T.name!==""?"8px":"0px"})},e.toDisplayString(T.name),5)),(y=(F=w.value)==null?void 0:F.find(He=>He.id===j))!=null&&y.content?(e.openBlock(),e.createElementBlock("div",Su,[e.createVNode(It._sfc_main$2,{modelValue:T.name,"onUpdate:modelValue":He=>T.name=He,onClick:P[0]||(P[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(k=(b=w.value)==null?void 0:b.find(He=>He.id===j))!=null&&k.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(He=>h(j),["stop"]),class:"icon-content"},[e.createVNode(be,{name:"Edit",style:{width:"16px",height:"16px"}})],8,Tu))]),e.createElementVNode("div",Bu,[(he=(G=w.value)==null?void 0:G.find(He=>He.id===j))!=null&&he.content?(e.openBlock(),e.createElementBlock("div",Iu,[e.createVNode(be,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(He=>f(j),["stop"])},null,8,["onClick"]),e.createVNode(be,{name:"Save",onClick:e.withModifiers(He=>C(j,T.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(Ee=(ot=w.value)==null?void 0:ot.find(He=>He.id===j))!=null&&Ee.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(He=>z(j),["stop"]),class:"icon-content"},[e.createVNode(be,{name:"Delete",style:{width:"16px",height:"16px"}})],8,Nu))])])]}),content:e.withCtx(({item:T,index:j})=>{var oe,D;return[e.createElementVNode("div",Au,[e.createTextVNode(e.toDisplayString(S(T.comp+"Operate"))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S(T.comp+"Operate")),{itemContents:T==null?void 0:T.compData,originalItemContents:(D=(oe=u.value)==null?void 0:oe.find((F,y)=>y===j))==null?void 0:D.compData,onChange:F=>O(F,T,j)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},Ou=zt._export_sfc(Vu,[["__scopeId","data-v-a46a44b9"]]),Mu={key:0,class:"show-content"},zu={style:{display:"flex"}},Fu={__name:"modelShow",setup(o){const i=Ga(x.pinia),{itemData:c}=x.storeToRefs(i),r=e.ref([]);e.watch(()=>c.value,()=>{var u;!c.value||((u=c.value)==null?void 0:u.length)===0?r.value=[]:r.value=x.cloneDeep(c.value)},{deep:!0,immediate:!0});const p=u=>oa(u);return(u,w)=>{var h;return((h=r.value)==null?void 0:h.length)>0?(e.openBlock(),e.createElementBlock("div",Mu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(f,C)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:C},[e.createElementVNode("div",zu,e.toDisplayString(f.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p(f.comp)),{itemData:f==null?void 0:f.compData,childItemData:f==null?void 0:f.itemChildData,key:C},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},Ru=zt._export_sfc(Fu,[["__scopeId","data-v-3f3e863e"]]),Pu={class:"tabs-header"},Lu={class:"tabs-list"},$u={class:"tab-name"},ju={class:"tab-actions"},Uu=["onClick"],Ku=["onClick"],Wu=["onClick"],Hu={class:"model-operate"},qu={class:"model-select",style:{display:"unset"}},Gu={class:"existing-components"},Xu={class:"component-list"},Yu=["onClick"],Ju={class:"component-info"},Zu={class:"component-type"},Qu={class:"component-name"},ed={class:"model-fill"},td={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(o,{emit:i}){const c=o,r=i,p=e.ref([]),u=e.ref(!1),w=e.ref(""),h=e.ref({title:""}),f=e.ref(-1),C=e.ref(!1),S=e.ref(-1),O=e.ref(new WeakMap),z=e.ref(null),ee=Ga(x.pinia),{itemData:P}=x.storeToRefs(ee),be=()=>{w.value="新增标签页",h.value.title="",f.value=-1,u.value=!0},T=q=>{w.value="修改标签页",h.value.title=p.value[q].title,f.value=q,u.value=!0},j=q=>{const V=F(q);O.value.delete(V),p.value.splice(q,1),st()},oe=()=>{if(h.value.title.trim()){if(f.value===-1){const q={title:h.value.title,value:h.value.title,label:h.value.title,children:[],id:D()};p.value.push(q)}else p.value[f.value].title=h.value.title,p.value[f.value].value=h.value.title,p.value[f.value].label=h.value.title;u.value=!1,st()}},D=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,F=q=>{const V=p.value[q];return V.id||(V.id=D()),V.id},y=q=>{var ke;S.value=q;const V=F(q);z.value=x.cloneDeep(P.value);let ve=O.value.get(V);!ve&&((ke=p.value[q].children)==null?void 0:ke.length)>0&&(ve=he(p.value[q].children)),ve?ee.setItemData(x.cloneDeep(ve)):ee.setItemData([]),C.value=!0},b=e.computed(()=>{const q=x.useModelComp(x.pinia),V=x.storeToRefs(q).itemData.value;return console.log("可用组件数据",V),!V||!Array.isArray(V)?[]:V.filter(ve=>{var ke;if(ve.comp==="Tabs"&&S.value>=0){const ze=F(S.value);if((ke=ve.compData)==null?void 0:ke.some(Ye=>{var ae;return Ye.key==="stepList"&&((ae=Ye.contents)==null?void 0:ae.some(xe=>xe.id===ze))}))return!1}return!0})}),k=q=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[q]||q,G=q=>{var V;try{const ve=x.cloneDeep(q);ve.id=Date.now()+Math.random(),ve.comp==="Tabs"&&((V=ve.compData)==null||V.forEach(ze=>{ze.key==="stepList"&&ze.contents&&ze.contents.forEach(Se=>{Se.id=D()})}));const ke=x.cloneDeep(P.value);ke.push(ve),ee.setItemData(ke)}catch(ve){console.error("添加组件失败:",ve)}},he=q=>q.map(V=>{var ve;switch(V.type){case"form":return{comp:"Form",name:V.value||"表单",compData:ot(V.content)};case"table":return{comp:"Table",name:V.value||"表格",compData:Ee(V.content)};default:return{comp:"Unknown",name:V.value||"",compData:((ve=V.content)==null?void 0:ve.originalData)||[]}}}),ot=q=>{if(!q)return[];const V=[];return q.rowContents&&V.push({key:"formContent",contents:q.rowContents}),q.buttonValue&&V.push({key:"formButton",contents:q.buttonValue}),typeof q.isEnableWrap<"u"&&V.push({key:"enableWrap",contents:q.isEnableWrap}),V},Ee=q=>[],He=()=>{if(S.value>=0&&S.value<p.value.length){const q=F(S.value);O.value.set(q,x.cloneDeep(P.value)),p.value[S.value].children=ie(P.value),console.log("保存后的数据",ie(P.value))}C.value=!1,S.value=-1,z.value=null,st()},$e=()=>{z.value&&ee.setItemData(x.cloneDeep(z.value)),C.value=!1,S.value=-1,z.value=null},M=()=>{C.value&&$e()},ie=q=>{if(!Array.isArray(q))throw new Error("sourceData must be an array");return q.map((V,ve)=>{if(!V||typeof V!="object")return V;const{comp:ke,name:ze,compData:Se}=V;switch(ke){case"Form":return{type:"form",content:le(Se||[]),value:"表单"};case"Table":return{type:"table",content:fe(Se||[]),value:"表格"};default:return{type:"xxx",content:Xe(Se||[]),value:""}}})},le=q=>{const V={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},ve={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return q.forEach((ke,ze)=>{if(!ke||typeof ke!="object"){console.warn(`Invalid config at index ${ze}:`,ke);return}const{key:Se,contents:Ye}=ke,ae=ve[Se];if(!ae){console.warn(`Unknown Form config key: ${Se}`);return}Se==="enableWrap"?V[ae]=!!Ye:V[ae]=Array.isArray(Ye)?Ye:[]}),V},fe=q=>{const V={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},ve={header:"columns",tableContents:"tableData"};return q.forEach((ke,ze)=>{if(!ke||typeof ke!="object"){console.warn(`Invalid config at index ${ze}:`,ke);return}const{key:Se,contents:Ye}=ke,ae=ve[Se];if(!ae){console.warn(`Unknown Table config key: ${Se}`);return}V[ae]=Array.isArray(Ye)?Ye:[]}),V},Xe=q=>(console.log("Default conversion logic - to be implemented"),{originalData:q,processed:!1,componentType:"unknown"}),st=()=>{const q=[{key:"stepList",contents:p.value}];r("change",q)};return e.watch(()=>c.itemContents,q=>{if(q&&q.length>0){const V=q.find(ve=>ve.key==="stepList");V&&V.contents&&(p.value=V.contents.map(ve=>({title:ve.title||"",value:ve.value||ve.title||"",label:ve.label||ve.title||"",children:ve.children||[],id:ve.id||D()})))}},{immediate:!0,deep:!0}),(q,V)=>{const ve=e.resolveComponent("svg-icon"),ke=e.resolveComponent("el-input"),ze=e.resolveComponent("el-form-item"),Se=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Pu,[V[6]||(V[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:be},[e.createVNode(ve,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),V[5]||(V[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",Lu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(Ye,ae)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:ae},[e.createElementVNode("span",$u,e.toDisplayString(Ye.title),1),e.createElementVNode("div",ju,[e.createElementVNode("button",{onClick:xe=>T(ae)},"修改标题",8,Uu),e.createElementVNode("button",{onClick:xe=>y(ae)},"布局调整",8,Ku),e.createElementVNode("button",{onClick:xe=>j(ae)},"删除",8,Wu)])]))),128))]),e.createVNode(Xt.ssDialog,{modelValue:u.value,"onUpdate:modelValue":V[2]||(V[2]=Ye=>u.value=Ye),title:w.value,onBeforeDestroy:V[3]||(V[3]=Ye=>u.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:V[1]||(V[1]=Ye=>u.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:oe},"确定")]),default:e.withCtx(()=>[e.createVNode(Se,{model:h.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(ze,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(ke,{modelValue:h.value.title,"onUpdate:modelValue":V[0]||(V[0]=Ye=>h.value.title=Ye),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(Xt.ssDialog,{modelValue:C.value,"onUpdate:modelValue":V[4]||(V[4]=Ye=>C.value=Ye),title:"布局调整",fullScreen:"",onBeforeDestroy:M},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:$e},"取消"),e.createElementVNode("button",{onClick:He},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",Hu,[e.createElementVNode("div",qu,[e.createVNode(wu),e.createElementVNode("div",Gu,[V[8]||(V[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",Xu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,Ye=>(e.openBlock(),e.createElementBlock("div",{key:Ye.id,class:"component-item",onClick:ae=>G(Ye)},[e.createElementVNode("div",Ju,[e.createElementVNode("span",Zu,e.toDisplayString(k(Ye.comp)),1),e.createElementVNode("span",Qu,e.toDisplayString(Ye.name),1)]),V[7]||(V[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Yu))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:q.innerWidth},[e.createVNode(Ru)])),e.createElementVNode("div",ed,[e.createVNode(Ou)])])]),_:1},8,["modelValue"])])}}},nd=zt._export_sfc(td,[["__scopeId","data-v-9096ed0d"]]);function ad(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}function od(o){return{type:"line",...o}}function rd(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:[{type:"value"}],series:[]}}function ld(o){return{type:"bar",barWidth:"60%",...o}}function id(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function sd(o){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...o}}const Sn={line:{initBaseoptions:ad,initSeries:od},bar:{initBaseoptions:rd,initSeries:ld},pie:{initBaseoptions:id,initSeries:sd}},Oo=x.useMenuState(x.pinia),Or=(o,i)=>{var S;const c=[],r=[],{group:p,nameCol:u,valueCol:w}=i||{},h=o==null?void 0:o.find(O=>{const{name:z}=O;return z===p});if(!h)return{names:c,values:r};const f=(S=h==null?void 0:h.compData)==null?void 0:S.find(O=>{const{key:z}=O;return z==="tableContents"});return((f==null?void 0:f.contents)||[]).forEach(O=>{const z=O==null?void 0:O[0];let ee=!1;ct.isObject(z)&&(z!=null&&z.id)&&(ee=!0);let P=u,be=w;ee&&(P=P+1,be=be+1);const T=O==null?void 0:O[P],j=O==null?void 0:O[be];c.push(T),r.push(j)}),{names:c,values:r}},cd=async o=>{const{menu:i,mainKey:c,detailGroup:r,detailNameCol:p,detailValueCol:u,isSelfDetail:w}=o||{};let h=null;const f=sessionStorage.getItem("systemKey");if(w&&Oo.activeMenuPath&&(h=await Ae.getItemData(`${Oo.activeMenuPath}`,f,"")),!w){const C=i==null?void 0:i.join("/");h=await Ae.getItemData(`${C}^${c}`,f,"")}return Or(h,{group:r,nameCol:p,valueCol:u})},ud=async o=>{const{menu:i,group:c,nameCol:r,valueCol:p}=o||{},u=i==null?void 0:i.join("/"),w=sessionStorage.getItem("systemKey"),h=await Ae.getItemData(u,w,"");return Or(h,{group:c,nameCol:r,valueCol:p})},po=async(o,i)=>{const c={names:[],values:[]},{menu:r,group:p,nameCol:u,valueCol:w}=o||{};if(!r.length||!p)return c;const{mainKey:h,group:f,nameCol:C,valueCol:S,isSelfDetail:O}=i||{};return h&&f&&It.isNumber(C)&&It.isNumber(S)?await cd({menu:r,mainKey:h,detailGroup:f,detailNameCol:C,detailValueCol:S,isSelfDetail:O}):It.isNumber(u)&&It.isNumber(w)?await ud({menu:r,group:p,nameCol:u,valueCol:w}):c},dd=async({chartBaseConfig:o,chartDataConfig:i,chartDetailConfig:c})=>{const{type:r,title:p}=o||{},u=Sn==null?void 0:Sn[r];if(!u)return;const{initBaseoptions:w,initSeries:h}=u,f=w();f.title.text=p??"";const{names:C,values:S}=await po(i,c);if(!C||!S)return f;f.xAxis.data=C;const O=h({data:S});return f.series.push(O),f},pd=async({chartBaseConfig:o,chartDataConfig:i,chartDetailConfig:c})=>{const{type:r,title:p}=o||{},u=Sn==null?void 0:Sn[r];if(!u)return;const{initBaseoptions:w,initSeries:h}=u,f=w();f.title.text=p??"";const{names:C,values:S}=await po(i,c);if(!C||!S)return f;f.xAxis.data=C;const O=h({data:S});return f.series.push(O),f},fd=async({chartBaseConfig:o,chartDataConfig:i,chartDetailConfig:c})=>{const{type:r,title:p}=o||{},u=Sn==null?void 0:Sn[r];if(!u)return;const{initBaseoptions:w,initSeries:h}=u,f=w();f.title.text=p??"";const{names:C,values:S}=await po(i,c);if(!C||!S)return f;const O=[];for(let ee=0;ee<C.length;ee++){const P=C[ee],be=S[ee];O.push({name:P,value:be})}const z=h({data:O});return f.series.push(z),f},hd=async(o=[])=>{var w,h,f;const i=((w=o==null?void 0:o.find(C=>C.key==="chartBaseConfig"))==null?void 0:w.contents)??{},c=((h=o==null?void 0:o.find(C=>C.key==="chartDataConfig"))==null?void 0:h.contents)??{},r=((f=o==null?void 0:o.find(C=>C.key==="chartDetailConfig"))==null?void 0:f.contents)??{},{type:p}=i;let u={};return p==="line"&&(u=await dd({chartBaseConfig:i,chartDataConfig:c,chartDetailConfig:r})),p==="bar"&&(u=await pd({chartBaseConfig:i,chartDataConfig:c,chartDetailConfig:r})),p==="pie"&&(u=await fd({chartBaseConfig:i,chartDataConfig:c,chartDetailConfig:r})),u},vd=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(o){const i=o,c=e.ref({});e.onMounted(async()=>{const p=i==null?void 0:i.itemData;c.value=await hd(p)});const r=e.computed(()=>(i==null?void 0:i.height)||"300px");return(p,u)=>(e.openBlock(),e.createElementBlock("div",{class:"eCharts",style:e.normalizeStyle({height:r.value})},[e.createVNode(Fl.ssChart,{optionContents:c.value},null,8,["optionContents"])],4))}}),md=zt._export_sfc(vd,[["__scopeId","data-v-d4c081e8"]]),gd={class:"chart-module layout"},yd={class:"chart-module content"},bd={class:"chart-module content"},kd={class:"form-content"},xd={class:"dialog-footer"},wd={class:"form-content"},Cd={class:"dialog-footer"},Dd={class:"form-content"},_d={class:"dialog-footer"},Ed=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(o,{emit:i}){const c=o,r=i,p=e.reactive({visible:!1,width:"840",title:"基础配置"}),u=e.ref([]),w=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],h=e.ref({}),f=()=>{var ne;u.value=w(),(ne=u.value)==null||ne.forEach(X=>{var Ce;const te=X==null?void 0:X.prop;X.value=(Ce=h==null?void 0:h.value)==null?void 0:Ce[te]}),p.visible=!0},C=ne=>{h.value=ne},S=()=>{var ne;p.visible=!1,r("change",(ne=Fe())==null?void 0:ne.compData)},O=e.reactive({visible:!1,width:"840",title:"数据配置"}),z=e.ref([]),ee=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],P=e.ref({}),be=()=>{const ne=z.value,X=x.cloneDeep(ne);return X==null||X.forEach(te=>{var Ge;const Ce=te==null?void 0:te.prop;te.value=(Ge=P.value)==null?void 0:Ge[Ce]}),X},T=ne=>{var te;P.value=ne;const X=be();z.value=X,r("change",(te=Fe())==null?void 0:te.compData)},j=async()=>{const ne=await Ae.getMenusContent(),X=be();X==null||X.forEach(te=>{(te==null?void 0:te.prop)==="menu"&&(te.contents=ne)}),z.value=X,O.visible=!0,await Ye(P.value.menu),await B(P.value.group)},oe=e.reactive({visible:!1,width:"840",title:"详情页配置"}),D=e.ref([]),F=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],y=e.ref({}),b=()=>{const ne=D.value,X=x.cloneDeep(ne);return X==null||X.forEach(te=>{var Ge;const Ce=te==null?void 0:te.prop;te.value=(Ge=y.value)==null?void 0:Ge[Ce]}),X},k=ne=>{var te;y.value=ne;const X=b();D.value=X,r("change",(te=Fe())==null?void 0:te.compData)},G=async()=>{await M();const ne=x.cloneDeep(he.value),X=b();X==null||X.forEach(te=>{var Ge;const Ce=te==null?void 0:te.prop;te.value=(Ge=y==null?void 0:y.value)==null?void 0:Ge[Ce],Ce==="mainKey"&&(te.contents=ne)}),D.value=X,oe.visible=!0},he=e.ref([]),ot=e.ref([]),Ee=e.ref({}),He=e.ref({}),$e=()=>{const{compData:ne}=ke.value||{},X=ne==null?void 0:ne.find(W=>{const{key:J}=W;return J==="header"}),te=(X==null?void 0:X.contents)||[],Ce=te==null?void 0:te.filter((W,J)=>{const{label:_}=W;return _!=="操作"}),Ge=Ce==null?void 0:Ce.findIndex((W,J)=>{const{isMainKey:_}=W;return _});if(Ge<0)return[];const dt=ne==null?void 0:ne.find(W=>{const{key:J}=W;return J==="tableContents"}),v=(dt==null?void 0:dt.contents)||[];return v==null?void 0:v.map(W=>{const J=W==null?void 0:W[0];let _=Ge;ct.isObject(J)&&(J!=null&&J.id)&&(_=_+1);const re=W==null?void 0:W[_];return{label:re,value:re}})},M=async()=>{const ne=await $e();he.value=ne},ie=async ne=>{const X=sessionStorage.getItem("systemKey");return await Ae.getItemData(ne,X,"")},le=async ne=>{const X=ne;ot.value=X==null?void 0:X.map(te=>{const{name:Ce}=te;return Ee.value[Ce]=te,{label:Ce,value:Ce}})},fe=ne=>{const{comp:X,compData:te}=He.value||{};if(X==="Table"){let Ce=b();Ce=Ce.filter(Ge=>{const{prop:dt}=Ge;return dt!=="formItems"}),ae(Ce,te),D.value=Ce}},Xe=async()=>{var te,Ce;const ne=(te=y==null?void 0:y.value)==null?void 0:te.mainKey,X=(Ce=P==null?void 0:P.value)==null?void 0:Ce.menu;if(ne){const dt=`${X==null?void 0:X.join("/")}^${ne}`,v=await ie(dt);await le(v);const E=b();E==null||E.forEach(W=>{(W==null?void 0:W.prop)==="group"&&(W.contents=ot.value)}),D.value=E}};e.watch(()=>{var ne;return(ne=y==null?void 0:y.value)==null?void 0:ne.mainKey},async(ne,X)=>{ne!=X&&ne&&await Xe()});const st=async ne=>{const X=Ee.value[ne];He.value=X,await fe()};e.watch(()=>{var ne;return(ne=y==null?void 0:y.value)==null?void 0:ne.group},async(ne,X)=>{ne!=X&&ne&&st(ne)});const q=async()=>{var X;await Xe();const ne=(X=y.value)==null?void 0:X.group;await st(ne)},V=e.ref([]),ve=e.ref({}),ke=e.ref({}),ze=async ne=>{const X=ne==null?void 0:ne.join("/"),te=sessionStorage.getItem("systemKey");return await Ae.getItemData(X,te,"")},Se=async ne=>{const X=await ze(ne);V.value=X==null?void 0:X.map(te=>{const{name:Ce}=te;return ve.value[Ce]=te,{label:Ce,value:Ce}})},Ye=async(ne,X)=>{await Se(ne);const te=be();te==null||te.forEach(Ce=>{(Ce==null?void 0:Ce.prop)==="group"&&(Ce.contents=V.value)}),z.value=te};e.watch(()=>{var ne;return(ne=P==null?void 0:P.value)==null?void 0:ne.menu},async(ne,X)=>{const te=ne==null?void 0:ne.join("/"),Ce=X==null?void 0:X.join("/");te!=Ce&&await Ye(ne)});const ae=(ne,X)=>{const te=X==null?void 0:X.find(v=>{const{key:E}=v;return E==="header"}),Ce=(te==null?void 0:te.contents)||[],Ge=Ce==null?void 0:Ce.filter((v,E)=>{const{label:W}=v;return W!=="操作"}),dt=Ge==null?void 0:Ge.map((v,E)=>{const{label:W}=v;return{label:W,value:E}});ne==null||ne.forEach(v=>{const E=v==null?void 0:v.prop;(E==="nameCol"||E==="valueCol")&&(v.contents=dt)})},xe=ne=>{const{comp:X,compData:te}=ke.value||{};if(X==="Table"){P.value.formItems=[];let Ce=be();Ce=Ce.filter(Ge=>{const{prop:dt}=Ge;return dt!=="formItems"}),ae(Ce,te),z.value=Ce}},B=async ne=>{const X=ve.value[ne];ke.value=X,await xe()};e.watch(()=>{var ne;return(ne=P==null?void 0:P.value)==null?void 0:ne.group},async(ne,X)=>{ne!=X&&B(ne)});const Le=async()=>{var te,Ce;const ne=(te=P.value)==null?void 0:te.menu;await Ye(ne);const X=(Ce=P.value)==null?void 0:Ce.group;await B(X)},Fe=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:h.value},{key:"chartDataConfig",contents:P.value},{key:"chartDetailConfig",contents:y.value}]}),we=()=>{p.visible=!1,O.visible=!1,oe.visible=!1};return e.onMounted(async()=>{var X,te,Ce;z.value=ee(),D.value=F();const ne=c==null?void 0:c.itemContents;h.value=((X=ne==null?void 0:ne.find(Ge=>Ge.key==="chartBaseConfig"))==null?void 0:X.contents)??{},P.value=((te=ne==null?void 0:ne.find(Ge=>Ge.key==="chartDataConfig"))==null?void 0:te.contents)??{},await Le(),y.value=((Ce=ne==null?void 0:ne.find(Ge=>Ge.key==="chartDetailConfig"))==null?void 0:Ce.contents)??{},await q()}),(ne,X)=>{const te=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",gd,[X[4]||(X[4]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createVNode(te,{id:"themeButton",onClick:X[0]||(X[0]=Ce=>f())},{default:e.withCtx(()=>X[3]||(X[3]=[e.createTextVNode(" 修改 ")])),_:1,__:[3]})]),e.createElementVNode("div",yd,[X[6]||(X[6]=e.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),e.createVNode(te,{id:"themeButton",onClick:X[1]||(X[1]=Ce=>j())},{default:e.withCtx(()=>X[5]||(X[5]=[e.createTextVNode(" 修改 ")])),_:1,__:[5]})]),e.createElementVNode("div",bd,[X[8]||(X[8]=e.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),e.createVNode(te,{id:"themeButton",onClick:X[2]||(X[2]=Ce=>G())},{default:e.withCtx(()=>X[7]||(X[7]=[e.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),e.createVNode(Xt.ssDialog,{visible:p.visible,title:p.title,onBeforeDestroy:we,width:p.width},{default:e.withCtx(()=>[e.createElementVNode("div",kd,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!0,onChange:C},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",xd,[e.createVNode(te,{class:"cancel-button button",onClick:we,id:"themeBorderButton"},{default:e.withCtx(()=>X[9]||(X[9]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[9]}),e.createVNode(te,{class:"ok-button button",onClick:S,id:"themeButton"},{default:e.withCtx(()=>X[10]||(X[10]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),e.createVNode(Xt.ssDialog,{visible:O.visible,title:O.title,onBeforeDestroy:we,width:O.width},{default:e.withCtx(()=>[e.createElementVNode("div",wd,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:z.value,key:z.value,isEnableWrap:!0,onChange:T},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Cd,[e.createVNode(te,{class:"cancel-button button",onClick:we,id:"themeBorderButton"},{default:e.withCtx(()=>X[11]||(X[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(te,{class:"ok-button button",onClick:we,id:"themeButton"},{default:e.withCtx(()=>X[12]||(X[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),e.createVNode(Xt.ssDialog,{visible:oe.visible,title:oe.title,onBeforeDestroy:we,width:oe.width},{default:e.withCtx(()=>[e.createElementVNode("div",Dd,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:k},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",_d,[e.createVNode(te,{class:"cancel-button button",onClick:we,id:"themeBorderButton"},{default:e.withCtx(()=>X[13]||(X[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(te,{class:"ok-button button",onClick:we,id:"themeButton"},{default:e.withCtx(()=>X[14]||(X[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),Sd=zt._export_sfc(Ed,[["__scopeId","data-v-fe119645"]]),Td={class:"layout"},Bd=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(o,{emit:i}){const c=i,r=o;e.onMounted(async()=>{});const p=e.computed(()=>x.cloneDeep(r==null?void 0:r.itemData)||[]),u=e.computed(()=>{var S;const C=(S=p==null?void 0:p.value)==null?void 0:S.find(O=>{const{key:z}=O;return z==="baseConfig"});return C==null?void 0:C.contents}),w=e.computed(()=>{var S;const C=(S=p==null?void 0:p.value)==null?void 0:S.find(O=>{const{key:z}=O;return z==="children"});return C==null?void 0:C.contents}),h=e.computed(()=>{let C=x.cloneDeep(w.value)||[];const S=C.length;let O=0;const z=[];if(C=C.map(ee=>{const P=ee.span;return P?(ee.span=Number(P),O=O+ee.span):z.push(ee),ee}),O<24){const ee=Math.floor((24-O)/S);z.forEach(P=>{P.span=ee})}return C}),f=C=>{c("rowClick",C)};return(C,S)=>{var ee;const O=e.resolveComponent("el-col"),z=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",Td,[e.createVNode(z,{style:e.normalizeStyle({height:(ee=u.value)==null?void 0:ee.height})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(P,be)=>(e.openBlock(),e.createBlock(O,{span:P==null?void 0:P.span},{default:e.withCtx(()=>{var T;return[e.unref($a)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Ca)(P.comp)),{key:e.unref(da),compName:P.name,index:(P==null?void 0:P.id)??be,height:(T=u.value)==null?void 0:T.height,itemData:P==null?void 0:P.compData,childItemData:P==null?void 0:P.itemChildData,onChange:e.unref(ja),onContentChange:e.unref(Ua),onPageChange:e.unref(Ka),onRowClick:f},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):e.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),Id=zt._export_sfc(Bd,[["__scopeId","data-v-ab9a36ed"]]),Nd={class:"layout-operate"},Ad={class:"layout-module"},Vd={class:"collapse-title-item"},Od={class:"collapse-title"},Md={class:"icon-content"},zd=["onClick"],Fd={class:"comp-child"},Rd=e.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(o,{emit:i}){const c=o,r=i;e.onMounted(()=>{be()});const p=e.ref({}),u=e.ref({}),w=e.ref([]),h=y=>[{label:"高度",prop:"height",type:"input",value:y==null?void 0:y.height}],f=y=>{u.value=y,r("change",F(),!0)},C=e.ref([]),S=e.ref([]),O=y=>[{label:"占比",prop:"span",type:"input",value:y==null?void 0:y.span}],z=e.computed(()=>{const y=c==null?void 0:c.itemContents;return x.cloneDeep(y)}),ee=e.computed(()=>{const y=z==null?void 0:z.value,b=y==null?void 0:y.find(k=>{const{key:G}=k;return G==="baseConfig"});return b==null?void 0:b.contents}),P=e.computed(()=>{const y=z==null?void 0:z.value,b=y==null?void 0:y.find(k=>{const{key:G}=k;return G==="children"});return b==null?void 0:b.contents}),be=()=>{var y;p.value=z.value||{},C.value=(P==null?void 0:P.value)||[],w.value=h(),w.value=(y=w.value)==null?void 0:y.map(b=>{var G;const{prop:k}=b;return b.value=(G=ee.value)==null?void 0:G[k],b})};e.watch(()=>{var y;return(y=P==null?void 0:P.value)==null?void 0:y.length},()=>{var y;C.value=(P==null?void 0:P.value)||[],S.value=(y=P.value)==null?void 0:y.map(b=>O(b))},{immediate:!0});const T=(y,b)=>{const k=x.cloneDeep(P==null?void 0:P.value);k[b].span=y.span,C.value=k,r("change",F(),!0)},j=y=>oa(y),oe=(y,b,k)=>{if(!y)return;const G=x.cloneDeep(P==null?void 0:P.value);G[k]&&(G[k].compData=y,C.value=G,r("change",F(),!0))},D=y=>{hn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let b=x.cloneDeep(P==null?void 0:P.value);b=b==null?void 0:b.filter((k,G)=>y!==G),C.value=b,r("change",F(),!0),ct.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},F=()=>({compData:[{key:"baseConfig",contents:u.value},{key:"children",contents:C==null?void 0:C.value}]});return(y,b)=>{const k=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Nd,[e.createElementVNode("div",Ad,[b[1]||(b[1]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createElementVNode("div",null,[e.createVNode(It.ssForm,{rowContents:w.value,isEnableWrap:!0,onChange:b[0]||(b[0]=G=>f(G))},null,8,["rowContents"])])]),e.createVNode(ir.default,{class:"collapse-content",collapseContents:P.value},{title:e.withCtx(({item:G,index:he})=>[e.createElementVNode("div",Vd,[e.createElementVNode("div",Od,e.toDisplayString(G.name),1),e.createElementVNode("div",Md,[e.createElementVNode("div",{onClick:e.withModifiers(ot=>D(he),["stop"]),class:"icon-content"},[e.createVNode(k,{name:"Delete",style:{width:"16px",height:"16px"}})],8,zd)])])]),content:e.withCtx(({item:G,index:he})=>[e.createElementVNode("div",Fd,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(It.ssForm,{rowContents:S.value[he],key:he,isEnableWrap:!0,onChange:ot=>T(ot,he)},null,8,["rowContents","onChange"]))]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(G.comp+"Operate")),{itemContents:G==null?void 0:G.compData,originalItemContents:G.compData,onChange:ot=>oe(ot,G,he)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),Pd=zt._export_sfc(Rd,[["__scopeId","data-v-ba05456e"]]),Ld=typeof window<"u";var Mo;Ld&&((Mo=window==null?void 0:window.navigator)!=null&&Mo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function cn(o){return o==null}function Mr(){}const $d=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys($d)));function jd(){const o=new Map;return{on(i,c){const r=o.get(i);r!=null&&r.add(c)||o.set(i,new Set([c]))},off(i,c){const r=o.get(i);r&&r.delete(c)},clear(i){const c=o.get(i);c&&c.clear()},clearAll(){o.clear()},emit(i,...c){const r=o.get(i);r&&r.forEach(p=>{p(...c)})}}}function zo(o,i=16){if(typeof o!="function")return Mr;const c=(...u)=>{o(...u)};if(i<=0)return zr(c);let r=0,p;return function(...u){const w=Date.now(),h=w-r;clearTimeout(p),h>=i?(r=w,c(...u)):p=setTimeout(()=>{r=Date.now(),c(...u)},Math.max(0,i-h))}}function Ud(o,i=100){if(typeof o!="function")return Mr;const c=(...p)=>{o(...p)};if(i<=0)return zr(c);let r;return function(...p){clearTimeout(r),r=setTimeout(()=>{c(...p)},i)}}function zr(o){if(typeof o!="function")return o;let i=!1,c,r;return function(...p){return c=p,i||(i=!0,r=Promise.resolve().then(()=>(i=!1,r=void 0,o(...c)))),r}}const ba=new Set,Fr=new WeakMap;function Kd(){ba.forEach(o=>{o(...Fr.get(o))}),ba.clear()}function on(o,...i){if(typeof o!="function")return o;Fr.set(o,i),!ba.has(o)&&(ba.add(o),ba.size===1&&Promise.resolve().then(Kd))}const Rr=Symbol("LAYOUT_KEY"),Pr=Symbol("EMITTER_KEY");function Wd(o){let i=0,c;for(let r=0,p=o.length;r<p;r++)c=o[r].y+o[r].h,c>i&&(i=c);return i}function lo(o){const i=Array(o.length);for(let c=0,r=o.length;c<r;c++)i[c]=Hd(o[c]);return i}function Hd(o){return{...o}}function Lr(o,i){return!(o===i||o.x+o.w<=i.x||o.x>=i.x+i.w||o.y+o.h<=i.y||o.y>=i.y+i.h)}function sa(o,i,c){const r=jr(o),p=Ur(o),u=Array(o.length);for(let w=0,h=p.length;w<h;w++){let f=p[w];f.static||(f=qd(r,f,i,c),r.push(f)),u[o.findIndex(C=>C.i===f.i)]=f,f.moved=!1}return u}function qd(o,i,c,r){if(c)for(;i.y>0&&!ka(o,i);)i.y--;else if(r){const u=r[i.i].y;for(;i.y>u&&!ka(o,i);)i.y--}let p;for(;p=ka(o,i);)i.y=p.y+p.h;return i}function Gd(o,i){const c=jr(o);for(let r=0,p=o.length;r<p;r++){const u=o[r];if(u.x+u.w>i.cols&&(u.x=i.cols-u.w),u.x<0&&(u.x=0,u.w=i.cols),!u.static)c.push(u);else for(;ka(c,u);)u.y++}return o}function Fo(o,i){for(let c=0,r=o.length;c<r;c++)if(o[c].i===i)return o[c]}function ka(o,i){for(let c=0,r=o.length;c<r;c++)if(Lr(o[c],i))return o[c]}function $r(o,i){return o.filter(c=>Lr(c,i))}function jr(o){return o.filter(i=>i.static)}function io(o,i,c,r,p=!1,u=!1){if(i.static)return o;const w=i.x,h=i.y,f=r&&i.y>r;typeof c=="number"&&(i.x=c),typeof r=="number"&&(i.y=r),i.moved=!0;let C=Ur(o);f&&(C=C.reverse());const S=$r(C,i);if(u&&S.length)return i.x=w,i.y=h,i.moved=!1,o;for(let O=0,z=S.length;O<z;O++){const ee=S[O];ee.moved||i.y>ee.y&&i.y-ee.y>ee.h/4||(ee.static?o=Ro(o,ee,i,p):o=Ro(o,i,ee,p))}return o}function Ro(o,i,c,r){if(r){const p={x:c.x,y:c.y,w:c.w,h:c.h};if(p.y=Math.max(i.y-c.h,0),!ka(o,p))return io(o,c,void 0,p.y,!1)}return io(o,c,void 0,c.y+1,!1)}function Xd(o,i,c,r){const p="translate3d("+i+"px,"+o+"px, 0)";return{transform:p,WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,width:c+"px",height:r+"px",position:"absolute"}}function Yd(o,i,c,r){const p="translate3d("+i*-1+"px,"+o+"px, 0)";return{transform:p,WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,width:c+"px",height:r+"px",position:"absolute"}}function Jd(o,i,c,r){return{top:o+"px",left:i+"px",width:c+"px",height:r+"px",position:"absolute"}}function Zd(o,i,c,r){return{top:o+"px",right:i+"px",width:c+"px",height:r+"px",position:"absolute"}}function Ur(o){return Array.from(o).sort(function(i,c){return i.y===c.y&&i.x===c.x?0:i.y>c.y||i.y===c.y&&i.x>c.x?1:-1})}function Qd(o,i){i=i||"Layout";const c=["x","y","w","h"],r=[];if(!Array.isArray(o))throw new Error(i+" must be an array!");for(let p=0,u=o.length;p<u;p++){const w=o[p];for(let h=0;h<c.length;h++)if(typeof w[c[h]]!="number")throw new Error("VueGridLayout: "+i+"["+p+"]."+c[h]+" must be a number!");if(w.i===void 0||w.i===null)throw new Error("VueGridLayout: "+i+"["+p+"].i cannot be null!");if(typeof w.i!="number"&&typeof w.i!="string")throw new Error("VueGridLayout: "+i+"["+p+"].i must be a string or number!");if(r.indexOf(w.i)>=0)throw new Error("VueGridLayout: "+i+"["+p+"].i must be unique!");if(r.push(w.i),w.static!==void 0&&typeof w.static!="boolean")throw new Error("VueGridLayout: "+i+"["+p+"].static must be a boolean!")}}function ep(o,i="vgl"){const c=()=>`${i}-${o}`;return{b:c,be:r=>`${c()}__${r}`,bm:r=>`${c()}--${r}`,bem:(r,p)=>`${c()}__${r}--${p}`}}function Po(o){return tp(o)}function tp(o){var i;const c=((i=o.target)==null?void 0:i.offsetParent)||document.body,r=o.offsetParent===document.body?{left:0,top:0}:c.getBoundingClientRect(),p=o.clientX+c.scrollLeft-r.left,u=o.clientY+c.scrollTop-r.top;return{x:p,y:u}}function Lo(o,i,c,r){return np(o)?{deltaX:c-o,deltaY:r-i,lastX:o,lastY:i,x:c,y:r}:{deltaX:0,deltaY:0,lastX:c,lastY:r,x:c,y:r}}function np(o){return typeof o=="number"&&!Number.isNaN(o)}function ap(o,i){const c=Wr(o);let r=c[0];for(let p=1,u=c.length;p<u;p++){const w=c[p];i>o[w]&&(r=w)}return r}function Kr(o,i){if(!i[o])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+o+" is missing!");return i[o]}function op(o,i,c,r,p,u,w){if(i[r])return lo(i[r]);let h=o;const f=Wr(c),C=f.slice(f.indexOf(r));for(let S=0,O=C.length;S<O;S++){const z=C[S];if(i[z]){h=i[z];break}}return h=lo(h||[]),sa(Gd(h,{cols:u}),w)}function Wr(o){return Object.keys(o).sort((i,c)=>o[i]-o[c])}let rp="auto";function lp(){return typeof document<"u"}function $o(){return lp()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):rp}var ya={exports:{}},ip=ya.exports,jo;function sp(){return jo||(jo=1,function(o,i){(function(c,r){o.exports=r()})(ip,function(){function c(n,t){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);t&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),a.push.apply(a,l)}return a}function r(n){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?c(Object(a),!0).forEach(function(l){f(n,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(a,l))})}return n}function p(n){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function w(n,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,be(l.key),l)}}function h(n,t,a){return t&&w(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function f(n,t,a){return(t=be(t))in n?Object.defineProperty(n,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[t]=a,n}function C(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&O(n,t)}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(n)}function O(n,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,l){return a.__proto__=l,a},O(n,t)}function z(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ee(n){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var a,l=S(n);if(t){var s=S(this).constructor;a=Reflect.construct(l,arguments,s)}else a=l.apply(this,arguments);return function(d,m){if(m&&(typeof m=="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z(d)}(this,a)}}function P(){return P=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(n,t,a){var l=function(d,m){for(;!Object.prototype.hasOwnProperty.call(d,m)&&(d=S(d))!==null;);return d}(n,t);if(l){var s=Object.getOwnPropertyDescriptor(l,t);return s.get?s.get.call(arguments.length<3?n:a):s.value}},P.apply(this,arguments)}function be(n){var t=function(a,l){if(typeof a!="object"||a===null)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var d=s.call(a,l);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n,"string");return typeof t=="symbol"?t:t+""}var T=function(n){return!(!n||!n.Window)&&n instanceof n.Window},j=void 0,oe=void 0;function D(n){j=n;var t=n.document.createTextNode("");t.ownerDocument!==n.document&&typeof n.wrap=="function"&&n.wrap(t)===t&&(n=n.wrap(n)),oe=n}function F(n){return T(n)?n:(n.ownerDocument||n).defaultView||oe.window}typeof window<"u"&&window&&D(window);var y=function(n){return!!n&&p(n)==="object"},b=function(n){return typeof n=="function"},k={window:function(n){return n===oe||T(n)},docFrag:function(n){return y(n)&&n.nodeType===11},object:y,func:b,number:function(n){return typeof n=="number"},bool:function(n){return typeof n=="boolean"},string:function(n){return typeof n=="string"},element:function(n){if(!n||p(n)!=="object")return!1;var t=F(n)||oe;return/object|function/.test(typeof Element>"u"?"undefined":p(Element))?n instanceof Element||n instanceof t.Element:n.nodeType===1&&typeof n.nodeName=="string"},plainObject:function(n){return y(n)&&!!n.constructor&&/function Object\b/.test(n.constructor.toString())},array:function(n){return y(n)&&n.length!==void 0&&b(n.splice)}};function G(n){var t=n.interaction;if(t.prepared.name==="drag"){var a=t.prepared.axis;a==="x"?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):a==="y"&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function he(n){var t=n.iEvent,a=n.interaction;if(a.prepared.name==="drag"){var l=a.prepared.axis;if(l==="x"||l==="y"){var s=l==="x"?"y":"x";t.page[s]=a.coords.start.page[s],t.client[s]=a.coords.start.client[s],t.delta[s]=0}}}var ot={id:"actions/drag",install:function(n){var t=n.actions,a=n.Interactable,l=n.defaults;a.prototype.draggable=ot.draggable,t.map.drag=ot,t.methodDict.drag="draggable",l.actions.drag=ot.defaults},listeners:{"interactions:before-action-move":G,"interactions:action-resume":G,"interactions:action-move":he,"auto-start:check":function(n){var t=n.interaction,a=n.interactable,l=n.buttons,s=a.options.drag;if(s&&s.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(l&a.options.drag.mouseButtons)!=0))return n.action={name:"drag",axis:s.lockAxis==="start"?s.startAxis:s.lockAxis},!1}},draggable:function(n){return k.object(n)?(this.options.drag.enabled=n.enabled!==!1,this.setPerAction("drag",n),this.setOnEvents("drag",n),/^(xy|x|y|start)$/.test(n.lockAxis)&&(this.options.drag.lockAxis=n.lockAxis),/^(xy|x|y)$/.test(n.startAxis)&&(this.options.drag.startAxis=n.startAxis),this):k.bool(n)?(this.options.drag.enabled=n,this):this.options.drag},beforeMove:G,move:he,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(n){return n.search("drag")===0}},Ee=ot,He={init:function(n){var t=n;He.document=t.document,He.DocumentFragment=t.DocumentFragment||$e,He.SVGElement=t.SVGElement||$e,He.SVGSVGElement=t.SVGSVGElement||$e,He.SVGElementInstance=t.SVGElementInstance||$e,He.Element=t.Element||$e,He.HTMLElement=t.HTMLElement||He.Element,He.Event=t.Event,He.Touch=t.Touch||$e,He.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function $e(){}var M=He,ie={init:function(n){var t=M.Element,a=n.navigator||{};ie.supportsTouch="ontouchstart"in n||k.func(n.DocumentTouch)&&M.document instanceof n.DocumentTouch,ie.supportsPointerEvent=a.pointerEnabled!==!1&&!!M.PointerEvent,ie.isIOS=/iP(hone|od|ad)/.test(a.platform),ie.isIOS7=/iP(hone|od|ad)/.test(a.platform)&&/OS 7[^\d]/.test(a.appVersion),ie.isIe9=/MSIE 9/.test(a.userAgent),ie.isOperaMobile=a.appName==="Opera"&&ie.supportsTouch&&/Presto/.test(a.userAgent),ie.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",ie.pEventTypes=ie.supportsPointerEvent?M.PointerEvent===n.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,ie.wheelEvent=M.document&&"onmousewheel"in M.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},le=ie;function fe(n,t){if(n.contains)return n.contains(t);for(;t;){if(t===n)return!0;t=t.parentNode}return!1}function Xe(n,t){for(;k.element(n);){if(q(n,t))return n;n=st(n)}return null}function st(n){var t=n.parentNode;if(k.docFrag(t)){for(;(t=t.host)&&k.docFrag(t););return t}return t}function q(n,t){return oe!==j&&(t=t.replace(/\/deep\//g," ")),n[le.prefixedMatchesSelector](t)}var V=function(n){return n.parentNode||n.host};function ve(n,t){for(var a,l=[],s=n;(a=V(s))&&s!==t&&a!==s.ownerDocument;)l.unshift(s),s=a;return l}function ke(n,t,a){for(;k.element(n);){if(q(n,t))return!0;if((n=st(n))===a)return q(n,t)}return!1}function ze(n){return n.correspondingUseElement||n}function Se(n){var t=n instanceof M.SVGElement?n.getBoundingClientRect():n.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}function Ye(n){var t,a=Se(n);if(!le.isIOS7&&a){var l={x:(t=(t=F(n))||oe).scrollX||t.document.documentElement.scrollLeft,y:t.scrollY||t.document.documentElement.scrollTop};a.left+=l.x,a.right+=l.x,a.top+=l.y,a.bottom+=l.y}return a}function ae(n){for(var t=[];n;)t.push(n),n=st(n);return t}function xe(n){return!!k.string(n)&&(M.document.querySelector(n),!0)}function B(n,t){for(var a in t)n[a]=t[a];return n}function Le(n,t,a){return n==="parent"?st(a):n==="self"?t.getRect(a):Xe(a,n)}function Fe(n,t,a,l){var s=n;return k.string(s)?s=Le(s,t,a):k.func(s)&&(s=s.apply(void 0,l)),k.element(s)&&(s=Ye(s)),s}function we(n){return n&&{x:"x"in n?n.x:n.left,y:"y"in n?n.y:n.top}}function ne(n){return!n||"x"in n&&"y"in n||((n=B({},n)).x=n.left||0,n.y=n.top||0,n.width=n.width||(n.right||0)-n.x,n.height=n.height||(n.bottom||0)-n.y),n}function X(n,t,a){n.left&&(t.left+=a.x),n.right&&(t.right+=a.x),n.top&&(t.top+=a.y),n.bottom&&(t.bottom+=a.y),t.width=t.right-t.left,t.height=t.bottom-t.top}function te(n,t,a){var l=a&&n.options[a];return we(Fe(l&&l.origin||n.options.origin,n,t,[n&&t]))||{x:0,y:0}}function Ce(n,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(I){return!0},l=arguments.length>3?arguments[3]:void 0;if(l=l||{},k.string(n)&&n.search(" ")!==-1&&(n=Ge(n)),k.array(n))return n.forEach(function(I){return Ce(I,t,a,l)}),l;if(k.object(n)&&(t=n,n=""),k.func(t)&&a(n))l[n]=l[n]||[],l[n].push(t);else if(k.array(t))for(var s=0,d=t;s<d.length;s++){var m=d[s];Ce(n,m,a,l)}else if(k.object(t))for(var g in t)Ce(Ge(g).map(function(I){return"".concat(n).concat(I)}),t[g],a,l);return l}function Ge(n){return n.trim().split(/ +/)}var dt=function(n,t){return Math.sqrt(n*n+t*t)},v=["webkit","moz"];function E(n,t){n.__set||(n.__set={});var a=function(s){if(v.some(function(d){return s.indexOf(d)===0}))return 1;typeof n[s]!="function"&&s!=="__set"&&Object.defineProperty(n,s,{get:function(){return s in n.__set?n.__set[s]:n.__set[s]=t[s]},set:function(d){n.__set[s]=d},configurable:!0})};for(var l in t)a(l);return n}function W(n,t){n.page=n.page||{},n.page.x=t.page.x,n.page.y=t.page.y,n.client=n.client||{},n.client.x=t.client.x,n.client.y=t.client.y,n.timeStamp=t.timeStamp}function J(n){n.page.x=0,n.page.y=0,n.client.x=0,n.client.y=0}function _(n){return n instanceof M.Event||n instanceof M.Touch}function re(n,t,a){return n=n||"page",(a=a||{}).x=t[n+"X"],a.y=t[n+"Y"],a}function Ne(n,t){return t=t||{x:0,y:0},le.isOperaMobile&&_(n)?(re("screen",n,t),t.x+=window.scrollX,t.y+=window.scrollY):re("page",n,t),t}function Z(n){return k.number(n.pointerId)?n.pointerId:n.identifier}function L(n,t,a){var l=t.length>1?H(t):t[0];Ne(l,n.page),function(s,d){d=d||{},le.isOperaMobile&&_(s)?re("screen",s,d):re("client",s,d)}(l,n.client),n.timeStamp=a}function U(n){var t=[];return k.array(n)?(t[0]=n[0],t[1]=n[1]):n.type==="touchend"?n.touches.length===1?(t[0]=n.touches[0],t[1]=n.changedTouches[0]):n.touches.length===0&&(t[0]=n.changedTouches[0],t[1]=n.changedTouches[1]):(t[0]=n.touches[0],t[1]=n.touches[1]),t}function H(n){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},a=0;a<n.length;a++){var l=n[a];for(var s in t)t[s]+=l[s]}for(var d in t)t[d]/=n.length;return t}function ge(n){if(!n.length)return null;var t=U(n),a=Math.min(t[0].pageX,t[1].pageX),l=Math.min(t[0].pageY,t[1].pageY),s=Math.max(t[0].pageX,t[1].pageX),d=Math.max(t[0].pageY,t[1].pageY);return{x:a,y:l,left:a,top:l,right:s,bottom:d,width:s-a,height:d-l}}function ue(n,t){var a=t+"X",l=t+"Y",s=U(n),d=s[0][a]-s[1][a],m=s[0][l]-s[1][l];return dt(d,m)}function K(n,t){var a=t+"X",l=t+"Y",s=U(n),d=s[1][a]-s[0][a],m=s[1][l]-s[0][l];return 180*Math.atan2(m,d)/Math.PI}function ce(n){return k.string(n.pointerType)?n.pointerType:k.number(n.pointerType)?[void 0,void 0,"touch","pen","mouse"][n.pointerType]:/touch/.test(n.type||"")||n instanceof M.Touch?"touch":"mouse"}function Q(n){var t=k.func(n.composedPath)?n.composedPath():n.path;return[ze(t?t[0]:n.target),ze(n.currentTarget)]}var Be=function(){function n(t){u(this,n),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}return h(n,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n}();Object.defineProperty(Be.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var se=function(n,t){for(var a=0;a<t.length;a++){var l=t[a];n.push(l)}return n},_e=function(n){return se([],n)},R=function(n,t){for(var a=0;a<n.length;a++)if(t(n[a],a,n))return a;return-1},Ie=function(n,t){return n[R(n,t)]},de=function(n){C(a,n);var t=ee(a);function a(l,s,d){var m;u(this,a),(m=t.call(this,s._interaction)).dropzone=void 0,m.dragEvent=void 0,m.relatedTarget=void 0,m.draggable=void 0,m.propagationStopped=!1,m.immediatePropagationStopped=!1;var g=d==="dragleave"?l.prev:l.cur,I=g.element,$=g.dropzone;return m.type=d,m.target=I,m.currentTarget=I,m.dropzone=$,m.dragEvent=s,m.relatedTarget=s.target,m.draggable=s.interactable,m.timeStamp=s.timeStamp,m}return h(a,[{key:"reject",value:function(){var l=this,s=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&s.cur.dropzone===this.dropzone&&s.cur.element===this.target)if(s.prev.dropzone=this.dropzone,s.prev.element=this.target,s.rejected=!0,s.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var d=s.activeDrops,m=R(d,function(I){var $=I.dropzone,A=I.element;return $===l.dropzone&&A===l.target});s.activeDrops.splice(m,1);var g=new a(s,this.dragEvent,"dropdeactivate");g.dropzone=this.dropzone,g.target=this.target,this.dropzone.fire(g)}else this.dropzone.fire(new a(s,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),a}(Be);function je(n,t){for(var a=0,l=n.slice();a<l.length;a++){var s=l[a],d=s.dropzone,m=s.element;t.dropzone=d,t.target=m,d.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function it(n,t){for(var a=function(d,m){for(var g=[],I=0,$=d.interactables.list;I<$.length;I++){var A=$[I];if(A.options.drop.enabled){var Y=A.options.drop.accept;if(!(k.element(Y)&&Y!==m||k.string(Y)&&!q(m,Y)||k.func(Y)&&!Y({dropzone:A,draggableElement:m})))for(var ye=0,Re=A.getAllElements();ye<Re.length;ye++){var Oe=Re[ye];Oe!==m&&g.push({dropzone:A,element:Oe,rect:A.getRect(Oe)})}}}return g}(n,t),l=0;l<a.length;l++){var s=a[l];s.rect=s.dropzone.getRect(s.element)}return a}function qe(n,t,a){for(var l=n.dropState,s=n.interactable,d=n.element,m=[],g=0,I=l.activeDrops;g<I.length;g++){var $=I[g],A=$.dropzone,Y=$.element,ye=$.rect,Re=A.dropCheck(t,a,s,d,Y,ye);m.push(Re?Y:null)}var Oe=function(Ke){for(var lt,at,ht,St=[],At=0;At<Ke.length;At++){var kt=Ke[At],Tt=Ke[lt];if(kt&&At!==lt)if(Tt){var an=V(kt),Kt=V(Tt);if(an!==kt.ownerDocument)if(Kt!==kt.ownerDocument)if(an!==Kt){St=St.length?St:ve(Tt);var sn=void 0;if(Tt instanceof M.HTMLElement&&kt instanceof M.SVGElement&&!(kt instanceof M.SVGSVGElement)){if(kt===Kt)continue;sn=kt.ownerSVGElement}else sn=kt;for(var fn=ve(sn,Tt.ownerDocument),Cn=0;fn[Cn]&&fn[Cn]===St[Cn];)Cn++;var Ia=[fn[Cn-1],fn[Cn],St[Cn]];if(Ia[0])for(var va=Ia[0].lastChild;va;){if(va===Ia[1]){lt=At,St=fn;break}if(va===Ia[2])break;va=va.previousSibling}}else ht=Tt,(parseInt(F(at=kt).getComputedStyle(at).zIndex,10)||0)>=(parseInt(F(ht).getComputedStyle(ht).zIndex,10)||0)&&(lt=At);else lt=At}else lt=At}return lt}(m);return l.activeDrops[Oe]||null}function Qe(n,t,a){var l=n.dropState,s={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return a.type==="dragstart"&&(s.activate=new de(l,a,"dropactivate"),s.activate.target=null,s.activate.dropzone=null),a.type==="dragend"&&(s.deactivate=new de(l,a,"dropdeactivate"),s.deactivate.target=null,s.deactivate.dropzone=null),l.rejected||(l.cur.element!==l.prev.element&&(l.prev.dropzone&&(s.leave=new de(l,a,"dragleave"),a.dragLeave=s.leave.target=l.prev.element,a.prevDropzone=s.leave.dropzone=l.prev.dropzone),l.cur.dropzone&&(s.enter=new de(l,a,"dragenter"),a.dragEnter=l.cur.element,a.dropzone=l.cur.dropzone)),a.type==="dragend"&&l.cur.dropzone&&(s.drop=new de(l,a,"drop"),a.dropzone=l.cur.dropzone,a.relatedTarget=l.cur.element),a.type==="dragmove"&&l.cur.dropzone&&(s.move=new de(l,a,"dropmove"),a.dropzone=l.cur.dropzone)),s}function Te(n,t){var a=n.dropState,l=a.activeDrops,s=a.cur,d=a.prev;t.leave&&d.dropzone.fire(t.leave),t.enter&&s.dropzone.fire(t.enter),t.move&&s.dropzone.fire(t.move),t.drop&&s.dropzone.fire(t.drop),t.deactivate&&je(l,t.deactivate),a.prev.dropzone=s.dropzone,a.prev.element=s.element}function pt(n,t){var a=n.interaction,l=n.iEvent,s=n.event;if(l.type==="dragmove"||l.type==="dragend"){var d=a.dropState;t.dynamicDrop&&(d.activeDrops=it(t,a.element));var m=l,g=qe(a,m,s);d.rejected=d.rejected&&!!g&&g.dropzone===d.cur.dropzone&&g.element===d.cur.element,d.cur.dropzone=g&&g.dropzone,d.cur.element=g&&g.element,d.events=Qe(a,0,m)}}var Je={id:"actions/drop",install:function(n){var t=n.actions,a=n.interactStatic,l=n.Interactable,s=n.defaults;n.usePlugin(Ee),l.prototype.dropzone=function(d){return function(m,g){if(k.object(g)){if(m.options.drop.enabled=g.enabled!==!1,g.listeners){var I=Ce(g.listeners),$=Object.keys(I).reduce(function(Y,ye){return Y[/^(enter|leave)/.test(ye)?"drag".concat(ye):/^(activate|deactivate|move)/.test(ye)?"drop".concat(ye):ye]=I[ye],Y},{}),A=m.options.drop.listeners;A&&m.off(A),m.on($),m.options.drop.listeners=$}return k.func(g.ondrop)&&m.on("drop",g.ondrop),k.func(g.ondropactivate)&&m.on("dropactivate",g.ondropactivate),k.func(g.ondropdeactivate)&&m.on("dropdeactivate",g.ondropdeactivate),k.func(g.ondragenter)&&m.on("dragenter",g.ondragenter),k.func(g.ondragleave)&&m.on("dragleave",g.ondragleave),k.func(g.ondropmove)&&m.on("dropmove",g.ondropmove),/^(pointer|center)$/.test(g.overlap)?m.options.drop.overlap=g.overlap:k.number(g.overlap)&&(m.options.drop.overlap=Math.max(Math.min(1,g.overlap),0)),"accept"in g&&(m.options.drop.accept=g.accept),"checker"in g&&(m.options.drop.checker=g.checker),m}return k.bool(g)?(m.options.drop.enabled=g,m):m.options.drop}(this,d)},l.prototype.dropCheck=function(d,m,g,I,$,A){return function(Y,ye,Re,Oe,Ke,lt,at){var ht=!1;if(!(at=at||Y.getRect(lt)))return!!Y.options.drop.checker&&Y.options.drop.checker(ye,Re,ht,Y,lt,Oe,Ke);var St=Y.options.drop.overlap;if(St==="pointer"){var At=te(Oe,Ke,"drag"),kt=Ne(ye);kt.x+=At.x,kt.y+=At.y;var Tt=kt.x>at.left&&kt.x<at.right,an=kt.y>at.top&&kt.y<at.bottom;ht=Tt&&an}var Kt=Oe.getRect(Ke);if(Kt&&St==="center"){var sn=Kt.left+Kt.width/2,fn=Kt.top+Kt.height/2;ht=sn>=at.left&&sn<=at.right&&fn>=at.top&&fn<=at.bottom}return Kt&&k.number(St)&&(ht=Math.max(0,Math.min(at.right,Kt.right)-Math.max(at.left,Kt.left))*Math.max(0,Math.min(at.bottom,Kt.bottom)-Math.max(at.top,Kt.top))/(Kt.width*Kt.height)>=St),Y.options.drop.checker&&(ht=Y.options.drop.checker(ye,Re,ht,Y,lt,Oe,Ke)),ht}(this,d,m,g,I,$,A)},a.dynamicDrop=function(d){return k.bool(d)?(n.dynamicDrop=d,a):n.dynamicDrop},B(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",n.dynamicDrop=!1,s.actions.drop=Je.defaults},listeners:{"interactions:before-action-start":function(n){var t=n.interaction;t.prepared.name==="drag"&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(n,t){var a=n.interaction,l=(n.event,n.iEvent);if(a.prepared.name==="drag"){var s=a.dropState;s.activeDrops=[],s.events={},s.activeDrops=it(t,a.element),s.events=Qe(a,0,l),s.events.activate&&(je(s.activeDrops,s.events.activate),t.fire("actions/drop:start",{interaction:a,dragEvent:l}))}},"interactions:action-move":pt,"interactions:after-action-move":function(n,t){var a=n.interaction,l=n.iEvent;if(a.prepared.name==="drag"){var s=a.dropState;Te(a,s.events),t.fire("actions/drop:move",{interaction:a,dragEvent:l}),s.events={}}},"interactions:action-end":function(n,t){if(n.interaction.prepared.name==="drag"){var a=n.interaction,l=n.iEvent;pt(n,t),Te(a,a.dropState.events),t.fire("actions/drop:end",{interaction:a,dragEvent:l})}},"interactions:stop":function(n){var t=n.interaction;if(t.prepared.name==="drag"){var a=t.dropState;a&&(a.activeDrops=null,a.events=null,a.cur.dropzone=null,a.cur.element=null,a.prev.dropzone=null,a.prev.element=null,a.rejected=!1)}}},getActiveDrops:it,getDrop:qe,getDropEvents:Qe,fireDropEvents:Te,filterEventType:function(n){return n.search("drag")===0||n.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ve=Je;function rt(n){var t=n.interaction,a=n.iEvent,l=n.phase;if(t.prepared.name==="gesture"){var s=t.pointers.map(function($){return $.pointer}),d=l==="start",m=l==="end",g=t.interactable.options.deltaSource;if(a.touches=[s[0],s[1]],d)a.distance=ue(s,g),a.box=ge(s),a.scale=1,a.ds=0,a.angle=K(s,g),a.da=0,t.gesture.startDistance=a.distance,t.gesture.startAngle=a.angle;else if(m||t.pointers.length<2){var I=t.prevEvent;a.distance=I.distance,a.box=I.box,a.scale=I.scale,a.ds=0,a.angle=I.angle,a.da=0}else a.distance=ue(s,g),a.box=ge(s),a.scale=a.distance/t.gesture.startDistance,a.angle=K(s,g),a.ds=a.scale-t.gesture.scale,a.da=a.angle-t.gesture.angle;t.gesture.distance=a.distance,t.gesture.angle=a.angle,k.number(a.scale)&&a.scale!==1/0&&!isNaN(a.scale)&&(t.gesture.scale=a.scale)}}var mt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(n){var t=n.actions,a=n.Interactable,l=n.defaults;a.prototype.gesturable=function(s){return k.object(s)?(this.options.gesture.enabled=s.enabled!==!1,this.setPerAction("gesture",s),this.setOnEvents("gesture",s),this):k.bool(s)?(this.options.gesture.enabled=s,this):this.options.gesture},t.map.gesture=mt,t.methodDict.gesture="gesturable",l.actions.gesture=mt.defaults},listeners:{"interactions:action-start":rt,"interactions:action-move":rt,"interactions:action-end":rt,"interactions:new":function(n){n.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(n){if(!(n.interaction.pointers.length<2)){var t=n.interactable.options.gesture;if(t&&t.enabled)return n.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(n){return n.search("gesture")===0}},xt=mt;function Ue(n,t,a,l,s,d,m){if(!t)return!1;if(t===!0){var g=k.number(d.width)?d.width:d.right-d.left,I=k.number(d.height)?d.height:d.bottom-d.top;if(m=Math.min(m,Math.abs((n==="left"||n==="right"?g:I)/2)),g<0&&(n==="left"?n="right":n==="right"&&(n="left")),I<0&&(n==="top"?n="bottom":n==="bottom"&&(n="top")),n==="left"){var $=g>=0?d.left:d.right;return a.x<$+m}if(n==="top"){var A=I>=0?d.top:d.bottom;return a.y<A+m}if(n==="right")return a.x>(g>=0?d.right:d.left)-m;if(n==="bottom")return a.y>(I>=0?d.bottom:d.top)-m}return!!k.element(l)&&(k.element(t)?t===l:ke(l,t,s))}function nt(n){var t=n.iEvent,a=n.interaction;if(a.prepared.name==="resize"&&a.resizeAxes){var l=t;a.interactable.options.resize.square?(a.resizeAxes==="y"?l.delta.x=l.delta.y:l.delta.y=l.delta.x,l.axes="xy"):(l.axes=a.resizeAxes,a.resizeAxes==="x"?l.delta.y=0:a.resizeAxes==="y"&&(l.delta.x=0))}}var yt,Me,Pe={id:"actions/resize",before:["actions/drag"],install:function(n){var t=n.actions,a=n.browser,l=n.Interactable,s=n.defaults;Pe.cursors=function(d){return d.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(a),Pe.defaultMargin=a.supportsTouch||a.supportsPointerEvent?20:10,l.prototype.resizable=function(d){return function(m,g,I){return k.object(g)?(m.options.resize.enabled=g.enabled!==!1,m.setPerAction("resize",g),m.setOnEvents("resize",g),k.string(g.axis)&&/^x$|^y$|^xy$/.test(g.axis)?m.options.resize.axis=g.axis:g.axis===null&&(m.options.resize.axis=I.defaults.actions.resize.axis),k.bool(g.preserveAspectRatio)?m.options.resize.preserveAspectRatio=g.preserveAspectRatio:k.bool(g.square)&&(m.options.resize.square=g.square),m):k.bool(g)?(m.options.resize.enabled=g,m):m.options.resize}(this,d,n)},t.map.resize=Pe,t.methodDict.resize="resizable",s.actions.resize=Pe.defaults},listeners:{"interactions:new":function(n){n.interaction.resizeAxes="xy"},"interactions:action-start":function(n){(function(t){var a=t.iEvent,l=t.interaction;if(l.prepared.name==="resize"&&l.prepared.edges){var s=a,d=l.rect;l._rects={start:B({},d),corrected:B({},d),previous:B({},d),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},s.edges=l.prepared.edges,s.rect=l._rects.corrected,s.deltaRect=l._rects.delta}})(n),nt(n)},"interactions:action-move":function(n){(function(t){var a=t.iEvent,l=t.interaction;if(l.prepared.name==="resize"&&l.prepared.edges){var s=a,d=l.interactable.options.resize.invert,m=d==="reposition"||d==="negate",g=l.rect,I=l._rects,$=I.start,A=I.corrected,Y=I.delta,ye=I.previous;if(B(ye,A),m){if(B(A,g),d==="reposition"){if(A.top>A.bottom){var Re=A.top;A.top=A.bottom,A.bottom=Re}if(A.left>A.right){var Oe=A.left;A.left=A.right,A.right=Oe}}}else A.top=Math.min(g.top,$.bottom),A.bottom=Math.max(g.bottom,$.top),A.left=Math.min(g.left,$.right),A.right=Math.max(g.right,$.left);for(var Ke in A.width=A.right-A.left,A.height=A.bottom-A.top,A)Y[Ke]=A[Ke]-ye[Ke];s.edges=l.prepared.edges,s.rect=A,s.deltaRect=Y}})(n),nt(n)},"interactions:action-end":function(n){var t=n.iEvent,a=n.interaction;if(a.prepared.name==="resize"&&a.prepared.edges){var l=t;l.edges=a.prepared.edges,l.rect=a._rects.corrected,l.deltaRect=a._rects.delta}},"auto-start:check":function(n){var t=n.interaction,a=n.interactable,l=n.element,s=n.rect,d=n.buttons;if(s){var m=B({},t.coords.cur.page),g=a.options.resize;if(g&&g.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(d&g.mouseButtons)!=0)){if(k.object(g.edges)){var I={left:!1,right:!1,top:!1,bottom:!1};for(var $ in I)I[$]=Ue($,g.edges[$],m,t._latestPointer.eventTarget,l,s,g.margin||Pe.defaultMargin);I.left=I.left&&!I.right,I.top=I.top&&!I.bottom,(I.left||I.right||I.top||I.bottom)&&(n.action={name:"resize",edges:I})}else{var A=g.axis!=="y"&&m.x>s.right-Pe.defaultMargin,Y=g.axis!=="x"&&m.y>s.bottom-Pe.defaultMargin;(A||Y)&&(n.action={name:"resize",axes:(A?"x":"")+(Y?"y":"")})}return!n.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(n){var t=n.edges,a=n.axis,l=n.name,s=Pe.cursors,d=null;if(a)d=s[l+a];else if(t){for(var m="",g=0,I=["top","bottom","left","right"];g<I.length;g++){var $=I[g];t[$]&&(m+=$)}d=s[m]}return d},filterEventType:function(n){return n.search("resize")===0},defaultMargin:null},We=Pe,De={id:"actions",install:function(n){n.usePlugin(xt),n.usePlugin(We),n.usePlugin(Ee),n.usePlugin(Ve)}},N=0,pe={request:function(n){return yt(n)},cancel:function(n){return Me(n)},init:function(n){if(yt=n.requestAnimationFrame,Me=n.cancelAnimationFrame,!yt)for(var t=["ms","moz","webkit","o"],a=0;a<t.length;a++){var l=t[a];yt=n["".concat(l,"RequestAnimationFrame")],Me=n["".concat(l,"CancelAnimationFrame")]||n["".concat(l,"CancelRequestAnimationFrame")]}yt=yt&&yt.bind(n),Me=Me&&Me.bind(n),yt||(yt=function(s){var d=Date.now(),m=Math.max(0,16-(d-N)),g=n.setTimeout(function(){s(d+m)},m);return N=d+m,g},Me=function(s){return clearTimeout(s)})}},me={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(n){me.isScrolling=!0,pe.cancel(me.i),n.autoScroll=me,me.interaction=n,me.prevTime=me.now(),me.i=pe.request(me.scroll)},stop:function(){me.isScrolling=!1,me.interaction&&(me.interaction.autoScroll=null),pe.cancel(me.i)},scroll:function(){var n=me.interaction,t=n.interactable,a=n.element,l=n.prepared.name,s=t.options[l].autoScroll,d=et(s.container,t,a),m=me.now(),g=(m-me.prevTime)/1e3,I=s.speed*g;if(I>=1){var $={x:me.x*I,y:me.y*I};if($.x||$.y){var A=Ze(d);k.window(d)?d.scrollBy($.x,$.y):d&&(d.scrollLeft+=$.x,d.scrollTop+=$.y);var Y=Ze(d),ye={x:Y.x-A.x,y:Y.y-A.y};(ye.x||ye.y)&&t.fire({type:"autoscroll",target:a,interactable:t,delta:ye,interaction:n,container:d})}me.prevTime=m}me.isScrolling&&(pe.cancel(me.i),me.i=pe.request(me.scroll))},check:function(n,t){var a;return(a=n.options[t].autoScroll)==null?void 0:a.enabled},onInteractionMove:function(n){var t=n.interaction,a=n.pointer;if(t.interacting()&&me.check(t.interactable,t.prepared.name))if(t.simulation)me.x=me.y=0;else{var l,s,d,m,g=t.interactable,I=t.element,$=t.prepared.name,A=g.options[$].autoScroll,Y=et(A.container,g,I);if(k.window(Y))m=a.clientX<me.margin,l=a.clientY<me.margin,s=a.clientX>Y.innerWidth-me.margin,d=a.clientY>Y.innerHeight-me.margin;else{var ye=Se(Y);m=a.clientX<ye.left+me.margin,l=a.clientY<ye.top+me.margin,s=a.clientX>ye.right-me.margin,d=a.clientY>ye.bottom-me.margin}me.x=s?1:m?-1:0,me.y=d?1:l?-1:0,me.isScrolling||(me.margin=A.margin,me.speed=A.speed,me.start(t))}}};function et(n,t,a){return(k.string(n)?Le(n,t,a):n)||F(a)}function Ze(n){return k.window(n)&&(n=window.document.body),{x:n.scrollLeft,y:n.scrollTop}}var Dt={id:"auto-scroll",install:function(n){var t=n.defaults,a=n.actions;n.autoScroll=me,me.now=function(){return n.now()},a.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=me.defaults},listeners:{"interactions:new":function(n){n.interaction.autoScroll=null},"interactions:destroy":function(n){n.interaction.autoScroll=null,me.stop(),me.interaction&&(me.interaction=null)},"interactions:stop":me.stop,"interactions:action-move":function(n){return me.onInteractionMove(n)}}},Ct=Dt;function ut(n,t){var a=!1;return function(){return a||(oe.console.warn(t),a=!0),n.apply(this,arguments)}}function ft(n,t){return n.name=t.name,n.axis=t.axis,n.edges=t.edges,n}function vt(n){return k.bool(n)?(this.options.styleCursor=n,this):n===null?(delete this.options.styleCursor,this):this.options.styleCursor}function gt(n){return k.func(n)?(this.options.actionChecker=n,this):n===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Pt={id:"auto-start/interactableMethods",install:function(n){var t=n.Interactable;t.prototype.getAction=function(a,l,s,d){var m=function(g,I,$,A,Y){var ye=g.getRect(A),Re=I.buttons||{0:1,1:4,3:8,4:16}[I.button],Oe={action:null,interactable:g,interaction:$,element:A,rect:ye,buttons:Re};return Y.fire("auto-start:check",Oe),Oe.action}(this,l,s,d,n);return this.options.actionChecker?this.options.actionChecker(a,l,m,this,d,s):m},t.prototype.ignoreFrom=ut(function(a){return this._backCompatOption("ignoreFrom",a)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=ut(function(a){return this._backCompatOption("allowFrom",a)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=gt,t.prototype.styleCursor=vt}};function bt(n,t,a,l,s){return t.testIgnoreAllow(t.options[n.name],a,l)&&t.options[n.name].enabled&&Wt(t,a,n,s)?n:null}function Ft(n,t,a,l,s,d,m){for(var g=0,I=l.length;g<I;g++){var $=l[g],A=s[g],Y=$.getAction(t,a,n,A);if(Y){var ye=bt(Y,$,A,d,m);if(ye)return{action:ye,interactable:$,element:A}}}return{action:null,interactable:null,element:null}}function Rt(n,t,a,l,s){var d=[],m=[],g=l;function I(A){d.push(A),m.push(g)}for(;k.element(g);){d=[],m=[],s.interactables.forEachMatch(g,I);var $=Ft(n,t,a,d,m,l,s);if($.action&&!$.interactable.options[$.action.name].manualStart)return $;g=st(g)}return{action:null,interactable:null,element:null}}function Ut(n,t,a){var l=t.action,s=t.interactable,d=t.element;l=l||{name:null},n.interactable=s,n.element=d,ft(n.prepared,l),n.rect=s&&l.name?s.getRect(d):null,$t(n,a),a.fire("autoStart:prepared",{interaction:n})}function Wt(n,t,a,l){var s=n.options,d=s[a.name].max,m=s[a.name].maxPerElement,g=l.autoStart.maxInteractions,I=0,$=0,A=0;if(!(d&&m&&g))return!1;for(var Y=0,ye=l.interactions.list;Y<ye.length;Y++){var Re=ye[Y],Oe=Re.prepared.name;if(Re.interacting()&&(++I>=g||Re.interactable===n&&(($+=Oe===a.name?1:0)>=d||Re.element===t&&(A++,Oe===a.name&&A>=m))))return!1}return g>0}function Jt(n,t){return k.number(n)?(t.autoStart.maxInteractions=n,this):t.autoStart.maxInteractions}function Qt(n,t,a){var l=a.autoStart.cursorElement;l&&l!==n&&(l.style.cursor=""),n.ownerDocument.documentElement.style.cursor=t,n.style.cursor=t,a.autoStart.cursorElement=t?n:null}function $t(n,t){var a=n.interactable,l=n.element,s=n.prepared;if(n.pointerType==="mouse"&&a&&a.options.styleCursor){var d="";if(s.name){var m=a.options[s.name].cursorChecker;d=k.func(m)?m(s,a,l,n._interacting):t.actions.map[s.name].getCursor(s)}Qt(n.element,d||"",t)}else t.autoStart.cursorElement&&Qt(t.autoStart.cursorElement,"",t)}var Rn={id:"auto-start/base",before:["actions"],install:function(n){var t=n.interactStatic,a=n.defaults;n.usePlugin(Pt),a.base.actionChecker=null,a.base.styleCursor=!0,B(a.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(l){return Jt(l,n)},n.autoStart={maxInteractions:1/0,withinInteractionLimit:Wt,cursorElement:null}},listeners:{"interactions:down":function(n,t){var a=n.interaction,l=n.pointer,s=n.event,d=n.eventTarget;a.interacting()||Ut(a,Rt(a,l,s,d,t),t)},"interactions:move":function(n,t){(function(a,l){var s=a.interaction,d=a.pointer,m=a.event,g=a.eventTarget;s.pointerType!=="mouse"||s.pointerIsDown||s.interacting()||Ut(s,Rt(s,d,m,g,l),l)})(n,t),function(a,l){var s=a.interaction;if(s.pointerIsDown&&!s.interacting()&&s.pointerWasMoved&&s.prepared.name){l.fire("autoStart:before-start",a);var d=s.interactable,m=s.prepared.name;m&&d&&(d.options[m].manualStart||!Wt(d,s.element,s.prepared,l)?s.stop():(s.start(s.prepared,d,s.element),$t(s,l)))}}(n,t)},"interactions:stop":function(n,t){var a=n.interaction,l=a.interactable;l&&l.options.styleCursor&&Qt(a.element,"",t)}},maxInteractions:Jt,withinInteractionLimit:Wt,validateAction:bt},bn=Rn,Pn={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(n,t){var a=n.interaction,l=n.eventTarget,s=n.dx,d=n.dy;if(a.prepared.name==="drag"){var m=Math.abs(s),g=Math.abs(d),I=a.interactable.options.drag,$=I.startAxis,A=m>g?"x":m<g?"y":"xy";if(a.prepared.axis=I.lockAxis==="start"?A[0]:I.lockAxis,A!=="xy"&&$!=="xy"&&$!==A){a.prepared.name=null;for(var Y=l,ye=function(Oe){if(Oe!==a.interactable){var Ke=a.interactable.options.drag;if(!Ke.manualStart&&Oe.testIgnoreAllow(Ke,Y,l)){var lt=Oe.getAction(a.downPointer,a.downEvent,a,Y);if(lt&&lt.name==="drag"&&function(at,ht){if(!ht)return!1;var St=ht.options.drag.startAxis;return at==="xy"||St==="xy"||St===at}(A,Oe)&&bn.validateAction(lt,Oe,Y,l,t))return Oe}}};k.element(Y);){var Re=t.interactables.forEachMatch(Y,ye);if(Re){a.prepared.name="drag",a.interactable=Re,a.element=Y;break}Y=st(Y)}}}}}};function kn(n){var t=n.prepared&&n.prepared.name;if(!t)return null;var a=n.interactable.options;return a[t].hold||a[t].delay}var Ln={id:"auto-start/hold",install:function(n){var t=n.defaults;n.usePlugin(bn),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(n){n.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(n){var t=n.interaction,a=kn(t);a>0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},a))},"interactions:move":function(n){var t=n.interaction,a=n.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!a&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(n){var t=n.interaction;kn(t)>0&&(t.prepared.name=null)}},getHoldDuration:kn},$n=Ln,jn={id:"auto-start",install:function(n){n.usePlugin(bn),n.usePlugin($n),n.usePlugin(Pn)}},Un=function(n){return/^(always|never|auto)$/.test(n)?(this.options.preventDefault=n,this):k.bool(n)?(this.options.preventDefault=n?"always":"never",this):this.options.preventDefault};function Kn(n){var t=n.interaction,a=n.event;t.interactable&&t.interactable.checkAndPreventDefault(a)}var Tn={id:"core/interactablePreventDefault",install:function(n){var t=n.Interactable;t.prototype.preventDefault=Un,t.prototype.checkAndPreventDefault=function(a){return function(l,s,d){var m=l.options.preventDefault;if(m!=="never")if(m!=="always"){if(s.events.supportsPassive&&/^touch(start|move)$/.test(d.type)){var g=F(d.target).document,I=s.getDocOptions(g);if(!I||!I.events||I.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(d.type)||k.element(d.target)&&q(d.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||d.preventDefault()}else d.preventDefault()}(this,n,a)},n.interactions.docEvents.push({type:"dragstart",listener:function(a){for(var l=0,s=n.interactions.list;l<s.length;l++){var d=s[l];if(d.element&&(d.element===a.target||fe(d.element,a.target)))return void d.interactable.checkAndPreventDefault(a)}}})},listeners:["down","move","up","cancel"].reduce(function(n,t){return n["interactions:".concat(t)]=Kn,n},{})};function vn(n,t){if(t.phaselessTypes[n])return!0;for(var a in t.map)if(n.indexOf(a)===0&&n.substr(a.length)in t.phases)return!0;return!1}function un(n){var t={};for(var a in n){var l=n[a];k.plainObject(l)?t[a]=un(l):k.array(l)?t[a]=_e(l):t[a]=l}return t}var xn=function(){function n(t){u(this,n),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=t,this.result=mn(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return h(n,[{key:"start",value:function(t,a){var l,s,d=t.phase,m=this.interaction,g=function($){var A=$.interactable.options[$.prepared.name],Y=A.modifiers;return Y&&Y.length?Y:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(ye){var Re=A[ye];return Re&&Re.enabled&&{options:Re,methods:Re._methods}}).filter(function(ye){return!!ye})}(m);this.prepareStates(g),this.startEdges=B({},m.edges),this.edges=B({},this.startEdges),this.startOffset=(l=m.rect,s=a,l?{left:s.x-l.left,top:s.y-l.top,right:l.right-s.x,bottom:l.bottom-s.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var I=this.fillArg({phase:d,pageCoords:a,preEnd:!1});return this.result=mn(),this.startAll(I),this.result=this.setAll(I)}},{key:"fillArg",value:function(t){var a=this.interaction;return t.interaction=a,t.interactable=a.interactable,t.element=a.element,t.rect||(t.rect=a.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var a=0,l=this.states;a<l.length;a++){var s=l[a];s.methods.start&&(t.state=s,s.methods.start(t))}}},{key:"setAll",value:function(t){var a=t.phase,l=t.preEnd,s=t.skipModifiers,d=t.rect,m=t.edges;t.coords=B({},t.pageCoords),t.rect=B({},d),t.edges=B({},m);for(var g=s?this.states.slice(s):this.states,I=mn(t.coords,t.rect),$=0;$<g.length;$++){var A,Y=g[$],ye=Y.options,Re=B({},t.coords),Oe=null;(A=Y.methods)!=null&&A.set&&this.shouldDo(ye,l,a)&&(t.state=Y,Oe=Y.methods.set(t),X(t.edges,t.rect,{x:t.coords.x-Re.x,y:t.coords.y-Re.y})),I.eventProps.push(Oe)}B(this.edges,t.edges),I.delta.x=t.coords.x-t.pageCoords.x,I.delta.y=t.coords.y-t.pageCoords.y,I.rectDelta.left=t.rect.left-d.left,I.rectDelta.right=t.rect.right-d.right,I.rectDelta.top=t.rect.top-d.top,I.rectDelta.bottom=t.rect.bottom-d.bottom;var Ke=this.result.coords,lt=this.result.rect;if(Ke&&lt){var at=I.rect.left!==lt.left||I.rect.right!==lt.right||I.rect.top!==lt.top||I.rect.bottom!==lt.bottom;I.changed=at||Ke.x!==I.coords.x||Ke.y!==I.coords.y}return I}},{key:"applyToInteraction",value:function(t){var a=this.interaction,l=t.phase,s=a.coords.cur,d=a.coords.start,m=this.result,g=this.startDelta,I=m.delta;l==="start"&&B(this.startDelta,m.delta);for(var $=0,A=[[d,g],[s,I]];$<A.length;$++){var Y=A[$],ye=Y[0],Re=Y[1];ye.page.x+=Re.x,ye.page.y+=Re.y,ye.client.x+=Re.x,ye.client.y+=Re.y}var Oe=this.result.rectDelta,Ke=t.rect||a.rect;Ke.left+=Oe.left,Ke.right+=Oe.right,Ke.top+=Oe.top,Ke.bottom+=Oe.bottom,Ke.width=Ke.right-Ke.left,Ke.height=Ke.bottom-Ke.top}},{key:"setAndApply",value:function(t){var a=this.interaction,l=t.phase,s=t.preEnd,d=t.skipModifiers,m=this.setAll(this.fillArg({preEnd:s,phase:l,pageCoords:t.modifiedCoords||a.coords.cur.page}));if(this.result=m,!m.changed&&(!d||d<this.states.length)&&a.interacting())return!1;if(t.modifiedCoords){var g=a.coords.cur.page,I={x:t.modifiedCoords.x-g.x,y:t.modifiedCoords.y-g.y};m.coords.x+=I.x,m.coords.y+=I.y,m.delta.x+=I.x,m.delta.y+=I.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var a=t.interaction,l=t.event,s=this.states;if(s&&s.length){for(var d=!1,m=0;m<s.length;m++){var g=s[m];t.state=g;var I=g.options,$=g.methods,A=$.beforeEnd&&$.beforeEnd(t);if(A)return this.endResult=A,!1;d=d||!d&&this.shouldDo(I,!0,t.phase,!0)}d&&a.move({event:l,preEnd:!0})}}},{key:"stop",value:function(t){var a=t.interaction;if(this.states&&this.states.length){var l=B({states:this.states,interactable:a.interactable,element:a.element,rect:null},t);this.fillArg(l);for(var s=0,d=this.states;s<d.length;s++){var m=d[s];l.state=m,m.methods.stop&&m.methods.stop(l)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var a=0;a<t.length;a++){var l=t[a],s=l.options,d=l.methods,m=l.name;this.states.push({options:s,methods:d,index:a,name:m})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var a=t.interaction,l=a.coords,s=a.rect,d=a.modification;if(d.result){for(var m=d.startDelta,g=d.result,I=g.delta,$=g.rectDelta,A=0,Y=[[l.start,m],[l.cur,I]];A<Y.length;A++){var ye=Y[A],Re=ye[0],Oe=ye[1];Re.page.x-=Oe.x,Re.page.y-=Oe.y,Re.client.x-=Oe.x,Re.client.y-=Oe.y}s.left-=$.left,s.right-=$.right,s.top-=$.top,s.bottom-=$.bottom}}},{key:"shouldDo",value:function(t,a,l,s){return!(!t||t.enabled===!1||s&&!t.endOnly||t.endOnly&&!a||l==="start"&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map(function(a){return un(a)}),this.result=mn(B({},t.result.coords),B({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),n}();function mn(n,t){return{rect:t,coords:n,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function rn(n,t){var a=n.defaults,l={start:n.start,set:n.set,beforeEnd:n.beforeEnd,stop:n.stop},s=function(d){var m=d||{};for(var g in m.enabled=m.enabled!==!1,a)g in m||(m[g]=a[g]);var I={options:m,methods:l,name:t,enable:function(){return m.enabled=!0,I},disable:function(){return m.enabled=!1,I}};return I};return t&&typeof t=="string"&&(s._defaults=a,s._methods=l),s}function pn(n){var t=n.iEvent,a=n.interaction.modification.result;a&&(t.modifiers=a.eventProps)}var Wn={id:"modifiers/base",before:["actions"],install:function(n){n.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(n){var t=n.interaction;t.modification=new xn(t)},"interactions:before-action-start":function(n){var t=n.interaction,a=n.interaction.modification;a.start(n,t.coords.start.page),t.edges=a.edges,a.applyToInteraction(n)},"interactions:before-action-move":function(n){var t=n.interaction,a=t.modification,l=a.setAndApply(n);return t.edges=a.edges,l},"interactions:before-action-end":function(n){var t=n.interaction,a=t.modification,l=a.beforeEnd(n);return t.edges=a.startEdges,l},"interactions:action-start":pn,"interactions:action-move":pn,"interactions:action-end":pn,"interactions:after-action-start":function(n){return n.interaction.modification.restoreInteractionCoords(n)},"interactions:after-action-move":function(n){return n.interaction.modification.restoreInteractionCoords(n)},"interactions:stop":function(n){return n.interaction.modification.stop(n)}}},Bn=Wn,In={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},wn=function(n){C(a,n);var t=ee(a);function a(l,s,d,m,g,I,$){var A;u(this,a),(A=t.call(this,l)).relatedTarget=null,A.screenX=void 0,A.screenY=void 0,A.button=void 0,A.buttons=void 0,A.ctrlKey=void 0,A.shiftKey=void 0,A.altKey=void 0,A.metaKey=void 0,A.page=void 0,A.client=void 0,A.delta=void 0,A.rect=void 0,A.x0=void 0,A.y0=void 0,A.t0=void 0,A.dt=void 0,A.duration=void 0,A.clientX0=void 0,A.clientY0=void 0,A.velocity=void 0,A.speed=void 0,A.swipe=void 0,A.axes=void 0,A.preEnd=void 0,g=g||l.element;var Y=l.interactable,ye=(Y&&Y.options||In).deltaSource,Re=te(Y,g,d),Oe=m==="start",Ke=m==="end",lt=Oe?z(A):l.prevEvent,at=Oe?l.coords.start:Ke?{page:lt.page,client:lt.client,timeStamp:l.coords.cur.timeStamp}:l.coords.cur;return A.page=B({},at.page),A.client=B({},at.client),A.rect=B({},l.rect),A.timeStamp=at.timeStamp,Ke||(A.page.x-=Re.x,A.page.y-=Re.y,A.client.x-=Re.x,A.client.y-=Re.y),A.ctrlKey=s.ctrlKey,A.altKey=s.altKey,A.shiftKey=s.shiftKey,A.metaKey=s.metaKey,A.button=s.button,A.buttons=s.buttons,A.target=g,A.currentTarget=g,A.preEnd=I,A.type=$||d+(m||""),A.interactable=Y,A.t0=Oe?l.pointers[l.pointers.length-1].downTime:lt.t0,A.x0=l.coords.start.page.x-Re.x,A.y0=l.coords.start.page.y-Re.y,A.clientX0=l.coords.start.client.x-Re.x,A.clientY0=l.coords.start.client.y-Re.y,A.delta=Oe||Ke?{x:0,y:0}:{x:A[ye].x-lt[ye].x,y:A[ye].y-lt[ye].y},A.dt=l.coords.delta.timeStamp,A.duration=A.timeStamp-A.t0,A.velocity=B({},l.coords.velocity[ye]),A.speed=dt(A.velocity.x,A.velocity.y),A.swipe=Ke||m==="inertiastart"?A.getSwipe():null,A}return h(a,[{key:"getSwipe",value:function(){var l=this._interaction;if(l.prevEvent.speed<600||this.timeStamp-l.prevEvent.timeStamp>150)return null;var s=180*Math.atan2(l.prevEvent.velocityY,l.prevEvent.velocityX)/Math.PI;s<0&&(s+=360);var d=112.5<=s&&s<247.5,m=202.5<=s&&s<337.5;return{up:m,down:!m&&22.5<=s&&s<157.5,left:d,right:!d&&(292.5<=s||s<67.5),angle:s,speed:l.prevEvent.speed,velocity:{x:l.prevEvent.velocityX,y:l.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),a}(Be);Object.defineProperties(wn.prototype,{pageX:{get:function(){return this.page.x},set:function(n){this.page.x=n}},pageY:{get:function(){return this.page.y},set:function(n){this.page.y=n}},clientX:{get:function(){return this.client.x},set:function(n){this.client.x=n}},clientY:{get:function(){return this.client.y},set:function(n){this.client.y=n}},dx:{get:function(){return this.delta.x},set:function(n){this.delta.x=n}},dy:{get:function(){return this.delta.y},set:function(n){this.delta.y=n}},velocityX:{get:function(){return this.velocity.x},set:function(n){this.velocity.x=n}},velocityY:{get:function(){return this.velocity.y},set:function(n){this.velocity.y=n}}});var Hn=h(function n(t,a,l,s,d){u(this,n),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=a,this.event=l,this.downTime=s,this.downTarget=d}),qn=function(n){return n.interactable="",n.element="",n.prepared="",n.pointerIsDown="",n.pointerWasMoved="",n._proxy="",n}({}),Nn=function(n){return n.start="",n.move="",n.end="",n.stop="",n.interacting="",n}({}),Gn=0,Xn=function(){function n(t){var a=this,l=t.pointerType,s=t.scopeFire;u(this,n),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ut(function(A){this.move(A)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Gn++,this._scopeFire=s,this.pointerType=l;var d=this;this._proxy={};var m=function(A){Object.defineProperty(a._proxy,A,{get:function(){return d[A]}})};for(var g in qn)m(g);var I=function(A){Object.defineProperty(a._proxy,A,{value:function(){return d[A].apply(d,arguments)}})};for(var $ in Nn)I($);this._scopeFire("interactions:new",{interaction:this})}return h(n,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,a,l){var s=this.updatePointer(t,a,l,!0),d=this.pointers[s];this._scopeFire("interactions:down",{pointer:t,event:a,eventTarget:l,pointerIndex:s,pointerInfo:d,type:"down",interaction:this})}},{key:"start",value:function(t,a,l){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(t.name==="gesture"?2:1)||!a.options[t.name].enabled)&&(ft(this.prepared,t),this.interactable=a,this.element=l,this.rect=a.getRect(l),this.edges=this.prepared.edges?B({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,a,l){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,a,l,!1);var s,d,m=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(s=this.coords.cur.client.x-this.coords.start.client.x,d=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=dt(s,d)>this.pointerMoveTolerance);var g,I,$,A=this.getPointerIndex(t),Y={pointer:t,pointerIndex:A,pointerInfo:this.pointers[A],event:a,type:"move",eventTarget:l,dx:s,dy:d,duplicate:m,interaction:this};m||(g=this.coords.velocity,I=this.coords.delta,$=Math.max(I.timeStamp/1e3,.001),g.page.x=I.page.x/$,g.page.y=I.page.y/$,g.client.x=I.client.x/$,g.client.y=I.client.y/$,g.timeStamp=$),this._scopeFire("interactions:move",Y),m||this.simulation||(this.interacting()&&(Y.type=null,this.move(Y)),this.pointerWasMoved&&W(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||J(this.coords.delta),(t=B({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,a,l,s){var d=this.getPointerIndex(t);d===-1&&(d=this.updatePointer(t,a,l,!1));var m=/cancel$/i.test(a.type)?"cancel":"up";this._scopeFire("interactions:".concat(m),{pointer:t,pointerIndex:d,pointerInfo:this.pointers[d],event:a,eventTarget:l,type:m,curEventTarget:s,interaction:this}),this.simulation||this.end(a),this.removePointer(t,a)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var a;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(a=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,a===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var a=Z(t);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:R(this.pointers,function(l){return l.id===a})}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,a,l,s){var d,m,g,I=Z(t),$=this.getPointerIndex(t),A=this.pointers[$];return s=s!==!1&&(s||/(down|start)$/i.test(a.type)),A?A.pointer=t:(A=new Hn(I,t,a,null,null),$=this.pointers.length,this.pointers.push(A)),L(this.coords.cur,this.pointers.map(function(Y){return Y.pointer}),this._now()),d=this.coords.delta,m=this.coords.prev,g=this.coords.cur,d.page.x=g.page.x-m.page.x,d.page.y=g.page.y-m.page.y,d.client.x=g.client.x-m.client.x,d.client.y=g.client.y-m.client.y,d.timeStamp=g.timeStamp-m.timeStamp,s&&(this.pointerIsDown=!0,A.downTime=this.coords.cur.timeStamp,A.downTarget=l,E(this.downPointer,t),this.interacting()||(W(this.coords.start,this.coords.cur),W(this.coords.prev,this.coords.cur),this.downEvent=a,this.pointerWasMoved=!1)),this._updateLatestPointer(t,a,l),this._scopeFire("interactions:update-pointer",{pointer:t,event:a,eventTarget:l,down:s,pointerInfo:A,pointerIndex:$,interaction:this}),$}},{key:"removePointer",value:function(t,a){var l=this.getPointerIndex(t);if(l!==-1){var s=this.pointers[l];this._scopeFire("interactions:remove-pointer",{pointer:t,event:a,eventTarget:null,pointerIndex:l,pointerInfo:s,interaction:this}),this.pointers.splice(l,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(t,a,l){this._latestPointer.pointer=t,this._latestPointer.event=a,this._latestPointer.eventTarget=l}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,a,l,s){return new wn(this,t,this.prepared.name,a,this.element,l,s)}},{key:"_fireEvent",value:function(t){var a;(a=this.interactable)==null||a.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var a=t.event,l=t.phase,s=t.preEnd,d=t.type,m=this.rect;if(m&&l==="move"&&(X(this.edges,m,this.coords.delta[this.interactable.options.deltaSource]),m.width=m.right-m.left,m.height=m.bottom-m.top),this._scopeFire("interactions:before-action-".concat(l),t)===!1)return!1;var g=t.iEvent=this._createPreparedEvent(a,l,s,d);return this._scopeFire("interactions:action-".concat(l),t),l==="start"&&(this.prevEvent=g),this._fireEvent(g),this._scopeFire("interactions:after-action-".concat(l),t),!0}},{key:"_now",value:function(){return Date.now()}}]),n}();function An(n){_t(n.interaction)}function _t(n){if(!function(a){return!(!a.offset.pending.x&&!a.offset.pending.y)}(n))return!1;var t=n.offset.pending;return tt(n.coords.cur,t),tt(n.coords.delta,t),X(n.edges,n.rect,t),t.x=0,t.y=0,!0}function en(n){var t=n.x,a=n.y;this.offset.pending.x+=t,this.offset.pending.y+=a,this.offset.total.x+=t,this.offset.total.y+=a}function tt(n,t){var a=n.page,l=n.client,s=t.x,d=t.y;a.x+=s,a.y+=d,l.x+=s,l.y+=d}Nn.offsetBy="";var Ht={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(n){n.Interaction.prototype.offsetBy=en},listeners:{"interactions:new":function(n){n.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(n){return function(t){t.pointerIsDown&&(tt(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(n.interaction)},"interactions:before-action-start":An,"interactions:before-action-move":An,"interactions:before-action-end":function(n){var t=n.interaction;if(_t(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(n){var t=n.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Et=Ht,wt=function(){function n(t){u(this,n),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=t}return h(n,[{key:"start",value:function(t){var a=this.interaction,l=Bt(a);if(!l||!l.enabled)return!1;var s=a.coords.velocity.client,d=dt(s.x,s.y),m=this.modification||(this.modification=new xn(a));if(m.copyFrom(a.modification),this.t0=a._now(),this.allowResume=l.allowResume,this.v0=d,this.currentOffset={x:0,y:0},this.startCoords=a.coords.cur.page,this.modifierArg=m.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-a.coords.cur.timeStamp<50&&d>l.minSpeed&&d>l.endSpeed)this.startInertia();else{if(m.result=m.setAll(this.modifierArg),!m.result.changed)return!1;this.startSmoothEnd()}return a.modification.result.rect=null,a.offsetBy(this.targetOffset),a._doPhase({interaction:a,event:t,phase:"inertiastart"}),a.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),a.modification.result.rect=null,this.active=!0,a.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,a=this.interaction.coords.velocity.client,l=Bt(this.interaction),s=l.resistance,d=-Math.log(l.endSpeed/this.v0)/s;this.targetOffset={x:(a.x-d)/s,y:(a.y-d)/s},this.te=d,this.lambda_v0=s/this.v0,this.one_ve_v0=1-l.endSpeed/this.v0;var m=this.modification,g=this.modifierArg;g.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},m.result=m.setAll(g),m.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+m.result.delta.x,y:this.targetOffset.y+m.result.delta.y}),this.onNextFrame(function(){return t.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return t.smoothEndTick()})}},{key:"onNextFrame",value:function(t){var a=this;this.timeout=pe.request(function(){a.active&&t()})}},{key:"inertiaTick",value:function(){var t,a,l,s,d,m,g,I=this,$=this.interaction,A=Bt($).resistance,Y=($._now()-this.t0)/1e3;if(Y<this.te){var ye,Re=1-(Math.exp(-A*Y)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=0,a=0,l=this.targetOffset.x,s=this.targetOffset.y,d=this.modifiedOffset.x,m=this.modifiedOffset.y,ye={x:Lt(g=Re,t,l,d),y:Lt(g,a,s,m)}):ye={x:this.targetOffset.x*Re,y:this.targetOffset.y*Re};var Oe={x:ye.x-this.currentOffset.x,y:ye.y-this.currentOffset.y};this.currentOffset.x+=Oe.x,this.currentOffset.y+=Oe.y,$.offsetBy(Oe),$.move(),this.onNextFrame(function(){return I.inertiaTick()})}else $.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,a=this.interaction,l=a._now()-this.t0,s=Bt(a).smoothEndDuration;if(l<s){var d={x:Nt(l,0,this.targetOffset.x,s),y:Nt(l,0,this.targetOffset.y,s)},m={x:d.x-this.currentOffset.x,y:d.y-this.currentOffset.y};this.currentOffset.x+=m.x,this.currentOffset.y+=m.y,a.offsetBy(m),a.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return t.smoothEndTick()})}else a.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var a=t.pointer,l=t.event,s=t.eventTarget,d=this.interaction;d.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),d.updatePointer(a,l,s,!0),d._doPhase({interaction:d,event:l,phase:"resume"}),W(d.coords.prev,d.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,pe.cancel(this.timeout)}}]),n}();function Bt(n){var t=n.interactable,a=n.prepared;return t&&t.options&&a.name&&t.options[a.name].inertia}var Ot={id:"inertia",before:["modifiers","actions"],install:function(n){var t=n.defaults;n.usePlugin(Et),n.usePlugin(Bn),n.actions.phases.inertiastart=!0,n.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(n){var t=n.interaction;t.inertia=new wt(t)},"interactions:before-action-end":function(n){var t=n.interaction,a=n.event;return(!t._interacting||t.simulation||!t.inertia.start(a))&&null},"interactions:down":function(n){var t=n.interaction,a=n.eventTarget,l=t.inertia;if(l.active)for(var s=a;k.element(s);){if(s===t.element){l.resume(n);break}s=st(s)}},"interactions:stop":function(n){var t=n.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(n){var t=n.interaction.modification;t.stop(n),t.start(n,n.interaction.coords.cur.page),t.applyToInteraction(n)},"interactions:before-action-inertiastart":function(n){return n.interaction.modification.setAndApply(n)},"interactions:action-resume":pn,"interactions:action-inertiastart":pn,"interactions:after-action-inertiastart":function(n){return n.interaction.modification.restoreInteractionCoords(n)},"interactions:after-action-resume":function(n){return n.interaction.modification.restoreInteractionCoords(n)}}};function Lt(n,t,a,l){var s=1-n;return s*s*t+2*s*n*a+n*n*l}function Nt(n,t,a,l){return-a*(n/=l)*(n-2)+t}var tn=Ot;function qt(n,t){for(var a=0;a<t.length;a++){var l=t[a];if(n.immediatePropagationStopped)break;l(n)}}var Vn=function(){function n(t){u(this,n),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=B({},t||{})}return h(n,[{key:"fire",value:function(t){var a,l=this.global;(a=this.types[t.type])&&qt(t,a),!t.propagationStopped&&l&&(a=l[t.type])&&qt(t,a)}},{key:"on",value:function(t,a){var l=Ce(t,a);for(t in l)this.types[t]=se(this.types[t]||[],l[t])}},{key:"off",value:function(t,a){var l=Ce(t,a);for(t in l){var s=this.types[t];if(s&&s.length)for(var d=0,m=l[t];d<m.length;d++){var g=m[d],I=s.indexOf(g);I!==-1&&s.splice(I,1)}}}},{key:"getRect",value:function(t){return null}}]),n}(),Yn=function(){function n(t){u(this,n),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,E(this,t)}return h(n,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),n}();function On(n){return k.object(n)?{capture:!!n.capture,passive:!!n.passive}:{capture:!!n,passive:!1}}function Jn(n,t){return n===t||(typeof n=="boolean"?!!t.capture===n&&!t.passive:!!n.capture==!!t.capture&&!!n.passive==!!t.passive)}var _a={id:"events",install:function(n){var t,a=[],l={},s=[],d={add:m,remove:g,addDelegate:function(A,Y,ye,Re,Oe){var Ke=On(Oe);if(!l[ye]){l[ye]=[];for(var lt=0;lt<s.length;lt++){var at=s[lt];m(at,ye,I),m(at,ye,$,!0)}}var ht=l[ye],St=Ie(ht,function(At){return At.selector===A&&At.context===Y});St||(St={selector:A,context:Y,listeners:[]},ht.push(St)),St.listeners.push({func:Re,options:Ke})},removeDelegate:function(A,Y,ye,Re,Oe){var Ke,lt=On(Oe),at=l[ye],ht=!1;if(at)for(Ke=at.length-1;Ke>=0;Ke--){var St=at[Ke];if(St.selector===A&&St.context===Y){for(var At=St.listeners,kt=At.length-1;kt>=0;kt--){var Tt=At[kt];if(Tt.func===Re&&Jn(Tt.options,lt)){At.splice(kt,1),At.length||(at.splice(Ke,1),g(Y,ye,I),g(Y,ye,$,!0)),ht=!0;break}}if(ht)break}}},delegateListener:I,delegateUseCapture:$,delegatedEvents:l,documents:s,targets:a,supportsOptions:!1,supportsPassive:!1};function m(A,Y,ye,Re){if(A.addEventListener){var Oe=On(Re),Ke=Ie(a,function(lt){return lt.eventTarget===A});Ke||(Ke={eventTarget:A,events:{}},a.push(Ke)),Ke.events[Y]||(Ke.events[Y]=[]),Ie(Ke.events[Y],function(lt){return lt.func===ye&&Jn(lt.options,Oe)})||(A.addEventListener(Y,ye,d.supportsOptions?Oe:Oe.capture),Ke.events[Y].push({func:ye,options:Oe}))}}function g(A,Y,ye,Re){if(A.addEventListener&&A.removeEventListener){var Oe=R(a,function(an){return an.eventTarget===A}),Ke=a[Oe];if(Ke&&Ke.events)if(Y!=="all"){var lt=!1,at=Ke.events[Y];if(at){if(ye==="all"){for(var ht=at.length-1;ht>=0;ht--){var St=at[ht];g(A,Y,St.func,St.options)}return}for(var At=On(Re),kt=0;kt<at.length;kt++){var Tt=at[kt];if(Tt.func===ye&&Jn(Tt.options,At)){A.removeEventListener(Y,ye,d.supportsOptions?At:At.capture),at.splice(kt,1),at.length===0&&(delete Ke.events[Y],lt=!0);break}}}lt&&!Object.keys(Ke.events).length&&a.splice(Oe,1)}else for(Y in Ke.events)Ke.events.hasOwnProperty(Y)&&g(A,Y,"all")}}function I(A,Y){for(var ye=On(Y),Re=new Yn(A),Oe=l[A.type],Ke=Q(A)[0],lt=Ke;k.element(lt);){for(var at=0;at<Oe.length;at++){var ht=Oe[at],St=ht.selector,At=ht.context;if(q(lt,St)&&fe(At,Ke)&&fe(At,lt)){var kt=ht.listeners;Re.currentTarget=lt;for(var Tt=0;Tt<kt.length;Tt++){var an=kt[Tt];Jn(an.options,ye)&&an.func(Re)}}}lt=st(lt)}}function $(A){return I(A,!0)}return(t=n.document)==null||t.createElement("div").addEventListener("test",null,{get capture(){return d.supportsOptions=!0},get passive(){return d.supportsPassive=!0}}),n.events=d,d}},ra={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(n){for(var t=0,a=ra.methodOrder;t<a.length;t++){var l=a[t],s=ra[l](n);if(s)return s}return null},simulationResume:function(n){var t=n.pointerType,a=n.eventType,l=n.eventTarget,s=n.scope;if(!/down|start/i.test(a))return null;for(var d=0,m=s.interactions.list;d<m.length;d++){var g=m[d],I=l;if(g.simulation&&g.simulation.allowResume&&g.pointerType===t)for(;I;){if(I===g.element)return g;I=st(I)}}return null},mouseOrPen:function(n){var t,a=n.pointerId,l=n.pointerType,s=n.eventType,d=n.scope;if(l!=="mouse"&&l!=="pen")return null;for(var m=0,g=d.interactions.list;m<g.length;m++){var I=g[m];if(I.pointerType===l){if(I.simulation&&!pa(I,a))continue;if(I.interacting())return I;t||(t=I)}}if(t)return t;for(var $=0,A=d.interactions.list;$<A.length;$++){var Y=A[$];if(!(Y.pointerType!==l||/down/i.test(s)&&Y.simulation))return Y}return null},hasPointer:function(n){for(var t=n.pointerId,a=0,l=n.scope.interactions.list;a<l.length;a++){var s=l[a];if(pa(s,t))return s}return null},idle:function(n){for(var t=n.pointerType,a=0,l=n.scope.interactions.list;a<l.length;a++){var s=l[a];if(s.pointers.length===1){var d=s.interactable;if(d&&(!d.options.gesture||!d.options.gesture.enabled))continue}else if(s.pointers.length>=2)continue;if(!s.interacting()&&t===s.pointerType)return s}return null}};function pa(n,t){return n.pointers.some(function(a){return a.id===t})}var la=ra,dn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Zn(n,t){return function(a){var l=t.interactions.list,s=ce(a),d=Q(a),m=d[0],g=d[1],I=[];if(/^touch/.test(a.type)){t.prevTouchTime=t.now();for(var $=0,A=a.changedTouches;$<A.length;$++){var Y=A[$],ye={pointer:Y,pointerId:Z(Y),pointerType:s,eventType:a.type,eventTarget:m,curEventTarget:g,scope:t},Re=ia(ye);I.push([ye.pointer,ye.eventTarget,ye.curEventTarget,Re])}}else{var Oe=!1;if(!le.supportsPointerEvent&&/mouse/.test(a.type)){for(var Ke=0;Ke<l.length&&!Oe;Ke++)Oe=l[Ke].pointerType!=="mouse"&&l[Ke].pointerIsDown;Oe=Oe||t.now()-t.prevTouchTime<500||a.timeStamp===0}if(!Oe){var lt={pointer:a,pointerId:Z(a),pointerType:s,eventType:a.type,curEventTarget:g,eventTarget:m,scope:t},at=ia(lt);I.push([lt.pointer,lt.eventTarget,lt.curEventTarget,at])}}for(var ht=0;ht<I.length;ht++){var St=I[ht],At=St[0],kt=St[1],Tt=St[2];St[3][n](At,a,kt,Tt)}}}function ia(n){var t=n.pointerType,a=n.scope,l={interaction:la.search(n),searchDetails:n};return a.fire("interactions:find",l),l.interaction||a.interactions.new({pointerType:t})}function ln(n,t){var a=n.doc,l=n.scope,s=n.options,d=l.interactions.docEvents,m=l.events,g=m[t];for(var I in l.browser.isIOS&&!s.events&&(s.events={passive:!1}),m.delegatedEvents)g(a,I,m.delegateListener),g(a,I,m.delegateUseCapture,!0);for(var $=s&&s.events,A=0;A<d.length;A++){var Y=d[A];g(a,Y.type,Y.listener,$)}}var Ea={id:"core/interactions",install:function(n){for(var t={},a=0;a<dn.length;a++){var l=dn[a];t[l]=Zn(l,n)}var s,d=le.pEventTypes;function m(){for(var g=0,I=n.interactions.list;g<I.length;g++){var $=I[g];if($.pointerIsDown&&$.pointerType==="touch"&&!$._interacting)for(var A=function(){var Re=ye[Y];n.documents.some(function(Oe){return fe(Oe.doc,Re.downTarget)})||$.removePointer(Re.pointer,Re.event)},Y=0,ye=$.pointers;Y<ye.length;Y++)A()}}(s=M.PointerEvent?[{type:d.down,listener:m},{type:d.down,listener:t.pointerDown},{type:d.move,listener:t.pointerMove},{type:d.up,listener:t.pointerUp},{type:d.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:m},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(g){for(var I=0,$=n.interactions.list;I<$.length;I++)$[I].documentBlur(g)}}),n.prevTouchTime=0,n.Interaction=function(g){C($,g);var I=ee($);function $(){return u(this,$),I.apply(this,arguments)}return h($,[{key:"pointerMoveTolerance",get:function(){return n.interactions.pointerMoveTolerance},set:function(A){n.interactions.pointerMoveTolerance=A}},{key:"_now",value:function(){return n.now()}}]),$}(Xn),n.interactions={list:[],new:function(g){g.scopeFire=function($,A){return n.fire($,A)};var I=new n.Interaction(g);return n.interactions.list.push(I),I},listeners:t,docEvents:s,pointerMoveTolerance:1},n.usePlugin(Tn)},listeners:{"scope:add-document":function(n){return ln(n,"add")},"scope:remove-document":function(n){return ln(n,"remove")},"interactable:unset":function(n,t){for(var a=n.interactable,l=t.interactions.list.length-1;l>=0;l--){var s=t.interactions.list[l];s.interactable===a&&(s.stop(),t.fire("interactions:destroy",{interaction:s}),s.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(l,1))}}},onDocSignal:ln,doOnInteractions:Zn,methodNames:dn},Mn=Ea,zn=function(n){return n[n.On=0]="On",n[n.Off=1]="Off",n}(zn||{}),nl=function(){function n(t,a,l,s){u(this,n),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Vn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=a.actions,this.target=t,this._context=a.context||l,this._win=F(xe(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=s,this.set(a)}return h(n,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,a){return k.func(a.onstart)&&this.on("".concat(t,"start"),a.onstart),k.func(a.onmove)&&this.on("".concat(t,"move"),a.onmove),k.func(a.onend)&&this.on("".concat(t,"end"),a.onend),k.func(a.oninertiastart)&&this.on("".concat(t,"inertiastart"),a.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,a,l){var s,d=this,m=(s=this._actions.map[t])==null?void 0:s.filterEventType,g=function(I){return(m==null||m(I))&&vn(I,d._actions)};(k.array(a)||k.object(a))&&this._onOff(zn.Off,t,a,void 0,g),(k.array(l)||k.object(l))&&this._onOff(zn.On,t,l,void 0,g)}},{key:"setPerAction",value:function(t,a){var l=this._defaults;for(var s in a){var d=s,m=this.options[t],g=a[d];d==="listeners"&&this.updatePerActionListeners(t,m.listeners,g),k.array(g)?m[d]=_e(g):k.plainObject(g)?(m[d]=B(m[d]||{},un(g)),k.object(l.perAction[d])&&"enabled"in l.perAction[d]&&(m[d].enabled=g.enabled!==!1)):k.bool(g)&&k.object(l.perAction[d])?m[d].enabled=g:m[d]=g}}},{key:"getRect",value:function(t){return t=t||(k.element(this.target)?this.target:null),k.string(this.target)&&(t=t||this._context.querySelector(this.target)),Ye(t)}},{key:"rectChecker",value:function(t){var a=this;return k.func(t)?(this.getRect=function(l){var s=B({},t.apply(a,l));return"width"in s||(s.width=s.right-s.left,s.height=s.bottom-s.top),s},this):t===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,a){if(xe(a)||k.object(a)){for(var l in this.options[t]=a,this._actions.map)this.options[l][t]=a;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return t==="page"||t==="client"?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return k.string(t)?Array.from(this._context.querySelectorAll(t)):k.func(t)&&t.getAllElements?t.getAllElements():k.element(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||fe(this._context,t)}},{key:"testIgnoreAllow",value:function(t,a,l){return!this.testIgnore(t.ignoreFrom,a,l)&&this.testAllow(t.allowFrom,a,l)}},{key:"testAllow",value:function(t,a,l){return!t||!!k.element(l)&&(k.string(t)?ke(l,t,a):!!k.element(t)&&fe(t,l))}},{key:"testIgnore",value:function(t,a,l){return!(!t||!k.element(l))&&(k.string(t)?ke(l,t,a):!!k.element(t)&&fe(t,l))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,a,l,s,d){k.object(a)&&!k.array(a)&&(s=l,l=null);var m=Ce(a,l,d);for(var g in m){g==="wheel"&&(g=le.wheelEvent);for(var I=0,$=m[g];I<$.length;I++){var A=$[I];vn(g,this._actions)?this.events[t===zn.On?"on":"off"](g,A):k.string(this.target)?this._scopeEvents[t===zn.On?"addDelegate":"removeDelegate"](this.target,this._context,g,A,s):this._scopeEvents[t===zn.On?"add":"remove"](this.target,g,A,s)}}return this}},{key:"on",value:function(t,a,l){return this._onOff(zn.On,t,a,l)}},{key:"off",value:function(t,a,l){return this._onOff(zn.Off,t,a,l)}},{key:"set",value:function(t){var a=this._defaults;for(var l in k.object(t)||(t={}),this.options=un(a.base),this._actions.methodDict){var s=l,d=this._actions.methodDict[s];this.options[s]={},this.setPerAction(s,B(B({},a.perAction),a.actions[s])),this[d](t[s])}for(var m in t)m!=="getRect"?k.func(this[m])&&this[m](t[m]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(k.string(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var a=this._scopeEvents.delegatedEvents[t],l=a.length-1;l>=0;l--){var s=a[l],d=s.selector,m=s.context,g=s.listeners;d===this.target&&m===this._context&&a.splice(l,1);for(var I=g.length-1;I>=0;I--)this._scopeEvents.removeDelegate(this.target,this._context,t,g[I][0],g[I][1])}else this._scopeEvents.remove(this.target,"all")}}]),n}(),al=function(){function n(t){var a=this;u(this,n),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":function(l){var s=l.interactable,d=s.target,m=k.string(d)?a.selectorMap[d]:d[a.scope.id],g=R(m,function(I){return I===s});m.splice(g,1)}})}return h(n,[{key:"new",value:function(t,a){a=B(a||{},{actions:this.scope.actions});var l=new this.scope.Interactable(t,a,this.scope.document,this.scope.events);return this.scope.addDocument(l._doc),this.list.push(l),k.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(l)):(l.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(l)),this.scope.fire("interactable:new",{target:t,options:a,interactable:l,win:this.scope._win}),l}},{key:"getExisting",value:function(t,a){var l=a&&a.context||this.scope.document,s=k.string(t),d=s?this.selectorMap[t]:t[this.scope.id];if(d)return Ie(d,function(m){return m._context===l&&(s||m.inContext(t))})}},{key:"forEachMatch",value:function(t,a){for(var l=0,s=this.list;l<s.length;l++){var d=s[l],m=void 0;if((k.string(d.target)?k.element(t)&&q(t,d.target):t===d.target)&&d.inContext(t)&&(m=a(d)),m!==void 0)return m}}}]),n}(),ol=function(){function n(){var t=this;u(this,n),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=le,this.defaults=un(In),this.Eventable=Vn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(l){var s=function d(m,g){var I=l.interactables.getExisting(m,g);return I||((I=l.interactables.new(m,g)).events.global=d.globalEvents),I};return s.getPointerAverage=H,s.getTouchBBox=ge,s.getTouchDistance=ue,s.getTouchAngle=K,s.getElementRect=Ye,s.getElementClientRect=Se,s.matchesSelector=q,s.closest=Xe,s.globalEvents={},s.version="1.10.27",s.scope=l,s.use=function(d,m){return this.scope.usePlugin(d,m),this},s.isSet=function(d,m){return!!this.scope.interactables.get(d,m&&m.context)},s.on=ut(function(d,m,g){if(k.string(d)&&d.search(" ")!==-1&&(d=d.trim().split(/ +/)),k.array(d)){for(var I=0,$=d;I<$.length;I++){var A=$[I];this.on(A,m,g)}return this}if(k.object(d)){for(var Y in d)this.on(Y,d[Y],m);return this}return vn(d,this.scope.actions)?this.globalEvents[d]?this.globalEvents[d].push(m):this.globalEvents[d]=[m]:this.scope.events.add(this.scope.document,d,m,{options:g}),this},"The interact.on() method is being deprecated"),s.off=ut(function(d,m,g){if(k.string(d)&&d.search(" ")!==-1&&(d=d.trim().split(/ +/)),k.array(d)){for(var I=0,$=d;I<$.length;I++){var A=$[I];this.off(A,m,g)}return this}if(k.object(d)){for(var Y in d)this.off(Y,d[Y],m);return this}var ye;return vn(d,this.scope.actions)?d in this.globalEvents&&(ye=this.globalEvents[d].indexOf(m))!==-1&&this.globalEvents[d].splice(ye,1):this.scope.events.remove(this.scope.document,d,m,g),this},"The interact.off() method is being deprecated"),s.debug=function(){return this.scope},s.supportsTouch=function(){return le.supportsTouch},s.supportsPointerEvent=function(){return le.supportsPointerEvent},s.stop=function(){for(var d=0,m=this.scope.interactions.list;d<m.length;d++)m[d].stop();return this},s.pointerMoveTolerance=function(d){return k.number(d)?(this.scope.interactions.pointerMoveTolerance=d,this):this.scope.interactions.pointerMoveTolerance},s.addDocument=function(d,m){this.scope.addDocument(d,m)},s.removeDocument=function(d){this.scope.removeDocument(d)},s}(this),this.InteractEvent=wn,this.Interactable=void 0,this.interactables=new al(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(l){return t.removeDocument(l.target)};var a=this;this.Interactable=function(l){C(d,l);var s=ee(d);function d(){return u(this,d),s.apply(this,arguments)}return h(d,[{key:"_defaults",get:function(){return a.defaults}},{key:"set",value:function(m){return P(S(d.prototype),"set",this).call(this,m),a.fire("interactable:set",{options:m,interactable:this}),this}},{key:"unset",value:function(){P(S(d.prototype),"unset",this).call(this);var m=a.interactables.list.indexOf(this);m<0||(a.interactables.list.splice(m,1),a.fire("interactable:unset",{interactable:this}))}}]),d}(nl)}return h(n,[{key:"addListeners",value:function(t,a){this.listenerMaps.push({id:a,map:t})}},{key:"fire",value:function(t,a){for(var l=0,s=this.listenerMaps;l<s.length;l++){var d=s[l].map[t];if(d&&d(a,this,t)===!1)return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(a,l){return a.isInitialized=!0,k.window(l)&&D(l),M.init(l),le.init(l),pe.init(l),a.window=l,a.document=l.document,a.usePlugin(Mn),a.usePlugin(_a),a}(this,t)}},{key:"pluginIsInstalled",value:function(t){var a=t.id;return a?!!this._plugins.map[a]:this._plugins.list.indexOf(t)!==-1}},{key:"usePlugin",value:function(t,a){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,a),t.listeners&&t.before){for(var l=0,s=this.listenerMaps.length,d=t.before.reduce(function(g,I){return g[I]=!0,g[ho(I)]=!0,g},{});l<s;l++){var m=this.listenerMaps[l].id;if(m&&(d[m]||d[ho(m)]))break}this.listenerMaps.splice(l,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,a){if(this.getDocIndex(t)!==-1)return!1;var l=F(t);a=a?B({},a):{},this.documents.push({doc:t,options:a}),this.events.documents.push(t),t!==this.document&&this.events.add(l,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:l,scope:this,options:a})}},{key:"removeDocument",value:function(t){var a=this.getDocIndex(t),l=F(t),s=this.documents[a].options;this.events.remove(l,"unload",this.onWindowUnload),this.documents.splice(a,1),this.events.documents.splice(a,1),this.fire("scope:remove-document",{doc:t,window:l,scope:this,options:s})}},{key:"getDocIndex",value:function(t){for(var a=0;a<this.documents.length;a++)if(this.documents[a].doc===t)return a;return-1}},{key:"getDocOptions",value:function(t){var a=this.getDocIndex(t);return a===-1?null:this.documents[a].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),n}();function ho(n){return n&&n.replace(/\/.*$/,"")}var vo=new ol,nn=vo.interactStatic,rl=typeof globalThis<"u"?globalThis:window;vo.init(rl);var ll=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(n){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(l){var s=l[0],d=l[1];return s in n||d in n}),a=function(l,s){for(var d=n.range,m=n.limits,g=m===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:m,I=n.offset,$=I===void 0?{x:0,y:0}:I,A={range:d,grid:n,x:null,y:null},Y=0;Y<t.length;Y++){var ye=t[Y],Re=ye[0],Oe=ye[1],Ke=Math.round((l-$.x)/n[Re]),lt=Math.round((s-$.y)/n[Oe]);A[Re]=Math.max(g.left,Math.min(g.right,Ke*n[Re]+$.x)),A[Oe]=Math.max(g.top,Math.min(g.bottom,lt*n[Oe]+$.y))}return A};return a.grid=n,a.coordFields=t,a}}),il={id:"snappers",install:function(n){var t=n.interactStatic;t.snappers=B(t.snappers||{},ll),t.createSnapGrid=t.snappers.grid}},sl=il,cl={start:function(n){var t=n.state,a=n.rect,l=n.edges,s=n.pageCoords,d=t.options,m=d.ratio,g=d.enabled,I=t.options,$=I.equalDelta,A=I.modifiers;m==="preserve"&&(m=a.width/a.height),t.startCoords=B({},s),t.startRect=B({},a),t.ratio=m,t.equalDelta=$;var Y=t.linkedEdges={top:l.top||l.left&&!l.bottom,left:l.left||l.top&&!l.right,bottom:l.bottom||l.right&&!l.top,right:l.right||l.bottom&&!l.left};if(t.xIsPrimaryAxis=!(!l.left&&!l.right),t.equalDelta){var ye=(Y.left?1:-1)*(Y.top?1:-1);t.edgeSign={x:ye,y:ye}}else t.edgeSign={x:Y.left?-1:1,y:Y.top?-1:1};if(g!==!1&&B(l,Y),A!=null&&A.length){var Re=new xn(n.interaction);Re.copyFrom(n.interaction.modification),Re.prepareStates(A),t.subModification=Re,Re.startAll(r({},n))}},set:function(n){var t=n.state,a=n.rect,l=n.coords,s=t.linkedEdges,d=B({},l),m=t.equalDelta?ul:dl;if(B(n.edges,s),m(t,t.xIsPrimaryAxis,l,a),!t.subModification)return null;var g=B({},a);X(s,g,{x:l.x-d.x,y:l.y-d.y});var I=t.subModification.setAll(r(r({},n),{},{rect:g,edges:s,pageCoords:l,prevCoords:l,prevRect:g})),$=I.delta;return I.changed&&(m(t,Math.abs($.x)>Math.abs($.y),I.coords,I.rect),B(l,I.coords)),I.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function ul(n,t,a){var l=n.startCoords,s=n.edgeSign;t?a.y=l.y+(a.x-l.x)*s.y:a.x=l.x+(a.y-l.y)*s.x}function dl(n,t,a,l){var s=n.startRect,d=n.startCoords,m=n.ratio,g=n.edgeSign;if(t){var I=l.width/m;a.y=d.y+(I-s.height)*g.y}else{var $=l.height*m;a.x=d.x+($-s.width)*g.x}}var pl=rn(cl,"aspectRatio"),mo=function(){};mo._defaults={};var Sa=mo;function Qn(n,t,a){return k.func(n)?Fe(n,t.interactable,t.element,[a.x,a.y,t]):Fe(n,t.interactable,t.element)}var Ta={start:function(n){var t=n.rect,a=n.startOffset,l=n.state,s=n.interaction,d=n.pageCoords,m=l.options,g=m.elementRect,I=B({left:0,top:0,right:0,bottom:0},m.offset||{});if(t&&g){var $=Qn(m.restriction,s,d);if($){var A=$.right-$.left-t.width,Y=$.bottom-$.top-t.height;A<0&&(I.left+=A,I.right+=A),Y<0&&(I.top+=Y,I.bottom+=Y)}I.left+=a.left-t.width*g.left,I.top+=a.top-t.height*g.top,I.right+=a.right-t.width*(1-g.right),I.bottom+=a.bottom-t.height*(1-g.bottom)}l.offset=I},set:function(n){var t=n.coords,a=n.interaction,l=n.state,s=l.options,d=l.offset,m=Qn(s.restriction,a,t);if(m){var g=function(I){return!I||"left"in I&&"top"in I||((I=B({},I)).left=I.x||0,I.top=I.y||0,I.right=I.right||I.left+I.width,I.bottom=I.bottom||I.top+I.height),I}(m);t.x=Math.max(Math.min(g.right-d.right,t.x),g.left+d.left),t.y=Math.max(Math.min(g.bottom-d.bottom,t.y),g.top+d.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},fl=rn(Ta,"restrict"),go={top:1/0,left:1/0,bottom:-1/0,right:-1/0},yo={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function bo(n,t){for(var a=0,l=["top","left","bottom","right"];a<l.length;a++){var s=l[a];s in n||(n[s]=t[s])}return n}var fa={noInner:go,noOuter:yo,start:function(n){var t,a=n.interaction,l=n.startOffset,s=n.state,d=s.options;d&&(t=we(Qn(d.offset,a,a.coords.start.page))),t=t||{x:0,y:0},s.offset={top:t.y+l.top,left:t.x+l.left,bottom:t.y-l.bottom,right:t.x-l.right}},set:function(n){var t=n.coords,a=n.edges,l=n.interaction,s=n.state,d=s.offset,m=s.options;if(a){var g=B({},t),I=Qn(m.inner,l,g)||{},$=Qn(m.outer,l,g)||{};bo(I,go),bo($,yo),a.top?t.y=Math.min(Math.max($.top+d.top,g.y),I.top+d.top):a.bottom&&(t.y=Math.max(Math.min($.bottom+d.bottom,g.y),I.bottom+d.bottom)),a.left?t.x=Math.min(Math.max($.left+d.left,g.x),I.left+d.left):a.right&&(t.x=Math.max(Math.min($.right+d.right,g.x),I.right+d.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},hl=rn(fa,"restrictEdges"),vl=B({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(n){}},Ta.defaults),ml=rn({start:Ta.start,set:Ta.set,defaults:vl},"restrictRect"),gl={width:-1/0,height:-1/0},yl={width:1/0,height:1/0},bl=rn({start:function(n){return fa.start(n)},set:function(n){var t=n.interaction,a=n.state,l=n.rect,s=n.edges,d=a.options;if(s){var m=ne(Qn(d.min,t,n.coords))||gl,g=ne(Qn(d.max,t,n.coords))||yl;a.options={endOnly:d.endOnly,inner:B({},fa.noInner),outer:B({},fa.noOuter)},s.top?(a.options.inner.top=l.bottom-m.height,a.options.outer.top=l.bottom-g.height):s.bottom&&(a.options.inner.bottom=l.top+m.height,a.options.outer.bottom=l.top+g.height),s.left?(a.options.inner.left=l.right-m.width,a.options.outer.left=l.right-g.width):s.right&&(a.options.inner.right=l.left+m.width,a.options.outer.right=l.left+g.width),fa.set(n),a.options=d}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Xa={start:function(n){var t,a=n.interaction,l=n.interactable,s=n.element,d=n.rect,m=n.state,g=n.startOffset,I=m.options,$=I.offsetWithOrigin?function(ye){var Re=ye.interaction.element,Oe=we(Fe(ye.state.options.origin,null,null,[Re])),Ke=Oe||te(ye.interactable,Re,ye.interaction.prepared.name);return Ke}(n):{x:0,y:0};if(I.offset==="startCoords")t={x:a.coords.start.page.x,y:a.coords.start.page.y};else{var A=Fe(I.offset,l,s,[a]);(t=we(A)||{x:0,y:0}).x+=$.x,t.y+=$.y}var Y=I.relativePoints;m.offsets=d&&Y&&Y.length?Y.map(function(ye,Re){return{index:Re,relativePoint:ye,x:g.left-d.width*ye.x+t.x,y:g.top-d.height*ye.y+t.y}}):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(n){var t=n.interaction,a=n.coords,l=n.state,s=l.options,d=l.offsets,m=te(t.interactable,t.element,t.prepared.name),g=B({},a),I=[];s.offsetWithOrigin||(g.x-=m.x,g.y-=m.y);for(var $=0,A=d;$<A.length;$++)for(var Y=A[$],ye=g.x-Y.x,Re=g.y-Y.y,Oe=0,Ke=s.targets.length;Oe<Ke;Oe++){var lt=s.targets[Oe],at=void 0;(at=k.func(lt)?lt(ye,Re,t._proxy,Y,Oe):lt)&&I.push({x:(k.number(at.x)?at.x:ye)+Y.x,y:(k.number(at.y)?at.y:Re)+Y.y,range:k.number(at.range)?at.range:s.range,source:lt,index:Oe,offset:Y})}for(var ht={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},St=0;St<I.length;St++){var At=I[St],kt=At.range,Tt=At.x-g.x,an=At.y-g.y,Kt=dt(Tt,an),sn=Kt<=kt;kt===1/0&&ht.inRange&&ht.range!==1/0&&(sn=!1),ht.target&&!(sn?ht.inRange&&kt!==1/0?Kt/kt<ht.distance/ht.range:kt===1/0&&ht.range!==1/0||Kt<ht.distance:!ht.inRange&&Kt<ht.distance)||(ht.target=At,ht.distance=Kt,ht.range=kt,ht.inRange=sn,ht.delta.x=Tt,ht.delta.y=an)}return ht.inRange&&(a.x=ht.target.x,a.y=ht.target.y),l.closest=ht,ht},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},kl=rn(Xa,"snap"),Ba={start:function(n){var t=n.state,a=n.edges,l=t.options;if(!a)return null;n.state={options:{targets:null,relativePoints:[{x:a.left?0:1,y:a.top?0:1}],offset:l.offset||"self",origin:{x:0,y:0},range:l.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],Xa.start(n),t.offsets=n.state.offsets,n.state=t},set:function(n){var t=n.interaction,a=n.state,l=n.coords,s=a.options,d=a.offsets,m={x:l.x-d[0].x,y:l.y-d[0].y};a.options=B({},s),a.options.targets=[];for(var g=0,I=s.targets||[];g<I.length;g++){var $=I[g],A=void 0;if(A=k.func($)?$(m.x,m.y,t):$){for(var Y=0,ye=a.targetFields;Y<ye.length;Y++){var Re=ye[Y],Oe=Re[0],Ke=Re[1];if(Oe in A||Ke in A){A.x=A[Oe],A.y=A[Ke];break}}a.options.targets.push(A)}}var lt=Xa.set(n);return a.options=s,lt},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},xl=rn(Ba,"snapSize"),Ya={aspectRatio:pl,restrictEdges:hl,restrict:fl,restrictRect:ml,restrictSize:bl,snapEdges:rn({start:function(n){var t=n.edges;return t?(n.state.targetFields=n.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],Ba.start(n)):null},set:Ba.set,defaults:B(un(Ba.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:kl,snapSize:xl,spring:Sa,avoid:Sa,transform:Sa,rubberband:Sa},wl={id:"modifiers",install:function(n){var t=n.interactStatic;for(var a in n.usePlugin(Bn),n.usePlugin(sl),t.modifiers=Ya,Ya){var l=Ya[a],s=l._defaults,d=l._methods;s._methods=d,n.defaults.perAction[a]=s}}},Cl=wl,ko=function(n){C(a,n);var t=ee(a);function a(l,s,d,m,g,I){var $;if(u(this,a),E(z($=t.call(this,g)),d),d!==s&&E(z($),s),$.timeStamp=I,$.originalEvent=d,$.type=l,$.pointerId=Z(s),$.pointerType=ce(s),$.target=m,$.currentTarget=null,l==="tap"){var A=g.getPointerIndex(s);$.dt=$.timeStamp-g.pointers[A].downTime;var Y=$.timeStamp-g.tapTime;$.double=!!g.prevTap&&g.prevTap.type!=="doubletap"&&g.prevTap.target===$.target&&Y<500}else l==="doubletap"&&($.dt=s.timeStamp-g.tapTime,$.double=!0);return $}return h(a,[{key:"_subtractOrigin",value:function(l){var s=l.x,d=l.y;return this.pageX-=s,this.pageY-=d,this.clientX-=s,this.clientY-=d,this}},{key:"_addOrigin",value:function(l){var s=l.x,d=l.y;return this.pageX+=s,this.pageY+=d,this.clientX+=s,this.clientY+=d,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),a}(Be),ha={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(n){n.pointerEvents=ha,n.defaults.actions.pointerEvents=ha.defaults,B(n.actions.phaselessTypes,ha.types)},listeners:{"interactions:new":function(n){var t=n.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(n){var t=n.down,a=n.pointerInfo;!t&&a.hold||(a.hold={duration:1/0,timeout:null})},"interactions:move":function(n,t){var a=n.interaction,l=n.pointer,s=n.event,d=n.eventTarget;n.duplicate||a.pointerIsDown&&!a.pointerWasMoved||(a.pointerIsDown&&Ja(n),Fn({interaction:a,pointer:l,event:s,eventTarget:d,type:"move"},t))},"interactions:down":function(n,t){(function(a,l){for(var s=a.interaction,d=a.pointer,m=a.event,g=a.eventTarget,I=a.pointerIndex,$=s.pointers[I].hold,A=ae(g),Y={interaction:s,pointer:d,event:m,eventTarget:g,type:"hold",targets:[],path:A,node:null},ye=0;ye<A.length;ye++){var Re=A[ye];Y.node=Re,l.fire("pointerEvents:collect-targets",Y)}if(Y.targets.length){for(var Oe=1/0,Ke=0,lt=Y.targets;Ke<lt.length;Ke++){var at=lt[Ke].eventable.options.holdDuration;at<Oe&&(Oe=at)}$.duration=Oe,$.timeout=setTimeout(function(){Fn({interaction:s,eventTarget:g,pointer:d,event:m,type:"hold"},l)},Oe)}})(n,t),Fn(n,t)},"interactions:up":function(n,t){Ja(n),Fn(n,t),function(a,l){var s=a.interaction,d=a.pointer,m=a.event,g=a.eventTarget;s.pointerWasMoved||Fn({interaction:s,eventTarget:g,pointer:d,event:m,type:"tap"},l)}(n,t)},"interactions:cancel":function(n,t){Ja(n),Fn(n,t)}},PointerEvent:ko,fire:Fn,collectEventTargets:xo,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Fn(n,t){var a=n.interaction,l=n.pointer,s=n.event,d=n.eventTarget,m=n.type,g=n.targets,I=g===void 0?xo(n,t):g,$=new ko(m,l,s,d,a,t.now());t.fire("pointerEvents:new",{pointerEvent:$});for(var A={interaction:a,pointer:l,event:s,eventTarget:d,targets:I,type:m,pointerEvent:$},Y=0;Y<I.length;Y++){var ye=I[Y];for(var Re in ye.props||{})$[Re]=ye.props[Re];var Oe=te(ye.eventable,ye.node);if($._subtractOrigin(Oe),$.eventable=ye.eventable,$.currentTarget=ye.node,ye.eventable.fire($),$._addOrigin(Oe),$.immediatePropagationStopped||$.propagationStopped&&Y+1<I.length&&I[Y+1].node!==$.currentTarget)break}if(t.fire("pointerEvents:fired",A),m==="tap"){var Ke=$.double?Fn({interaction:a,pointer:l,event:s,eventTarget:d,type:"doubletap"},t):$;a.prevTap=Ke,a.tapTime=Ke.timeStamp}return $}function xo(n,t){var a=n.interaction,l=n.pointer,s=n.event,d=n.eventTarget,m=n.type,g=a.getPointerIndex(l),I=a.pointers[g];if(m==="tap"&&(a.pointerWasMoved||!I||I.downTarget!==d))return[];for(var $=ae(d),A={interaction:a,pointer:l,event:s,eventTarget:d,type:m,path:$,targets:[],node:null},Y=0;Y<$.length;Y++){var ye=$[Y];A.node=ye,t.fire("pointerEvents:collect-targets",A)}return m==="hold"&&(A.targets=A.targets.filter(function(Re){var Oe,Ke;return Re.eventable.options.holdDuration===((Oe=a.pointers[g])==null||(Ke=Oe.hold)==null?void 0:Ke.duration)})),A.targets}function Ja(n){var t=n.interaction,a=n.pointerIndex,l=t.pointers[a].hold;l&&l.timeout&&(clearTimeout(l.timeout),l.timeout=null)}var Dl=Object.freeze({__proto__:null,default:ha});function _l(n){var t=n.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}var El={id:"pointer-events/holdRepeat",install:function(n){n.usePlugin(ha);var t=n.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=n.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(n,t){return n["pointerEvents:".concat(t)]=_l,n},{"pointerEvents:new":function(n){var t=n.pointerEvent;t.type==="hold"&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(n,t){var a=n.interaction,l=n.pointerEvent,s=n.eventTarget,d=n.targets;if(l.type==="hold"&&d.length){var m=d[0].eventable.options.holdRepeatInterval;m<=0||(a.holdIntervalHandle=setTimeout(function(){t.pointerEvents.fire({interaction:a,eventTarget:s,type:"hold",pointer:l,event:l},t)},m))}}})},Sl=El,Tl={id:"pointer-events/interactableTargets",install:function(n){var t=n.Interactable;t.prototype.pointerEvents=function(l){return B(this.events.options,l),this};var a=t.prototype._backCompatOption;t.prototype._backCompatOption=function(l,s){var d=a.call(this,l,s);return d===this&&(this.events.options[l]=s),d}},listeners:{"pointerEvents:collect-targets":function(n,t){var a=n.targets,l=n.node,s=n.type,d=n.eventTarget;t.interactables.forEachMatch(l,function(m){var g=m.events,I=g.options;g.types[s]&&g.types[s].length&&m.testIgnoreAllow(I,l,d)&&a.push({node:l,eventable:g,props:{interactable:m}})})},"interactable:new":function(n){var t=n.interactable;t.events.getRect=function(a){return t.getRect(a)}},"interactable:set":function(n,t){var a=n.interactable,l=n.options;B(a.events.options,t.pointerEvents.defaults),B(a.events.options,l.pointerEvents||{})}}},Bl=Tl,Il={id:"pointer-events",install:function(n){n.usePlugin(Dl),n.usePlugin(Sl),n.usePlugin(Bl)}},Nl=Il,Al={id:"reflow",install:function(n){var t=n.Interactable;n.actions.phases.reflow=!0,t.prototype.reflow=function(a){return function(l,s,d){for(var m=l.getAllElements(),g=d.window.Promise,I=g?[]:null,$=function(){var Y=m[A],ye=l.getRect(Y);if(!ye)return 1;var Re,Oe=Ie(d.interactions.list,function(at){return at.interacting()&&at.interactable===l&&at.element===Y&&at.prepared.name===s.name});if(Oe)Oe.move(),I&&(Re=Oe._reflowPromise||new g(function(at){Oe._reflowResolve=at}));else{var Ke=ne(ye),lt=function(at){return{coords:at,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:Ke.x,y:Ke.y},client:{x:Ke.x,y:Ke.y},timeStamp:d.now()});Re=function(at,ht,St,At,kt){var Tt=at.interactions.new({pointerType:"reflow"}),an={interaction:Tt,event:kt,pointer:kt,eventTarget:St,phase:"reflow"};Tt.interactable=ht,Tt.element=St,Tt.prevEvent=kt,Tt.updatePointer(kt,kt,St,!0),J(Tt.coords.delta),ft(Tt.prepared,At),Tt._doPhase(an);var Kt=at.window,sn=Kt.Promise,fn=sn?new sn(function(Cn){Tt._reflowResolve=Cn}):void 0;return Tt._reflowPromise=fn,Tt.start(At,ht,St),Tt._interacting?(Tt.move(an),Tt.end(kt)):(Tt.stop(),Tt._reflowResolve()),Tt.removePointer(kt,kt),fn}(d,l,Y,s,lt)}I&&I.push(Re)},A=0;A<m.length&&!$();A++);return I&&g.all(I).then(function(){return l})}(this,a,n)}},listeners:{"interactions:stop":function(n,t){var a=n.interaction;a.pointerType==="reflow"&&(a._reflowResolve&&a._reflowResolve(),function(l,s){l.splice(l.indexOf(s),1)}(t.interactions.list,a))}}},Vl=Al;if(nn.use(Tn),nn.use(Et),nn.use(Nl),nn.use(tn),nn.use(Cl),nn.use(jn),nn.use(De),nn.use(Ct),nn.use(Vl),nn.default=nn,p(o)==="object"&&o)try{o.exports=nn}catch{}return nn.default=nn,nn})}(ya,ya.exports)),ya.exports}var cp=sp();const Uo=Ae.getDefaultExportFromCjs(cp),Wa=e.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(o,{expose:i,emit:c}){const r=o,p=c,u=e.inject(Rr),w=e.inject(Pr);if(!u)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const h=e.shallowRef(null),f=e.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let C=!1,S=!1,O=NaN,z=NaN,ee=NaN,P=NaN,be=-1,T=-1,j=-1,oe=-1,D=r.x,F=r.y,y=r.w,b=r.h;const k=e.ref(),G=e.reactive({i:e.toRef(r,"i"),state:f,wrapper:k,calcXY:Fe});function he(_){Ce(_)}function ot(){Ge()}function Ee(_){cn(r.isDraggable)&&(f.draggable=_)}function He(_){cn(r.isResizable)&&(f.resizable=_)}function $e(_){cn(r.isBounded)&&(f.bounded=_)}function M(_){f.transformScale=_}function ie(_){f.rowHeight=_}function le(_){f.maxRows=_}function fe(){f.rtl=$o()==="rtl",Ge()}function Xe(_){f.cols=Math.floor(_)}u.increaseItem(G),e.onBeforeMount(()=>{f.rtl=$o()==="rtl"}),e.onMounted(()=>{u.responsive&&u.lastBreakpoint?f.cols=Kr(u.lastBreakpoint,u.cols):f.cols=u.colNum,f.rowHeight=u.rowHeight,f.containerWidth=u.width!==null?u.width:100,f.margin=u.margin!==void 0?u.margin.map(Number):[10,10],f.maxRows=u.maxRows,cn(r.isDraggable)?f.draggable=u.isDraggable:f.draggable=r.isDraggable,cn(r.isResizable)?f.resizable=u.isResizable:f.resizable=r.isResizable,cn(r.isBounded)?f.bounded=u.isBounded:f.bounded=r.isBounded,f.transformScale=u.transformScale,f.useCssTransforms=u.useCssTransforms,f.useStyleCursor=u.useStyleCursor,e.watchEffect(()=>{D=r.x,F=r.y,b=r.h,y=r.w,on(Ye)}),w.on("updateWidth",he),w.on("compact",ot),w.on("setDraggable",Ee),w.on("setResizable",He),w.on("setBounded",$e),w.on("setTransformScale",M),w.on("setRowHeight",ie),w.on("setMaxRows",le),w.on("directionchange",fe),w.on("setColNum",Xe)}),e.onBeforeUnmount(()=>{w.off("updateWidth",he),w.off("compact",ot),w.off("setDraggable",Ee),w.off("setResizable",He),w.off("setBounded",$e),w.off("setTransformScale",M),w.off("setRowHeight",ie),w.off("setMaxRows",le),w.off("directionchange",fe),w.off("setColNum",Xe),h.value&&(h.value.unset(),h.value=null),u.decreaseItem(G)}),i({state:f,wrapper:k});const st=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,q=e.computed(()=>f.resizable&&!r.static),V=e.computed(()=>u.isMirrored?!f.rtl:f.rtl),ve=e.computed(()=>(f.draggable||f.resizable)&&!r.static),ke=ep("item"),ze=e.computed(()=>({[ke.b()]:!0,[ke.bm("resizable")]:q.value,[ke.bm("static")]:r.static,[ke.bm("resizing")]:f.isResizing,[ke.bm("dragging")]:f.isDragging,[ke.bm("transform")]:f.useCssTransforms,[ke.bm("rtl")]:V.value,[ke.bm("no-touch")]:st&&ve.value})),Se=e.computed(()=>[ke.be("resizer"),V.value&&ke.bem("resizer","rtl")].filter(Boolean));e.watch(()=>r.isDraggable,_=>{f.draggable=_}),e.watch(()=>r.static,()=>{on(E),on(J)}),e.watch(()=>f.draggable,()=>{on(E)}),e.watch(()=>r.isResizable,_=>{f.resizable=_}),e.watch(()=>r.isBounded,_=>{f.bounded=_}),e.watch(()=>f.resizable,()=>{on(J)}),e.watch(()=>f.rowHeight,()=>{on(Ye),on(ae)}),e.watch([()=>f.cols,()=>f.containerWidth],()=>{on(J),on(Ye),on(ae)}),e.watch([()=>r.minH,()=>r.maxH,()=>r.minW,()=>r.maxW],()=>{on(J)}),e.watch(V,()=>{on(J),on(Ye)}),e.watch([()=>u.margin,()=>u.margin[0],()=>u.margin[1]],()=>{const _=u.margin;!_||_[0]===f.margin[0]&&_[1]===f.margin[1]||(f.margin=_.map(Number),on(Ye),on(ae))});function Ye(){r.x+r.w>f.cols?(D=0,y=r.w>f.cols?f.cols:r.w):(D=r.x,y=r.w);const _=Le(D,F,y,b);f.isDragging&&(_.top=f.dragging.top,V.value?_.right=f.dragging.left:_.left=f.dragging.left),f.isResizing&&(_.width=f.resizing.width,_.height=f.resizing.height);let re;f.useCssTransforms?V.value?re=Yd(_.top,_.right,_.width,_.height):re=Xd(_.top,_.left,_.width,_.height):V.value?re=Zd(_.top,_.right,_.width,_.height):re=Jd(_.top,_.left,_.width,_.height),f.style=re}function ae(){const _={};for(const re of["width","height"]){const Ne=f.style[re].match(/^(\d+)px$/);if(!Ne)return;_[re]=Ne[1]}p("container-resized",r.i,r.h,r.w,_.height,_.width)}function xe(_){if(r.static)return;const re=_.type;if(re==="resizestart"&&f.isResizing||re!=="resizestart"&&!f.isResizing)return;const Ne=Po(_);if(cn(Ne))return;const{x:Z,y:L}=Ne,U={width:0,height:0};let H;switch(re){case"resizestart":{J(),be=y,T=b,H=Le(D,F,y,b),U.width=H.width,U.height=H.height,f.resizing=U,f.isResizing=!0;break}case"resizemove":{!_.edges.right&&!_.edges.left&&(ee=Z),!_.edges.top&&!_.edges.bottom&&(P=L);const ge=Lo(ee,P,Z,L);V.value?U.width=f.resizing.width-ge.deltaX/f.transformScale:U.width=f.resizing.width+ge.deltaX/f.transformScale,U.height=f.resizing.height+ge.deltaY/f.transformScale,f.resizing=U;break}case"resizeend":{H=Le(D,F,y,b),U.width=H.width,U.height=H.height,f.resizing={width:-1,height:-1},f.isResizing=!1;break}}H=te(U.height,U.width),H.w<r.minW&&(H.w=r.minW),H.w>r.maxW&&(H.w=r.maxW),H.h<r.minH&&(H.h=r.minH),H.h>r.maxH&&(H.h=r.maxH),H.h<1&&(H.h=1),H.w<1&&(H.w=1),ee=Z,P=L,(y!==H.w||b!==H.h)&&p("resize",r.i,H.h,H.w,U.height,U.width),_.type==="resizeend"&&(be!==y||T!==b)&&p("resized",r.i,H.h,H.w,U.height,U.width),w.emit("resizeEvent",_.type,r.i,D,F,H.h,H.w)}function B(_){if(r.static||f.isResizing)return;const re=_.type;if(re==="dragstart"&&f.isDragging||re!=="dragstart"&&!f.isDragging)return;const Ne=Po(_);if(cn(Ne))return;const{x:Z,y:L}=Ne,U=_.target;if(!U.offsetParent)return;const H={top:0,left:0};switch(re){case"dragstart":{j=D,oe=F;const ue=U.offsetParent.getBoundingClientRect(),K=U.getBoundingClientRect(),ce=K.left/f.transformScale,Q=ue.left/f.transformScale,Be=K.right/f.transformScale,se=ue.right/f.transformScale,_e=K.top/f.transformScale,R=ue.top/f.transformScale;V.value?H.left=(Be-se)*-1:H.left=ce-Q,H.top=_e-R,f.dragging=H,f.isDragging=!0;break}case"dragmove":{const ue=Lo(O,z,Z,L);if(V.value?H.left=f.dragging.left-ue.deltaX/f.transformScale:H.left=f.dragging.left+ue.deltaX/f.transformScale,H.top=f.dragging.top+ue.deltaY/f.transformScale,f.bounded){const K=U.offsetParent.clientHeight-ne(r.h,f.rowHeight,f.margin[1]);H.top=X(H.top,0,K);const ce=we(),Q=f.containerWidth-ne(r.w,ce,f.margin[0]);H.left=X(H.left,0,Q)}f.dragging=H;break}case"dragend":{const ue=U.offsetParent.getBoundingClientRect(),K=U.getBoundingClientRect(),ce=K.left/f.transformScale,Q=ue.left/f.transformScale,Be=K.right/f.transformScale,se=ue.right/f.transformScale,_e=K.top/f.transformScale,R=ue.top/f.transformScale;V.value?H.left=(Be-se)*-1:H.left=ce-Q,H.top=_e-R,f.dragging={top:-1,left:-1},f.isDragging=!1;break}}let ge;V.value,ge=Fe(H.top,H.left),O=Z,z=L,(D!==ge.x||F!==ge.y)&&p("move",r.i,ge.x,ge.y),_.type==="dragend"&&(j!==D||oe!==F)&&p("moved",r.i,ge.x,ge.y),w.emit("dragEvent",_.type,r.i,ge.x,ge.y,b,y)}function Le(_,re,Ne,Z){const L=we();let U;return V.value?U={right:Math.round(L*_+(_+1)*f.margin[0]),top:Math.round(f.rowHeight*re+(re+1)*f.margin[1]),width:Ne===1/0?Ne:Math.round(L*Ne+Math.max(0,Ne-1)*f.margin[0]),height:Z===1/0?Z:Math.round(f.rowHeight*Z+Math.max(0,Z-1)*f.margin[1])}:U={left:Math.round(L*_+(_+1)*f.margin[0]),top:Math.round(f.rowHeight*re+(re+1)*f.margin[1]),width:Ne===1/0?Ne:Math.round(L*Ne+Math.max(0,Ne-1)*f.margin[0]),height:Z===1/0?Z:Math.round(f.rowHeight*Z+Math.max(0,Z-1)*f.margin[1])},U}function Fe(_,re){const Ne=we();let Z=Math.round((re-f.margin[0])/(Ne+f.margin[0])),L=Math.round((_-f.margin[1])/(f.rowHeight+f.margin[1]));return Z=Math.max(Math.min(Z,f.cols-y),0),L=Math.max(Math.min(L,f.maxRows-b),0),{x:Z,y:L}}function we(){return(f.containerWidth-f.margin[0]*(f.cols+1))/f.cols}function ne(_,re,Ne){return Number.isFinite(_)?Math.round(re*_+Math.max(0,_-1)*Ne):_}function X(_,re,Ne){return Math.max(Math.min(_,Ne),re)}function te(_,re,Ne=!1){const Z=we();let L=Math.round((re+f.margin[0])/(Z+f.margin[0])),U=0;return Ne?U=Math.ceil((_+f.margin[1])/(f.rowHeight+f.margin[1])):U=Math.round((_+f.margin[1])/(f.rowHeight+f.margin[1])),L=Math.max(Math.min(L,f.cols-D),0),U=Math.max(Math.min(U,f.maxRows-F),0),{w:L,h:U}}function Ce(_,re){f.containerWidth=_}function Ge(){Ye()}function dt(){!h.value&&k.value&&(h.value=Uo(k.value),f.useStyleCursor||h.value.styleCursor(!1))}const v=zo(B);function E(){if(dt(),!!h.value)if(f.draggable&&!r.static){const _={ignoreFrom:r.dragIgnoreFrom,allowFrom:r.dragAllowFrom,...r.dragOption};h.value.draggable(_),C||(C=!0,h.value.on("dragstart dragmove dragend",re=>{re.type==="dragmove"?v(re):B(re)}))}else h.value.draggable({enabled:!1})}const W=zo(xe);function J(){if(dt(),!!h.value)if(f.resizable&&!r.static){const _=Le(0,0,r.maxW,r.maxH),re=Le(0,0,r.minW,r.minH),Ne={edges:{left:V.value?`.${Se.value[0]}`:!1,right:V.value?!1:`.${Se.value[0]}`,bottom:`.${Se.value[0]}`,top:!1},ignoreFrom:r.resizeIgnoreFrom,restrictSize:{min:{height:re.height*f.transformScale,width:re.width*f.transformScale},max:{height:_.height*f.transformScale,width:_.width*f.transformScale}},...r.resizeOption};r.preserveAspectRatio&&(Ne.modifiers=[Uo.modifiers.aspectRatio({ratio:"preserve"})]),h.value.resizable(Ne),S||(S=!0,h.value.on("resizestart resizemove resizeend",Z=>{Z.type==="resizemove"?W(Z):xe(Z)}))}else h.value.resizable({enabled:!1})}return(_,re)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"wrapper",ref:k,class:e.normalizeClass(ze.value),style:e.normalizeStyle(f.style)},[e.renderSlot(_.$slots,"default"),q.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(Se.value)},null,2)):e.createCommentVNode("",!0)],6))}}),aa=typeof window<"u";var Ko;aa&&(Ko=window==null?void 0:window.navigator)!=null&&Ko.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Wo(o){return o!=null}function Ho(){}const up=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(up)));const dp=aa&&("ontouchstart"in window||fp()>0),pp=dp?"pointerdown":"click";function fp(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function hp(o,i,c=window.Event){const{type:r,bubbles:p=!1,cancelable:u=!1,...w}=i;if(!Wo(r)||r==="")return!1;let h;return Wo(c)?h=new c(r,{bubbles:p,cancelable:u}):(h=document.createEvent("HTMLEvents"),h.initEvent(r,p,u)),Object.assign(h,w),o.dispatchEvent(h)}const vp="clickoutside",mp=new Set;aa&&document.addEventListener(pp,o=>{const i=o.target,c=o.composedPath&&o.composedPath();mp.forEach(r=>{r!==i&&(c?!c.includes(r):!r.contains(i))&&(!r.__transferElement||r.__transferElement!==i&&!r.__transferElement.contains(i))&&hp(r,{type:vp})})},!0);const gp=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let za;if(aa){for(const o of gp)if(o[1]in document){za=o;break}}e.computed(()=>!1);const yp=new Set,bp=new WeakMap;if(aa&&za){const o=za[2],i=za[4];document.addEventListener(i,()=>{if(yp.forEach(c=>{c.value=!1}),document[o]){const c=bp.get(document[o]);c&&(c.value=!0)}},!1)}const Hr=new Map;Hr.set("x",0);Hr.set("y",0);var ta=[],kp=function(){return ta.some(function(o){return o.activeTargets.length>0})},xp=function(){return ta.some(function(o){return o.skippedTargets.length>0})},qo="ResizeObserver loop completed with undelivered notifications.",wp=function(){var o;typeof ErrorEvent=="function"?o=new ErrorEvent("error",{message:qo}):(o=document.createEvent("Event"),o.initEvent("error",!1,!1),o.message=qo),window.dispatchEvent(o)},Da;(function(o){o.BORDER_BOX="border-box",o.CONTENT_BOX="content-box",o.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Da||(Da={}));var na=function(o){return Object.freeze(o)},Cp=function(){function o(i,c){this.inlineSize=i,this.blockSize=c,na(this)}return o}(),qr=function(){function o(i,c,r,p){return this.x=i,this.y=c,this.width=r,this.height=p,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,na(this)}return o.prototype.toJSON=function(){var i=this,c=i.x,r=i.y,p=i.top,u=i.right,w=i.bottom,h=i.left,f=i.width,C=i.height;return{x:c,y:r,top:p,right:u,bottom:w,left:h,width:f,height:C}},o.fromRect=function(i){return new o(i.x,i.y,i.width,i.height)},o}(),fo=function(o){return o instanceof SVGElement&&"getBBox"in o},Gr=function(o){if(fo(o)){var i=o.getBBox(),c=i.width,r=i.height;return!c&&!r}var p=o,u=p.offsetWidth,w=p.offsetHeight;return!(u||w||o.getClientRects().length)},Go=function(o){var i;if(o instanceof Element)return!0;var c=(i=o==null?void 0:o.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(c&&o instanceof c.Element)},Dp=function(o){switch(o.tagName){case"INPUT":if(o.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},xa=typeof window<"u"?window:{},Aa=new WeakMap,Xo=/auto|scroll/,_p=/^tb|vertical/,Ep=/msie|trident/i.test(xa.navigator&&xa.navigator.userAgent),gn=function(o){return parseFloat(o||"0")},ua=function(o,i,c){return o===void 0&&(o=0),i===void 0&&(i=0),c===void 0&&(c=!1),new Cp((c?i:o)||0,(c?o:i)||0)},Yo=na({devicePixelContentBoxSize:ua(),borderBoxSize:ua(),contentBoxSize:ua(),contentRect:new qr(0,0,0,0)}),Xr=function(o,i){if(i===void 0&&(i=!1),Aa.has(o)&&!i)return Aa.get(o);if(Gr(o))return Aa.set(o,Yo),Yo;var c=getComputedStyle(o),r=fo(o)&&o.ownerSVGElement&&o.getBBox(),p=!Ep&&c.boxSizing==="border-box",u=_p.test(c.writingMode||""),w=!r&&Xo.test(c.overflowY||""),h=!r&&Xo.test(c.overflowX||""),f=r?0:gn(c.paddingTop),C=r?0:gn(c.paddingRight),S=r?0:gn(c.paddingBottom),O=r?0:gn(c.paddingLeft),z=r?0:gn(c.borderTopWidth),ee=r?0:gn(c.borderRightWidth),P=r?0:gn(c.borderBottomWidth),be=r?0:gn(c.borderLeftWidth),T=O+C,j=f+S,oe=be+ee,D=z+P,F=h?o.offsetHeight-D-o.clientHeight:0,y=w?o.offsetWidth-oe-o.clientWidth:0,b=p?T+oe:0,k=p?j+D:0,G=r?r.width:gn(c.width)-b-y,he=r?r.height:gn(c.height)-k-F,ot=G+T+y+oe,Ee=he+j+F+D,He=na({devicePixelContentBoxSize:ua(Math.round(G*devicePixelRatio),Math.round(he*devicePixelRatio),u),borderBoxSize:ua(ot,Ee,u),contentBoxSize:ua(G,he,u),contentRect:new qr(O,f,G,he)});return Aa.set(o,He),He},Yr=function(o,i,c){var r=Xr(o,c),p=r.borderBoxSize,u=r.contentBoxSize,w=r.devicePixelContentBoxSize;switch(i){case Da.DEVICE_PIXEL_CONTENT_BOX:return w;case Da.BORDER_BOX:return p;default:return u}},Sp=function(){function o(i){var c=Xr(i);this.target=i,this.contentRect=c.contentRect,this.borderBoxSize=na([c.borderBoxSize]),this.contentBoxSize=na([c.contentBoxSize]),this.devicePixelContentBoxSize=na([c.devicePixelContentBoxSize])}return o}(),Jr=function(o){if(Gr(o))return 1/0;for(var i=0,c=o.parentNode;c;)i+=1,c=c.parentNode;return i},Tp=function(){var o=1/0,i=[];ta.forEach(function(u){if(u.activeTargets.length!==0){var w=[];u.activeTargets.forEach(function(h){var f=new Sp(h.target),C=Jr(h.target);w.push(f),h.lastReportedSize=Yr(h.target,h.observedBox),C<o&&(o=C)}),i.push(function(){u.callback.call(u.observer,w,u.observer)}),u.activeTargets.splice(0,u.activeTargets.length)}});for(var c=0,r=i;c<r.length;c++){var p=r[c];p()}return o},Jo=function(o){ta.forEach(function(i){i.activeTargets.splice(0,i.activeTargets.length),i.skippedTargets.splice(0,i.skippedTargets.length),i.observationTargets.forEach(function(c){c.isActive()&&(Jr(c.target)>o?i.activeTargets.push(c):i.skippedTargets.push(c))})})},Bp=function(){var o=0;for(Jo(o);kp();)o=Tp(),Jo(o);return xp()&&wp(),o>0},to,Zr=[],Ip=function(){return Zr.splice(0).forEach(function(o){return o()})},Np=function(o){if(!to){var i=0,c=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Ip()}).observe(c,r),to=function(){c.textContent="".concat(i?i--:i++)}}Zr.push(o),to()},Ap=function(o){Np(function(){requestAnimationFrame(o)})},Fa=0,Vp=function(){return!!Fa},Op=250,Mp={attributes:!0,characterData:!0,childList:!0,subtree:!0},Zo=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Qo=function(o){return o===void 0&&(o=0),Date.now()+o},no=!1,zp=function(){function o(){var i=this;this.stopped=!0,this.listener=function(){return i.schedule()}}return o.prototype.run=function(i){var c=this;if(i===void 0&&(i=Op),!no){no=!0;var r=Qo(i);Ap(function(){var p=!1;try{p=Bp()}finally{if(no=!1,i=r-Qo(),!Vp())return;p?c.run(1e3):i>0?c.run(i):c.start()}})}},o.prototype.schedule=function(){this.stop(),this.run()},o.prototype.observe=function(){var i=this,c=function(){return i.observer&&i.observer.observe(document.body,Mp)};document.body?c():xa.addEventListener("DOMContentLoaded",c)},o.prototype.start=function(){var i=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Zo.forEach(function(c){return xa.addEventListener(c,i.listener,!0)}))},o.prototype.stop=function(){var i=this;this.stopped||(this.observer&&this.observer.disconnect(),Zo.forEach(function(c){return xa.removeEventListener(c,i.listener,!0)}),this.stopped=!0)},o}(),so=new zp,er=function(o){!Fa&&o>0&&so.start(),Fa+=o,!Fa&&so.stop()},Fp=function(o){return!fo(o)&&!Dp(o)&&getComputedStyle(o).display==="inline"},Rp=function(){function o(i,c){this.target=i,this.observedBox=c||Da.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return o.prototype.isActive=function(){var i=Yr(this.target,this.observedBox,!0);return Fp(this.target)&&(this.lastReportedSize=i),this.lastReportedSize.inlineSize!==i.inlineSize||this.lastReportedSize.blockSize!==i.blockSize},o}(),Pp=function(){function o(i,c){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=i,this.callback=c}return o}(),Va=new WeakMap,tr=function(o,i){for(var c=0;c<o.length;c+=1)if(o[c].target===i)return c;return-1},Oa=function(){function o(){}return o.connect=function(i,c){var r=new Pp(i,c);Va.set(i,r)},o.observe=function(i,c,r){var p=Va.get(i),u=p.observationTargets.length===0;tr(p.observationTargets,c)<0&&(u&&ta.push(p),p.observationTargets.push(new Rp(c,r&&r.box)),er(1),so.schedule())},o.unobserve=function(i,c){var r=Va.get(i),p=tr(r.observationTargets,c),u=r.observationTargets.length===1;p>=0&&(u&&ta.splice(ta.indexOf(r),1),r.observationTargets.splice(p,1),er(-1))},o.disconnect=function(i){var c=this,r=Va.get(i);r.observationTargets.slice().forEach(function(p){return c.unobserve(i,p.target)}),r.activeTargets.splice(0,r.activeTargets.length)},o}(),Lp=function(){function o(i){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof i!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Oa.connect(this,i)}return o.prototype.observe=function(i,c){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Go(i))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Oa.observe(this,i,c)},o.prototype.unobserve=function(i){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Go(i))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Oa.unobserve(this,i)},o.prototype.disconnect=function(){Oa.disconnect(this)},o.toString=function(){return"function ResizeObserver () { [polyfill code] }"},o}();const Ha=new WeakMap;function $p(o){var i;for(let c=0,r=o.length;c<r;++c){const p=o[c],u=Ha.get(p.target);if(typeof u=="function"){const{inlineSize:w,blockSize:h}=((i=p.borderBoxSize)==null?void 0:i[0])??{},{offsetWidth:f,offsetHeight:C}=p.target;u(Object.assign(p,{offsetWidth:f,offsetHeight:C,width:w??f,height:h??C}))}}}const Qr=new(aa&&window.ResizeObserver||Lp)($p);function nr(o,i){Ha.set(o,i),Qr.observe(o)}function ar(o){Ha.has(o)&&(Qr.unobserve(o),Ha.delete(o))}function jp(o={}){let i=Ho;const c=e.watch(()=>e.unref(o.target),p=>{i(),!(!p||typeof o.onResize!="function")&&(nr(p,o.onResize),i=()=>{ar(p),i=Ho})},{immediate:!0}),r=()=>{c(),i()};return e.getCurrentScope()&&e.onScopeDispose(r),{observeResize:nr,unobserveResize:ar,unobserve:r}}const Up=e.ref(!1);e.computed(()=>Up.value);const or="__theme_style__",ao="__theme_observer__",rr=e.reactive(new Map),lr=new Map;e.watch(rr,()=>{if(!aa)return;lr.clear();const o=document.head.querySelector(`#${or}`);o&&document.head.removeChild(o);const i=document.createElement("style");let c=`.${ao} { width: 1px }`,r=1;for(const[p,[u,w]]of rr.entries())c+=` html.${u} .${ao}, .${w} .${ao} { width: ${++r}px }`,lr.set(r,p);i.textContent=c,i.id=or,document.head.appendChild(i)});const el=e.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(o,{expose:i,emit:c}){const r=o,p=c,u=e.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),w=new Map,h=e.ref(r.layout),f=e.ref(),{observeResize:C,unobserveResize:S}=jp(),O=jd();O.on("resizeEvent",z),O.on("dragEvent",ee),e.onBeforeMount(()=>{p("layout-before-mount",h.value)}),e.onMounted(()=>{p("layout-mounted",h.value),e.nextTick(()=>{Qd(h.value),u.originalLayout=h.value,e.nextTick(()=>{he(),f.value&&C(f.value,Ud(D,16)),sa(h.value,r.verticalCompact),p("layout-updated",h.value),oe(),D()})})}),e.onBeforeUnmount(()=>{O.clearAll(),f.value&&S(f.value)});function z(Ee,He,$e,M,ie,le){k(Ee,He,$e,M,ie,le)}function ee(Ee,He,$e,M,ie,le){b(Ee,He,$e,M,ie,le)}e.watch(()=>u.width,(Ee,He)=>{e.nextTick(()=>{O.emit("updateWidth",Ee),He===-1&&e.nextTick(()=>{p("layout-ready",h.value)}),oe()})}),e.watch(()=>[r.layout,r.layout.length],()=>{h.value=r.layout,j()}),e.watch(()=>r.colNum,Ee=>{O.emit("setColNum",Ee)}),e.watch(()=>r.rowHeight,Ee=>{O.emit("setRowHeight",Ee)}),e.watch(()=>r.isDraggable,Ee=>{O.emit("setDraggable",Ee)}),e.watch(()=>r.isResizable,Ee=>{O.emit("setResizable",Ee)}),e.watch(()=>r.isBounded,Ee=>{O.emit("setBounded",Ee)}),e.watch(()=>r.transformScale,Ee=>{O.emit("setTransformScale",Ee)}),e.watch(()=>r.responsive,Ee=>{Ee||(p("update:layout",u.originalLayout),O.emit("setColNum",r.colNum)),D()}),e.watch(()=>r.maxRows,Ee=>{O.emit("setMaxRows",Ee)}),e.watch([()=>r.margin,()=>r.margin[1]],oe),e.provide(Rr,e.reactive({...e.toRefs(r),...e.toRefs(u),increaseItem:P,decreaseItem:be})),e.provide(Pr,O),i({state:u,getItem:T,resizeEvent:k,dragEvent:b,layoutUpdate:j});function P(Ee){w.set(Ee.i,Ee)}function be(Ee){w.delete(Ee.i)}function T(Ee){return w.get(Ee)}function j(){if(!cn(h.value)&&!cn(u.originalLayout)){if(h.value.length!==u.originalLayout.length){const Ee=ot(h.value,u.originalLayout);if(Ee.length>0)if(h.value.length>u.originalLayout.length)u.originalLayout=u.originalLayout.concat(Ee);else{const He=new Set(Ee.map($e=>$e.i));u.originalLayout=u.originalLayout.filter($e=>!He.has($e.i))}u.lastLayoutLength=h.value.length,he()}sa(h.value,r.verticalCompact),O.emit("updateWidth",u.width),oe(),p("layout-updated",h.value)}}function oe(){u.mergedStyle={height:F()}}function D(){f.value&&(u.width=f.value.offsetWidth),O.emit("resizeEvent")}function F(){if(!r.autoSize)return;const Ee=parseFloat(r.margin[1]);return Wd(h.value)*(r.rowHeight+Ee)+Ee+"px"}let y;function b(Ee,He,$e,M,ie,le){let fe=Fo(h.value,He);cn(fe)&&(fe={h:0,w:0,x:0,y:0,i:""}),Ee==="dragstart"&&!r.verticalCompact&&(y=h.value.reduce((Xe,{i:st,x:q,y:V})=>({...Xe,[st]:{x:q,y:V}}),{})),Ee==="dragmove"||Ee==="dragstart"?(u.placeholder.i=He,u.placeholder.x=fe.x,u.placeholder.y=fe.y,u.placeholder.w=le,u.placeholder.h=ie,e.nextTick(()=>{u.isDragging=!0}),O.emit("updateWidth",u.width)):e.nextTick(()=>{u.isDragging=!1}),h.value=io(h.value,fe,$e,M,!0,r.preventCollision),r.restoreOnDrag?(fe.static=!0,sa(h.value,r.verticalCompact,y),fe.static=!1):sa(h.value,r.verticalCompact),O.emit("compact"),oe(),Ee==="dragend"&&(y=void 0,p("layout-updated",h.value))}function k(Ee,He,$e,M,ie,le){let fe=Fo(h.value,He);cn(fe)&&(fe={h:0,w:0,x:0,y:0,i:""});let Xe;if(r.preventCollision){const st=$r(h.value,{...fe,w:le,h:ie}).filter(q=>q.i!==fe.i);if(Xe=st.length>0,Xe){let q=1/0,V=1/0;st.forEach(ve=>{ve.x>fe.x&&(q=Math.min(q,ve.x)),ve.y>fe.y&&(V=Math.min(V,ve.y))}),Number.isFinite(q)&&(fe.w=q-fe.x),Number.isFinite(V)&&(fe.h=V-fe.y)}}Xe||(fe.w=le,fe.h=ie),Ee==="resizestart"||Ee==="resizemove"?(u.placeholder.i=He,u.placeholder.x=$e,u.placeholder.y=M,u.placeholder.w=fe.w,u.placeholder.h=fe.h,e.nextTick(()=>{u.isDragging=!0}),O.emit("updateWidth",u.width)):Ee&&e.nextTick(()=>{u.isDragging=!1}),r.responsive&&G(),sa(h.value,r.verticalCompact),O.emit("compact"),oe(),Ee==="resizeend"&&p("layout-updated",h.value)}function G(){const Ee=ap(r.breakpoints,u.width);if(Ee===u.lastBreakpoint)return;const He=Kr(Ee,r.cols);!cn(u.lastBreakpoint)&&!u.layouts[u.lastBreakpoint]&&(u.layouts[u.lastBreakpoint]=lo(h.value));const $e=op(u.originalLayout,u.layouts,r.breakpoints,Ee,u.lastBreakpoint,He,r.verticalCompact);u.layouts[Ee]=$e,u.lastBreakpoint!==Ee&&p("breakpoint-changed",Ee,$e),h.value=$e,p("update:layout",$e),u.lastBreakpoint=Ee,O.emit("setColNum",He)}function he(){u.layouts=Object.assign({},r.responsiveLayouts)}function ot(Ee,He){const $e=new Set(He.map(fe=>fe.i)),M=new Set(Ee.map(fe=>fe.i)),ie=Ee.filter(fe=>!$e.has(fe.i)),le=He.filter(fe=>!M.has(fe.i));return ie.concat(le)}return(Ee,He)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:f,class:"vgl-layout",style:e.normalizeStyle(u.mergedStyle)},[Ee.$slots.default?e.renderSlot(Ee.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(h.value,$e=>(e.openBlock(),e.createBlock(Wa,e.mergeProps({key:$e.i,ref_for:!0},$e),{default:e.withCtx(()=>[e.renderSlot(Ee.$slots,"item",{item:$e})]),_:2},1040))),128)),e.withDirectives(e.createVNode(Wa,{class:"vgl-item--placeholder",x:u.placeholder.x,y:u.placeholder.y,w:u.placeholder.w,h:u.placeholder.h,i:u.placeholder.i},null,8,["x","y","w","h","i"]),[[e.vShow,u.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(o)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();const Kp={key:0,class:"item-view-group"},Wp={key:0,class:"item-view-group"},Hp=e.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(o,{emit:i}){const c=x.useModelComp(x.pinia),{isEdit:r}=x.storeToRefs(c),p=i,u=o,w=e.computed(()=>u==null?void 0:u.children),h=e.computed(()=>{var P,be,T,j;return((P=u==null?void 0:u.children)==null?void 0:P.length)>0&&((be=u==null?void 0:u.children)!=null&&be.every(oe=>oe==null?void 0:oe.layout))?(j=(T=u==null?void 0:u.children)==null?void 0:T[0])==null?void 0:j.layout:"vertical"}),f=P=>{p("radioChange",P)},C=e.computed(()=>{var P,be;return((be=(P=u==null?void 0:u.children)==null?void 0:P[0])==null?void 0:be.isGridLayout)||!1}),S=e.ref((u==null?void 0:u.level)+1),O=e.computed(()=>{if(!(u!=null&&u.children)||!Array.isArray(u.children)||u.children.length<2)return!1;const P=u.children.some(T=>(T==null?void 0:T.name)==="测量系统配置表"&&(T==null?void 0:T.comp)==="ParentItem"),be=u.children.some(T=>(T==null?void 0:T.name)==="测量系统传递表"&&(T==null?void 0:T.comp)==="ParentItem");return P&&be});e.watch(()=>u==null?void 0:u.children,()=>{O.value},{deep:!0});const z=P=>{p("rowClick",P)},ee=(P,be)=>{p("routeUrl",P,be)};return(P,be)=>C.value?(e.openBlock(),e.createBlock(e.unref(el),{key:0,layout:w.value,"onUpdate:layout":be[0]||(be[0]=T=>w.value=T),"is-draggable":e.unref(r)==="edit","is-resizable":e.unref(r)==="edit","col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(T,j)=>(e.openBlock(),e.createBlock(e.unref(Wa),{key:T.i,x:T.x,y:T.y,"min-h":T.minH,"max-h":T.maxH,"min-w":T.minW,w:T.w,h:T.h,i:T.i},{default:e.withCtx(()=>{var oe,D,F,y,b,k,G,he,ot,Ee,He,$e,M;return[e.createElementVNode("div",{style:e.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:j===((oe=u==null?void 0:u.children)==null?void 0:oe.length)-1?"0px":"24px"})},[((F=(D=T==null?void 0:T.component)==null?void 0:D.comp)==null?void 0:F.toUpperCase())!=="TABLE"&&((y=T==null?void 0:T.component)!=null&&y.name)?(e.openBlock(),e.createElementBlock("div",Kp,[e.createElementVNode("div",{class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:(parseInt(S.value.toString())-1)*12+"px",fontWeight:600-(S.value-1)*100>=400?600-(S.value-1)*100:400,fontSize:17-S.value>=14?17-S.value+"px":"14px"})},e.toDisplayString((b=T==null?void 0:T.component)==null?void 0:b.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Ca)((k=T==null?void 0:T.component)==null?void 0:k.comp)),{pageLayout:h.value,config:{showIndex:(G=e.unref(Mt)[j])==null?void 0:G.showIndex,allowMove:(he=e.unref(Mt)[j])==null?void 0:he.allowMove,viewport:(ot=e.unref(Mt)[j])==null?void 0:ot.viewport},related:T==null?void 0:T.relatedTables,compName:T==null?void 0:T.component.name,compNames:e.unref(Tr),itemData:(Ee=T==null?void 0:T.component)==null?void 0:Ee.compData,childItemData:(He=T==null?void 0:T.component)==null?void 0:He.itemChildData,key:e.unref(da),cacheNewData:e.unref(Sr),onChange:e.unref(ja),index:(T==null?void 0:T.id)??j,onContentChange:e.unref(Ua),onPageChange:e.unref(Ka),parentTableId:($e=T==null?void 0:T.component)==null?void 0:$e.tableId,allMapContents:e.unref(ro),children:(M=T==null?void 0:T.component)==null?void 0:M.children,level:S.value,onRowClick:z,onRouteUrl:ee,onClickTrigger:e.unref(Br),onClickMainKey:e.unref(Ir)},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(u==null?void 0:u.children,(T,j)=>{var oe,D;return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({gap:"16px",display:(T==null?void 0:T.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(j)===((oe=u==null?void 0:u.children)==null?void 0:oe.length)-1?"0px":"24px"})},[((D=T==null?void 0:T.comp)==null?void 0:D.toUpperCase())!=="TABLE"&&T.name?(e.openBlock(),e.createElementBlock("div",Wp,[e.createElementVNode("div",{class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:parseInt(S.value.toString())>1?"12px":"0px",fontWeight:600-(S.value-1)*100>=400?600-(S.value-1)*100:400,fontSize:17-S.value>=14?17-S.value+"px":"14px"})},e.toDisplayString(T.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Ca)(T.comp)),{compName:T.name,itemData:T==null?void 0:T.compData,related:T==null?void 0:T.relatedTables,childItemData:T==null?void 0:T.itemChildData,key:e.unref(da),onChange:e.unref(ja),index:(T==null?void 0:T.id)??j,onContentChange:e.unref(Ua),onPageChange:e.unref(Ka),parentTableId:T==null?void 0:T.tableId,allMapContents:e.unref(ro),children:T==null?void 0:T.children,level:S.value,onRowClick:z,onRouteUrl:ee,onRadioChange:f},null,40,["compName","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),qp=zt._export_sfc(Hp,[["__scopeId","data-v-70db2a9e"]]),Gp={class:"radio-group-container"},Xp=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(o,{emit:i}){const c=o,r=i,p=e.ref();e.watch(()=>c==null?void 0:c.itemData,()=>{var w,h;p.value=(h=(w=c==null?void 0:c.itemData)==null?void 0:w[0])==null?void 0:h.value,r("radioChange",p.value)},{immediate:!0,deep:!0});const u=w=>{p.value=w,r("radioChange",p.value)};return(w,h)=>(e.openBlock(),e.createElementBlock("div",Gp,[e.createVNode(It.ssRadio,{modelValue:p.value,"onUpdate:modelValue":h[0]||(h[0]=f=>p.value=f),content:c==null?void 0:c.itemData,onChange:u},null,8,["modelValue","content"])]))}}),Yp=zt._export_sfc(Xp,[["__scopeId","data-v-9add4d37"]]),tl=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),Jp={TABLE:ga.ssTable,FORM:To,STATICFORM:ur,TABLEOPERATE:ms,TABLESTYLE:As,TABLEEXTEND:Os,TABLEINTERACTION:Fs,FORMOPERATE:Bo,FOLD:fc,CALCULATOR:bc,METHODBUTTON:wc,AVATARUPLOAD:_o.ssAvatar,SIGNATURE:_o.ssSignature,FORMTOP:To,STEP:Oc,STEPOPERATE:oc,TIMELINE:Lc,TIMELINEOPERATE:uc,FORMTOPOPERATE:Bo,SIGNATUREOPERATE:Nc,AVATARUPLOADOPERATE:_c,TABS:gu,TABSOPERATE:nd,CHART:md,CHARTOPERATE:Sd,LAYOUT:Id,LAYOUTOPERATE:Pd,PARENTITEM:qp,RADIO:Yp};function oa(o){return Jp[o==null?void 0:o.toUpperCase()]||null}exports.De=el;exports._sfc_main=yr;exports.activeStepInfo=ca;exports.addContents=wa;exports.addVisibleDialog=uo;exports.affixItems=nu;exports.allMapContents=ro;exports.cacheNewData=Sr;exports.clickMainKey=Ir;exports.clickSavePage=tu;exports.clickStep=Ar;exports.clickTrigger=Br;exports.compId=da;exports.compNames=Tr;exports.compShow=$a;exports.existLayouts=iu;exports.generateLayouts=Ts;exports.getComponent=oa;exports.getComponents=Ca;exports.getSliceContLength=pu;exports.gridRowHeight=Cs;exports.isStepLayout=Vr;exports.onBack=Qc;exports.onButtonChange=au;exports.onChange=ja;exports.onClick=eu;exports.onContentChange=Ua;exports.onExtendTaskEnd=lu;exports.onOk=ou;exports.onPageBack=cu;exports.onPageChange=Ka;exports.onSelectFixContent=Zc;exports.renderShowItems=_r;exports.setComponent=wr;exports.showItems=Mt;exports.sliceTableLength=Er;exports.slotContent=tl;exports.ssMenu=La;exports.st=Wa;exports.stepItems=fu;exports.tabChange=su;exports.toolBar=ru;exports.verifyButton=uu;