ss-component-new 1.1.954 → 1.1.956

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 (69) hide show
  1. package/dist/{animationData-fm5KNCUa.js → animationData-BMSHh_H8.js} +1 -1
  2. package/dist/{animationData-Dw5Xglek.cjs → animationData-v3bdla0w.cjs} +1 -1
  3. package/dist/{index-DjEAH7C9.js → index-B7lMpQUv.js} +5 -5
  4. package/dist/{index-FmH9FuAa.js → index-BEtogGbS.js} +1 -1
  5. package/dist/{index-EhuWhYxi.cjs → index-BHfUsWfZ.cjs} +1 -1
  6. package/dist/{index-JFn-blHD.cjs → index-BJE58rSZ.cjs} +1 -1
  7. package/dist/{index-D4LohqeV.js → index-BKwErFD6.js} +2 -2
  8. package/dist/{index-BY9rTcYq.cjs → index-BRlSaGzU.cjs} +1 -1
  9. package/dist/index-BWT1USFF.cjs +1 -0
  10. package/dist/index-BpzN2e4j.cjs +1 -0
  11. package/dist/{index-CbjQHHsY.cjs → index-CEDDj03T.cjs} +1 -1
  12. package/dist/{index-CBlGJ9Vt.js → index-CMDcx3lf.js} +551 -540
  13. package/dist/{index-CSXsiF3V.cjs → index-CrtLhUZW.cjs} +1 -1
  14. package/dist/{index-DUm5Skgw.cjs → index-CsH-Kpkb.cjs} +1 -1
  15. package/dist/{index-Dui3dKim.js → index-Csme8Efe.js} +2 -2
  16. package/dist/{index-Dz1QOrOu.js → index-Cxiyz3EB.js} +1 -1
  17. package/dist/{index-DuaFUu84.js → index-D1coV4m7.js} +1 -1
  18. package/dist/{index-b3uWQnRo.cjs → index-D2G_f0il.cjs} +1 -1
  19. package/dist/{index-BWwuI-8T.cjs → index-D499wbNQ.cjs} +1 -1
  20. package/dist/index-D9KtrXwF.js +2432 -0
  21. package/dist/{index-dOKNyO81.js → index-DF4OBU77.js} +1 -1
  22. package/dist/{index-DbYPGOX1.cjs → index-DGzio6sU.cjs} +1 -1
  23. package/dist/{index-D-RT4WEt.js → index-DHKZv2PT.js} +2 -2
  24. package/dist/{index-JHYn8TpG.cjs → index-DL8o6FQO.cjs} +1 -1
  25. package/dist/{index-B4VL0QcL.cjs → index-DLFmAi1l.cjs} +1 -1
  26. package/dist/{index-BoJkXVIX.cjs → index-DZsSIZOn.cjs} +1 -1
  27. package/dist/{index-ufVf88qg.js → index-D_XZ8q5S.js} +1 -1
  28. package/dist/{index-4pASPqvL.cjs → index-D__2yt3R.cjs} +1 -1
  29. package/dist/index-DecN9a5Y.cjs +1 -0
  30. package/dist/{index-DCqwaLho.js → index-Dfmlkuci.js} +1 -1
  31. package/dist/{index-CjMc3Jq0.js → index-Dyh7A_6h.js} +1 -1
  32. package/dist/{index-BnhbKrNM.cjs → index-HzqQ31ky.cjs} +1 -1
  33. package/dist/{index-PmnntmHI.cjs → index-JW2BX547.cjs} +1 -1
  34. package/dist/{index-Cvm2fs-P.js → index-JvTpPB0Q.js} +3 -3
  35. package/dist/{index-Cvx8oz54.js → index-RItWdWBU.js} +1 -1
  36. package/dist/index-SsuBfBX4.js +7197 -0
  37. package/dist/{index-BkiZ5TFh.js → index-i-8mVauO.js} +1 -1
  38. package/dist/{index-I-hh6jz_.js → index-yf8L7KUB.js} +1 -1
  39. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-NIz1msL4.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-BVCprQ5M.cjs} +1 -1
  40. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DifR5RAF.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BoQaCN4N.js} +2 -2
  41. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DqTR7s9I.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Clk_K-KZ.cjs} +1 -1
  42. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CCiIu62u.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-QteFVUcJ.js} +4 -4
  43. package/dist/{index.vue_vue_type_style_index_1_lang-01MdSSYj.cjs → index.vue_vue_type_style_index_1_lang-BjEBunTw.cjs} +1 -1
  44. package/dist/{index.vue_vue_type_style_index_1_lang-BtWZgdhb.js → index.vue_vue_type_style_index_1_lang-C_W1rsb-.js} +1 -1
  45. package/dist/{main-ZE9y-iVC.cjs → main-CDKU88vl.cjs} +1 -1
  46. package/dist/{main-CEOI65Vw.js → main-DD-u-hQm.js} +2 -2
  47. package/dist/ss-component.cjs +1 -1
  48. package/dist/ss-component.css +1 -1
  49. package/dist/ss-component.js +6 -6
  50. package/dist/ss-component2.cjs +1 -1
  51. package/dist/ss-component2.js +10 -10
  52. package/dist/{threeLatheView-CW3G-fjK.js → threeLatheView-ByfH7Owi.js} +1 -1
  53. package/dist/{threeLatheView-Be6CdKnk.cjs → threeLatheView-CktYOF67.cjs} +1 -1
  54. package/dist/{threeModel-CIGVEN8X.cjs → threeModel-BnvK0yQS.cjs} +1 -1
  55. package/dist/{threeModel-CVrl8yuh.js → threeModel-CZgugRv1.js} +2 -2
  56. package/dist/{threeSceneView-CJEuxKMy.js → threeSceneView-DX9_dcQb.js} +2 -2
  57. package/dist/{threeSceneView-28xsGq3t.cjs → threeSceneView-Wxk1s4wF.cjs} +1 -1
  58. package/dist/threeSceneViewForCPMPIP-DJxkqSQi.cjs +5 -0
  59. package/dist/threeSceneViewForCPMPIP-DtzD1Xgw.js +690 -0
  60. package/dist/{threeViewerHost-BjB73yRw.js → threeViewerHost-CJRW5OB6.js} +1 -1
  61. package/dist/{threeViewerHost-CrSr2j69.cjs → threeViewerHost-DIhKhtKC.cjs} +1 -1
  62. package/package.json +1 -1
  63. package/dist/index-BLUQW7un.cjs +0 -1
  64. package/dist/index-B_PDHvH2.js +0 -2384
  65. package/dist/index-CLc-Myz2.js +0 -7189
  66. package/dist/index-Dl-l5dB0.cjs +0 -1
  67. package/dist/index-Sa2or0ER.cjs +0 -1
  68. package/dist/threeSceneViewForCPMPIP-CaF-hVXx.js +0 -690
  69. package/dist/threeSceneViewForCPMPIP-DcRSe3tL.cjs +0 -5
@@ -1,6 +1,6 @@
1
1
  import { i as C, j as x } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
2
2
  import { r as K, u as S } from "./xlsx-ByPOQ6N_.js";
3
- import { d as I } from "./threeViewerHost-BjB73yRw.js";
3
+ import { d as I } from "./threeViewerHost-CJRW5OB6.js";
4
4
  import { c as P } from "./index-BqTVXNQ3.js";
5
5
  function N(r) {
6
6
  try {
@@ -1 +1 @@
1
- "use strict";const y=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),T=require("./xlsx-BPHygxEf.cjs"),_=require("./threeViewerHost-CrSr2j69.cjs"),U=require("./index-1z9RrjZc.cjs");function P(r){try{const c=new URL(r).pathname,i=c.substring(c.lastIndexOf("/")+1);return decodeURIComponent(i)}catch(c){return console.error("无法解析URL以提取文件名:",r,c),"未知文件名"}}function S(r){if(!r)return;const c=r.match(/filename\*\s*=\s*([^;]+)/i);if(c){let n=c[1].trim();n=n.replace(/^"(.*)"$/,"$1");const h=n.split("''");if(h.length===2){const m=h[0].toUpperCase(),f=h[1];try{if(m==="UTF-8")return decodeURIComponent(f)}catch{}return f}try{return decodeURIComponent(n)}catch{return n}}const i=r.match(/filename\s*=\s*("?)([^";]+)\1/i);if(i)return i[2].trim()}async function K(r){let c,i;if(/^https?:\/\//.test(r))try{const n=await fetch(r,{method:"GET",cache:"no-store"});if(!n.ok)throw new Error(`下载文件失败: ${n.statusText} (URL: ${r})`);c=await n.blob(),i=P(r)}catch(n){throw console.error("使用 fetch 下载文件时出错:",n),n}else try{const n=await _.downloadAvatarApi({url:r});if(n.status!==200)throw new Error(`下载失败: ${n.status}`);const h=n.headers["content-disposition"];i=S(h)||"无文件名",c=n.data}catch(n){throw console.error("通过 API 下载文件时出错:",n),n}return new File([c],i,{type:c.type})}function N(r){return new Promise((c,i)=>{const n=new FileReader;n.onload=h=>{var m;try{const f=(m=h.target)==null?void 0:m.result,u=T.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=T.utils.sheet_to_json(F);c(E)}catch(f){i(f)}},n.readAsArrayBuffer(r)})}const V=async()=>{const r="弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工位姿生成`,i,"");let A=["夹持长度"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},q=async()=>{const r="双弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工工艺生成`,i,"");let A=["夹持位置"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},B=async r=>await K(r),j=async r=>await N(r),X=async r=>{const c=await B(r);return await j(c)};exports.fetchDoubleRobotAnimationData=q;exports.fetchSingleRobotAnimationData=V;exports.initXYZBCList=X;
1
+ "use strict";const y=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),T=require("./xlsx-BPHygxEf.cjs"),_=require("./threeViewerHost-DIhKhtKC.cjs"),U=require("./index-1z9RrjZc.cjs");function P(r){try{const c=new URL(r).pathname,i=c.substring(c.lastIndexOf("/")+1);return decodeURIComponent(i)}catch(c){return console.error("无法解析URL以提取文件名:",r,c),"未知文件名"}}function S(r){if(!r)return;const c=r.match(/filename\*\s*=\s*([^;]+)/i);if(c){let n=c[1].trim();n=n.replace(/^"(.*)"$/,"$1");const h=n.split("''");if(h.length===2){const m=h[0].toUpperCase(),f=h[1];try{if(m==="UTF-8")return decodeURIComponent(f)}catch{}return f}try{return decodeURIComponent(n)}catch{return n}}const i=r.match(/filename\s*=\s*("?)([^";]+)\1/i);if(i)return i[2].trim()}async function K(r){let c,i;if(/^https?:\/\//.test(r))try{const n=await fetch(r,{method:"GET",cache:"no-store"});if(!n.ok)throw new Error(`下载文件失败: ${n.statusText} (URL: ${r})`);c=await n.blob(),i=P(r)}catch(n){throw console.error("使用 fetch 下载文件时出错:",n),n}else try{const n=await _.downloadAvatarApi({url:r});if(n.status!==200)throw new Error(`下载失败: ${n.status}`);const h=n.headers["content-disposition"];i=S(h)||"无文件名",c=n.data}catch(n){throw console.error("通过 API 下载文件时出错:",n),n}return new File([c],i,{type:c.type})}function N(r){return new Promise((c,i)=>{const n=new FileReader;n.onload=h=>{var m;try{const f=(m=h.target)==null?void 0:m.result,u=T.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=T.utils.sheet_to_json(F);c(E)}catch(f){i(f)}},n.readAsArrayBuffer(r)})}const V=async()=>{const r="弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工位姿生成`,i,"");let A=["夹持长度"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},q=async()=>{const r="双弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工工艺生成`,i,"");let A=["夹持位置"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},B=async r=>await K(r),j=async r=>await N(r),X=async r=>{const c=await B(r);return await j(c)};exports.fetchDoubleRobotAnimationData=q;exports.fetchSingleRobotAnimationData=V;exports.initXYZBCList=X;
@@ -1,18 +1,18 @@
1
1
  import { watch as u, onMounted as g, onUnmounted as C, resolveComponent as S, createElementBlock as v, openBlock as B, createVNode as I } from "vue";
2
- import "./index-CLc-Myz2.js";
2
+ import "./index-SsuBfBX4.js";
3
3
  import { u as K } from "./index-BqTVXNQ3.js";
4
4
  import "./array-B8SLUlLb.js";
5
5
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-DifR5RAF.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CCiIu62u.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-BoQaCN4N.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-QteFVUcJ.js";
8
8
  import "./index-BHtNKL1L.js";
9
9
  import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C2rot3ZW.js";
10
10
  import "./STLLoader-BP7WluHI.js";
11
11
  import "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
12
- import "./index.vue_vue_type_style_index_1_lang-BtWZgdhb.js";
12
+ import "./index.vue_vue_type_style_index_1_lang-C_W1rsb-.js";
13
13
  import "./index-CEYNN6fZ.js";
14
14
  import "vue-router";
15
- import "./index-Dui3dKim.js";
15
+ import "./index-Csme8Efe.js";
16
16
  /* empty css */
17
17
  import "./index-OiuIsFSm.js";
18
18
  const j = {
@@ -1,5 +1,5 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { s as m } from "./index-CBlGJ9Vt.js";
2
+ import { s as m } from "./index-CMDcx3lf.js";
3
3
  import { g as d, c as _ } from "./index-CpWaVXzt.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Dl-l5dB0.cjs"),n=require("./index-D4NzVLgw.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BpzN2e4j.cjs"),n=require("./index-D4NzVLgw.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-aKBwlWY2.cjs");const n=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),o=require("./index-1z9RrjZc.cjs"),u=require("./index-Dl-l5dB0.cjs"),c=require("./index-BkKMx6Mi.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=o.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await n.getActivePageStructureId(r.value)}),(_,l)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-aKBwlWY2.cjs");const n=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),o=require("./index-1z9RrjZc.cjs"),u=require("./index-BpzN2e4j.cjs"),c=require("./index-BkKMx6Mi.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=o.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await n.getActivePageStructureId(r.value)}),(_,l)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
@@ -1,11 +1,11 @@
1
1
  import { ref as me, computed as vt, resolveComponent as $t, createElementBlock as be, openBlock as fe, Fragment as Nt, renderList as Ht, createElementVNode as ve, toDisplayString as st, createVNode as he, watch as ue, withCtx as Me, createBlock as Wt, resolveDynamicComponent as gr, createTextVNode as pn, createCommentVNode as gt, normalizeStyle as mn, withModifiers as Dt, defineComponent as mr, inject as rr, shallowRef as Ni, reactive as Yt, toRef as Hi, onBeforeMount as yr, onMounted as br, watchEffect as Wi, onBeforeUnmount as xr, normalizeClass as ir, renderSlot as dn, nextTick as Ye, provide as or, toRefs as ar, withDirectives as Yi, mergeProps as Xi, vShow as Vi, unref as sr } from "vue";
2
- import { n as fn, g as wr } from "./index-CLc-Myz2.js";
2
+ import { n as fn, g as wr } from "./index-SsuBfBX4.js";
3
3
  import { p as yn, s as bn, c as De, E as Gi } from "./index-BqTVXNQ3.js";
4
4
  import { a as xn, E as Ui } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
5
5
  import { i as Ce, o as ke, b as lr, w as qi, Z as Ki, n as Ji } from "./array-B8SLUlLb.js";
6
6
  import { _ as wn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  import Zi from "./index-DiRBJiMW.js";
8
- import { a as Qi, b as eo } from "./index-DuaFUu84.js";
8
+ import { a as Qi, b as eo } from "./index-D1coV4m7.js";
9
9
  import { g as to } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C2rot3ZW.js";
10
10
  const no = { class: "type-select" }, ro = { class: "group-label" }, io = { class: "group-items" }, oo = ["onDragstart"], ao = {
11
11
  __name: "index",
@@ -1,4 +1,4 @@
1
- "use strict";const h=require("vue"),zn=require("./index-BpPyaNFa.cjs"),Yf=require("./icon-CaMIXmb-.cjs"),ut=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-aKBwlWY2.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$t=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Jt=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),K=require("./index-1z9RrjZc.cjs"),_n=require("./threeViewerHost-CrSr2j69.cjs"),jo=require("./index-CpAwk7Ae.cjs"),Qf=require("./index-CMAV_VWo.cjs");var Jf="[object Date]";function Zf(i){return K.isObjectLike(i)&&K.baseGetTag(i)==Jf}var Ll=K.nodeUtil&&K.nodeUtil.isDate,ed=Ll?K.baseUnary(Ll):Zf,td="[object Number]";function Kr(i){return typeof i=="number"||K.isObjectLike(i)&&K.baseGetTag(i)==td}const $h={__name:"index",props:{value:String|Boolean,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},activeText:{type:String,default:"是"},inactiveText:{type:String,default:"否"}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-switch");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),"active-color":"#13ce66","inactive-color":"#ff4949","active-text":e==null?void 0:e.activeText,"inactive-text":e==null?void 0:e.inactiveText},null,8,["modelValue","active-text","inactive-text"])}}},bi={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},appendShow:{type:Boolean,default:!1,required:!1}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-input");return Array.isArray(t.value)?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(r,{key:0,modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),disabled:!(e!=null&&e.isEdit),clearable:""},h.createSlots({_:2},[i.appendShow?{name:"append",fn:h.withCtx(()=>[h.renderSlot(n.$slots,"append")]),key:"0"}:void 0]),1032,["modelValue","disabled"]))}}},nd={class:"icon-popover"},id=["onClick"],sd=h.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,n=e,s=h.ref(t.modelValue),r=h.ref(!1),o=h.ref([]),l=()=>{r.value=!0},a=()=>{r.value=!1},u=c=>{s.value=c.value,n("update:modelValue",c.value)};return h.onMounted(()=>{o.value=Yf.getSvgIcons()}),(c,f)=>{const d=h.resolveComponent("el-input"),p=h.resolveComponent("el-popover");return h.openBlock(),h.createBlock(p,{width:"400",visible:r.value,title:"图标",placement:"bottom"},{default:h.withCtx(()=>[h.createElementVNode("div",nd,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.value,(m,g)=>(h.openBlock(),h.createElementBlock("div",{key:g,class:"icon-wrap",onClick:b=>u(m)},[h.createVNode(zn.SvgIcon,{name:m==null?void 0:m.value,style:{width:"20px",height:"20px"}},null,8,["name"])],8,id))),128))])]),reference:h.withCtx(()=>[h.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=m=>s.value=m),placeholder:"请输入",disabled:!(t!=null&&t.isEdit),clearable:"",onFocus:l,onBlur:a},{prepend:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:s.value,style:{width:"20px",height:"20px"}},null,8,["name"])]),_:1},8,["modelValue","disabled"])]),_:1},8,["visible"])}}}),rd=Se._export_sfc(sd,[["__scopeId","data-v-d9981dd9"]]),od={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-input");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},ld={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-color-picker");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),"show-alpha":""},null,8,["modelValue"])}}},ad={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-input");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}};function hd(i,e){let t;const n=h.ref(!1),s=h.reactive({...i,originalPosition:"",originalOverflow:"",visible:!1});function r(p){s.text=p}function o(){const p=s.parent,m=d.ns;if(!p.vLoadingAddClassList){let g=p.getAttribute("loading-number");g=Number.parseInt(g)-1,g?p.setAttribute("loading-number",g.toString()):(K.removeClass(p,m.bm("parent","relative")),p.removeAttribute("loading-number")),K.removeClass(p,m.bm("parent","hidden"))}l(),f.unmount()}function l(){var p,m;(m=(p=d.$el)==null?void 0:p.parentNode)==null||m.removeChild(d.$el)}function a(){var p;i.beforeClose&&!i.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(u,400),s.visible=!1,(p=i.closed)==null||p.call(i))}function u(){if(!n.value)return;const p=s.parent;n.value=!1,p.vLoadingAddClassList=void 0,o()}const c=h.defineComponent({name:"ElLoading",setup(p,{expose:m}){const{ns:g,zIndex:b}=K.useGlobalComponentSettings("loading");return m({ns:g,zIndex:b}),()=>{const v=s.spinner||s.svg,k=h.h("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[h.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),C=s.text?h.h("p",{class:g.b("text")},[s.text]):void 0;return h.h(h.Transition,{name:g.b("fade"),onAfterLeave:u},{default:h.withCtx(()=>[h.withDirectives(h.createVNode("div",{style:{backgroundColor:s.background||""},class:[g.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[h.h("div",{class:g.b("spinner")},[k,C])]),[[h.vShow,s.visible]])])})}}}),f=h.createApp(c);Object.assign(f._context,e??{});const d=f.mount(document.createElement("div"));return{...h.toRefs(s),setText:r,removeElLoadingChild:l,close:a,handleAfterLeave:u,vm:d,get $el(){return d.$el}}}let Wi;const Ln=function(i={}){if(!K.isClient)return;const e=cd(i);if(e.fullscreen&&Wi)return Wi;const t=hd({...e,closed:()=>{var s;(s=e.closed)==null||s.call(e),e.fullscreen&&(Wi=void 0)}},Ln._context);ud(e,e.parent,t),Nl(e,e.parent,t),e.parent.vLoadingAddClassList=()=>Nl(e,e.parent,t);let n=e.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",e.parent.setAttribute("loading-number",n),e.parent.appendChild(t.$el),h.nextTick(()=>t.visible.value=e.visible),e.fullscreen&&(Wi=t),t},cd=i=>{var e,t,n,s;let r;return K.isString(i.target)?r=(e=document.querySelector(i.target))!=null?e:document.body:r=i.target||document.body,{parent:r===document.body||i.body?document.body:r,background:i.background||"",svg:i.svg||"",svgViewBox:i.svgViewBox||"",spinner:i.spinner||!1,text:i.text||"",fullscreen:r===document.body&&((t=i.fullscreen)!=null?t:!0),lock:(n=i.lock)!=null?n:!1,customClass:i.customClass||"",visible:(s=i.visible)!=null?s:!0,beforeClose:i.beforeClose,closed:i.closed,target:r}},ud=async(i,e,t)=>{const{nextZIndex:n}=t.vm.zIndex||t.vm._.exposed.zIndex,s={};if(i.fullscreen)t.originalPosition.value=K.getStyle(document.body,"position"),t.originalOverflow.value=K.getStyle(document.body,"overflow"),s.zIndex=n();else if(i.parent===document.body){t.originalPosition.value=K.getStyle(document.body,"position"),await h.nextTick();for(const r of["top","left"]){const o=r==="top"?"scrollTop":"scrollLeft";s[r]=`${i.target.getBoundingClientRect()[r]+document.body[o]+document.documentElement[o]-Number.parseInt(K.getStyle(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])s[r]=`${i.target.getBoundingClientRect()[r]}px`}else t.originalPosition.value=K.getStyle(e,"position");for(const[r,o]of Object.entries(s))t.$el.style[r]=o},Nl=(i,e,t)=>{const n=t.vm.ns||t.vm._.exposed.ns;["absolute","fixed","sticky"].includes(t.originalPosition.value)?K.removeClass(e,n.bm("parent","relative")):K.addClass(e,n.bm("parent","relative")),i.fullscreen&&i.lock?K.addClass(e,n.bm("parent","hidden")):K.removeClass(e,n.bm("parent","hidden"))};Ln._context=null;const fs=Symbol("ElLoading"),Vl=(i,e)=>{var t,n,s,r;const o=e.instance,l=p=>K.isObject$1(e.value)?e.value[p]:void 0,a=p=>{const m=K.isString(p)&&(o==null?void 0:o[p])||p;return m&&h.ref(m)},u=p=>a(l(p)||i.getAttribute(`element-loading-${K.hyphenate(p)}`)),c=(t=l("fullscreen"))!=null?t:e.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(n=l("target"))!=null?n:c?void 0:i,body:(s=l("body"))!=null?s:e.modifiers.body,lock:(r=l("lock"))!=null?r:e.modifiers.lock},d=Ln(f);d._context=ci._context,i[fs]={options:f,instance:d}},fd=(i,e)=>{for(const t of Object.keys(e))h.isRef(e[t])&&(e[t].value=i[t])},ci={mounted(i,e){e.value&&Vl(i,e)},updated(i,e){const t=i[fs];e.oldValue!==e.value&&(e.value&&!e.oldValue?Vl(i,e):e.value&&e.oldValue?K.isObject$1(e.value)&&fd(e.value,t.options):t==null||t.instance.close())},unmounted(i){var e;(e=i[fs])==null||e.instance.close(),i[fs]=null}};ci._context=null;const Fh={install(i){Ln._context=i._context,ci._context=i._context,i.directive("loading",ci),i.config.globalProperties.$loading=Ln},directive:ci,service:Ln},dd=async i=>{var s,r,o,l,a,u,c,f,d;let e=[];(s=i==null?void 0:i.menuSelect)==null||s.forEach(p=>{});let t="";const n=await Jt.menuToParent(i==null?void 0:i.menuSelect);if(n==null||n.forEach(p=>{var m,g;(p==null?void 0:p.name)===(((g=(m=i==null?void 0:i.groupSelect)==null?void 0:m[0])==null?void 0:g.replaceAll("'",""))??"")&&(t=p==null?void 0:p.id)}),t!==""){const p=(l=(o=(r=n==null?void 0:n.find(b=>(b==null?void 0:b.id)===t))==null?void 0:r.compData)==null?void 0:o.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:l.contents;let m=0;p.every(b=>Array.isArray(b))?m=(a=p==null?void 0:p[0])==null?void 0:a.findIndex(b=>{var v,k,C;return(b==null?void 0:b.label)===((C=(k=(v=i==null?void 0:i.groupSelect)==null?void 0:v[1])==null?void 0:k.replaceAll("[",""))==null?void 0:C.replaceAll("]",""))}):m=p==null?void 0:p.findIndex(b=>{var v,k,C;return(b==null?void 0:b.label)===((C=(k=(v=i==null?void 0:i.groupSelect)==null?void 0:v[1])==null?void 0:k.replaceAll("[",""))==null?void 0:C.replaceAll("]",""))});let g=(d=(f=(c=(u=n==null?void 0:n.find(b=>(b==null?void 0:b.id)===t))==null?void 0:u.compData)==null?void 0:c.find(b=>(b==null?void 0:b.key)==="tableContents"))==null?void 0:f.contents)==null?void 0:d.map(b=>(b=b==null?void 0:b.filter(v=>!(v!=null&&v.id)),b));g==null||g.forEach(b=>{e.push({label:b==null?void 0:b[m],value:b==null?void 0:b[m]})})}return e},Os={__name:"index",props:{value:String,placeholder:{type:String,default:"请选择下拉内容...",required:!1},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},optionUrl:{type:Object,default:()=>{}}},emits:["blurChange","click"],setup(i,{emit:e}){const t=i,n=e,s=h.ref(t.value),r=h.ref();h.onMounted(()=>{r.value=t==null?void 0:t.content});const o=()=>{n("blurChange")},l=h.computed(()=>{const c=t.optionUrl;return!!(c!=null&&c.multiple)}),a=h.computed(()=>{var c;return(c=r.value)==null?void 0:c.filter((f,d,p)=>d===p.findIndex(m=>m.value===f.value))}),u=async()=>{var c,f,d,p;((f=(c=t.optionUrl)==null?void 0:c.menuSelect)==null?void 0:f.length)>0&&(r.value=await dd(t.optionUrl),s.value=(p=(d=r.value)==null?void 0:d[0])==null?void 0:p.value),n("click")};return(c,f)=>{const d=h.resolveComponent("el-option"),p=h.resolveComponent("el-select");return h.openBlock(),h.createBlock(p,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=m=>s.value=m),filterable:"",multiple:l.value,clearable:i.clearable,placeholder:i.placeholder,style:{width:"100%"},onChange:o,onVisibleChange:u},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,m=>(h.openBlock(),h.createBlock(d,{key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple","clearable","placeholder"])}}},pd={key:0,class:"form-operator-wrap"},md={class:"form-content-view"},gd={key:1,class:"form-item-label-child"},yd=["onClick"],bd={key:1,class:"form-item-label-child"},vd={key:1},xd=["onClick"],kd=["onClick"],wd={__name:"index",props:{formRules:Object,rowContents:Array,buttonValue:Array,isEnableWrap:{default:!0,type:Boolean},isRowFlex:{default:!1,type:Boolean},showOperator:{default:!0,type:Boolean},formDisabled:{default:!1,type:Boolean},formLabelsOperable:{default:!1,type:Boolean},isButtonRow:{default:!0,type:Boolean},rowValues:Array,isEdit:{type:Boolean,default:!0},isStartJustify:{type:Boolean,default:!0}},emits:["handleColTypeChange","handleColEditChange","change","onButtonClick","clickTrigger","blur","changeVisible","blurChange","preview","routeUrl"],setup(i,{emit:e}){const t=i,n=Jt.useModelComp(K.pinia),{isEdit:s}=K.storeToRefs(n),r=Jt.useMenuState(),{activeMenuPath:o}=K.storeToRefs(r);h.onMounted(()=>{});const l=e,a=h.ref(null),u=h.ref(null),c=h.ref(),f=h.ref(),d=h.ref(0),p=h.computed(()=>{var T;return(T=Jt.FormContent)==null?void 0:T.map(M=>({value:M==null?void 0:M.key,label:M==null?void 0:M.key}))}),m=T=>{l("routeUrl",T)},g=h.computed(()=>{var H;const T=(H=o.value)==null?void 0:H.split("/");return(T==null?void 0:T.some(I=>(I==null?void 0:I.includes("updateLoading"))||(I==null?void 0:I.includes("loading"))))?!1:s.value==="view"&&(t==null?void 0:t.showOperator)}),b=T=>pr(T),v=T=>{l("clickTrigger",T)},k=T=>{l("preview",T)},C=()=>{l("blur",f.value)},O=T=>{l("blurChange",f.value,{changeProp:T})},A=()=>{h.nextTick(()=>{d.value++})},x=(T,M)=>{switch(T){case"datetime":return ut.dayjs(M).format("YYYY-MM-DD HH:mm:ss");case"date":return ut.dayjs(M).format("YYYY-MM-DD");default:return M}},w=T=>{l("changeVisible",T)},L=(T,M)=>{l("handleColEditChange",T,M)},N=async(T,M)=>{await h.nextTick(),l("handleColTypeChange",T,M)};h.watch(()=>t==null?void 0:t.rowContents,()=>{var M,H;if(((M=t==null?void 0:t.rowContents)==null?void 0:M.length)===0)return;const T={};(H=K.cloneDeep(t==null?void 0:t.rowContents))==null||H.forEach(I=>{T[(I==null?void 0:I.prop)??(I==null?void 0:I.name)]=x(I==null?void 0:I.type,I==null?void 0:I.value)}),c.value=T,f.value=T,A()},{deep:!0,immediate:!0});const E=async(T,M)=>{await h.nextTick(),M&&await(M==null?void 0:M.validate((H,I)=>{H?l("onButtonClick",{content:f.value,buttonName:T}):console.log("表单校验失败",I)}))};return h.onBeforeUnmount(()=>{c.value=void 0,f.value=void 0,d.value=null}),h.watch(()=>f.value,()=>{if(f.value){let T={};for(let M in f.value)ed(f.value[M])?T[M]=ut.dayjs(f.value[M]).format("YYYY-MM-DD"):T[M]=f.value[M];l("change",T)}},{deep:!0}),(T,M)=>{var ce;const H=h.resolveComponent("el-form-item"),I=h.resolveComponent("el-form"),te=h.resolveComponent("el-button");return h.openBlock(),h.createElementBlock("div",{class:"form-content",style:h.normalizeStyle({flexDirection:i.isButtonRow?"row":"column"})},[g.value?(h.openBlock(),h.createElementBlock("div",pd,[h.renderSlot(T.$slots,"operateCol",{renderColumns:i.rowContents,formDisabled:i.formDisabled,formLabelsOperable:i.formLabelsOperable},void 0,!0)])):h.createCommentVNode("",!0),h.createElementVNode("div",md,[t.isEnableWrap?(h.openBlock(),h.createBlock(I,{ref_key:"formWrapRef",ref:a,model:c.value,rules:i.formRules,disabled:i.formDisabled,class:h.normalizeClass(i.formDisabled?"form-data disabled-form":"form-data"),key:t.isRowFlex+d.value},{default:h.withCtx(()=>{var ne;return[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.rowContents,(y,ue)=>h.withDirectives((h.openBlock(),h.createBlock(H,{key:ue,disabled:i.formDisabled||(y==null?void 0:y.disabled),class:"form-item",prop:(y==null?void 0:y.prop)??(y==null?void 0:y.name),style:h.normalizeStyle({flexDirection:i.isRowFlex?"row":"column",alignItems:i.isRowFlex?"center":"start",height:i.isRowFlex?"100%":"auto"})},h.createSlots({default:h.withCtx(()=>{var fe,Ve,Ae,De,ze,Ye,Qe,wt,an,hn,cn,un,fn;return[y!=null&&y.isFormColHidden?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(h.resolveDynamicComponent(b((y==null?void 0:y.type)??"Input")),{modelValue:f.value[(y==null?void 0:y.prop)??(y==null?void 0:y.name)],"onUpdate:modelValue":St=>f.value[(y==null?void 0:y.prop)??(y==null?void 0:y.name)]=St,key:y==null?void 0:y.type,content:(y==null?void 0:y.contents)??[],isEdit:t==null?void 0:t.isEdit,disabled:y==null?void 0:y.disabled,onClickTrigger:v,onBlur:C,optionUrl:y==null?void 0:y.optionUrl,onChangeVisible:w,onBlurChange:St=>O((y==null?void 0:y.prop)??(y==null?void 0:y.name)),config:y==null?void 0:y.config},null,40,["modelValue","onUpdate:modelValue","content","isEdit","disabled","optionUrl","onBlurChange","config"])),typeof f.value[(y==null?void 0:y.prop)??y.name]=="string"&&((fe=f.value[(y==null?void 0:y.prop)??y.name])!=null&&fe.includes(".stl")||(Ve=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ve.includes(".obj")||(Ae=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ae.includes(".urdf")||(De=f.value[(y==null?void 0:y.prop)??y.name])!=null&&De.includes(".STL")||(ze=f.value[(y==null?void 0:y.prop)??y.name])!=null&&ze.includes(".ls")||(Ye=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ye.includes(".uv")||(Qe=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Qe.includes(".UV")||(wt=f.value[(y==null?void 0:y.prop)??y.name])!=null&&wt.includes(".cpt")||(an=f.value[(y==null?void 0:y.prop)??y.name])!=null&&an.includes(".CPT")||(hn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&hn.includes(".cyd")||(cn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&cn.includes(".CYD")||(un=f.value[(y==null?void 0:y.prop)??y.name])!=null&&un.includes(".nc")||(fn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&fn.includes(".NC"))?(h.openBlock(),h.createBlock($t._sfc_main,{key:1,class:"calculator-content form-preview",onClickTrigger:St=>k(f.value[(y==null?void 0:y.prop)??y.name]),modelValue:"预览"},null,8,["onClickTrigger"])):h.createCommentVNode("",!0)]}),_:2},[!(y!=null&&y.isFormColHidden)&&(y!=null&&y.label)?{name:"label",fn:h.withCtx(()=>[y!=null&&y.label?(h.openBlock(),h.createElementBlock("div",{key:0,class:"from-item-label",style:h.normalizeStyle({width:i.isRowFlex?"72px":"260px",minWidth:i.isRowFlex?"72px":"260px"})},[y!=null&&y.operable?(h.openBlock(),h.createBlock(bi,{key:0,value:y==null?void 0:y.label,appendShow:!0,class:"col-edit-input",onChange:fe=>L(fe,y)},{append:h.withCtx(()=>[h.createVNode(Os,{value:y==null?void 0:y.type,content:p.value,placeholder:"类型",style:{width:"100%"},onChange:fe=>N(fe,y)},null,8,["value","content","onChange"])]),_:2},1032,["value","onChange"])):(h.openBlock(),h.createElementBlock("div",gd,h.toDisplayString(y==null?void 0:y.label),1))],4)):h.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["disabled","prop","style"])),[[h.vShow,!(y!=null&&y.isFormColHidden)]])),128)),((ne=t.buttonValue)==null?void 0:ne.length)>0&&i.isButtonRow?(h.openBlock(),h.createElementBlock("div",{key:0,class:"form-button",style:h.normalizeStyle({paddingTop:i.isRowFlex?"0":"26px",justifyContent:i.isStartJustify?"start":"end"})},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.buttonValue,(y,ue)=>(h.openBlock(),h.createElementBlock("div",{key:ue,class:"form-button-content"},[y?(h.openBlock(),h.createElementBlock("div",{key:0,class:"form-button-item",style:h.normalizeStyle({background:(y==null?void 0:y.background)??"var(--ssComponent-primary-color)"}),onClick:fe=>E(y==null?void 0:y.label,a.value)},h.toDisplayString(y==null?void 0:y.label),13,yd)):h.createCommentVNode("",!0)]))),128))],4)):h.createCommentVNode("",!0)]}),_:1},8,["model","rules","disabled","class"])):(h.openBlock(),h.createBlock(I,{ref_key:"formRef",ref:u,model:f.value,rules:i.formRules,disabled:i.formDisabled,class:h.normalizeClass(i.formDisabled?"form-noRegular-data disabled-form":"form-noRegular-data"),key:d.value},{default:h.withCtx(()=>{var ne;return[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.rowContents,(y,ue)=>h.withDirectives((h.openBlock(),h.createBlock(H,{key:ue,class:h.normalizeClass(["form-item",{"form-row-content":!i.isRowFlex}]),prop:(y==null?void 0:y.prop)??(y==null?void 0:y.name),disabled:i.formDisabled||(y==null?void 0:y.disabled),style:h.normalizeStyle({flexDirection:i.isRowFlex?"row":"column",alignItems:i.isRowFlex?"center":"start",height:i.isRowFlex?"100%":"auto",width:`calc((100% / ${(y==null?void 0:y.width)??1}) - 12px)`,minWidth:`calc((100% / ${(y==null?void 0:y.width)??1}) - 12px)`})},h.createSlots({default:h.withCtx(()=>{var fe,Ve,Ae,De,ze,Ye,Qe,wt,an,hn,cn,un,fn;return[!(y!=null&&y.isFormColHidden)&&(y==null?void 0:y.type)!=="Url"?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(b((y==null?void 0:y.type)??"Input")),{modelValue:f.value[(y==null?void 0:y.prop)??(y==null?void 0:y.name)],"onUpdate:modelValue":St=>f.value[(y==null?void 0:y.prop)??(y==null?void 0:y.name)]=St,isEdit:t==null?void 0:t.isEdit,disabled:y==null?void 0:y.disabled,content:(y==null?void 0:y.contents)??[],onClickTrigger:v,onBlur:C,key:y==null?void 0:y.type,optionUrl:y==null?void 0:y.optionUrl,onChangeVisible:w,onBlurChange:St=>O((y==null?void 0:y.prop)??(y==null?void 0:y.name)),config:y==null?void 0:y.config},null,40,["modelValue","onUpdate:modelValue","isEdit","disabled","content","optionUrl","onBlurChange","config"])):h.createCommentVNode("",!0),(y==null?void 0:y.type)==="Url"?(h.openBlock(),h.createElementBlock("div",vd,[h.createVNode($t._sfc_main,{class:"calculator-content form-preview",onClickTrigger:St=>m(f.value[(y==null?void 0:y.prop)??y.name]),modelValue:"详情"},null,8,["onClickTrigger"])])):h.createCommentVNode("",!0),typeof f.value[(y==null?void 0:y.prop)??y.name]=="string"&&((fe=f.value[(y==null?void 0:y.prop)??y.name])!=null&&fe.includes(".stl")||(Ve=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ve.includes(".obj")||(Ae=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ae.includes(".urdf")||(De=f.value[(y==null?void 0:y.prop)??y.name])!=null&&De.includes(".STL")||(ze=f.value[(y==null?void 0:y.prop)??y.name])!=null&&ze.includes(".ls")||(Ye=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ye.includes(".uv")||(Qe=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Qe.includes(".UV")||(wt=f.value[(y==null?void 0:y.prop)??y.name])!=null&&wt.includes(".cpt")||(an=f.value[(y==null?void 0:y.prop)??y.name])!=null&&an.includes(".CPT")||(hn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&hn.includes(".cyd")||(cn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&cn.includes(".CYD")||(un=f.value[(y==null?void 0:y.prop)??y.name])!=null&&un.includes(".nc")||(fn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&fn.includes(".NC"))?(h.openBlock(),h.createBlock($t._sfc_main,{key:2,class:"calculator-content form-preview",onClickTrigger:St=>k(f.value[(y==null?void 0:y.prop)??y.name]),modelValue:"预览"},null,8,["onClickTrigger"])):h.createCommentVNode("",!0)]}),_:2},[!(y!=null&&y.isFormColHidden)&&(y!=null&&y.label)?{name:"label",fn:h.withCtx(()=>[y!=null&&y.label?(h.openBlock(),h.createElementBlock("div",{key:0,class:"from-item-label",style:h.normalizeStyle({width:i.isRowFlex?"72px":"auto",minWidth:i.isRowFlex?"72px":`calc((100% / ${(y==null?void 0:y.width)??1}) - 8px)`})},[y!=null&&y.operable?(h.openBlock(),h.createBlock(bi,{key:0,value:y==null?void 0:y.label,appendShow:!0,class:"col-edit-input",onChange:fe=>L(fe,y)},{append:h.withCtx(()=>[h.createVNode(Os,{value:y==null?void 0:y.type,content:p.value,placeholder:"类型",style:{width:"100%"},onChange:fe=>N(fe,y)},null,8,["value","content","onChange"])]),_:2},1032,["value","onChange"])):(h.openBlock(),h.createElementBlock("div",bd,h.toDisplayString(y==null?void 0:y.label),1))],4)):h.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["prop","class","disabled","style"])),[[h.vShow,!(y!=null&&y.isFormColHidden)]])),128)),((ne=t.buttonValue)==null?void 0:ne.length)>0&&i.isButtonRow?(h.openBlock(),h.createElementBlock("div",{key:0,class:"form-button",style:h.normalizeStyle({paddingTop:i.isRowFlex?"0":"26px",justifyContent:i.isStartJustify?"start":"end"})},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.buttonValue,(y,ue)=>(h.openBlock(),h.createElementBlock("div",{key:ue,class:"form-button-content"},[y?(h.openBlock(),h.createElementBlock("div",{key:0,class:"form-button-item",style:h.normalizeStyle({background:(y==null?void 0:y.background)??"var(--ssComponent-primary-color)"}),onClick:fe=>E(y==null?void 0:y.label,u.value)},h.toDisplayString(y==null?void 0:y.label),13,xd)):h.createCommentVNode("",!0)]))),128))],4)):h.createCommentVNode("",!0)]}),_:1},8,["model","rules","disabled","class"]))]),((ce=t.buttonValue)==null?void 0:ce.length)>0&&!i.isButtonRow?(h.openBlock(),h.createElementBlock("div",{key:1,class:"form-button",style:h.normalizeStyle({justifyContent:i.isStartJustify?"start":"end"})},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.buttonValue,(ne,y)=>(h.openBlock(),h.createElementBlock("div",{key:y,class:"form-button-content",onClick:ue=>E(ne==null?void 0:ne.label,t.isEnableWrap?a.value:u.value)},[h.createVNode(te,{id:"themeButton",style:h.normalizeStyle({background:(ne==null?void 0:ne.background)??"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"})},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(ne==null?void 0:ne.label),1)]),_:2},1032,["style"])],8,kd))),128))],4)):h.createCommentVNode("",!0)],4)}}},Wh=Se._export_sfc(wd,[["__scopeId","data-v-c5216e8b"]]),Sd={__name:"index",props:{value:String,formRules:{type:Object,default:()=>{}},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["clickTrigger","changeTrigger"],setup(i,{emit:e}){const t=i,n=e,s=o=>{n("clickTrigger",o)},r=o=>{n("changeTrigger",o)};return(o,l)=>{var a,u,c,f,d,p,m;return h.openBlock(),h.createBlock(Wh,{rowContents:((a=t==null?void 0:t.content)==null?void 0:a.rowContents)??[],formRules:(u=t==null?void 0:t.content)==null?void 0:u.formRules,buttonValue:((c=t==null?void 0:t.content)==null?void 0:c.buttonValue)??[],isEnableWrap:(f=t==null?void 0:t.content)==null?void 0:f.isEnableWrap,isRowFlex:(d=t==null?void 0:t.content)==null?void 0:d.isRowFlex,isButtonRow:(p=t==null?void 0:t.content)==null?void 0:p.isButtonRow,rowValues:((m=t==null?void 0:t.content)==null?void 0:m.rowValues)??[],onOnButtonClick:s,onChange:r},null,8,["rowContents","formRules","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Cd={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["change"],setup(i,{emit:e}){const t=i,n=h.ref(t.value),s=e,r=o=>{s("change",o)};return(o,l)=>{const a=h.resolveComponent("el-radio"),u=h.resolveComponent("el-radio-group");return h.openBlock(),h.createBlock(u,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=c=>n.value=c),style:{height:"100%"},onChange:l[1]||(l[1]=c=>r(c))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.content,(c,f)=>(h.openBlock(),h.createBlock(a,{key:f,label:c.value},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(c==null?void 0:c.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},zh=Se._export_sfc(Cd,[["__scopeId","data-v-b4cff553"]]),Od={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},isWrap:{type:Boolean,default:!1},min:{type:Number,default:1}},emits:["change"],setup(i,{emit:e}){const t=i,n=h.ref(t.value),s=e,r=o=>{s("change",o)};return(o,l)=>{const a=h.resolveComponent("el-checkbox"),u=h.resolveComponent("el-checkbox-group");return h.openBlock(),h.createBlock(u,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=c=>n.value=c),style:{height:"100%"},min:i.min,onChange:l[1]||(l[1]=c=>r(c))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.content,c=>(h.openBlock(),h.createBlock(a,{key:c.label,label:c.label,value:c.label,style:h.normalizeStyle({width:i.isWrap?"100%":"auto",marginRight:i.isWrap?0:"auto"})},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(c.label),1),h.renderSlot(o.$slots,"append")]),_:2},1032,["label","value","style"]))),128))]),_:3},8,["modelValue","min"])}}},Ad={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i;return h.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(n=>{n.style.display="block"})}),(t,n)=>{var s;return h.openBlock(),h.createBlock(El,{tabsContents:((s=e==null?void 0:e.content)==null?void 0:s.tabsContents)??[]},h.createSlots({_:2},[h.renderList(t.$slots,(r,o)=>({name:o,fn:h.withCtx(l=>[h.renderSlot(t.$slots,o,h.normalizeProps(h.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}},Bd={};function Md(i,e){const t=h.resolveComponent("el-card");return h.openBlock(),h.createBlock(t,null,{default:h.withCtx(()=>[h.renderSlot(i.$slots,"content")]),_:3})}const Td=Se._export_sfc(Bd,[["render",Md]]),Dd={class:"extra-button-content"},Ed={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(i,{emit:e}){const t=i;h.ref(!1);const n=h.ref([]);h.ref([{label:"取消"},{label:"确认"}]);const s=r=>{var o;n.value=(o=r==null?void 0:r.filter(l=>(l==null?void 0:l.label)!==""&&(l==null?void 0:l.label)!=="操作"))==null?void 0:o.map(l=>({label:(l==null?void 0:l.label)??"",value:"",name:(l==null?void 0:l.prop)??""}))};return h.onMounted(()=>{s(t.columns)}),h.watch(()=>t.columns,()=>{s(t.columns)},{deep:!0,immediate:!0}),(r,o)=>(h.openBlock(),h.createElementBlock("div",Dd,[h.renderSlot(r.$slots,"headerButton",{},void 0,!0)]))}},Pd=Se._export_sfc(Ed,[["__scopeId","data-v-00ed78e9"]]),Rd={key:0},_d=h.defineComponent({__name:"recurseCol",props:{column:{type:Object,default:{}}},setup(i){return(e,t)=>{var l,a,u,c,f,d,p,m,g,b,v;const n=h.resolveComponent("svg-icon"),s=h.resolveComponent("el-tooltip"),r=h.resolveComponent("RecurseCol",!0),o=h.resolveComponent("el-table-column");return i.column.isHidden?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(o,{key:0,label:i.column.label,prop:i.column.prop,fixed:((l=i.column)==null?void 0:l.label)==="操作"?"right":(a=i.column)==null?void 0:a.fixed,align:((u=i.column)==null?void 0:u.align)??"left",sortable:((c=i.column)==null?void 0:c.label)==="操作"?!1:((f=i.column)==null?void 0:f.sortable)??!0,"show-overflow-tooltip":((d=i.column)==null?void 0:d.showOverflowTooltip)??!0,width:((p=i.column)==null?void 0:p.width)>80?80:(m=i.column)==null?void 0:m.width,"min-width":((g=i.column)==null?void 0:g.label)==="操作"?40:(b=i.column)==null?void 0:b.width,"class-name":(((v=i.column)==null?void 0:v.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:h.withCtx(()=>[i.column.label!=="操作"?(h.openBlock(),h.createElementBlock("span",Rd,h.toDisplayString(i.column.label),1)):(h.openBlock(),h.createBlock(s,{key:1,content:"操作",placement:"left-start",effect:"light"},{default:h.withCtx(()=>[h.createVNode(n,{name:"operate",style:{width:"15px",height:"15px"}})]),_:1}))]),default:h.withCtx(k=>[h.renderSlot(e.$slots,"content",{row:k.row,column:k.column,$index:k.$index,scope:k}),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.column.children,(C,O)=>(h.openBlock(),h.createBlock(r,{key:O,column:C},h.createSlots({_:2},[h.renderList(e.$slots,(A,x)=>({name:x,fn:h.withCtx(({row:w,slotData:L,item:N,column:E})=>[h.renderSlot(e.$slots,x,h.mergeProps({ref_for:!0},L??w,{item:N??C,slotData:L??w,row:w,column:E}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Ld=["title"],Nd=h.defineComponent({__name:"index",props:{column:{type:Object,default:{}},tableData:Array,isEditViewport:Boolean},emits:["handleColEditChange","handleColTypeChange"],setup(i,{emit:e}){const t=i,n=e,s=h.ref(null),r=h.computed(()=>{var f,d;return(d=(f=Jt.FormContent)==null?void 0:f.map(p=>({value:p==null?void 0:p.key,label:p==null?void 0:p.key})))==null?void 0:d.filter(p=>(p==null?void 0:p.value)!=="Upload")});h.watch(()=>t.column,f=>{s.value=K.cloneDeep(f)},{immediate:!0,deep:!0});const o=(f,d,p)=>{const m=p.property;return d[m]===f},l=(f,d)=>{if(!f)return K.ElMessage.warning("标签不能为空");n("handleColEditChange",f,d)},a=async(f,d)=>{await h.nextTick(),n("handleColTypeChange",f,d)},u=(f,d)=>f.reduce((p,m)=>{const g=m==null?void 0:m[d];return p[g]||(p[g]=[]),p[g].push(m),p},{}),c=f=>{var p;const d=u(t==null?void 0:t.tableData,f==null?void 0:f.prop);return f!=null&&f.filterable?(p=Object.keys(d))==null?void 0:p.map(m=>({text:m,value:m})):!1};return(f,d)=>{var g,b,v,k,C,O,A,x,w,L,N,E;const p=h.resolveComponent("svg-icon"),m=h.resolveComponent("el-table-column");return i.column.isTableColHidden?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(m,{key:0,label:i.column.label,prop:i.column.prop,fixed:((g=i.column)==null?void 0:g.label)==="操作"?"right":(b=i.column)==null?void 0:b.fixed,align:((v=i.column)==null?void 0:v.align)??"left",sortable:((k=i.column)==null?void 0:k.label)==="操作"?!1:((C=i.column)==null?void 0:C.sortable)??!1,filters:(O=i.column)!=null&&O.filterable?c(i.column):null,"filter-method":o,"show-overflow-tooltip":((A=i.column)==null?void 0:A.showOverflowTooltip)??!0,width:((x=i.column)==null?void 0:x.width)>80?80:(w=i.column)==null?void 0:w.width,"min-width":((L=i.column)==null?void 0:L.label)==="操作"?40:"auto","class-name":((N=i.column)==null?void 0:N.prop)==="operate"?"action":(((E=i.column)==null?void 0:E.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:h.withCtx(()=>[i.column.label!=="操作"?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[i.column.operable&&i.isEditViewport?(h.openBlock(),h.createBlock(bi,{key:0,value:s.value.label,appendShow:!0,class:"col-edit-input",onChange:d[1]||(d[1]=T=>l(T,i.column))},{append:h.withCtx(()=>{var T;return[h.createVNode(Os,{value:(T=i.column)==null?void 0:T.columnType,content:r.value,clearable:!1,placeholder:"类型",style:{width:"100%"},onChange:d[0]||(d[0]=M=>a(M,i.column))},null,8,["value","content"])]}),_:1},8,["value"])):(h.openBlock(),h.createElementBlock("span",{key:1,title:i.column.label},h.toDisplayString(i.column.label),9,Ld))],64)):h.renderSlot(f.$slots,"operateHeader",{key:1})]),"filter-icon":h.withCtx(()=>{var T,M,H,I;return[(T=i.column)!=null&&T.filterable&&((M=i.column)==null?void 0:M.label)!=="操作"?(h.openBlock(),h.createBlock(p,{key:0,name:(H=i.column)!=null&&H.filterable&&((I=i.column)==null?void 0:I.label)!=="操作"?"colFilter":"",class:"custom-filter-icon"},null,8,["name"])):(h.openBlock(),h.createBlock(p,{key:1,onClick:d[2]||(d[2]=h.withModifiers(()=>{},["stop"])),name:""}))]}),default:h.withCtx(T=>[h.renderSlot(f.$slots,"content",{row:T.row,column:T.column,$index:T.$index,scope:T}),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.column.children,(M,H)=>(h.openBlock(),h.createBlock(_d,{key:H,column:M},h.createSlots({_:2},[h.renderList(f.$slots,(I,te)=>({name:te,fn:h.withCtx(({row:ce,slotData:ne,item:y,column:ue})=>[h.renderSlot(f.$slots,te,h.mergeProps({ref_for:!0},ne??ce,{item:y??M,slotData:ne??ce,row:ce,column:ue}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","filters","show-overflow-tooltip","width","min-width","class-name"]))}}}),Vd={key:0,class:"status-wrap"},Id=h.defineComponent({__name:"index",props:{showTag:{type:Boolean,default:!1}},setup(i){return(e,t)=>{const n=h.resolveComponent("el-card");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(n,null,{header:h.withCtx(()=>[h.renderSlot(e.$slots,"header",{},void 0,!0)]),footer:h.withCtx(()=>[h.renderSlot(e.$slots,"footer",{},void 0,!0)]),default:h.withCtx(()=>[h.renderSlot(e.$slots,"content",{},void 0,!0)]),_:3}),i.showTag?(h.openBlock(),h.createElementBlock("div",Vd,[h.renderSlot(e.$slots,"status",{},void 0,!0)])):h.createCommentVNode("",!0)])}}}),$d=Se._export_sfc(Id,[["__scopeId","data-v-045b5525"]]),Fd={title:"拖动排序",class:"custom-drag-icon"},Wd={key:0},zd={style:{display:"flex",alignItems:"center"}},qd=["onClick"],Hd={key:0},Ud=["onClick"],jd=["onClick"],Kd={key:3,class:"table-content"},Gd={key:1,class:"table-card-wrap"},Xd={class:"card-header"},Yd=["title"],Qd=["title"],Jd=["title"],Zd={class:"card-footer"},ep={class:"table-bottom-wrap"},tp={style:{display:"flex",gap:"8px","flex-direction":"column","align-items":"start"}},np={__name:"index",props:{checkedColumns:Array,columns:Array,tableData:Array,pageObj:{type:Object,default:()=>{}},isCardViewport:Boolean,isEditViewport:Boolean,isClearSelection:Boolean,allowSelect:Boolean,extraButton:{type:Array,default:()=>[]},rowButton:{type:Array,default:()=>[]},cacheExtraButtons:{type:Array,default:()=>[]},summaryInfo:{type:Object,default:()=>{}},isShowPagination:{type:Boolean,default:!0},isShowEdit:{type:Boolean,default:!0},isMoveColumn:{type:Boolean,default:!0},isShowDelete:{type:Boolean,default:!0}},emits:["clickButton","handleColTypeChange","handleColEditChange","submitEditingTable","change","cellChange","selectChange","dbClickRow","fixRow","deleteRow","doSizeChange","doCurrentChange","buttonClick","contentClick","rowClick","preview"],setup(i,{emit:e}){const t=i;Jt.useModelComp(K.pinia);const n=h.ref(!1),s=h.ref(),r=h.ref(),o=h.reactive({x:0,y:0}),l=h.ref([]),a=h.ref([]),u=h.ref(0),c=h.ref(null),f=h.ref(null),d=h.ref(null),p=e,m=h.inject("contentRef");h.onMounted(()=>{var S;b=g(),l.value=t==null?void 0:t.columns,a.value=(S=t==null?void 0:t.tableData)==null?void 0:S.map(P=>{var U;let R={};for(let G in P)G!=="level"?R[G]=Kr(P[G])&&P[G]===0?(U=P[G])==null?void 0:U.toString():P[G]:R[G]=P[G];return R}),ze(),Qe(),document.addEventListener("click",O)});function g(){const S=new WeakSet,P=new MutationObserver(de),R=new WeakMap,U=[];function G(j){try{const Q=j.getBoundingClientRect(),ie=j.clientWidth||Q.width||1,J=Q.width/ie||1,q=parseFloat(getComputedStyle(j).zoom||"1");return q?J/q:J}catch{return 1}}function he(j){var J;if(!j||S.has(j))return;S.add(j);const Q=j.parentElement,ie=(J=j.closest(".el-scrollbar"))==null?void 0:J.querySelector(".el-scrollbar__wrap");!Q||!ie||j.addEventListener("pointerdown",q=>{q.preventDefault(),q.stopPropagation();try{j.setPointerCapture&&j.setPointerCapture(q.pointerId)}catch{}Q.classList.add("is-dragging");const re=G(Q),X=Q.clientWidth||1,pe=j.clientWidth||0,xe=Math.max(1,(X-pe)/re),ht=Math.max(1,(ie.scrollWidth||0)-(ie.clientWidth||0)),B=q.clientX,je=ie.scrollLeft,Ce=ht/xe,$=ke=>{const gr=(ke.clientX-B)/re;ie.scrollLeft=je+gr*Ce},Z=()=>{try{j.releasePointerCapture&&j.releasePointerCapture(q.pointerId)}catch{}j.removeEventListener("pointermove",$),j.removeEventListener("pointerup",Z),j.removeEventListener("pointercancel",Z),Q.classList.remove("is-dragging")};j.addEventListener("pointermove",$),j.addEventListener("pointerup",Z),j.addEventListener("pointercancel",Z)},!0)}function de(){document.querySelectorAll(".el-scrollbar").forEach(j=>{if(!j.closest(".el-table"))return;const Q=j.querySelector(".el-scrollbar__wrap"),ie=j.querySelector(".el-scrollbar__bar.is-horizontal");if(!Q||!ie)return;const J=Q.querySelector(".el-scrollbar__view")||Q.firstElementChild||Q,q=J.querySelector("table")||J.querySelector(".el-table__body")||J,re=q.scrollWidth,X=Q.clientWidth,pe=re-X>2;if(j.classList.toggle("has-x-scroll",pe),ie.style.display="",pe&&j.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(he),!R.has(Q)){const xe=new ResizeObserver(()=>{const ht=q&&q.scrollWidth||Q.scrollWidth,B=Q.clientWidth,je=ht-B>2;j.classList.toggle("has-x-scroll",je)});xe.observe(Q),q&&xe.observe(q),R.set(Q,xe),U.push(()=>xe.disconnect())}})}return de(),P.observe(document.body,{childList:!0,subtree:!0}),()=>{P.disconnect(),U.forEach(j=>{try{j()}catch{}}),U.length=0}}let b;h.onBeforeUnmount(()=>{b&&b(),document.removeEventListener("click",O),a.value=void 0,l.value=void 0,v.value&&clearTimeout(v.value)});const v=h.ref(null);h.watch(()=>t==null?void 0:t.isEditViewport,async S=>{var P;S&&((P=t==null?void 0:t.tableData)==null?void 0:P.length)>15&&(await h.nextTick(),v.value=setTimeout(()=>{const R=document.querySelectorAll(".el-table__body tr");R.length>0&&R[R.length-1].scrollIntoView({behavior:"smooth",block:"center"})},10))},{immediate:!0});const k=(S,P)=>{p("handleColEditChange",S,P)},C=(S,P)=>{p("handleColTypeChange",S,P)},O=S=>{var P,R,U;n.value=!1,t.isEditViewport&&m.value&&!((R=(P=c.value)==null?void 0:P.$el)!=null&&R.contains(S==null?void 0:S.target))&&((U=m.value)!=null&&U.contains(S==null?void 0:S.target))&&p("submitEditingTable")},A=h.computed(()=>{var S;return(S=t==null?void 0:t.extraButton)==null?void 0:S.filter(P=>{var R;return!((R=P==null?void 0:P.label)!=null&&R.includes("批量"))})}),x=h.computed(()=>{var S;return(S=t==null?void 0:t.extraButton)==null?void 0:S.filter(P=>{var R;return(R=P==null?void 0:P.label)==null?void 0:R.includes("批量")})}),w=h.ref(0),L=(S,P,R)=>{w.value=S==null?void 0:S.id},N=(S,P,R)=>{w.value=0},E=S=>{p("selectChange",S)},T=(S,P,R,U)=>h.computed(()=>{var he,de,j,Q,ie,J,q,re,X,pe;let G=S!=null&&S[P==null?void 0:P.prop]?((de=(he=S==null?void 0:S[P==null?void 0:P.prop])==null?void 0:he[0])==null?void 0:de.contents)??(S==null?void 0:S[P==null?void 0:P.prop]):((Q=(j=S==null?void 0:S[R==null?void 0:R.prop])==null?void 0:j[0])==null?void 0:Q.contents)??(S==null?void 0:S[R==null?void 0:R.prop])??((J=(ie=U==null?void 0:U[R==null?void 0:R.prop])==null?void 0:ie[0])==null?void 0:J.contents)??(U==null?void 0:U[R==null?void 0:R.prop])??((X=(re=S==null?void 0:S[(q=R==null?void 0:R.child)==null?void 0:q.prop])==null?void 0:re[0])==null?void 0:X.contents)??(S==null?void 0:S[(pe=R==null?void 0:R.child)==null?void 0:pe.prop]);return Array.isArray(G)&&!(G!=null&&G.every(xe=>typeof xe=="string"||typeof xe=="number"))?"查看":G}),M=(S,P,R,U)=>{var G,he,de,j;s.value=void 0,((G=R.innerText)!=null&&G.includes(".urdf")||(he=R.innerText)!=null&&he.includes(".stl")||(de=R.innerText)!=null&&de.includes(".obj")||(j=R.innerText)!=null&&j.includes(".STL"))&&(o.x=U.clientX,o.y=U.clientY,n.value=!0,s.value=R.innerText,r.value=S)},H=()=>{s.value&&p("preview",{row:s.value,rowData:r.value,type:"table"})},I=()=>{s.value&&p("rowClick",{row:s.value,rowData:r.value,type:"table"})},te=S=>{p("buttonClick",S)};h.watch(()=>t==null?void 0:t.tableData,()=>{var S;a.value=(S=t==null?void 0:t.tableData)==null?void 0:S.map(P=>{var U;let R={};for(let G in P)R[G]=Kr(P[G])&&P[G]===0?(U=P[G])==null?void 0:U.toString():P[G];return R})},{deep:!0});const ce=S=>pr(S),ne=(S,P,R)=>{p("clickButton",S,P,R)},y=S=>{p("doCurrentChange",S)},ue=(S,P)=>{p("dbClickRow",S)},fe=S=>{p("doSizeChange",S)},Ve=S=>{p("fixRow",S)},Ae=S=>{p("deleteRow",S)},De=(S,P,R,U)=>{p("contentClick",S,P,R,U)},ze=()=>{var P;const S=(P=c.value)==null?void 0:P.$el.querySelector(".el-table__header-wrapper tr");!S||!t.isMoveColumn||ut.Sortable.create(S,{animation:180,delay:0,handle:".is-drag .cell",onMove:R=>!R.related.classList.contains("is-not-drag"),onEnd:R=>{u.value++;const U=R.oldIndex-3,G=R.newIndex-3,he=l.value.splice(U,1)[0];l.value.splice(G,0,he),t.isMoveColumn&&h.nextTick(()=>{ze(),Qe()})}})},Ye=({column:S})=>S.label&&S.label.length>8?"long-header":"",Qe=()=>{var P;const S=(P=c.value)==null?void 0:P.$el.querySelector(".el-table__body-wrapper tbody");S&&new ut.Sortable(S,{animation:150,handle:".custom-drag-icon",ghostClass:"sortable-ghost",onEnd:({newIndex:R,oldIndex:U})=>{const G=[...a.value],[he]=G.splice(U,1);G.splice(U,0,he),a.value=G,h.nextTick(()=>{Qe()})}})},wt=S=>new Promise(P=>{const R=new FileReader;R.onloadend=()=>P(R.result),R.readAsDataURL(S)}),an=(S,P="file")=>{let R=S.split(","),U=R[0].match(/:(.*?);/)[1],G=U.split("/")[1],he=atob(R[1]),de=he.length,j=new Uint8Array(de);for(;de--;)j[de]=he.charCodeAt(de);return new File([j],`${P}.${G}`,{type:U})},hn=async S=>{const P=await wt(S);let R=an(P),U=new FormData;U.append("file",R);let G;return await _n.uploadFile(U).then(he=>{var de,j,Q,ie,J,q,re;G={url:(de=he.data.result)==null?void 0:de.url,name:(re=(Q=(j=he.data.result)==null?void 0:j.url)==null?void 0:Q.split("/"))==null?void 0:re[((q=(J=(ie=he.data.result)==null?void 0:ie.url)==null?void 0:J.split("/"))==null?void 0:q.length)-1]}}),G},cn=async S=>{var P;try{const R=S.clipboardData||(window==null?void 0:window.clipboardData),U=R.getData("text/plain");if(U===void 0)return;if(U.includes("<table")){S.preventDefault();const G=un(U);if(!G.length)return;const{rowIndex:he,columnIndex:de}=d.value||{rowIndex:0,columnIndex:0},j=[];if(G==null||G.forEach(Q=>{j.push(Q.length+de)}),(j==null?void 0:j.filter(Q=>{var ie;return Q>Object.keys((ie=a.value)==null?void 0:ie[0]).length}).length)>0){K.ElMessage({type:"warning",message:"所剩列数不够"});return}for(let Q=0;Q<G.length;Q++){const ie=G[Q],J=a.value[he+Q],q=K.cloneDeep(l.value).map(re=>re.prop);for(let re=0;re<ie.length&&de+re<q.length;re++){const X=q[de+re];(J==null?void 0:J[X])!==void 0&&(J[X]=ie[re]||"")}}}else{const G=R.getData("text/html");if(G===void 0)return;const de=new DOMParser().parseFromString(G,"text/html"),j=de.querySelectorAll("table");if((j==null?void 0:j.length)>0){S.preventDefault();const ie=j[0].querySelectorAll("tr"),J=[];for(const X of ie){const pe=X.querySelectorAll("td, th"),xe=[];for(const ht of pe){const B=ht.querySelectorAll("img");if(B.length>0)for(const je of B){const Ce=je.getAttribute("src");if(Ce&&Ce.startsWith("file:///")){const $=Ce.match(/base64,(.*)/);$&&xe.push({type:"image",content:`data:image/png;base64,${$[1]}`})}else Ce&&Ce.startsWith("data:")&&xe.push({type:"image",content:Ce})}else xe.push({type:"text",content:ht.textContent.trim()})}J.push(xe)}const{rowIndex:q,columnProp:re}=d.value||{rowIndex:0,columnIndex:0};if(Array.isArray(J)&&J.length){const X=[];J.forEach(xe=>{if(xe!=null&&xe.length){const ht={},B=t.columns;for(let je=0;je<(B==null?void 0:B.length);je++){const Ce=B[je],$=Ce==null?void 0:Ce.prop,Z=xe==null?void 0:xe[je],ke=Z==null?void 0:Z.content;ht[$]=ke}X.push(ht)}});let pe=K.cloneDeep(a.value);a.value.splice(q+1,0,...X)}}else{const Q=de.querySelectorAll("span");let ie="";if(Q.length===0){const J=(P=S.clipboardData)==null?void 0:P.items;ie=[];for(const q of J)if((q==null?void 0:q.type)==="image/png"){const re=await hn(q==null?void 0:q.getAsFile());ie.push(re)}else ie=S.clipboardData.getData("text/plain")}else for(const J of Q)ie=ie+J.textContent.trim();if(Array.isArray(ie)){S.preventDefault();const{rowIndex:J,columnProp:q}=d.value||{rowIndex:0,columnIndex:0},re={},X=a.value;X[J][q]=ie}}}}catch(R){console.error("粘贴失败:",R)}},un=S=>S.trim().split(/\r\n|\n|\r/).map(U=>U.trim()?U.split(" ").map(G=>G.replace(/^"(.*)"$/,"$1")):[""]),fn=S=>{var P;S&&(d.value={rowIndex:S==null?void 0:S.$index,columnIndex:S==null?void 0:S.cellIndex,columnProp:(P=S.column)==null?void 0:P.property})},St=({row:S,rowIndex:P})=>P%2===0?"default-row":"special-row",Kf=(S,P,R)=>{p("cellChange",P,R,S)},Gf=S=>S==null?void 0:S.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2}),Xf=S=>{const{columns:P,data:R}=S,U=[];return P.forEach((G,he)=>{var Q,ie;if(he===0){U[he]="合计";return}const de=G.property,j=(ie=(Q=t.columns)==null?void 0:Q.filter(J=>J==null?void 0:J.showSummary))==null?void 0:ie.map(J=>J.prop);if(j!=null&&j.includes(de)){const J=R==null?void 0:R.map(q=>Number(q[de]));if(J.every(q=>isNaN(q)))U[he]="N/A";else{const q=J.reduce((re,X)=>{const pe=Number(X);return isNaN(pe)?re:re+pe},0);U[he]=Gf(q),["price","sales","cost","profit"].includes(de)&&(U[he]="¥"+U[he])}}else U[he]=""}),U};h.watch(()=>t==null?void 0:t.isClearSelection,async S=>{var P;S&&(await h.nextTick(),(P=c.value)==null||P.clearSelection())},{immediate:!0});const mr=h.computed(()=>{var P,R;const S=(P=l.value)==null?void 0:P.find(U=>U==null?void 0:U.isMainKey);return S||((R=l.value)==null?void 0:R[0])});return(S,P)=>{var de,j,Q,ie,J;const R=h.resolveComponent("el-table-column"),U=h.resolveComponent("svg-icon"),G=h.resolveComponent("el-table"),he=h.resolveComponent("el-pagination");return h.openBlock(),h.createElementBlock("div",{class:"table-content-show",ref_key:"tableOuterRef",ref:f},[h.createVNode(Pd,{buttons:A.value,onButtonClick:te,columns:l.value},{headerButton:h.withCtx(()=>[h.renderSlot(S.$slots,"headerButton",{buttons:A.value,columns:l.value},void 0,!0)]),_:3},8,["buttons","columns"]),h.renderSlot(S.$slots,"viewport",{id:"excludeElementId"},void 0,!0),i.isCardViewport?(h.openBlock(),h.createElementBlock("div",Gd,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,q=>(h.openBlock(),h.createBlock($d,{key:q==null?void 0:q.id,showTag:!1},{header:h.withCtx(()=>{var re,X;return[h.createElementVNode("div",Xd,[h.createElementVNode("span",{title:q==null?void 0:q[(re=mr.value)==null?void 0:re.prop]},h.toDisplayString(q[(X=mr.value)==null?void 0:X.prop]),9,Yd)])]}),status:h.withCtx(()=>P[1]||(P[1]=[h.createTextVNode("已完成")])),content:h.withCtx(()=>{var re;return[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList((re=l.value)==null?void 0:re.filter(X=>{var pe;return(X==null?void 0:X.label)!=="操作"&&(X==null?void 0:X.prop)!==((pe=mr.value)==null?void 0:pe.prop)}),X=>(h.openBlock(),h.createElementBlock("div",{class:"card-content",key:X==null?void 0:X.prop},[h.createElementVNode("span",{title:X==null?void 0:X.label},[h.createTextVNode(h.toDisplayString(X==null?void 0:X.label),1),P[2]||(P[2]=h.createElementVNode("span",{style:{"margin-left":"3px"}},":",-1))],8,Qd),h.createElementVNode("span",{title:q==null?void 0:q[X==null?void 0:X.prop]},h.toDisplayString(q==null?void 0:q[X==null?void 0:X.prop]),9,Jd)]))),128))]}),footer:h.withCtx(()=>{var re,X;return[h.createElementVNode("div",Zd,[(re=i.rowButton)!=null&&re.find(pe=>(pe==null?void 0:pe.label)==="编辑")?(h.openBlock(),h.createBlock(U,{key:0,onClick:pe=>ne("编辑",q,{extra:{label:"编辑"}}),name:"card-edit",style:{width:"15px",height:"15px",color:"var(--ssComponent-theme-color)"}},null,8,["onClick"])):h.createCommentVNode("",!0),(X=i.rowButton)!=null&&X.find(pe=>(pe==null?void 0:pe.label)==="删除")?(h.openBlock(),h.createBlock(U,{key:1,onClick:pe=>ne("删除",q,{extra:{label:"删除"}}),name:"card-delete",style:{width:"15px",height:"15px",color:"#ff0000"}},null,8,["onClick"])):h.createCommentVNode("",!0)])]}),_:2},1024))),128))])):(h.openBlock(),h.createBlock(G,{border:!1,class:"table-wrap",data:a.value,"show-summary":(de=i.columns)==null?void 0:de.some(q=>q==null?void 0:q.showSummary),"sum-text":i.summaryInfo.text,"summary-method":Xf,stripe:"",style:{width:"100%","overflow-x":"auto"},"max-height":"600",ref_key:"tableRef",ref:c,"empty-text":"暂无数据",onCellContextmenu:M,onPaste:cn,onSelectionChange:E,onRowDblclick:ue,key:u.value,"row-class-name":St,"header-cell-class-name":Ye,onCellMouseEnter:L,onCellMouseLeave:N,onContextmenu:P[0]||(P[0]=h.withModifiers(()=>{},["prevent"])),"row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}},{default:h.withCtx(()=>{var q,re,X,pe,xe,ht;return[((q=i.columns)==null?void 0:q.length)>0&&i.allowSelect?(h.openBlock(),h.createBlock(R,{key:0,type:"selection",width:(re=i.columns)!=null&&re.some(B=>B==null?void 0:B.showSummary)?55:38,fixed:""},null,8,["width"])):h.createCommentVNode("",!0),h.createVNode(R,{"show-overflow-tooltip":!1,"min-width":12},{default:h.withCtx(({row:B,column:je,$index:Ce})=>[h.withDirectives(h.createElementVNode("span",Fd,[h.createVNode(U,{name:"drag",style:{width:"15px",height:"15px",cursor:"move"}})],512),[[h.vShow,(B==null?void 0:B.id)===w.value]])]),_:1}),!((X=i.tableData)!=null&&X.some(B=>B==null?void 0:B.children))&&((pe=i.columns)==null?void 0:pe.length)>0?(h.openBlock(),h.createBlock(R,{key:1,type:"index",label:"序号",width:60},h.createSlots({_:2},[i.isEditViewport?{name:"default",fn:h.withCtx(({row:B,column:je,$index:Ce})=>{var $,Z;return[Ce===(($=a.value)==null?void 0:$.length)-1&&((Z=i.cacheExtraButtons)!=null&&Z.some(ke=>(ke==null?void 0:ke.label)==="新增"))?h.renderSlot(S.$slots,"rowCreate",{key:0,row:B,index:Ce+1},void 0,!0):h.createCommentVNode("",!0)]}),key:"0"}:void 0]),1024)):h.createCommentVNode("",!0),(xe=i.tableData)!=null&&xe.some(B=>B==null?void 0:B.children)&&((ht=i.columns)==null?void 0:ht.length)>0?(h.openBlock(),h.createBlock(R,{key:2,type:"default","min-width":15,label:""},h.createSlots({_:2},[i.isEditViewport?{name:"default",fn:h.withCtx(({row:B,column:je,$index:Ce})=>{var $,Z;return[Ce===(($=a.value)==null?void 0:$.length)-1&&((Z=i.cacheExtraButtons)!=null&&Z.some(ke=>(ke==null?void 0:ke.label)==="新增"))?h.renderSlot(S.$slots,"rowCreate",{key:0,row:B,index:Ce+1},void 0,!0):h.createCommentVNode("",!0)]}),key:"0"}:void 0]),1024)):h.createCommentVNode("",!0),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.value,(B,je)=>{var Ce;return h.openBlock(),h.createElementBlock(h.Fragment,null,[(Ce=i.checkedColumns)!=null&&Ce.includes(B==null?void 0:B.label)?(h.openBlock(),h.createBlock(Nd,{key:0,tableData:a.value,column:B,isEditViewport:i.isEditViewport,onHandleColEditChange:k,onHandleColTypeChange:C},{operateHeader:h.withCtx(()=>[h.renderSlot(S.$slots,"operateCol",{},void 0,!0)]),content:h.withCtx(({row:$,item:Z,slotData:ke,scope:gr,column:An})=>{var Pl,Rl,_l;return[B!=null&&B.isExistChild?(h.openBlock(),h.createElementBlock("span",Wd,[h.createElementVNode("div",zd,[h.createVNode(U,{name:"TableLook",style:{width:"16px",height:"16px",color:"var(--vertical-menuitem-active-bg)",cursor:"pointer"},onClick:Re=>{var Zn;return De($!=null&&$[B==null?void 0:B.prop]?$==null?void 0:$[B==null?void 0:B.prop]:($==null?void 0:$[Z==null?void 0:Z.prop])??(ke==null?void 0:ke[Z==null?void 0:Z.prop])??($==null?void 0:$[(Zn=Z==null?void 0:Z.child)==null?void 0:Zn.prop]),Z==null?void 0:Z.prop,$??ke,{data:T($,B,Z,ke).value,isMainKey:B==null?void 0:B.isMainKey,isExistChild:B==null?void 0:B.isExistChild,columnType:B,rowContent:$})}},null,8,["onClick"])])])):h.createCommentVNode("",!0),((B==null?void 0:B.type)??"text")==="text"&&(($==null?void 0:$.tableEditType)??"text")==="text"&&!(B!=null&&B.isExistChild)?(h.openBlock(),h.createElementBlock("span",{key:1,class:"table-content",style:h.normalizeStyle({cursor:B!=null&&B.isMainKey?"pointer":"default",color:B!=null&&B.isMainKey?"var(--vertical-menuitem-active-bg)":"",textDecoration:B!=null&&B.isMainKey?"underline":""}),onClick:Re=>{var Zn;return De($!=null&&$[B==null?void 0:B.prop]?$==null?void 0:$[B==null?void 0:B.prop]:($==null?void 0:$[Z==null?void 0:Z.prop])??(ke==null?void 0:ke[Z==null?void 0:Z.prop])??($==null?void 0:$[(Zn=Z==null?void 0:Z.child)==null?void 0:Zn.prop]),Z==null?void 0:Z.prop,$??ke,{data:T($,B,Z,ke).value,isMainKey:B==null?void 0:B.isMainKey})}},[S.$slots.content?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[((Pl=i.columns)==null?void 0:Pl.findIndex(Re=>(Re==null?void 0:Re.prop)===(B==null?void 0:B.prop)))>=(($==null?void 0:$.level)??-1)?(h.openBlock(),h.createElementBlock("div",Hd,[h.renderSlot(S.$slots,"content",{row:$,column:B,colIndex:je,item:Z,slotData:ke},void 0,!0)])):h.createCommentVNode("",!0)],64)):((Rl=i.columns)==null?void 0:Rl.findIndex(Re=>(Re==null?void 0:Re.prop)===(B==null?void 0:B.prop)))>=(($==null?void 0:$.level)??-1)?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createTextVNode(h.toDisplayString(T($,B,Z,ke)),1)],64)):h.createCommentVNode("",!0)],12,qd)):h.createCommentVNode("",!0),((B==null?void 0:B.type)??"text")==="operate"&&!(B!=null&&B.isExistChild)?(h.openBlock(),h.createElementBlock("span",{key:2,class:"table-operate",style:h.normalizeStyle({justifyContent:i.isShowEdit&&i.isShowDelete?"space-between":B==null?void 0:B.align})},[h.renderSlot(S.$slots,"actions",{item:$},void 0,!0),i.isShowEdit?(h.openBlock(),h.createElementBlock("span",{key:0,onClick:Re=>Ve($),class:"blue-table-operate table-operate-content"},"编辑",8,Ud)):h.createCommentVNode("",!0),i.isShowDelete?(h.openBlock(),h.createElementBlock("span",{key:1,onClick:Re=>Ae($),class:"red-table-operate table-operate-content"},"删除",8,jd)):h.createCommentVNode("",!0)],4)):h.createCommentVNode("",!0),((B==null?void 0:B.type)??"text")==="edit"&&(($==null?void 0:$.tableEditType)??"text")!=="edit"||((B==null?void 0:B.type)??"text")==="text"&&(($==null?void 0:$.tableEditType)??"text")==="edit"&&!(B!=null&&B.isExistChild)?(h.openBlock(),h.createElementBlock("span",Kd,[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(ce($!=null&&$[B==null?void 0:B.prop]&&Array.isArray($[B.prop])&&((_l=$[B.prop])!=null&&_l.every(Re=>typeof Re=="Object"))?"Upload":(B==null?void 0:B.columnType)===""||!(B!=null&&B.columnType)?"Input":B==null?void 0:B.columnType)),{modelValue:$[An==null?void 0:An.property],"onUpdate:modelValue":Re=>$[An==null?void 0:An.property]=Re,style:{height:"100%"},content:(B==null?void 0:B.contents)??[],optionUrl:B==null?void 0:B.optionUrl,onFocus:Re=>fn(gr),onChange:Re=>Kf(Re,$,B)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","onFocus","onChange"]))])):h.createCommentVNode("",!0)]}),_:2},1032,["tableData","column","isEditViewport"])):h.createCommentVNode("",!0)],64)}),256))]}),_:3},8,["data","show-summary","sum-text"])),h.createElementVNode("div",ep,[i.isCardViewport?h.createCommentVNode("",!0):h.renderSlot(S.$slots,"batchButton",{key:0,buttons:x.value,columns:l.value},void 0,!0),t!=null&&t.isShowPagination&&i.tableData.length>0?(h.openBlock(),h.createBlock(he,{key:1,onSizeChange:fe,onCurrentChange:y,"current-page":((j=i.pageObj)==null?void 0:j.currentPage)??1,"page-sizes":(Q=i.pageObj)==null?void 0:Q.pageSizes,"page-size":((ie=i.pageObj)==null?void 0:ie.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((J=i.pageObj)==null?void 0:J.total)??0},null,8,["current-page","page-sizes","page-size","total"])):h.createCommentVNode("",!0)]),h.withDirectives(h.createVNode(Td,{style:h.normalizeStyle({top:o.y+"px",left:o.x+"px",position:"fixed",zIndex:999})},{content:h.withCtx(()=>[h.createElementVNode("div",tp,[h.createVNode($t._sfc_main,{emptyColor:!0,onClickTrigger:I,modelValue:"弹出模型",buttonType:""}),h.createVNode($t._sfc_main,{emptyColor:!0,onClickTrigger:H,modelValue:"预览",buttonType:""})])]),_:1},8,["style"]),[[h.vShow,n.value]])],512)}}},qh=Se._export_sfc(np,[["__scopeId","data-v-b7a1020c"]]),ip={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["dbChange"],setup(i,{emit:e}){const t=i,n=h.ref([]);h.watch(()=>{var o;return(o=t==null?void 0:t.content)==null?void 0:o.tableData},()=>{var o,l,a,u;((l=(o=t==null?void 0:t.content)==null?void 0:o.tableData)==null?void 0:l.length)===0||!((a=t==null?void 0:t.content)!=null&&a.tableData)||(n.value=K.cloneDeep((u=t==null?void 0:t.content)==null?void 0:u.tableData))},{deep:!0,immediate:!0});const s=e,r=o=>{var c,f,d,p;if(((c=t==null?void 0:t.content)==null?void 0:c.dbType)!=="edit"||!n.value||((f=n.value)==null?void 0:f.length)===0)return;let l=n.value,a=[];((d=l==null?void 0:l.filter(m=>(m==null?void 0:m.tableEditType)==="edit"))==null?void 0:d.length)!==(((p=t==null?void 0:t.content)==null?void 0:p.editNumber)??1)&&(l=l==null?void 0:l.map(m=>((m==null?void 0:m.id)===(o==null?void 0:o.id)&&(m.tableEditType="edit",a.push(m)),m)),s("dbChange",{content:l,item:a}))};return(o,l)=>{var a,u,c,f,d,p,m;return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.renderSlot(o.$slots,`${(a=t==null?void 0:t.content)==null?void 0:a.value}_tableHeader`),(h.openBlock(),h.createBlock(qh,{columns:((u=t==null?void 0:t.content)==null?void 0:u.columns)??[],tableData:n.value??[],currentPage:(c=t==null?void 0:t.content)==null?void 0:c.currentPage,total:(f=t==null?void 0:t.content)==null?void 0:f.total,pageSize:(d=t==null?void 0:t.content)==null?void 0:d.pageSize,isShowPagination:(p=t==null?void 0:t.content)==null?void 0:p.isShowPagination,isShowEdit:!1,isMoveColumn:(m=t==null?void 0:t.content)==null?void 0:m.isMoveColumn,isShowDelete:!1,onDoClickRow:r,key:n.value??[]},{actions:h.withCtx(({item:g})=>{var b;return[h.renderSlot(o.$slots,`${(b=t==null?void 0:t.content)==null?void 0:b.value}_action`,{item:g})]}),_:3},8,["columns","tableData","currentPage","total","pageSize","isShowPagination","isMoveColumn"]))],64)}}},sp=h.defineComponent({__name:"index",props:{value:String,config:Object,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["changeVisible"],setup(i,{emit:e}){const t=i,n=h.ref(t.value),s=e,r=h.ref({checkStrictly:!0}),o=l=>{s("changeVisible",l)};return(l,a)=>{const u=h.resolveComponent("el-cascader");return h.openBlock(),h.createBlock(u,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=c=>n.value=c),clearable:"",props:r.value,options:t==null?void 0:t.content,style:{width:"100%"},onVisibleChange:o},null,8,["modelValue","props","options"])}}}),rp={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-option"),o=h.resolveComponent("el-select");return h.openBlock(),h.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=l=>t.value=l),filterable:"",multiple:"",clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e==null?void 0:e.content,l=>(h.openBlock(),h.createBlock(r,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},op=h.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(i,{emit:e}){const t=e,n=o=>{t("clickMenu",o)},s=o=>{t("openMenu",o)},r=o=>{t("closeMenu",o)};return h.onMounted(()=>{}),(o,l)=>{const a=h.resolveComponent("MenuItem",!0),u=h.resolveComponent("el-sub-menu"),c=h.resolveComponent("el-menu-item");return h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.menuList,f=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[f.show&&f.children&&f.children.length>0?(h.openBlock(),h.createBlock(u,{index:f.path,key:f.path},{title:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:f.icon??((f==null?void 0:f.level)<=2?"default":""),class:"menu-icon"},null,8,["name"]),h.renderSlot(o.$slots,"title",{menu:f})]),default:h.withCtx(()=>[h.createVNode(a,{menuList:f.children,onClickMenu:n,onOpenMenu:s,onCloseMenu:r},h.createSlots({_:2},[h.renderList(o.$slots,(d,p)=>({name:p,fn:h.withCtx(m=>[h.renderSlot(o.$slots,p,h.mergeProps({ref_for:!0},m))])}))]),1032,["menuList"])]),_:2},1032,["index"])):f.show?(h.openBlock(),h.createBlock(c,{index:f.path,key:f.path,onClick:d=>n(f)},{title:h.withCtx(()=>[h.renderSlot(o.$slots,"title",{menu:f})]),default:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:f.icon??((f==null?void 0:f.level)<=2?"default":""),class:"menu-icon"},null,8,["name"])]),_:2},1032,["index","onClick"])):h.createCommentVNode("",!0)],64))),256)}}}),lp=h.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"},isCollapse:Boolean},emits:["clickMenu","openMenu","closeMenu"],setup(i,{emit:e}){const t=Jt.useMenuState(K.pinia),{activeMenuPath:n,activeMenuOpenPaths:s,activeTopMenuPath:r}=K.storeToRefs(t),o=Jt.useModelComp(K.pinia),{routeToChildPath:l}=K.storeToRefs(o),a=i,u=e,c=g=>{u("clickMenu",g)},f=g=>{u("openMenu",g)},d=g=>{u("closeMenu",g)},p=h.computed(()=>l.value?(a==null?void 0:a.mode)==="vertical"?l.value:r.value:(a==null?void 0:a.mode)==="vertical"?n.value:r.value),m=h.computed(()=>s.value);return(g,b)=>{const v=h.resolveComponent("el-sub-menu"),k=h.resolveComponent("el-menu-item"),C=h.resolveComponent("el-menu");return h.openBlock(),h.createBlock(C,{class:"menu-wrap",mode:i.mode,"default-active":p.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,ellipsis:!0,collapse:i.isCollapse,onOpen:f,onClose:d},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.menuList,O=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[O.show&&O.children&&O.children.length>0?(h.openBlock(),h.createBlock(v,{index:O.path,key:O.path,style:h.normalizeStyle(O.style)},{title:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:O.icon??((O==null?void 0:O.level)<=2?"default":""),class:"menu-icon"},null,8,["name"]),h.renderSlot(g.$slots,"title",{menu:O},void 0,!0)]),default:h.withCtx(()=>[h.createVNode(op,{menuList:O.children,onClickMenu:c},h.createSlots({_:2},[h.renderList(g.$slots,(A,x)=>({name:x,fn:h.withCtx(w=>[h.renderSlot(g.$slots,x,h.mergeProps({ref_for:!0},w),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index","style"])):O.show?(h.openBlock(),h.createBlock(k,{index:O.path,key:O.path,style:h.normalizeStyle(O.style),onClick:A=>c(O)},{title:h.withCtx(()=>[h.renderSlot(g.$slots,"title",{menu:O},void 0,!0)]),default:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:O.icon??((O==null?void 0:O.level)<=2?"default":""),class:"menu-icon"},null,8,["name"])]),_:2},1032,["index","style","onClick"])):h.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds","collapse"])}}}),Hh=Se._export_sfc(lp,[["__scopeId","data-v-676ab5e5"]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:Hh},Symbol.toStringTag,{value:"Module"})),hp={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-date-picker");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),type:"date",placeholder:"请选择日期",format:"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])}}},cp={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-date-picker");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),type:"datetime",placeholder:"请选择时间",format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}},null,8,["modelValue"])}}},up={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-input");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),type:"textarea",placeholder:"请输入内容...",disabled:!(e!=null&&e.isEdit),autosize:""},null,8,["modelValue","disabled"])}}},fp=Se._export_sfc(up,[["__scopeId","data-v-0e84be38"]]);function Uh(i){const e=sessionStorage.getItem("loginToken")??"123456";return K.service({url:"/api/sysFile/uploadFile",method:"post",data:i,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function dp(i){return K.service({url:"/api/sysFile/delete",method:"post",data:i})}const pp={class:"docx-renderer"},mp={__name:"index",props:{fileName:String,blobUrl:String},setup(i){const e=i,t=h.computed(()=>e.blobUrl),n=h.ref(null);return h.watchEffect(async()=>{t.value;const r=await(await fetch(t.value)).blob();await ut.renderAsync(r,n.value,null,{ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!0,experimental:!0,className:"docx",inWrapper:!0,hideWrapperOnPrint:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1,renderAltChunks:!0})}),(s,r)=>(h.openBlock(),h.createElementBlock("div",pp,[h.createElementVNode("div",{ref_key:"docxPreview",ref:n,class:"render-docx-wrappper"},null,512)]))}},gp=Se._export_sfc(mp,[["__scopeId","data-v-4b92a534"]]),yp={class:"xlsx-renderer"},bp={__name:"index",props:{fileName:String,blobUrl:String},setup(i){const e=i,t=h.computed(()=>e.blobUrl),n=h.ref(null);return h.watchEffect(async()=>{t.value;const r=await(await fetch(t.value)).blob();n.value=ut.Hg.init(document.getElementById("excel")),n.value.preview(r).then(()=>{console.log("预览完成")}).catch(o=>{console.log("预览失败",o)})}),(s,r)=>(h.openBlock(),h.createElementBlock("div",yp,r[0]||(r[0]=[h.createElementVNode("div",{id:"excel"},null,-1)])))}},vp=Se._export_sfc(bp,[["__scopeId","data-v-08dbfb73"]]),xp={class:"pdf-renderer"},kp=["src"],wp={__name:"index",props:{fileName:String,blobUrl:String},setup(i){const e=i,t=h.computed(()=>e.blobUrl),n=h.ref("");return h.watchEffect(async()=>{t.value;const r=await(await fetch(t.value)).blob(),o=new Blob([r],{type:"application/pdf"}),l=URL.createObjectURL(o);n.value=l}),h.onUnmounted(()=>{n.value&&URL.revokeObjectURL(n.value)}),(s,r)=>(h.openBlock(),h.createElementBlock("div",xp,[h.createElementVNode("iframe",{src:n.value,class:"pdf-iframe"},null,8,kp)]))}},Sp=Se._export_sfc(wp,[["__scopeId","data-v-b4ab8c04"]]);let Gr=[],jh=[];(()=>{let i="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<i.length;e++)(e%2?jh:Gr).push(t=t+i[e])})();function Cp(i){if(i<768)return!1;for(let e=0,t=Gr.length;;){let n=e+t>>1;if(i<Gr[n])t=n;else if(i>=jh[n])e=n+1;else return!0;if(e==t)return!1}}function Il(i){return i>=127462&&i<=127487}const $l=8205;function Op(i,e,t=!0,n=!0){return(t?Kh:Ap)(i,e,n)}function Kh(i,e,t){if(e==i.length)return e;e&&Gh(i.charCodeAt(e))&&Xh(i.charCodeAt(e-1))&&e--;let n=yr(i,e);for(e+=Fl(n);e<i.length;){let s=yr(i,e);if(n==$l||s==$l||t&&Cp(s))e+=Fl(s),n=s;else if(Il(s)){let r=0,o=e-2;for(;o>=0&&Il(yr(i,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Ap(i,e,t){for(;e>0;){let n=Kh(i,e-2,t);if(n<e)return n;e--}return 0}function yr(i,e){let t=i.charCodeAt(e);if(!Xh(t)||e+1==i.length)return t;let n=i.charCodeAt(e+1);return Gh(n)?(t-55296<<10)+(n-56320)+65536:t}function Gh(i){return i>=56320&&i<57344}function Xh(i){return i>=55296&&i<56320}function Fl(i){return i<65536?1:2}class ae{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=qn(this,e,t);let s=[];return this.decompose(0,e,s,2),n.length&&n.decompose(0,n.length,s,3),this.decompose(t,this.length,s,1),Mt.from(s,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=qn(this,e,t);let n=[];return this.decompose(e,t,n,0),Mt.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),s=new ui(this),r=new ui(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=n)return!0}}iter(e=1){return new ui(this,e)}iterRange(e,t=this.length){return new Yh(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;n=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Qh(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ae.empty:e.length<=32?new Oe(e):Mt.from(Oe.split(e,[]))}}class Oe extends ae{constructor(e,t=Bp(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?n:l)>=e)return new Mp(s,l,n,o);s=l+1,n++}}decompose(e,t,n,s){let r=e<=0&&t>=this.length?this:new Oe(Wl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=n.pop(),l=ds(r.text,o.text.slice(),0,r.length);if(l.length<=32)n.push(new Oe(l,o.length+r.length));else{let a=l.length>>1;n.push(new Oe(l.slice(0,a)),new Oe(l.slice(a)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof Oe))return super.replace(e,t,n);[e,t]=qn(this,e,t);let s=ds(this.text,ds(n.text,Wl(this.text,0,e)),t),r=this.length+n.length-(t-e);return s.length<=32?new Oe(s,r):Mt.from(Oe.split(s,[]),r)}sliceString(e,t=this.length,n=`
1
+ "use strict";const h=require("vue"),zn=require("./index-BpPyaNFa.cjs"),Yf=require("./icon-CaMIXmb-.cjs"),ut=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-aKBwlWY2.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$t=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Jt=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),K=require("./index-1z9RrjZc.cjs"),_n=require("./threeViewerHost-DIhKhtKC.cjs"),jo=require("./index-CpAwk7Ae.cjs"),Qf=require("./index-CMAV_VWo.cjs");var Jf="[object Date]";function Zf(i){return K.isObjectLike(i)&&K.baseGetTag(i)==Jf}var Ll=K.nodeUtil&&K.nodeUtil.isDate,ed=Ll?K.baseUnary(Ll):Zf,td="[object Number]";function Kr(i){return typeof i=="number"||K.isObjectLike(i)&&K.baseGetTag(i)==td}const $h={__name:"index",props:{value:String|Boolean,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},activeText:{type:String,default:"是"},inactiveText:{type:String,default:"否"}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-switch");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),"active-color":"#13ce66","inactive-color":"#ff4949","active-text":e==null?void 0:e.activeText,"inactive-text":e==null?void 0:e.inactiveText},null,8,["modelValue","active-text","inactive-text"])}}},bi={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},appendShow:{type:Boolean,default:!1,required:!1}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-input");return Array.isArray(t.value)?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(r,{key:0,modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),disabled:!(e!=null&&e.isEdit),clearable:""},h.createSlots({_:2},[i.appendShow?{name:"append",fn:h.withCtx(()=>[h.renderSlot(n.$slots,"append")]),key:"0"}:void 0]),1032,["modelValue","disabled"]))}}},nd={class:"icon-popover"},id=["onClick"],sd=h.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,n=e,s=h.ref(t.modelValue),r=h.ref(!1),o=h.ref([]),l=()=>{r.value=!0},a=()=>{r.value=!1},u=c=>{s.value=c.value,n("update:modelValue",c.value)};return h.onMounted(()=>{o.value=Yf.getSvgIcons()}),(c,f)=>{const d=h.resolveComponent("el-input"),p=h.resolveComponent("el-popover");return h.openBlock(),h.createBlock(p,{width:"400",visible:r.value,title:"图标",placement:"bottom"},{default:h.withCtx(()=>[h.createElementVNode("div",nd,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.value,(m,g)=>(h.openBlock(),h.createElementBlock("div",{key:g,class:"icon-wrap",onClick:b=>u(m)},[h.createVNode(zn.SvgIcon,{name:m==null?void 0:m.value,style:{width:"20px",height:"20px"}},null,8,["name"])],8,id))),128))])]),reference:h.withCtx(()=>[h.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=m=>s.value=m),placeholder:"请输入",disabled:!(t!=null&&t.isEdit),clearable:"",onFocus:l,onBlur:a},{prepend:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:s.value,style:{width:"20px",height:"20px"}},null,8,["name"])]),_:1},8,["modelValue","disabled"])]),_:1},8,["visible"])}}}),rd=Se._export_sfc(sd,[["__scopeId","data-v-d9981dd9"]]),od={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-input");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},ld={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-color-picker");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),"show-alpha":""},null,8,["modelValue"])}}},ad={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-input");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}};function hd(i,e){let t;const n=h.ref(!1),s=h.reactive({...i,originalPosition:"",originalOverflow:"",visible:!1});function r(p){s.text=p}function o(){const p=s.parent,m=d.ns;if(!p.vLoadingAddClassList){let g=p.getAttribute("loading-number");g=Number.parseInt(g)-1,g?p.setAttribute("loading-number",g.toString()):(K.removeClass(p,m.bm("parent","relative")),p.removeAttribute("loading-number")),K.removeClass(p,m.bm("parent","hidden"))}l(),f.unmount()}function l(){var p,m;(m=(p=d.$el)==null?void 0:p.parentNode)==null||m.removeChild(d.$el)}function a(){var p;i.beforeClose&&!i.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(u,400),s.visible=!1,(p=i.closed)==null||p.call(i))}function u(){if(!n.value)return;const p=s.parent;n.value=!1,p.vLoadingAddClassList=void 0,o()}const c=h.defineComponent({name:"ElLoading",setup(p,{expose:m}){const{ns:g,zIndex:b}=K.useGlobalComponentSettings("loading");return m({ns:g,zIndex:b}),()=>{const v=s.spinner||s.svg,k=h.h("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[h.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),C=s.text?h.h("p",{class:g.b("text")},[s.text]):void 0;return h.h(h.Transition,{name:g.b("fade"),onAfterLeave:u},{default:h.withCtx(()=>[h.withDirectives(h.createVNode("div",{style:{backgroundColor:s.background||""},class:[g.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[h.h("div",{class:g.b("spinner")},[k,C])]),[[h.vShow,s.visible]])])})}}}),f=h.createApp(c);Object.assign(f._context,e??{});const d=f.mount(document.createElement("div"));return{...h.toRefs(s),setText:r,removeElLoadingChild:l,close:a,handleAfterLeave:u,vm:d,get $el(){return d.$el}}}let Wi;const Ln=function(i={}){if(!K.isClient)return;const e=cd(i);if(e.fullscreen&&Wi)return Wi;const t=hd({...e,closed:()=>{var s;(s=e.closed)==null||s.call(e),e.fullscreen&&(Wi=void 0)}},Ln._context);ud(e,e.parent,t),Nl(e,e.parent,t),e.parent.vLoadingAddClassList=()=>Nl(e,e.parent,t);let n=e.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",e.parent.setAttribute("loading-number",n),e.parent.appendChild(t.$el),h.nextTick(()=>t.visible.value=e.visible),e.fullscreen&&(Wi=t),t},cd=i=>{var e,t,n,s;let r;return K.isString(i.target)?r=(e=document.querySelector(i.target))!=null?e:document.body:r=i.target||document.body,{parent:r===document.body||i.body?document.body:r,background:i.background||"",svg:i.svg||"",svgViewBox:i.svgViewBox||"",spinner:i.spinner||!1,text:i.text||"",fullscreen:r===document.body&&((t=i.fullscreen)!=null?t:!0),lock:(n=i.lock)!=null?n:!1,customClass:i.customClass||"",visible:(s=i.visible)!=null?s:!0,beforeClose:i.beforeClose,closed:i.closed,target:r}},ud=async(i,e,t)=>{const{nextZIndex:n}=t.vm.zIndex||t.vm._.exposed.zIndex,s={};if(i.fullscreen)t.originalPosition.value=K.getStyle(document.body,"position"),t.originalOverflow.value=K.getStyle(document.body,"overflow"),s.zIndex=n();else if(i.parent===document.body){t.originalPosition.value=K.getStyle(document.body,"position"),await h.nextTick();for(const r of["top","left"]){const o=r==="top"?"scrollTop":"scrollLeft";s[r]=`${i.target.getBoundingClientRect()[r]+document.body[o]+document.documentElement[o]-Number.parseInt(K.getStyle(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])s[r]=`${i.target.getBoundingClientRect()[r]}px`}else t.originalPosition.value=K.getStyle(e,"position");for(const[r,o]of Object.entries(s))t.$el.style[r]=o},Nl=(i,e,t)=>{const n=t.vm.ns||t.vm._.exposed.ns;["absolute","fixed","sticky"].includes(t.originalPosition.value)?K.removeClass(e,n.bm("parent","relative")):K.addClass(e,n.bm("parent","relative")),i.fullscreen&&i.lock?K.addClass(e,n.bm("parent","hidden")):K.removeClass(e,n.bm("parent","hidden"))};Ln._context=null;const fs=Symbol("ElLoading"),Vl=(i,e)=>{var t,n,s,r;const o=e.instance,l=p=>K.isObject$1(e.value)?e.value[p]:void 0,a=p=>{const m=K.isString(p)&&(o==null?void 0:o[p])||p;return m&&h.ref(m)},u=p=>a(l(p)||i.getAttribute(`element-loading-${K.hyphenate(p)}`)),c=(t=l("fullscreen"))!=null?t:e.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(n=l("target"))!=null?n:c?void 0:i,body:(s=l("body"))!=null?s:e.modifiers.body,lock:(r=l("lock"))!=null?r:e.modifiers.lock},d=Ln(f);d._context=ci._context,i[fs]={options:f,instance:d}},fd=(i,e)=>{for(const t of Object.keys(e))h.isRef(e[t])&&(e[t].value=i[t])},ci={mounted(i,e){e.value&&Vl(i,e)},updated(i,e){const t=i[fs];e.oldValue!==e.value&&(e.value&&!e.oldValue?Vl(i,e):e.value&&e.oldValue?K.isObject$1(e.value)&&fd(e.value,t.options):t==null||t.instance.close())},unmounted(i){var e;(e=i[fs])==null||e.instance.close(),i[fs]=null}};ci._context=null;const Fh={install(i){Ln._context=i._context,ci._context=i._context,i.directive("loading",ci),i.config.globalProperties.$loading=Ln},directive:ci,service:Ln},dd=async i=>{var s,r,o,l,a,u,c,f,d;let e=[];(s=i==null?void 0:i.menuSelect)==null||s.forEach(p=>{});let t="";const n=await Jt.menuToParent(i==null?void 0:i.menuSelect);if(n==null||n.forEach(p=>{var m,g;(p==null?void 0:p.name)===(((g=(m=i==null?void 0:i.groupSelect)==null?void 0:m[0])==null?void 0:g.replaceAll("'",""))??"")&&(t=p==null?void 0:p.id)}),t!==""){const p=(l=(o=(r=n==null?void 0:n.find(b=>(b==null?void 0:b.id)===t))==null?void 0:r.compData)==null?void 0:o.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:l.contents;let m=0;p.every(b=>Array.isArray(b))?m=(a=p==null?void 0:p[0])==null?void 0:a.findIndex(b=>{var v,k,C;return(b==null?void 0:b.label)===((C=(k=(v=i==null?void 0:i.groupSelect)==null?void 0:v[1])==null?void 0:k.replaceAll("[",""))==null?void 0:C.replaceAll("]",""))}):m=p==null?void 0:p.findIndex(b=>{var v,k,C;return(b==null?void 0:b.label)===((C=(k=(v=i==null?void 0:i.groupSelect)==null?void 0:v[1])==null?void 0:k.replaceAll("[",""))==null?void 0:C.replaceAll("]",""))});let g=(d=(f=(c=(u=n==null?void 0:n.find(b=>(b==null?void 0:b.id)===t))==null?void 0:u.compData)==null?void 0:c.find(b=>(b==null?void 0:b.key)==="tableContents"))==null?void 0:f.contents)==null?void 0:d.map(b=>(b=b==null?void 0:b.filter(v=>!(v!=null&&v.id)),b));g==null||g.forEach(b=>{e.push({label:b==null?void 0:b[m],value:b==null?void 0:b[m]})})}return e},Os={__name:"index",props:{value:String,placeholder:{type:String,default:"请选择下拉内容...",required:!1},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},optionUrl:{type:Object,default:()=>{}}},emits:["blurChange","click"],setup(i,{emit:e}){const t=i,n=e,s=h.ref(t.value),r=h.ref();h.onMounted(()=>{r.value=t==null?void 0:t.content});const o=()=>{n("blurChange")},l=h.computed(()=>{const c=t.optionUrl;return!!(c!=null&&c.multiple)}),a=h.computed(()=>{var c;return(c=r.value)==null?void 0:c.filter((f,d,p)=>d===p.findIndex(m=>m.value===f.value))}),u=async()=>{var c,f,d,p;((f=(c=t.optionUrl)==null?void 0:c.menuSelect)==null?void 0:f.length)>0&&(r.value=await dd(t.optionUrl),s.value=(p=(d=r.value)==null?void 0:d[0])==null?void 0:p.value),n("click")};return(c,f)=>{const d=h.resolveComponent("el-option"),p=h.resolveComponent("el-select");return h.openBlock(),h.createBlock(p,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=m=>s.value=m),filterable:"",multiple:l.value,clearable:i.clearable,placeholder:i.placeholder,style:{width:"100%"},onChange:o,onVisibleChange:u},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,m=>(h.openBlock(),h.createBlock(d,{key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple","clearable","placeholder"])}}},pd={key:0,class:"form-operator-wrap"},md={class:"form-content-view"},gd={key:1,class:"form-item-label-child"},yd=["onClick"],bd={key:1,class:"form-item-label-child"},vd={key:1},xd=["onClick"],kd=["onClick"],wd={__name:"index",props:{formRules:Object,rowContents:Array,buttonValue:Array,isEnableWrap:{default:!0,type:Boolean},isRowFlex:{default:!1,type:Boolean},showOperator:{default:!0,type:Boolean},formDisabled:{default:!1,type:Boolean},formLabelsOperable:{default:!1,type:Boolean},isButtonRow:{default:!0,type:Boolean},rowValues:Array,isEdit:{type:Boolean,default:!0},isStartJustify:{type:Boolean,default:!0}},emits:["handleColTypeChange","handleColEditChange","change","onButtonClick","clickTrigger","blur","changeVisible","blurChange","preview","routeUrl"],setup(i,{emit:e}){const t=i,n=Jt.useModelComp(K.pinia),{isEdit:s}=K.storeToRefs(n),r=Jt.useMenuState(),{activeMenuPath:o}=K.storeToRefs(r);h.onMounted(()=>{});const l=e,a=h.ref(null),u=h.ref(null),c=h.ref(),f=h.ref(),d=h.ref(0),p=h.computed(()=>{var T;return(T=Jt.FormContent)==null?void 0:T.map(M=>({value:M==null?void 0:M.key,label:M==null?void 0:M.key}))}),m=T=>{l("routeUrl",T)},g=h.computed(()=>{var H;const T=(H=o.value)==null?void 0:H.split("/");return(T==null?void 0:T.some(I=>(I==null?void 0:I.includes("updateLoading"))||(I==null?void 0:I.includes("loading"))))?!1:s.value==="view"&&(t==null?void 0:t.showOperator)}),b=T=>pr(T),v=T=>{l("clickTrigger",T)},k=T=>{l("preview",T)},C=()=>{l("blur",f.value)},O=T=>{l("blurChange",f.value,{changeProp:T})},A=()=>{h.nextTick(()=>{d.value++})},x=(T,M)=>{switch(T){case"datetime":return ut.dayjs(M).format("YYYY-MM-DD HH:mm:ss");case"date":return ut.dayjs(M).format("YYYY-MM-DD");default:return M}},w=T=>{l("changeVisible",T)},L=(T,M)=>{l("handleColEditChange",T,M)},N=async(T,M)=>{await h.nextTick(),l("handleColTypeChange",T,M)};h.watch(()=>t==null?void 0:t.rowContents,()=>{var M,H;if(((M=t==null?void 0:t.rowContents)==null?void 0:M.length)===0)return;const T={};(H=K.cloneDeep(t==null?void 0:t.rowContents))==null||H.forEach(I=>{T[(I==null?void 0:I.prop)??(I==null?void 0:I.name)]=x(I==null?void 0:I.type,I==null?void 0:I.value)}),c.value=T,f.value=T,A()},{deep:!0,immediate:!0});const E=async(T,M)=>{await h.nextTick(),M&&await(M==null?void 0:M.validate((H,I)=>{H?l("onButtonClick",{content:f.value,buttonName:T}):console.log("表单校验失败",I)}))};return h.onBeforeUnmount(()=>{c.value=void 0,f.value=void 0,d.value=null}),h.watch(()=>f.value,()=>{if(f.value){let T={};for(let M in f.value)ed(f.value[M])?T[M]=ut.dayjs(f.value[M]).format("YYYY-MM-DD"):T[M]=f.value[M];l("change",T)}},{deep:!0}),(T,M)=>{var ce;const H=h.resolveComponent("el-form-item"),I=h.resolveComponent("el-form"),te=h.resolveComponent("el-button");return h.openBlock(),h.createElementBlock("div",{class:"form-content",style:h.normalizeStyle({flexDirection:i.isButtonRow?"row":"column"})},[g.value?(h.openBlock(),h.createElementBlock("div",pd,[h.renderSlot(T.$slots,"operateCol",{renderColumns:i.rowContents,formDisabled:i.formDisabled,formLabelsOperable:i.formLabelsOperable},void 0,!0)])):h.createCommentVNode("",!0),h.createElementVNode("div",md,[t.isEnableWrap?(h.openBlock(),h.createBlock(I,{ref_key:"formWrapRef",ref:a,model:c.value,rules:i.formRules,disabled:i.formDisabled,class:h.normalizeClass(i.formDisabled?"form-data disabled-form":"form-data"),key:t.isRowFlex+d.value},{default:h.withCtx(()=>{var ne;return[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.rowContents,(y,ue)=>h.withDirectives((h.openBlock(),h.createBlock(H,{key:ue,disabled:i.formDisabled||(y==null?void 0:y.disabled),class:"form-item",prop:(y==null?void 0:y.prop)??(y==null?void 0:y.name),style:h.normalizeStyle({flexDirection:i.isRowFlex?"row":"column",alignItems:i.isRowFlex?"center":"start",height:i.isRowFlex?"100%":"auto"})},h.createSlots({default:h.withCtx(()=>{var fe,Ve,Ae,De,ze,Ye,Qe,wt,an,hn,cn,un,fn;return[y!=null&&y.isFormColHidden?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(h.resolveDynamicComponent(b((y==null?void 0:y.type)??"Input")),{modelValue:f.value[(y==null?void 0:y.prop)??(y==null?void 0:y.name)],"onUpdate:modelValue":St=>f.value[(y==null?void 0:y.prop)??(y==null?void 0:y.name)]=St,key:y==null?void 0:y.type,content:(y==null?void 0:y.contents)??[],isEdit:t==null?void 0:t.isEdit,disabled:y==null?void 0:y.disabled,onClickTrigger:v,onBlur:C,optionUrl:y==null?void 0:y.optionUrl,onChangeVisible:w,onBlurChange:St=>O((y==null?void 0:y.prop)??(y==null?void 0:y.name)),config:y==null?void 0:y.config},null,40,["modelValue","onUpdate:modelValue","content","isEdit","disabled","optionUrl","onBlurChange","config"])),typeof f.value[(y==null?void 0:y.prop)??y.name]=="string"&&((fe=f.value[(y==null?void 0:y.prop)??y.name])!=null&&fe.includes(".stl")||(Ve=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ve.includes(".obj")||(Ae=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ae.includes(".urdf")||(De=f.value[(y==null?void 0:y.prop)??y.name])!=null&&De.includes(".STL")||(ze=f.value[(y==null?void 0:y.prop)??y.name])!=null&&ze.includes(".ls")||(Ye=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ye.includes(".uv")||(Qe=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Qe.includes(".UV")||(wt=f.value[(y==null?void 0:y.prop)??y.name])!=null&&wt.includes(".cpt")||(an=f.value[(y==null?void 0:y.prop)??y.name])!=null&&an.includes(".CPT")||(hn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&hn.includes(".cyd")||(cn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&cn.includes(".CYD")||(un=f.value[(y==null?void 0:y.prop)??y.name])!=null&&un.includes(".nc")||(fn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&fn.includes(".NC"))?(h.openBlock(),h.createBlock($t._sfc_main,{key:1,class:"calculator-content form-preview",onClickTrigger:St=>k(f.value[(y==null?void 0:y.prop)??y.name]),modelValue:"预览"},null,8,["onClickTrigger"])):h.createCommentVNode("",!0)]}),_:2},[!(y!=null&&y.isFormColHidden)&&(y!=null&&y.label)?{name:"label",fn:h.withCtx(()=>[y!=null&&y.label?(h.openBlock(),h.createElementBlock("div",{key:0,class:"from-item-label",style:h.normalizeStyle({width:i.isRowFlex?"72px":"260px",minWidth:i.isRowFlex?"72px":"260px"})},[y!=null&&y.operable?(h.openBlock(),h.createBlock(bi,{key:0,value:y==null?void 0:y.label,appendShow:!0,class:"col-edit-input",onChange:fe=>L(fe,y)},{append:h.withCtx(()=>[h.createVNode(Os,{value:y==null?void 0:y.type,content:p.value,placeholder:"类型",style:{width:"100%"},onChange:fe=>N(fe,y)},null,8,["value","content","onChange"])]),_:2},1032,["value","onChange"])):(h.openBlock(),h.createElementBlock("div",gd,h.toDisplayString(y==null?void 0:y.label),1))],4)):h.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["disabled","prop","style"])),[[h.vShow,!(y!=null&&y.isFormColHidden)]])),128)),((ne=t.buttonValue)==null?void 0:ne.length)>0&&i.isButtonRow?(h.openBlock(),h.createElementBlock("div",{key:0,class:"form-button",style:h.normalizeStyle({paddingTop:i.isRowFlex?"0":"26px",justifyContent:i.isStartJustify?"start":"end"})},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.buttonValue,(y,ue)=>(h.openBlock(),h.createElementBlock("div",{key:ue,class:"form-button-content"},[y?(h.openBlock(),h.createElementBlock("div",{key:0,class:"form-button-item",style:h.normalizeStyle({background:(y==null?void 0:y.background)??"var(--ssComponent-primary-color)"}),onClick:fe=>E(y==null?void 0:y.label,a.value)},h.toDisplayString(y==null?void 0:y.label),13,yd)):h.createCommentVNode("",!0)]))),128))],4)):h.createCommentVNode("",!0)]}),_:1},8,["model","rules","disabled","class"])):(h.openBlock(),h.createBlock(I,{ref_key:"formRef",ref:u,model:f.value,rules:i.formRules,disabled:i.formDisabled,class:h.normalizeClass(i.formDisabled?"form-noRegular-data disabled-form":"form-noRegular-data"),key:d.value},{default:h.withCtx(()=>{var ne;return[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.rowContents,(y,ue)=>h.withDirectives((h.openBlock(),h.createBlock(H,{key:ue,class:h.normalizeClass(["form-item",{"form-row-content":!i.isRowFlex}]),prop:(y==null?void 0:y.prop)??(y==null?void 0:y.name),disabled:i.formDisabled||(y==null?void 0:y.disabled),style:h.normalizeStyle({flexDirection:i.isRowFlex?"row":"column",alignItems:i.isRowFlex?"center":"start",height:i.isRowFlex?"100%":"auto",width:`calc((100% / ${(y==null?void 0:y.width)??1}) - 12px)`,minWidth:`calc((100% / ${(y==null?void 0:y.width)??1}) - 12px)`})},h.createSlots({default:h.withCtx(()=>{var fe,Ve,Ae,De,ze,Ye,Qe,wt,an,hn,cn,un,fn;return[!(y!=null&&y.isFormColHidden)&&(y==null?void 0:y.type)!=="Url"?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(b((y==null?void 0:y.type)??"Input")),{modelValue:f.value[(y==null?void 0:y.prop)??(y==null?void 0:y.name)],"onUpdate:modelValue":St=>f.value[(y==null?void 0:y.prop)??(y==null?void 0:y.name)]=St,isEdit:t==null?void 0:t.isEdit,disabled:y==null?void 0:y.disabled,content:(y==null?void 0:y.contents)??[],onClickTrigger:v,onBlur:C,key:y==null?void 0:y.type,optionUrl:y==null?void 0:y.optionUrl,onChangeVisible:w,onBlurChange:St=>O((y==null?void 0:y.prop)??(y==null?void 0:y.name)),config:y==null?void 0:y.config},null,40,["modelValue","onUpdate:modelValue","isEdit","disabled","content","optionUrl","onBlurChange","config"])):h.createCommentVNode("",!0),(y==null?void 0:y.type)==="Url"?(h.openBlock(),h.createElementBlock("div",vd,[h.createVNode($t._sfc_main,{class:"calculator-content form-preview",onClickTrigger:St=>m(f.value[(y==null?void 0:y.prop)??y.name]),modelValue:"详情"},null,8,["onClickTrigger"])])):h.createCommentVNode("",!0),typeof f.value[(y==null?void 0:y.prop)??y.name]=="string"&&((fe=f.value[(y==null?void 0:y.prop)??y.name])!=null&&fe.includes(".stl")||(Ve=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ve.includes(".obj")||(Ae=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ae.includes(".urdf")||(De=f.value[(y==null?void 0:y.prop)??y.name])!=null&&De.includes(".STL")||(ze=f.value[(y==null?void 0:y.prop)??y.name])!=null&&ze.includes(".ls")||(Ye=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Ye.includes(".uv")||(Qe=f.value[(y==null?void 0:y.prop)??y.name])!=null&&Qe.includes(".UV")||(wt=f.value[(y==null?void 0:y.prop)??y.name])!=null&&wt.includes(".cpt")||(an=f.value[(y==null?void 0:y.prop)??y.name])!=null&&an.includes(".CPT")||(hn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&hn.includes(".cyd")||(cn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&cn.includes(".CYD")||(un=f.value[(y==null?void 0:y.prop)??y.name])!=null&&un.includes(".nc")||(fn=f.value[(y==null?void 0:y.prop)??y.name])!=null&&fn.includes(".NC"))?(h.openBlock(),h.createBlock($t._sfc_main,{key:2,class:"calculator-content form-preview",onClickTrigger:St=>k(f.value[(y==null?void 0:y.prop)??y.name]),modelValue:"预览"},null,8,["onClickTrigger"])):h.createCommentVNode("",!0)]}),_:2},[!(y!=null&&y.isFormColHidden)&&(y!=null&&y.label)?{name:"label",fn:h.withCtx(()=>[y!=null&&y.label?(h.openBlock(),h.createElementBlock("div",{key:0,class:"from-item-label",style:h.normalizeStyle({width:i.isRowFlex?"72px":"auto",minWidth:i.isRowFlex?"72px":`calc((100% / ${(y==null?void 0:y.width)??1}) - 8px)`})},[y!=null&&y.operable?(h.openBlock(),h.createBlock(bi,{key:0,value:y==null?void 0:y.label,appendShow:!0,class:"col-edit-input",onChange:fe=>L(fe,y)},{append:h.withCtx(()=>[h.createVNode(Os,{value:y==null?void 0:y.type,content:p.value,placeholder:"类型",style:{width:"100%"},onChange:fe=>N(fe,y)},null,8,["value","content","onChange"])]),_:2},1032,["value","onChange"])):(h.openBlock(),h.createElementBlock("div",bd,h.toDisplayString(y==null?void 0:y.label),1))],4)):h.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["prop","class","disabled","style"])),[[h.vShow,!(y!=null&&y.isFormColHidden)]])),128)),((ne=t.buttonValue)==null?void 0:ne.length)>0&&i.isButtonRow?(h.openBlock(),h.createElementBlock("div",{key:0,class:"form-button",style:h.normalizeStyle({paddingTop:i.isRowFlex?"0":"26px",justifyContent:i.isStartJustify?"start":"end"})},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.buttonValue,(y,ue)=>(h.openBlock(),h.createElementBlock("div",{key:ue,class:"form-button-content"},[y?(h.openBlock(),h.createElementBlock("div",{key:0,class:"form-button-item",style:h.normalizeStyle({background:(y==null?void 0:y.background)??"var(--ssComponent-primary-color)"}),onClick:fe=>E(y==null?void 0:y.label,u.value)},h.toDisplayString(y==null?void 0:y.label),13,xd)):h.createCommentVNode("",!0)]))),128))],4)):h.createCommentVNode("",!0)]}),_:1},8,["model","rules","disabled","class"]))]),((ce=t.buttonValue)==null?void 0:ce.length)>0&&!i.isButtonRow?(h.openBlock(),h.createElementBlock("div",{key:1,class:"form-button",style:h.normalizeStyle({justifyContent:i.isStartJustify?"start":"end"})},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t==null?void 0:t.buttonValue,(ne,y)=>(h.openBlock(),h.createElementBlock("div",{key:y,class:"form-button-content",onClick:ue=>E(ne==null?void 0:ne.label,t.isEnableWrap?a.value:u.value)},[h.createVNode(te,{id:"themeButton",style:h.normalizeStyle({background:(ne==null?void 0:ne.background)??"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"})},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(ne==null?void 0:ne.label),1)]),_:2},1032,["style"])],8,kd))),128))],4)):h.createCommentVNode("",!0)],4)}}},Wh=Se._export_sfc(wd,[["__scopeId","data-v-c5216e8b"]]),Sd={__name:"index",props:{value:String,formRules:{type:Object,default:()=>{}},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["clickTrigger","changeTrigger"],setup(i,{emit:e}){const t=i,n=e,s=o=>{n("clickTrigger",o)},r=o=>{n("changeTrigger",o)};return(o,l)=>{var a,u,c,f,d,p,m;return h.openBlock(),h.createBlock(Wh,{rowContents:((a=t==null?void 0:t.content)==null?void 0:a.rowContents)??[],formRules:(u=t==null?void 0:t.content)==null?void 0:u.formRules,buttonValue:((c=t==null?void 0:t.content)==null?void 0:c.buttonValue)??[],isEnableWrap:(f=t==null?void 0:t.content)==null?void 0:f.isEnableWrap,isRowFlex:(d=t==null?void 0:t.content)==null?void 0:d.isRowFlex,isButtonRow:(p=t==null?void 0:t.content)==null?void 0:p.isButtonRow,rowValues:((m=t==null?void 0:t.content)==null?void 0:m.rowValues)??[],onOnButtonClick:s,onChange:r},null,8,["rowContents","formRules","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Cd={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["change"],setup(i,{emit:e}){const t=i,n=h.ref(t.value),s=e,r=o=>{s("change",o)};return(o,l)=>{const a=h.resolveComponent("el-radio"),u=h.resolveComponent("el-radio-group");return h.openBlock(),h.createBlock(u,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=c=>n.value=c),style:{height:"100%"},onChange:l[1]||(l[1]=c=>r(c))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.content,(c,f)=>(h.openBlock(),h.createBlock(a,{key:f,label:c.value},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(c==null?void 0:c.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},zh=Se._export_sfc(Cd,[["__scopeId","data-v-b4cff553"]]),Od={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},isWrap:{type:Boolean,default:!1},min:{type:Number,default:1}},emits:["change"],setup(i,{emit:e}){const t=i,n=h.ref(t.value),s=e,r=o=>{s("change",o)};return(o,l)=>{const a=h.resolveComponent("el-checkbox"),u=h.resolveComponent("el-checkbox-group");return h.openBlock(),h.createBlock(u,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=c=>n.value=c),style:{height:"100%"},min:i.min,onChange:l[1]||(l[1]=c=>r(c))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.content,c=>(h.openBlock(),h.createBlock(a,{key:c.label,label:c.label,value:c.label,style:h.normalizeStyle({width:i.isWrap?"100%":"auto",marginRight:i.isWrap?0:"auto"})},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(c.label),1),h.renderSlot(o.$slots,"append")]),_:2},1032,["label","value","style"]))),128))]),_:3},8,["modelValue","min"])}}},Ad={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i;return h.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(n=>{n.style.display="block"})}),(t,n)=>{var s;return h.openBlock(),h.createBlock(El,{tabsContents:((s=e==null?void 0:e.content)==null?void 0:s.tabsContents)??[]},h.createSlots({_:2},[h.renderList(t.$slots,(r,o)=>({name:o,fn:h.withCtx(l=>[h.renderSlot(t.$slots,o,h.normalizeProps(h.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}},Bd={};function Md(i,e){const t=h.resolveComponent("el-card");return h.openBlock(),h.createBlock(t,null,{default:h.withCtx(()=>[h.renderSlot(i.$slots,"content")]),_:3})}const Td=Se._export_sfc(Bd,[["render",Md]]),Dd={class:"extra-button-content"},Ed={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(i,{emit:e}){const t=i;h.ref(!1);const n=h.ref([]);h.ref([{label:"取消"},{label:"确认"}]);const s=r=>{var o;n.value=(o=r==null?void 0:r.filter(l=>(l==null?void 0:l.label)!==""&&(l==null?void 0:l.label)!=="操作"))==null?void 0:o.map(l=>({label:(l==null?void 0:l.label)??"",value:"",name:(l==null?void 0:l.prop)??""}))};return h.onMounted(()=>{s(t.columns)}),h.watch(()=>t.columns,()=>{s(t.columns)},{deep:!0,immediate:!0}),(r,o)=>(h.openBlock(),h.createElementBlock("div",Dd,[h.renderSlot(r.$slots,"headerButton",{},void 0,!0)]))}},Pd=Se._export_sfc(Ed,[["__scopeId","data-v-00ed78e9"]]),Rd={key:0},_d=h.defineComponent({__name:"recurseCol",props:{column:{type:Object,default:{}}},setup(i){return(e,t)=>{var l,a,u,c,f,d,p,m,g,b,v;const n=h.resolveComponent("svg-icon"),s=h.resolveComponent("el-tooltip"),r=h.resolveComponent("RecurseCol",!0),o=h.resolveComponent("el-table-column");return i.column.isHidden?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(o,{key:0,label:i.column.label,prop:i.column.prop,fixed:((l=i.column)==null?void 0:l.label)==="操作"?"right":(a=i.column)==null?void 0:a.fixed,align:((u=i.column)==null?void 0:u.align)??"left",sortable:((c=i.column)==null?void 0:c.label)==="操作"?!1:((f=i.column)==null?void 0:f.sortable)??!0,"show-overflow-tooltip":((d=i.column)==null?void 0:d.showOverflowTooltip)??!0,width:((p=i.column)==null?void 0:p.width)>80?80:(m=i.column)==null?void 0:m.width,"min-width":((g=i.column)==null?void 0:g.label)==="操作"?40:(b=i.column)==null?void 0:b.width,"class-name":(((v=i.column)==null?void 0:v.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:h.withCtx(()=>[i.column.label!=="操作"?(h.openBlock(),h.createElementBlock("span",Rd,h.toDisplayString(i.column.label),1)):(h.openBlock(),h.createBlock(s,{key:1,content:"操作",placement:"left-start",effect:"light"},{default:h.withCtx(()=>[h.createVNode(n,{name:"operate",style:{width:"15px",height:"15px"}})]),_:1}))]),default:h.withCtx(k=>[h.renderSlot(e.$slots,"content",{row:k.row,column:k.column,$index:k.$index,scope:k}),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.column.children,(C,O)=>(h.openBlock(),h.createBlock(r,{key:O,column:C},h.createSlots({_:2},[h.renderList(e.$slots,(A,x)=>({name:x,fn:h.withCtx(({row:w,slotData:L,item:N,column:E})=>[h.renderSlot(e.$slots,x,h.mergeProps({ref_for:!0},L??w,{item:N??C,slotData:L??w,row:w,column:E}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Ld=["title"],Nd=h.defineComponent({__name:"index",props:{column:{type:Object,default:{}},tableData:Array,isEditViewport:Boolean},emits:["handleColEditChange","handleColTypeChange"],setup(i,{emit:e}){const t=i,n=e,s=h.ref(null),r=h.computed(()=>{var f,d;return(d=(f=Jt.FormContent)==null?void 0:f.map(p=>({value:p==null?void 0:p.key,label:p==null?void 0:p.key})))==null?void 0:d.filter(p=>(p==null?void 0:p.value)!=="Upload")});h.watch(()=>t.column,f=>{s.value=K.cloneDeep(f)},{immediate:!0,deep:!0});const o=(f,d,p)=>{const m=p.property;return d[m]===f},l=(f,d)=>{if(!f)return K.ElMessage.warning("标签不能为空");n("handleColEditChange",f,d)},a=async(f,d)=>{await h.nextTick(),n("handleColTypeChange",f,d)},u=(f,d)=>f.reduce((p,m)=>{const g=m==null?void 0:m[d];return p[g]||(p[g]=[]),p[g].push(m),p},{}),c=f=>{var p;const d=u(t==null?void 0:t.tableData,f==null?void 0:f.prop);return f!=null&&f.filterable?(p=Object.keys(d))==null?void 0:p.map(m=>({text:m,value:m})):!1};return(f,d)=>{var g,b,v,k,C,O,A,x,w,L,N,E;const p=h.resolveComponent("svg-icon"),m=h.resolveComponent("el-table-column");return i.column.isTableColHidden?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(m,{key:0,label:i.column.label,prop:i.column.prop,fixed:((g=i.column)==null?void 0:g.label)==="操作"?"right":(b=i.column)==null?void 0:b.fixed,align:((v=i.column)==null?void 0:v.align)??"left",sortable:((k=i.column)==null?void 0:k.label)==="操作"?!1:((C=i.column)==null?void 0:C.sortable)??!1,filters:(O=i.column)!=null&&O.filterable?c(i.column):null,"filter-method":o,"show-overflow-tooltip":((A=i.column)==null?void 0:A.showOverflowTooltip)??!0,width:((x=i.column)==null?void 0:x.width)>80?80:(w=i.column)==null?void 0:w.width,"min-width":((L=i.column)==null?void 0:L.label)==="操作"?40:"auto","class-name":((N=i.column)==null?void 0:N.prop)==="operate"?"action":(((E=i.column)==null?void 0:E.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:h.withCtx(()=>[i.column.label!=="操作"?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[i.column.operable&&i.isEditViewport?(h.openBlock(),h.createBlock(bi,{key:0,value:s.value.label,appendShow:!0,class:"col-edit-input",onChange:d[1]||(d[1]=T=>l(T,i.column))},{append:h.withCtx(()=>{var T;return[h.createVNode(Os,{value:(T=i.column)==null?void 0:T.columnType,content:r.value,clearable:!1,placeholder:"类型",style:{width:"100%"},onChange:d[0]||(d[0]=M=>a(M,i.column))},null,8,["value","content"])]}),_:1},8,["value"])):(h.openBlock(),h.createElementBlock("span",{key:1,title:i.column.label},h.toDisplayString(i.column.label),9,Ld))],64)):h.renderSlot(f.$slots,"operateHeader",{key:1})]),"filter-icon":h.withCtx(()=>{var T,M,H,I;return[(T=i.column)!=null&&T.filterable&&((M=i.column)==null?void 0:M.label)!=="操作"?(h.openBlock(),h.createBlock(p,{key:0,name:(H=i.column)!=null&&H.filterable&&((I=i.column)==null?void 0:I.label)!=="操作"?"colFilter":"",class:"custom-filter-icon"},null,8,["name"])):(h.openBlock(),h.createBlock(p,{key:1,onClick:d[2]||(d[2]=h.withModifiers(()=>{},["stop"])),name:""}))]}),default:h.withCtx(T=>[h.renderSlot(f.$slots,"content",{row:T.row,column:T.column,$index:T.$index,scope:T}),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.column.children,(M,H)=>(h.openBlock(),h.createBlock(_d,{key:H,column:M},h.createSlots({_:2},[h.renderList(f.$slots,(I,te)=>({name:te,fn:h.withCtx(({row:ce,slotData:ne,item:y,column:ue})=>[h.renderSlot(f.$slots,te,h.mergeProps({ref_for:!0},ne??ce,{item:y??M,slotData:ne??ce,row:ce,column:ue}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","filters","show-overflow-tooltip","width","min-width","class-name"]))}}}),Vd={key:0,class:"status-wrap"},Id=h.defineComponent({__name:"index",props:{showTag:{type:Boolean,default:!1}},setup(i){return(e,t)=>{const n=h.resolveComponent("el-card");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(n,null,{header:h.withCtx(()=>[h.renderSlot(e.$slots,"header",{},void 0,!0)]),footer:h.withCtx(()=>[h.renderSlot(e.$slots,"footer",{},void 0,!0)]),default:h.withCtx(()=>[h.renderSlot(e.$slots,"content",{},void 0,!0)]),_:3}),i.showTag?(h.openBlock(),h.createElementBlock("div",Vd,[h.renderSlot(e.$slots,"status",{},void 0,!0)])):h.createCommentVNode("",!0)])}}}),$d=Se._export_sfc(Id,[["__scopeId","data-v-045b5525"]]),Fd={title:"拖动排序",class:"custom-drag-icon"},Wd={key:0},zd={style:{display:"flex",alignItems:"center"}},qd=["onClick"],Hd={key:0},Ud=["onClick"],jd=["onClick"],Kd={key:3,class:"table-content"},Gd={key:1,class:"table-card-wrap"},Xd={class:"card-header"},Yd=["title"],Qd=["title"],Jd=["title"],Zd={class:"card-footer"},ep={class:"table-bottom-wrap"},tp={style:{display:"flex",gap:"8px","flex-direction":"column","align-items":"start"}},np={__name:"index",props:{checkedColumns:Array,columns:Array,tableData:Array,pageObj:{type:Object,default:()=>{}},isCardViewport:Boolean,isEditViewport:Boolean,isClearSelection:Boolean,allowSelect:Boolean,extraButton:{type:Array,default:()=>[]},rowButton:{type:Array,default:()=>[]},cacheExtraButtons:{type:Array,default:()=>[]},summaryInfo:{type:Object,default:()=>{}},isShowPagination:{type:Boolean,default:!0},isShowEdit:{type:Boolean,default:!0},isMoveColumn:{type:Boolean,default:!0},isShowDelete:{type:Boolean,default:!0}},emits:["clickButton","handleColTypeChange","handleColEditChange","submitEditingTable","change","cellChange","selectChange","dbClickRow","fixRow","deleteRow","doSizeChange","doCurrentChange","buttonClick","contentClick","rowClick","preview"],setup(i,{emit:e}){const t=i;Jt.useModelComp(K.pinia);const n=h.ref(!1),s=h.ref(),r=h.ref(),o=h.reactive({x:0,y:0}),l=h.ref([]),a=h.ref([]),u=h.ref(0),c=h.ref(null),f=h.ref(null),d=h.ref(null),p=e,m=h.inject("contentRef");h.onMounted(()=>{var S;b=g(),l.value=t==null?void 0:t.columns,a.value=(S=t==null?void 0:t.tableData)==null?void 0:S.map(P=>{var U;let R={};for(let G in P)G!=="level"?R[G]=Kr(P[G])&&P[G]===0?(U=P[G])==null?void 0:U.toString():P[G]:R[G]=P[G];return R}),ze(),Qe(),document.addEventListener("click",O)});function g(){const S=new WeakSet,P=new MutationObserver(de),R=new WeakMap,U=[];function G(j){try{const Q=j.getBoundingClientRect(),ie=j.clientWidth||Q.width||1,J=Q.width/ie||1,q=parseFloat(getComputedStyle(j).zoom||"1");return q?J/q:J}catch{return 1}}function he(j){var J;if(!j||S.has(j))return;S.add(j);const Q=j.parentElement,ie=(J=j.closest(".el-scrollbar"))==null?void 0:J.querySelector(".el-scrollbar__wrap");!Q||!ie||j.addEventListener("pointerdown",q=>{q.preventDefault(),q.stopPropagation();try{j.setPointerCapture&&j.setPointerCapture(q.pointerId)}catch{}Q.classList.add("is-dragging");const re=G(Q),X=Q.clientWidth||1,pe=j.clientWidth||0,xe=Math.max(1,(X-pe)/re),ht=Math.max(1,(ie.scrollWidth||0)-(ie.clientWidth||0)),B=q.clientX,je=ie.scrollLeft,Ce=ht/xe,$=ke=>{const gr=(ke.clientX-B)/re;ie.scrollLeft=je+gr*Ce},Z=()=>{try{j.releasePointerCapture&&j.releasePointerCapture(q.pointerId)}catch{}j.removeEventListener("pointermove",$),j.removeEventListener("pointerup",Z),j.removeEventListener("pointercancel",Z),Q.classList.remove("is-dragging")};j.addEventListener("pointermove",$),j.addEventListener("pointerup",Z),j.addEventListener("pointercancel",Z)},!0)}function de(){document.querySelectorAll(".el-scrollbar").forEach(j=>{if(!j.closest(".el-table"))return;const Q=j.querySelector(".el-scrollbar__wrap"),ie=j.querySelector(".el-scrollbar__bar.is-horizontal");if(!Q||!ie)return;const J=Q.querySelector(".el-scrollbar__view")||Q.firstElementChild||Q,q=J.querySelector("table")||J.querySelector(".el-table__body")||J,re=q.scrollWidth,X=Q.clientWidth,pe=re-X>2;if(j.classList.toggle("has-x-scroll",pe),ie.style.display="",pe&&j.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(he),!R.has(Q)){const xe=new ResizeObserver(()=>{const ht=q&&q.scrollWidth||Q.scrollWidth,B=Q.clientWidth,je=ht-B>2;j.classList.toggle("has-x-scroll",je)});xe.observe(Q),q&&xe.observe(q),R.set(Q,xe),U.push(()=>xe.disconnect())}})}return de(),P.observe(document.body,{childList:!0,subtree:!0}),()=>{P.disconnect(),U.forEach(j=>{try{j()}catch{}}),U.length=0}}let b;h.onBeforeUnmount(()=>{b&&b(),document.removeEventListener("click",O),a.value=void 0,l.value=void 0,v.value&&clearTimeout(v.value)});const v=h.ref(null);h.watch(()=>t==null?void 0:t.isEditViewport,async S=>{var P;S&&((P=t==null?void 0:t.tableData)==null?void 0:P.length)>15&&(await h.nextTick(),v.value=setTimeout(()=>{const R=document.querySelectorAll(".el-table__body tr");R.length>0&&R[R.length-1].scrollIntoView({behavior:"smooth",block:"center"})},10))},{immediate:!0});const k=(S,P)=>{p("handleColEditChange",S,P)},C=(S,P)=>{p("handleColTypeChange",S,P)},O=S=>{var P,R,U;n.value=!1,t.isEditViewport&&m.value&&!((R=(P=c.value)==null?void 0:P.$el)!=null&&R.contains(S==null?void 0:S.target))&&((U=m.value)!=null&&U.contains(S==null?void 0:S.target))&&p("submitEditingTable")},A=h.computed(()=>{var S;return(S=t==null?void 0:t.extraButton)==null?void 0:S.filter(P=>{var R;return!((R=P==null?void 0:P.label)!=null&&R.includes("批量"))})}),x=h.computed(()=>{var S;return(S=t==null?void 0:t.extraButton)==null?void 0:S.filter(P=>{var R;return(R=P==null?void 0:P.label)==null?void 0:R.includes("批量")})}),w=h.ref(0),L=(S,P,R)=>{w.value=S==null?void 0:S.id},N=(S,P,R)=>{w.value=0},E=S=>{p("selectChange",S)},T=(S,P,R,U)=>h.computed(()=>{var he,de,j,Q,ie,J,q,re,X,pe;let G=S!=null&&S[P==null?void 0:P.prop]?((de=(he=S==null?void 0:S[P==null?void 0:P.prop])==null?void 0:he[0])==null?void 0:de.contents)??(S==null?void 0:S[P==null?void 0:P.prop]):((Q=(j=S==null?void 0:S[R==null?void 0:R.prop])==null?void 0:j[0])==null?void 0:Q.contents)??(S==null?void 0:S[R==null?void 0:R.prop])??((J=(ie=U==null?void 0:U[R==null?void 0:R.prop])==null?void 0:ie[0])==null?void 0:J.contents)??(U==null?void 0:U[R==null?void 0:R.prop])??((X=(re=S==null?void 0:S[(q=R==null?void 0:R.child)==null?void 0:q.prop])==null?void 0:re[0])==null?void 0:X.contents)??(S==null?void 0:S[(pe=R==null?void 0:R.child)==null?void 0:pe.prop]);return Array.isArray(G)&&!(G!=null&&G.every(xe=>typeof xe=="string"||typeof xe=="number"))?"查看":G}),M=(S,P,R,U)=>{var G,he,de,j;s.value=void 0,((G=R.innerText)!=null&&G.includes(".urdf")||(he=R.innerText)!=null&&he.includes(".stl")||(de=R.innerText)!=null&&de.includes(".obj")||(j=R.innerText)!=null&&j.includes(".STL"))&&(o.x=U.clientX,o.y=U.clientY,n.value=!0,s.value=R.innerText,r.value=S)},H=()=>{s.value&&p("preview",{row:s.value,rowData:r.value,type:"table"})},I=()=>{s.value&&p("rowClick",{row:s.value,rowData:r.value,type:"table"})},te=S=>{p("buttonClick",S)};h.watch(()=>t==null?void 0:t.tableData,()=>{var S;a.value=(S=t==null?void 0:t.tableData)==null?void 0:S.map(P=>{var U;let R={};for(let G in P)R[G]=Kr(P[G])&&P[G]===0?(U=P[G])==null?void 0:U.toString():P[G];return R})},{deep:!0});const ce=S=>pr(S),ne=(S,P,R)=>{p("clickButton",S,P,R)},y=S=>{p("doCurrentChange",S)},ue=(S,P)=>{p("dbClickRow",S)},fe=S=>{p("doSizeChange",S)},Ve=S=>{p("fixRow",S)},Ae=S=>{p("deleteRow",S)},De=(S,P,R,U)=>{p("contentClick",S,P,R,U)},ze=()=>{var P;const S=(P=c.value)==null?void 0:P.$el.querySelector(".el-table__header-wrapper tr");!S||!t.isMoveColumn||ut.Sortable.create(S,{animation:180,delay:0,handle:".is-drag .cell",onMove:R=>!R.related.classList.contains("is-not-drag"),onEnd:R=>{u.value++;const U=R.oldIndex-3,G=R.newIndex-3,he=l.value.splice(U,1)[0];l.value.splice(G,0,he),t.isMoveColumn&&h.nextTick(()=>{ze(),Qe()})}})},Ye=({column:S})=>S.label&&S.label.length>8?"long-header":"",Qe=()=>{var P;const S=(P=c.value)==null?void 0:P.$el.querySelector(".el-table__body-wrapper tbody");S&&new ut.Sortable(S,{animation:150,handle:".custom-drag-icon",ghostClass:"sortable-ghost",onEnd:({newIndex:R,oldIndex:U})=>{const G=[...a.value],[he]=G.splice(U,1);G.splice(U,0,he),a.value=G,h.nextTick(()=>{Qe()})}})},wt=S=>new Promise(P=>{const R=new FileReader;R.onloadend=()=>P(R.result),R.readAsDataURL(S)}),an=(S,P="file")=>{let R=S.split(","),U=R[0].match(/:(.*?);/)[1],G=U.split("/")[1],he=atob(R[1]),de=he.length,j=new Uint8Array(de);for(;de--;)j[de]=he.charCodeAt(de);return new File([j],`${P}.${G}`,{type:U})},hn=async S=>{const P=await wt(S);let R=an(P),U=new FormData;U.append("file",R);let G;return await _n.uploadFile(U).then(he=>{var de,j,Q,ie,J,q,re;G={url:(de=he.data.result)==null?void 0:de.url,name:(re=(Q=(j=he.data.result)==null?void 0:j.url)==null?void 0:Q.split("/"))==null?void 0:re[((q=(J=(ie=he.data.result)==null?void 0:ie.url)==null?void 0:J.split("/"))==null?void 0:q.length)-1]}}),G},cn=async S=>{var P;try{const R=S.clipboardData||(window==null?void 0:window.clipboardData),U=R.getData("text/plain");if(U===void 0)return;if(U.includes("<table")){S.preventDefault();const G=un(U);if(!G.length)return;const{rowIndex:he,columnIndex:de}=d.value||{rowIndex:0,columnIndex:0},j=[];if(G==null||G.forEach(Q=>{j.push(Q.length+de)}),(j==null?void 0:j.filter(Q=>{var ie;return Q>Object.keys((ie=a.value)==null?void 0:ie[0]).length}).length)>0){K.ElMessage({type:"warning",message:"所剩列数不够"});return}for(let Q=0;Q<G.length;Q++){const ie=G[Q],J=a.value[he+Q],q=K.cloneDeep(l.value).map(re=>re.prop);for(let re=0;re<ie.length&&de+re<q.length;re++){const X=q[de+re];(J==null?void 0:J[X])!==void 0&&(J[X]=ie[re]||"")}}}else{const G=R.getData("text/html");if(G===void 0)return;const de=new DOMParser().parseFromString(G,"text/html"),j=de.querySelectorAll("table");if((j==null?void 0:j.length)>0){S.preventDefault();const ie=j[0].querySelectorAll("tr"),J=[];for(const X of ie){const pe=X.querySelectorAll("td, th"),xe=[];for(const ht of pe){const B=ht.querySelectorAll("img");if(B.length>0)for(const je of B){const Ce=je.getAttribute("src");if(Ce&&Ce.startsWith("file:///")){const $=Ce.match(/base64,(.*)/);$&&xe.push({type:"image",content:`data:image/png;base64,${$[1]}`})}else Ce&&Ce.startsWith("data:")&&xe.push({type:"image",content:Ce})}else xe.push({type:"text",content:ht.textContent.trim()})}J.push(xe)}const{rowIndex:q,columnProp:re}=d.value||{rowIndex:0,columnIndex:0};if(Array.isArray(J)&&J.length){const X=[];J.forEach(xe=>{if(xe!=null&&xe.length){const ht={},B=t.columns;for(let je=0;je<(B==null?void 0:B.length);je++){const Ce=B[je],$=Ce==null?void 0:Ce.prop,Z=xe==null?void 0:xe[je],ke=Z==null?void 0:Z.content;ht[$]=ke}X.push(ht)}});let pe=K.cloneDeep(a.value);a.value.splice(q+1,0,...X)}}else{const Q=de.querySelectorAll("span");let ie="";if(Q.length===0){const J=(P=S.clipboardData)==null?void 0:P.items;ie=[];for(const q of J)if((q==null?void 0:q.type)==="image/png"){const re=await hn(q==null?void 0:q.getAsFile());ie.push(re)}else ie=S.clipboardData.getData("text/plain")}else for(const J of Q)ie=ie+J.textContent.trim();if(Array.isArray(ie)){S.preventDefault();const{rowIndex:J,columnProp:q}=d.value||{rowIndex:0,columnIndex:0},re={},X=a.value;X[J][q]=ie}}}}catch(R){console.error("粘贴失败:",R)}},un=S=>S.trim().split(/\r\n|\n|\r/).map(U=>U.trim()?U.split(" ").map(G=>G.replace(/^"(.*)"$/,"$1")):[""]),fn=S=>{var P;S&&(d.value={rowIndex:S==null?void 0:S.$index,columnIndex:S==null?void 0:S.cellIndex,columnProp:(P=S.column)==null?void 0:P.property})},St=({row:S,rowIndex:P})=>P%2===0?"default-row":"special-row",Kf=(S,P,R)=>{p("cellChange",P,R,S)},Gf=S=>S==null?void 0:S.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2}),Xf=S=>{const{columns:P,data:R}=S,U=[];return P.forEach((G,he)=>{var Q,ie;if(he===0){U[he]="合计";return}const de=G.property,j=(ie=(Q=t.columns)==null?void 0:Q.filter(J=>J==null?void 0:J.showSummary))==null?void 0:ie.map(J=>J.prop);if(j!=null&&j.includes(de)){const J=R==null?void 0:R.map(q=>Number(q[de]));if(J.every(q=>isNaN(q)))U[he]="N/A";else{const q=J.reduce((re,X)=>{const pe=Number(X);return isNaN(pe)?re:re+pe},0);U[he]=Gf(q),["price","sales","cost","profit"].includes(de)&&(U[he]="¥"+U[he])}}else U[he]=""}),U};h.watch(()=>t==null?void 0:t.isClearSelection,async S=>{var P;S&&(await h.nextTick(),(P=c.value)==null||P.clearSelection())},{immediate:!0});const mr=h.computed(()=>{var P,R;const S=(P=l.value)==null?void 0:P.find(U=>U==null?void 0:U.isMainKey);return S||((R=l.value)==null?void 0:R[0])});return(S,P)=>{var de,j,Q,ie,J;const R=h.resolveComponent("el-table-column"),U=h.resolveComponent("svg-icon"),G=h.resolveComponent("el-table"),he=h.resolveComponent("el-pagination");return h.openBlock(),h.createElementBlock("div",{class:"table-content-show",ref_key:"tableOuterRef",ref:f},[h.createVNode(Pd,{buttons:A.value,onButtonClick:te,columns:l.value},{headerButton:h.withCtx(()=>[h.renderSlot(S.$slots,"headerButton",{buttons:A.value,columns:l.value},void 0,!0)]),_:3},8,["buttons","columns"]),h.renderSlot(S.$slots,"viewport",{id:"excludeElementId"},void 0,!0),i.isCardViewport?(h.openBlock(),h.createElementBlock("div",Gd,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,q=>(h.openBlock(),h.createBlock($d,{key:q==null?void 0:q.id,showTag:!1},{header:h.withCtx(()=>{var re,X;return[h.createElementVNode("div",Xd,[h.createElementVNode("span",{title:q==null?void 0:q[(re=mr.value)==null?void 0:re.prop]},h.toDisplayString(q[(X=mr.value)==null?void 0:X.prop]),9,Yd)])]}),status:h.withCtx(()=>P[1]||(P[1]=[h.createTextVNode("已完成")])),content:h.withCtx(()=>{var re;return[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList((re=l.value)==null?void 0:re.filter(X=>{var pe;return(X==null?void 0:X.label)!=="操作"&&(X==null?void 0:X.prop)!==((pe=mr.value)==null?void 0:pe.prop)}),X=>(h.openBlock(),h.createElementBlock("div",{class:"card-content",key:X==null?void 0:X.prop},[h.createElementVNode("span",{title:X==null?void 0:X.label},[h.createTextVNode(h.toDisplayString(X==null?void 0:X.label),1),P[2]||(P[2]=h.createElementVNode("span",{style:{"margin-left":"3px"}},":",-1))],8,Qd),h.createElementVNode("span",{title:q==null?void 0:q[X==null?void 0:X.prop]},h.toDisplayString(q==null?void 0:q[X==null?void 0:X.prop]),9,Jd)]))),128))]}),footer:h.withCtx(()=>{var re,X;return[h.createElementVNode("div",Zd,[(re=i.rowButton)!=null&&re.find(pe=>(pe==null?void 0:pe.label)==="编辑")?(h.openBlock(),h.createBlock(U,{key:0,onClick:pe=>ne("编辑",q,{extra:{label:"编辑"}}),name:"card-edit",style:{width:"15px",height:"15px",color:"var(--ssComponent-theme-color)"}},null,8,["onClick"])):h.createCommentVNode("",!0),(X=i.rowButton)!=null&&X.find(pe=>(pe==null?void 0:pe.label)==="删除")?(h.openBlock(),h.createBlock(U,{key:1,onClick:pe=>ne("删除",q,{extra:{label:"删除"}}),name:"card-delete",style:{width:"15px",height:"15px",color:"#ff0000"}},null,8,["onClick"])):h.createCommentVNode("",!0)])]}),_:2},1024))),128))])):(h.openBlock(),h.createBlock(G,{border:!1,class:"table-wrap",data:a.value,"show-summary":(de=i.columns)==null?void 0:de.some(q=>q==null?void 0:q.showSummary),"sum-text":i.summaryInfo.text,"summary-method":Xf,stripe:"",style:{width:"100%","overflow-x":"auto"},"max-height":"600",ref_key:"tableRef",ref:c,"empty-text":"暂无数据",onCellContextmenu:M,onPaste:cn,onSelectionChange:E,onRowDblclick:ue,key:u.value,"row-class-name":St,"header-cell-class-name":Ye,onCellMouseEnter:L,onCellMouseLeave:N,onContextmenu:P[0]||(P[0]=h.withModifiers(()=>{},["prevent"])),"row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}},{default:h.withCtx(()=>{var q,re,X,pe,xe,ht;return[((q=i.columns)==null?void 0:q.length)>0&&i.allowSelect?(h.openBlock(),h.createBlock(R,{key:0,type:"selection",width:(re=i.columns)!=null&&re.some(B=>B==null?void 0:B.showSummary)?55:38,fixed:""},null,8,["width"])):h.createCommentVNode("",!0),h.createVNode(R,{"show-overflow-tooltip":!1,"min-width":12},{default:h.withCtx(({row:B,column:je,$index:Ce})=>[h.withDirectives(h.createElementVNode("span",Fd,[h.createVNode(U,{name:"drag",style:{width:"15px",height:"15px",cursor:"move"}})],512),[[h.vShow,(B==null?void 0:B.id)===w.value]])]),_:1}),!((X=i.tableData)!=null&&X.some(B=>B==null?void 0:B.children))&&((pe=i.columns)==null?void 0:pe.length)>0?(h.openBlock(),h.createBlock(R,{key:1,type:"index",label:"序号",width:60},h.createSlots({_:2},[i.isEditViewport?{name:"default",fn:h.withCtx(({row:B,column:je,$index:Ce})=>{var $,Z;return[Ce===(($=a.value)==null?void 0:$.length)-1&&((Z=i.cacheExtraButtons)!=null&&Z.some(ke=>(ke==null?void 0:ke.label)==="新增"))?h.renderSlot(S.$slots,"rowCreate",{key:0,row:B,index:Ce+1},void 0,!0):h.createCommentVNode("",!0)]}),key:"0"}:void 0]),1024)):h.createCommentVNode("",!0),(xe=i.tableData)!=null&&xe.some(B=>B==null?void 0:B.children)&&((ht=i.columns)==null?void 0:ht.length)>0?(h.openBlock(),h.createBlock(R,{key:2,type:"default","min-width":15,label:""},h.createSlots({_:2},[i.isEditViewport?{name:"default",fn:h.withCtx(({row:B,column:je,$index:Ce})=>{var $,Z;return[Ce===(($=a.value)==null?void 0:$.length)-1&&((Z=i.cacheExtraButtons)!=null&&Z.some(ke=>(ke==null?void 0:ke.label)==="新增"))?h.renderSlot(S.$slots,"rowCreate",{key:0,row:B,index:Ce+1},void 0,!0):h.createCommentVNode("",!0)]}),key:"0"}:void 0]),1024)):h.createCommentVNode("",!0),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.value,(B,je)=>{var Ce;return h.openBlock(),h.createElementBlock(h.Fragment,null,[(Ce=i.checkedColumns)!=null&&Ce.includes(B==null?void 0:B.label)?(h.openBlock(),h.createBlock(Nd,{key:0,tableData:a.value,column:B,isEditViewport:i.isEditViewport,onHandleColEditChange:k,onHandleColTypeChange:C},{operateHeader:h.withCtx(()=>[h.renderSlot(S.$slots,"operateCol",{},void 0,!0)]),content:h.withCtx(({row:$,item:Z,slotData:ke,scope:gr,column:An})=>{var Pl,Rl,_l;return[B!=null&&B.isExistChild?(h.openBlock(),h.createElementBlock("span",Wd,[h.createElementVNode("div",zd,[h.createVNode(U,{name:"TableLook",style:{width:"16px",height:"16px",color:"var(--vertical-menuitem-active-bg)",cursor:"pointer"},onClick:Re=>{var Zn;return De($!=null&&$[B==null?void 0:B.prop]?$==null?void 0:$[B==null?void 0:B.prop]:($==null?void 0:$[Z==null?void 0:Z.prop])??(ke==null?void 0:ke[Z==null?void 0:Z.prop])??($==null?void 0:$[(Zn=Z==null?void 0:Z.child)==null?void 0:Zn.prop]),Z==null?void 0:Z.prop,$??ke,{data:T($,B,Z,ke).value,isMainKey:B==null?void 0:B.isMainKey,isExistChild:B==null?void 0:B.isExistChild,columnType:B,rowContent:$})}},null,8,["onClick"])])])):h.createCommentVNode("",!0),((B==null?void 0:B.type)??"text")==="text"&&(($==null?void 0:$.tableEditType)??"text")==="text"&&!(B!=null&&B.isExistChild)?(h.openBlock(),h.createElementBlock("span",{key:1,class:"table-content",style:h.normalizeStyle({cursor:B!=null&&B.isMainKey?"pointer":"default",color:B!=null&&B.isMainKey?"var(--vertical-menuitem-active-bg)":"",textDecoration:B!=null&&B.isMainKey?"underline":""}),onClick:Re=>{var Zn;return De($!=null&&$[B==null?void 0:B.prop]?$==null?void 0:$[B==null?void 0:B.prop]:($==null?void 0:$[Z==null?void 0:Z.prop])??(ke==null?void 0:ke[Z==null?void 0:Z.prop])??($==null?void 0:$[(Zn=Z==null?void 0:Z.child)==null?void 0:Zn.prop]),Z==null?void 0:Z.prop,$??ke,{data:T($,B,Z,ke).value,isMainKey:B==null?void 0:B.isMainKey})}},[S.$slots.content?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[((Pl=i.columns)==null?void 0:Pl.findIndex(Re=>(Re==null?void 0:Re.prop)===(B==null?void 0:B.prop)))>=(($==null?void 0:$.level)??-1)?(h.openBlock(),h.createElementBlock("div",Hd,[h.renderSlot(S.$slots,"content",{row:$,column:B,colIndex:je,item:Z,slotData:ke},void 0,!0)])):h.createCommentVNode("",!0)],64)):((Rl=i.columns)==null?void 0:Rl.findIndex(Re=>(Re==null?void 0:Re.prop)===(B==null?void 0:B.prop)))>=(($==null?void 0:$.level)??-1)?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createTextVNode(h.toDisplayString(T($,B,Z,ke)),1)],64)):h.createCommentVNode("",!0)],12,qd)):h.createCommentVNode("",!0),((B==null?void 0:B.type)??"text")==="operate"&&!(B!=null&&B.isExistChild)?(h.openBlock(),h.createElementBlock("span",{key:2,class:"table-operate",style:h.normalizeStyle({justifyContent:i.isShowEdit&&i.isShowDelete?"space-between":B==null?void 0:B.align})},[h.renderSlot(S.$slots,"actions",{item:$},void 0,!0),i.isShowEdit?(h.openBlock(),h.createElementBlock("span",{key:0,onClick:Re=>Ve($),class:"blue-table-operate table-operate-content"},"编辑",8,Ud)):h.createCommentVNode("",!0),i.isShowDelete?(h.openBlock(),h.createElementBlock("span",{key:1,onClick:Re=>Ae($),class:"red-table-operate table-operate-content"},"删除",8,jd)):h.createCommentVNode("",!0)],4)):h.createCommentVNode("",!0),((B==null?void 0:B.type)??"text")==="edit"&&(($==null?void 0:$.tableEditType)??"text")!=="edit"||((B==null?void 0:B.type)??"text")==="text"&&(($==null?void 0:$.tableEditType)??"text")==="edit"&&!(B!=null&&B.isExistChild)?(h.openBlock(),h.createElementBlock("span",Kd,[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(ce($!=null&&$[B==null?void 0:B.prop]&&Array.isArray($[B.prop])&&((_l=$[B.prop])!=null&&_l.every(Re=>typeof Re=="Object"))?"Upload":(B==null?void 0:B.columnType)===""||!(B!=null&&B.columnType)?"Input":B==null?void 0:B.columnType)),{modelValue:$[An==null?void 0:An.property],"onUpdate:modelValue":Re=>$[An==null?void 0:An.property]=Re,style:{height:"100%"},content:(B==null?void 0:B.contents)??[],optionUrl:B==null?void 0:B.optionUrl,onFocus:Re=>fn(gr),onChange:Re=>Kf(Re,$,B)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","onFocus","onChange"]))])):h.createCommentVNode("",!0)]}),_:2},1032,["tableData","column","isEditViewport"])):h.createCommentVNode("",!0)],64)}),256))]}),_:3},8,["data","show-summary","sum-text"])),h.createElementVNode("div",ep,[i.isCardViewport?h.createCommentVNode("",!0):h.renderSlot(S.$slots,"batchButton",{key:0,buttons:x.value,columns:l.value},void 0,!0),t!=null&&t.isShowPagination&&i.tableData.length>0?(h.openBlock(),h.createBlock(he,{key:1,onSizeChange:fe,onCurrentChange:y,"current-page":((j=i.pageObj)==null?void 0:j.currentPage)??1,"page-sizes":(Q=i.pageObj)==null?void 0:Q.pageSizes,"page-size":((ie=i.pageObj)==null?void 0:ie.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((J=i.pageObj)==null?void 0:J.total)??0},null,8,["current-page","page-sizes","page-size","total"])):h.createCommentVNode("",!0)]),h.withDirectives(h.createVNode(Td,{style:h.normalizeStyle({top:o.y+"px",left:o.x+"px",position:"fixed",zIndex:999})},{content:h.withCtx(()=>[h.createElementVNode("div",tp,[h.createVNode($t._sfc_main,{emptyColor:!0,onClickTrigger:I,modelValue:"弹出模型",buttonType:""}),h.createVNode($t._sfc_main,{emptyColor:!0,onClickTrigger:H,modelValue:"预览",buttonType:""})])]),_:1},8,["style"]),[[h.vShow,n.value]])],512)}}},qh=Se._export_sfc(np,[["__scopeId","data-v-b7a1020c"]]),ip={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["dbChange"],setup(i,{emit:e}){const t=i,n=h.ref([]);h.watch(()=>{var o;return(o=t==null?void 0:t.content)==null?void 0:o.tableData},()=>{var o,l,a,u;((l=(o=t==null?void 0:t.content)==null?void 0:o.tableData)==null?void 0:l.length)===0||!((a=t==null?void 0:t.content)!=null&&a.tableData)||(n.value=K.cloneDeep((u=t==null?void 0:t.content)==null?void 0:u.tableData))},{deep:!0,immediate:!0});const s=e,r=o=>{var c,f,d,p;if(((c=t==null?void 0:t.content)==null?void 0:c.dbType)!=="edit"||!n.value||((f=n.value)==null?void 0:f.length)===0)return;let l=n.value,a=[];((d=l==null?void 0:l.filter(m=>(m==null?void 0:m.tableEditType)==="edit"))==null?void 0:d.length)!==(((p=t==null?void 0:t.content)==null?void 0:p.editNumber)??1)&&(l=l==null?void 0:l.map(m=>((m==null?void 0:m.id)===(o==null?void 0:o.id)&&(m.tableEditType="edit",a.push(m)),m)),s("dbChange",{content:l,item:a}))};return(o,l)=>{var a,u,c,f,d,p,m;return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.renderSlot(o.$slots,`${(a=t==null?void 0:t.content)==null?void 0:a.value}_tableHeader`),(h.openBlock(),h.createBlock(qh,{columns:((u=t==null?void 0:t.content)==null?void 0:u.columns)??[],tableData:n.value??[],currentPage:(c=t==null?void 0:t.content)==null?void 0:c.currentPage,total:(f=t==null?void 0:t.content)==null?void 0:f.total,pageSize:(d=t==null?void 0:t.content)==null?void 0:d.pageSize,isShowPagination:(p=t==null?void 0:t.content)==null?void 0:p.isShowPagination,isShowEdit:!1,isMoveColumn:(m=t==null?void 0:t.content)==null?void 0:m.isMoveColumn,isShowDelete:!1,onDoClickRow:r,key:n.value??[]},{actions:h.withCtx(({item:g})=>{var b;return[h.renderSlot(o.$slots,`${(b=t==null?void 0:t.content)==null?void 0:b.value}_action`,{item:g})]}),_:3},8,["columns","tableData","currentPage","total","pageSize","isShowPagination","isMoveColumn"]))],64)}}},sp=h.defineComponent({__name:"index",props:{value:String,config:Object,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["changeVisible"],setup(i,{emit:e}){const t=i,n=h.ref(t.value),s=e,r=h.ref({checkStrictly:!0}),o=l=>{s("changeVisible",l)};return(l,a)=>{const u=h.resolveComponent("el-cascader");return h.openBlock(),h.createBlock(u,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=c=>n.value=c),clearable:"",props:r.value,options:t==null?void 0:t.content,style:{width:"100%"},onVisibleChange:o},null,8,["modelValue","props","options"])}}}),rp={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-option"),o=h.resolveComponent("el-select");return h.openBlock(),h.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=l=>t.value=l),filterable:"",multiple:"",clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e==null?void 0:e.content,l=>(h.openBlock(),h.createBlock(r,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},op=h.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(i,{emit:e}){const t=e,n=o=>{t("clickMenu",o)},s=o=>{t("openMenu",o)},r=o=>{t("closeMenu",o)};return h.onMounted(()=>{}),(o,l)=>{const a=h.resolveComponent("MenuItem",!0),u=h.resolveComponent("el-sub-menu"),c=h.resolveComponent("el-menu-item");return h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.menuList,f=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[f.show&&f.children&&f.children.length>0?(h.openBlock(),h.createBlock(u,{index:f.path,key:f.path},{title:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:f.icon??((f==null?void 0:f.level)<=2?"default":""),class:"menu-icon"},null,8,["name"]),h.renderSlot(o.$slots,"title",{menu:f})]),default:h.withCtx(()=>[h.createVNode(a,{menuList:f.children,onClickMenu:n,onOpenMenu:s,onCloseMenu:r},h.createSlots({_:2},[h.renderList(o.$slots,(d,p)=>({name:p,fn:h.withCtx(m=>[h.renderSlot(o.$slots,p,h.mergeProps({ref_for:!0},m))])}))]),1032,["menuList"])]),_:2},1032,["index"])):f.show?(h.openBlock(),h.createBlock(c,{index:f.path,key:f.path,onClick:d=>n(f)},{title:h.withCtx(()=>[h.renderSlot(o.$slots,"title",{menu:f})]),default:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:f.icon??((f==null?void 0:f.level)<=2?"default":""),class:"menu-icon"},null,8,["name"])]),_:2},1032,["index","onClick"])):h.createCommentVNode("",!0)],64))),256)}}}),lp=h.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"},isCollapse:Boolean},emits:["clickMenu","openMenu","closeMenu"],setup(i,{emit:e}){const t=Jt.useMenuState(K.pinia),{activeMenuPath:n,activeMenuOpenPaths:s,activeTopMenuPath:r}=K.storeToRefs(t),o=Jt.useModelComp(K.pinia),{routeToChildPath:l}=K.storeToRefs(o),a=i,u=e,c=g=>{u("clickMenu",g)},f=g=>{u("openMenu",g)},d=g=>{u("closeMenu",g)},p=h.computed(()=>l.value?(a==null?void 0:a.mode)==="vertical"?l.value:r.value:(a==null?void 0:a.mode)==="vertical"?n.value:r.value),m=h.computed(()=>s.value);return(g,b)=>{const v=h.resolveComponent("el-sub-menu"),k=h.resolveComponent("el-menu-item"),C=h.resolveComponent("el-menu");return h.openBlock(),h.createBlock(C,{class:"menu-wrap",mode:i.mode,"default-active":p.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,ellipsis:!0,collapse:i.isCollapse,onOpen:f,onClose:d},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.menuList,O=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[O.show&&O.children&&O.children.length>0?(h.openBlock(),h.createBlock(v,{index:O.path,key:O.path,style:h.normalizeStyle(O.style)},{title:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:O.icon??((O==null?void 0:O.level)<=2?"default":""),class:"menu-icon"},null,8,["name"]),h.renderSlot(g.$slots,"title",{menu:O},void 0,!0)]),default:h.withCtx(()=>[h.createVNode(op,{menuList:O.children,onClickMenu:c},h.createSlots({_:2},[h.renderList(g.$slots,(A,x)=>({name:x,fn:h.withCtx(w=>[h.renderSlot(g.$slots,x,h.mergeProps({ref_for:!0},w),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index","style"])):O.show?(h.openBlock(),h.createBlock(k,{index:O.path,key:O.path,style:h.normalizeStyle(O.style),onClick:A=>c(O)},{title:h.withCtx(()=>[h.renderSlot(g.$slots,"title",{menu:O},void 0,!0)]),default:h.withCtx(()=>[h.createVNode(zn.SvgIcon,{name:O.icon??((O==null?void 0:O.level)<=2?"default":""),class:"menu-icon"},null,8,["name"])]),_:2},1032,["index","style","onClick"])):h.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds","collapse"])}}}),Hh=Se._export_sfc(lp,[["__scopeId","data-v-676ab5e5"]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:Hh},Symbol.toStringTag,{value:"Module"})),hp={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-date-picker");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),type:"date",placeholder:"请选择日期",format:"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])}}},cp={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-date-picker");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),type:"datetime",placeholder:"请选择时间",format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}},null,8,["modelValue"])}}},up={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(i){const e=i,t=h.ref(e.value);return(n,s)=>{const r=h.resolveComponent("el-input");return h.openBlock(),h.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o),type:"textarea",placeholder:"请输入内容...",disabled:!(e!=null&&e.isEdit),autosize:""},null,8,["modelValue","disabled"])}}},fp=Se._export_sfc(up,[["__scopeId","data-v-0e84be38"]]);function Uh(i){const e=sessionStorage.getItem("loginToken")??"123456";return K.service({url:"/api/sysFile/uploadFile",method:"post",data:i,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function dp(i){return K.service({url:"/api/sysFile/delete",method:"post",data:i})}const pp={class:"docx-renderer"},mp={__name:"index",props:{fileName:String,blobUrl:String},setup(i){const e=i,t=h.computed(()=>e.blobUrl),n=h.ref(null);return h.watchEffect(async()=>{t.value;const r=await(await fetch(t.value)).blob();await ut.renderAsync(r,n.value,null,{ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!0,experimental:!0,className:"docx",inWrapper:!0,hideWrapperOnPrint:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1,renderAltChunks:!0})}),(s,r)=>(h.openBlock(),h.createElementBlock("div",pp,[h.createElementVNode("div",{ref_key:"docxPreview",ref:n,class:"render-docx-wrappper"},null,512)]))}},gp=Se._export_sfc(mp,[["__scopeId","data-v-4b92a534"]]),yp={class:"xlsx-renderer"},bp={__name:"index",props:{fileName:String,blobUrl:String},setup(i){const e=i,t=h.computed(()=>e.blobUrl),n=h.ref(null);return h.watchEffect(async()=>{t.value;const r=await(await fetch(t.value)).blob();n.value=ut.Hg.init(document.getElementById("excel")),n.value.preview(r).then(()=>{console.log("预览完成")}).catch(o=>{console.log("预览失败",o)})}),(s,r)=>(h.openBlock(),h.createElementBlock("div",yp,r[0]||(r[0]=[h.createElementVNode("div",{id:"excel"},null,-1)])))}},vp=Se._export_sfc(bp,[["__scopeId","data-v-08dbfb73"]]),xp={class:"pdf-renderer"},kp=["src"],wp={__name:"index",props:{fileName:String,blobUrl:String},setup(i){const e=i,t=h.computed(()=>e.blobUrl),n=h.ref("");return h.watchEffect(async()=>{t.value;const r=await(await fetch(t.value)).blob(),o=new Blob([r],{type:"application/pdf"}),l=URL.createObjectURL(o);n.value=l}),h.onUnmounted(()=>{n.value&&URL.revokeObjectURL(n.value)}),(s,r)=>(h.openBlock(),h.createElementBlock("div",xp,[h.createElementVNode("iframe",{src:n.value,class:"pdf-iframe"},null,8,kp)]))}},Sp=Se._export_sfc(wp,[["__scopeId","data-v-b4ab8c04"]]);let Gr=[],jh=[];(()=>{let i="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<i.length;e++)(e%2?jh:Gr).push(t=t+i[e])})();function Cp(i){if(i<768)return!1;for(let e=0,t=Gr.length;;){let n=e+t>>1;if(i<Gr[n])t=n;else if(i>=jh[n])e=n+1;else return!0;if(e==t)return!1}}function Il(i){return i>=127462&&i<=127487}const $l=8205;function Op(i,e,t=!0,n=!0){return(t?Kh:Ap)(i,e,n)}function Kh(i,e,t){if(e==i.length)return e;e&&Gh(i.charCodeAt(e))&&Xh(i.charCodeAt(e-1))&&e--;let n=yr(i,e);for(e+=Fl(n);e<i.length;){let s=yr(i,e);if(n==$l||s==$l||t&&Cp(s))e+=Fl(s),n=s;else if(Il(s)){let r=0,o=e-2;for(;o>=0&&Il(yr(i,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Ap(i,e,t){for(;e>0;){let n=Kh(i,e-2,t);if(n<e)return n;e--}return 0}function yr(i,e){let t=i.charCodeAt(e);if(!Xh(t)||e+1==i.length)return t;let n=i.charCodeAt(e+1);return Gh(n)?(t-55296<<10)+(n-56320)+65536:t}function Gh(i){return i>=56320&&i<57344}function Xh(i){return i>=55296&&i<56320}function Fl(i){return i<65536?1:2}class ae{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=qn(this,e,t);let s=[];return this.decompose(0,e,s,2),n.length&&n.decompose(0,n.length,s,3),this.decompose(t,this.length,s,1),Mt.from(s,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=qn(this,e,t);let n=[];return this.decompose(e,t,n,0),Mt.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),s=new ui(this),r=new ui(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=n)return!0}}iter(e=1){return new ui(this,e)}iterRange(e,t=this.length){return new Yh(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;n=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Qh(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ae.empty:e.length<=32?new Oe(e):Mt.from(Oe.split(e,[]))}}class Oe extends ae{constructor(e,t=Bp(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?n:l)>=e)return new Mp(s,l,n,o);s=l+1,n++}}decompose(e,t,n,s){let r=e<=0&&t>=this.length?this:new Oe(Wl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=n.pop(),l=ds(r.text,o.text.slice(),0,r.length);if(l.length<=32)n.push(new Oe(l,o.length+r.length));else{let a=l.length>>1;n.push(new Oe(l.slice(0,a)),new Oe(l.slice(a)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof Oe))return super.replace(e,t,n);[e,t]=qn(this,e,t);let s=ds(this.text,ds(n.text,Wl(this.text,0,e)),t),r=this.length+n.length-(t-e);return s.length<=32?new Oe(s,r):Mt.from(Oe.split(s,[]),r)}sliceString(e,t=this.length,n=`
2
2
  `){[e,t]=qn(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>e&&o&&(s+=n),e<a&&t>r&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],s=-1;for(let r of e)n.push(r),s+=r.length+1,n.length==32&&(t.push(new Oe(n,s)),n=[],s=-1);return s>-1&&t.push(new Oe(n,s)),t}}class Mt extends ae{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=n+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,n,s);s=l+1,n=a+1}}decompose(e,t,n,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(e<=a&&t>=o){let u=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!u?n.push(l):l.decompose(e-o,t-o,n,u)}o=a+1}}replace(e,t,n){if([e,t]=qn(this,e,t),n.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],l=r+o.length;if(e>=r&&t<=l){let a=o.replace(e-r,t-r,n),u=this.lines-o.lines+a.lines;if(a.lines<u>>4&&a.lines>u>>6){let c=this.children.slice();return c[s]=a,new Mt(c,this.length-(t-e)+n.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
3
3
  `){[e,t]=qn(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let l=this.children[r],a=o+l.length;o>e&&r&&(s+=n),e<a&&t>o&&(s+=l.sliceString(e-o,t-o,n)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Mt))return 0;let n=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return n;let a=this.children[s],u=e.children[r];if(a!=u)return n+a.scanIdentical(u,t);n+=a.length+1}}static from(e,t=e.reduce((n,s)=>n+s.length+1,-1)){let n=0;for(let p of e)n+=p.lines;if(n<32){let p=[];for(let m of e)m.flatten(p);return new Oe(p,t)}let s=Math.max(32,n>>5),r=s<<1,o=s>>1,l=[],a=0,u=-1,c=[];function f(p){let m;if(p.lines>r&&p instanceof Mt)for(let g of p.children)f(g);else p.lines>o&&(a>o||!a)?(d(),l.push(p)):p instanceof Oe&&a&&(m=c[c.length-1])instanceof Oe&&p.lines+m.lines<=32?(a+=p.lines,u+=p.length+1,c[c.length-1]=new Oe(m.text.concat(p.text),m.length+1+p.length)):(a+p.lines>s&&d(),a+=p.lines,u+=p.length+1,c.push(p))}function d(){a!=0&&(l.push(c.length==1?c[0]:Mt.from(c,u)),u=-1,a=c.length=0)}for(let p of e)f(p);return d(),l.length==1?l[0]:new Mt(l,t)}}ae.empty=new Oe([""],0);function Bp(i){let e=-1;for(let t of i)e+=t.length+1;return e}function ds(i,e,t=0,n=1e9){for(let s=0,r=0,o=!0;r<i.length&&s<=n;r++){let l=i[r],a=s+l.length;a>=t&&(a>n&&(l=l.slice(0,n-s)),s<t&&(l=l.slice(t-s)),o?(e[e.length-1]+=l,o=!1):e.push(l)),s=a+1}return e}function Wl(i,e,t){return ds(i,[""],e,t)}class ui{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Oe?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,s=this.nodes[n],r=this.offsets[n],o=r>>1,l=s instanceof Oe?s.text.length:s.children.length;if(o==(t>0?l:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;e--}else if(s instanceof Oe){let a=s.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof Oe?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Yh{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new ui(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=n?s:t<0?s.slice(s.length-n):s.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Qh{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ae.prototype[Symbol.iterator]=function(){return this.iter()},ui.prototype[Symbol.iterator]=Yh.prototype[Symbol.iterator]=Qh.prototype[Symbol.iterator]=function(){return this});class Mp{constructor(e,t,n,s){this.from=e,this.to=t,this.number=n,this.text=s}get length(){return this.to-this.from}}function qn(i,e,t){return e=Math.max(0,Math.min(i.length,e)),[e,Math.max(e,Math.min(i.length,t))]}function Fe(i,e,t=!0,n=!0){return Op(i,e,t,n)}function Tp(i){return i>=56320&&i<57344}function Dp(i){return i>=55296&&i<56320}function Ze(i,e){let t=i.charCodeAt(e);if(!Dp(t)||e+1==i.length)return t;let n=i.charCodeAt(e+1);return Tp(n)?(t-55296<<10)+(n-56320)+65536:t}function Ko(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode((i>>10)+55296,(i&1023)+56320))}function Tt(i){return i<65536?1:2}const Xr=/\r\n?|\n/;var Ke=function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i}(Ke||(Ke={}));class Rt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(n,s,r),s+=r):s+=o,n+=r}}iterChangedRanges(e,t=!1){Yr(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],s=this.sections[t++];s<0?e.push(n,s):e.push(s,n)}return new Rt(e)}composeDesc(e){return this.empty?e:e.empty?this:Jh(this,e)}mapDesc(e,t=!1){return e.empty?this:Qr(this,e,t)}mapPos(e,t=-1,n=Ke.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],u=s+l;if(a<0){if(u>e)return r+(e-s);r+=l}else{if(n!=Ke.Simple&&u>=e&&(n==Ke.TrackDel&&s<e&&u>e||n==Ke.TrackBefore&&s<e||n==Ke.TrackAfter&&u>e))return null;if(u>e||u==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=u}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let n=0,s=0;n<this.sections.length&&s<=t;){let r=this.sections[n++],o=this.sections[n++],l=s+r;if(o>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+n+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Rt(e)}static create(e){return new Rt(e)}}class Ee extends Rt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Yr(this,(t,n,s,r,o)=>e=e.replace(s,s+(n-t),o),!1),e}mapDesc(e,t=!1){return Qr(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let s=0,r=0;s<t.length;s+=2){let o=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;n.length<a;)n.push(ae.empty);n.push(o?e.slice(r,r+o):ae.empty)}r+=o}return new Ee(t,n)}compose(e){return this.empty?e:e.empty?this:Jh(this,e,!0)}map(e,t=!1){return e.empty?this:Qr(this,e,t,!0)}iterChanges(e,t=!1){Yr(this,e,t)}get desc(){return Rt.create(this.sections)}filter(e){let t=[],n=[],s=[],r=new vi(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break e;let c=Math.min(r.len,a-l);qe(s,c,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;qe(t,c,f),f>0&&Gt(n,t,r.text),r.forward(c),l+=c}let u=e[o++];for(;l<u;){if(r.done)break e;let c=Math.min(r.len,u-l);qe(t,c,-1),qe(s,c,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(c),l+=c}}return{changes:new Ee(t,n),filtered:Rt.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],s=this.sections[t+1];s<0?e.push(n):s==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let s=[],r=[],o=0,l=null;function a(c=!1){if(!c&&!s.length)return;o<t&&qe(s,t-o,-1);let f=new Ee(s,r);l=l?l.compose(f.map(l)):f,s=[],r=[],o=0}function u(c){if(Array.isArray(c))for(let f of c)u(f);else if(c instanceof Ee){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:d=f,insert:p}=c;if(f>d||f<0||d>t)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${t})`);let m=p?typeof p=="string"?ae.of(p.split(n||Xr)):p:ae.empty,g=m.length;if(f==d&&g==0)return;f<o&&a(),f>o&&qe(s,f-o,-1),qe(s,d-f,g),Gt(r,s,m),o=d}}return u(e),a(!l),l}static empty(e){return new Ee(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number")t.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;n.length<s;)n.push(ae.empty);n[s]=ae.of(r.slice(1)),t.push(r[0],n[s].length)}}}return new Ee(t,n)}static createSet(e,t){return new Ee(e,t)}}function qe(i,e,t,n=!1){if(e==0&&t<=0)return;let s=i.length-2;s>=0&&t<=0&&t==i[s+1]?i[s]+=e:s>=0&&e==0&&i[s]==0?i[s+1]+=t:n?(i[s]+=e,i[s+1]+=t):i.push(e,t)}function Gt(i,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n<i.length)i[i.length-1]=i[i.length-1].append(t);else{for(;i.length<n;)i.push(ae.empty);i.push(t)}}function Yr(i,e,t){let n=i.inserted;for(let s=0,r=0,o=0;o<i.sections.length;){let l=i.sections[o++],a=i.sections[o++];if(a<0)s+=l,r+=l;else{let u=s,c=r,f=ae.empty;for(;u+=l,c+=a,a&&n&&(f=f.append(n[o-2>>1])),!(t||o==i.sections.length||i.sections[o+1]<0);)l=i.sections[o++],a=i.sections[o++];e(s,u,r,c,f),s=u,r=c}}}function Qr(i,e,t,n=!1){let s=[],r=n?[]:null,o=new vi(i),l=new vi(e);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let u=Math.min(o.len,l.len);qe(s,u,-1),o.forward(u),l.forward(u)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!t))){let u=l.len;for(qe(s,l.ins,-1);u;){let c=Math.min(o.len,u);o.ins>=0&&a<o.i&&o.len<=c&&(qe(s,0,o.ins),r&&Gt(r,s,o.text),a=o.i),o.forward(c),u-=c}l.next()}else if(o.ins>=0){let u=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);u+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;qe(s,u,a<o.i?o.ins:0),r&&a<o.i&&Gt(r,s,o.text),a=o.i,o.forward(o.len-c)}else{if(o.done&&l.done)return r?Ee.createSet(s,r):Rt.create(s);throw new Error("Mismatched change set lengths")}}}function Jh(i,e,t=!1){let n=[],s=t?[]:null,r=new vi(i),o=new vi(e);for(let l=!1;;){if(r.done&&o.done)return s?Ee.createSet(n,s):Rt.create(n);if(r.ins==0)qe(n,r.len,0,l),r.next();else if(o.len==0&&!o.done)qe(n,0,o.ins,l),s&&Gt(s,n,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(r.len2,o.len),u=n.length;if(r.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;qe(n,a,c,l),s&&c&&Gt(s,n,o.text)}else o.ins==-1?(qe(n,r.off?0:r.len,a,l),s&&Gt(s,n,r.textBit(a))):(qe(n,r.off?0:r.len,o.off?0:o.ins,l),s&&!o.off&&Gt(s,n,o.text));l=(r.ins>a||o.ins>=0&&o.len>a)&&(l||n.length>u),r.forward2(a),o.forward(a)}}}}class vi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?ae.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?ae.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class gn{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let n,s;return this.empty?n=s=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),n==this.from&&s==this.to?this:new gn(n,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return D.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return D.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return D.range(e.anchor,e.head)}static create(e,t,n){return new gn(e,t,n)}}class D{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:D.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new D([this.main],0)}addRange(e,t=!0){return D.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,D.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new D(e.ranges.map(t=>gn.fromJSON(t)),e.main)}static single(e,t=e){return new D([D.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,s=0;s<e.length;s++){let r=e[s];if(r.empty?r.from<=n:r.from<n)return D.normalized(e.slice(),t);n=r.to}return new D(e,t)}static cursor(e,t=0,n,s){return gn.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(s??16777215)<<6)}static range(e,t,n,s){let r=(n??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?gn.create(t,e,48|r):gn.create(e,t,(t>e?8:0)|r)}static normalized(e,t=0){let n=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(n);for(let s=1;s<e.length;s++){let r=e[s],o=e[s-1];if(r.empty?r.from<=o.to:r.from<o.to){let l=o.from,a=Math.max(r.to,o.to);s<=t&&t--,e.splice(--s,2,r.anchor>r.head?D.range(a,l):D.range(l,a))}}return new D(e,t)}}function Zh(i,e){for(let t of i.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Go=0;class z{constructor(e,t,n,s,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=s,this.id=Go++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new z(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:Xo),!!e.static,e.enables)}of(e){return new ps([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ps(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ps(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function Xo(i,e){return i==e||i.length==e.length&&i.every((t,n)=>t===e[n])}class ps{constructor(e,t,n,s){this.dependencies=e,this.facet=t,this.type=n,this.value=s,this.id=Go++}dynamicSlot(e){var t;let n=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,u=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?u=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=n(f),1},update(f,d){if(a&&d.docChanged||u&&(d.docChanged||d.selection)||Jr(f,c)){let p=n(f);if(l?!zl(p,f.values[o],s):!s(p,f.values[o]))return f.values[o]=p,1}return 0},reconfigure:(f,d)=>{let p,m=d.config.address[r];if(m!=null){let g=Bs(d,m);if(this.dependencies.every(b=>b instanceof z?d.facet(b)===f.facet(b):b instanceof We?d.field(b,!1)==f.field(b,!1):!0)||(l?zl(p=n(f),g,s):s(p=n(f),g)))return f.values[o]=g,0}else p=n(f);return f.values[o]=p,1}}}}function zl(i,e,t){if(i.length!=e.length)return!1;for(let n=0;n<i.length;n++)if(!t(i[n],e[n]))return!1;return!0}function Jr(i,e){let t=!1;for(let n of e)fi(i,n)&1&&(t=!0);return t}function Ep(i,e,t){let n=t.map(a=>i[a.id]),s=t.map(a=>a.type),r=n.filter(a=>!(a&1)),o=i[e.id]>>1;function l(a){let u=[];for(let c=0;c<n.length;c++){let f=Bs(a,n[c]);if(s[c]==2)for(let d of f)u.push(d);else u.push(f)}return e.combine(u)}return{create(a){for(let u of n)fi(a,u);return a.values[o]=l(a),1},update(a,u){if(!Jr(a,r))return 0;let c=l(a);return e.compare(c,a.values[o])?0:(a.values[o]=c,1)},reconfigure(a,u){let c=Jr(a,n),f=u.config.facets[e.id],d=u.facet(e);if(f&&!c&&Xo(t,f))return a.values[o]=d,0;let p=l(a);return e.compare(p,d)?(a.values[o]=d,0):(a.values[o]=p,1)}}}const zi=z.define({static:!0});class We{constructor(e,t,n,s,r){this.id=e,this.createF=t,this.updateF=n,this.compareF=s,this.spec=r,this.provides=void 0}static define(e){let t=new We(Go++,e.create,e.update,e.compare||((n,s)=>n===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(zi).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,s)=>{let r=n.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(n.values[t]=o,1)},reconfigure:(n,s)=>{let r=n.facet(zi),o=s.facet(zi),l;return(l=r.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(n.values[t]=l.create(n),1):s.config.address[this.id]!=null?(n.values[t]=s.field(this),0):(n.values[t]=this.create(n),1)}}}init(e){return[this,zi.of({field:this,create:e})]}get extension(){return this}}const pn={lowest:4,low:3,default:2,high:1,highest:0};function ei(i){return e=>new ec(e,i)}const On={highest:ei(pn.highest),high:ei(pn.high),default:ei(pn.default),low:ei(pn.low),lowest:ei(pn.lowest)};class ec{constructor(e,t){this.inner=e,this.prec=t}}class tr{of(e){return new Zr(this,e)}reconfigure(e){return tr.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Zr{constructor(e,t){this.compartment=e,this.inner=t}}class As{constructor(e,t,n,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let s=[],r=Object.create(null),o=new Map;for(let d of Pp(e,t,o))d instanceof We?s.push(d):(r[d.facet.id]||(r[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],u=[];for(let d of s)l[d.id]=u.length<<1,u.push(p=>d.slot(p));let c=n==null?void 0:n.config.facets;for(let d in r){let p=r[d],m=p[0].facet,g=c&&c[d]||[];if(p.every(b=>b.type==0))if(l[m.id]=a.length<<1|1,Xo(g,p))a.push(n.facet(m));else{let b=m.combine(p.map(v=>v.value));a.push(n&&m.compare(b,n.facet(m))?n.facet(m):b)}else{for(let b of p)b.type==0?(l[b.id]=a.length<<1|1,a.push(b.value)):(l[b.id]=u.length<<1,u.push(v=>b.dynamicSlot(v)));l[m.id]=u.length<<1,u.push(b=>Ep(b,m,p))}}let f=u.map(d=>d(l));return new As(e,o,f,l,a,r)}}function Pp(i,e,t){let n=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let u=n[a].indexOf(o);u>-1&&n[a].splice(u,1),o instanceof Zr&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let u of o)r(u,l);else if(o instanceof Zr){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(o.compartment)||o.inner;t.set(o.compartment,u),r(u,l)}else if(o instanceof ec)r(o.inner,o.prec);else if(o instanceof We)n[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof ps)n[l].push(o),o.facet.extensions&&r(o.facet.extensions,pn.default);else{let u=o.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(u,l)}}return r(i,pn.default),n.reduce((o,l)=>o.concat(l))}function fi(i,e){if(e&1)return 2;let t=e>>1,n=i.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;i.status[t]=4;let s=i.computeSlot(i,i.config.dynamicSlots[t]);return i.status[t]=2|s}function Bs(i,e){return e&1?i.config.staticValues[e>>1]:i.values[e>>1]}const tc=z.define(),eo=z.define({combine:i=>i.some(e=>e),static:!0}),nc=z.define({combine:i=>i.length?i[0]:void 0,static:!0}),ic=z.define(),sc=z.define(),rc=z.define(),oc=z.define({combine:i=>i.length?i[0]:!1});class Ht{constructor(e,t){this.type=e,this.value=t}static define(){return new Rp}}class Rp{of(e){return new Ht(this,e)}}class _p{constructor(e){this.map=e}of(e){return new ee(this,e)}}class ee{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new ee(this.type,t)}is(e){return this.type==e}static define(e={}){return new _p(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let s of e){let r=s.map(t);r&&n.push(r)}return n}}ee.reconfigure=ee.define();ee.appendConfig=ee.define();class Pe{constructor(e,t,n,s,r,o){this.startState=e,this.changes=t,this.selection=n,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,n&&Zh(n,t.newLength),r.some(l=>l.type==Pe.time)||(this.annotations=r.concat(Pe.time.of(Date.now())))}static create(e,t,n,s,r,o){return new Pe(e,t,n,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Pe.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}Pe.time=Ht.define();Pe.userEvent=Ht.define();Pe.addToHistory=Ht.define();Pe.remote=Ht.define();function Lp(i,e){let t=[];for(let n=0,s=0;;){let r,o;if(n<i.length&&(s==e.length||e[s]>=i[n]))r=i[n++],o=i[n++];else if(s<e.length)r=e[s++],o=e[s++];else return t;!t.length||t[t.length-1]<r?t.push(r,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function lc(i,e,t){var n;let s,r,o;return t?(s=e.changes,r=Ee.empty(e.changes.length),o=i.changes.compose(e.changes)):(s=e.changes.map(i.changes),r=i.changes.mapDesc(e.changes,!0),o=i.changes.compose(s)),{changes:o,selection:e.selection?e.selection.map(r):(n=i.selection)===null||n===void 0?void 0:n.map(s),effects:ee.mapEffects(i.effects,s).concat(ee.mapEffects(e.effects,r)),annotations:i.annotations.length?i.annotations.concat(e.annotations):e.annotations,scrollIntoView:i.scrollIntoView||e.scrollIntoView}}function to(i,e,t){let n=e.selection,s=Nn(e.annotations);return e.userEvent&&(s=s.concat(Pe.userEvent.of(e.userEvent))),{changes:e.changes instanceof Ee?e.changes:Ee.of(e.changes||[],t,i.facet(nc)),selection:n&&(n instanceof D?n:D.single(n.anchor,n.head)),effects:Nn(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function ac(i,e,t){let n=to(i,e.length?e[0]:{},i.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let r=1;r<e.length;r++){e[r].filter===!1&&(t=!1);let o=!!e[r].sequential;n=lc(n,to(i,e[r],o?n.changes.newLength:i.doc.length),o)}let s=Pe.create(i,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return Vp(t?Np(s):s)}function Np(i){let e=i.startState,t=!0;for(let s of e.facet(ic)){let r=s(i);if(r===!1){t=!1;break}Array.isArray(r)&&(t=t===!0?r:Lp(t,r))}if(t!==!0){let s,r;if(t===!1)r=i.changes.invertedDesc,s=Ee.empty(e.doc.length);else{let o=i.changes.filter(t);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}i=Pe.create(e,s,i.selection&&i.selection.map(r),ee.mapEffects(i.effects,r),i.annotations,i.scrollIntoView)}let n=e.facet(sc);for(let s=n.length-1;s>=0;s--){let r=n[s](i);r instanceof Pe?i=r:Array.isArray(r)&&r.length==1&&r[0]instanceof Pe?i=r[0]:i=ac(e,Nn(r),!1)}return i}function Vp(i){let e=i.startState,t=e.facet(rc),n=i;for(let s=t.length-1;s>=0;s--){let r=t[s](i);r&&Object.keys(r).length&&(n=lc(n,to(e,r,i.changes.newLength),!0))}return n==i?i:Pe.create(e,i.changes,i.selection,n.effects,n.annotations,n.scrollIntoView)}const Ip=[];function Nn(i){return i==null?Ip:Array.isArray(i)?i:[i]}var we=function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i}(we||(we={}));const $p=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let no;try{no=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Fp(i){if(no)return no.test(i);for(let e=0;e<i.length;e++){let t=i[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||$p.test(t)))return!0}return!1}function Wp(i){return e=>{if(!/\S/.test(e))return we.Space;if(Fp(e))return we.Word;for(let t=0;t<i.length;t++)if(e.indexOf(i[t])>-1)return we.Word;return we.Other}}class oe{constructor(e,t,n,s,r,o){this.config=e,this.doc=t,this.selection=n,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)fi(this,l<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return fi(this,n),Bs(this,n)}update(...e){return ac(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:s}=t;for(let l of e.effects)l.is(tr.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,u)=>s.set(u,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(ee.reconfigure)?(t=null,n=l.value):l.is(ee.appendConfig)&&(t=null,n=Nn(n).concat(l.value));let r;t?r=e.startState.values.slice():(t=As.resolve(n,s,this),r=new oe(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,u)=>u.reconfigure(a,this),null).values);let o=e.startState.facet(eo)?e.newSelection:e.newSelection.asSingle();new oe(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:D.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),s=this.changes(n.changes),r=[n.range],o=Nn(n.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),u=this.changes(a.changes),c=u.map(s);for(let d=0;d<l;d++)r[d]=r[d].map(c);let f=s.mapDesc(u,!0);r.push(a.range.map(f)),s=s.compose(c),o=ee.mapEffects(o,c).concat(ee.mapEffects(Nn(a.effects),f))}return{changes:s,selection:D.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof Ee?e:Ee.of(e,this.doc.length,this.facet(oe.lineSeparator))}toText(e){return ae.of(e.split(this.facet(oe.lineSeparator)||Xr))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(fi(this,t),Bs(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let s=e[n];s instanceof We&&this.config.address[s.id]!=null&&(t[n]=s.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(n){for(let r in n)if(Object.prototype.hasOwnProperty.call(e,r)){let o=n[r],l=e[r];s.push(o.init(a=>o.spec.fromJSON(l,a)))}}return oe.create({doc:e.doc,selection:D.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=As.resolve(e.extensions||[],new Map),n=e.doc instanceof ae?e.doc:ae.of((e.doc||"").split(t.staticFacet(oe.lineSeparator)||Xr)),s=e.selection?e.selection instanceof D?e.selection:D.single(e.selection.anchor,e.selection.head):D.single(0);return Zh(s,n.length),t.staticFacet(eo)||(s=s.asSingle()),new oe(t,n,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(oe.tabSize)}get lineBreak(){return this.facet(oe.lineSeparator)||`