@bytenew/bn-bus-ui 1.1.461 → 1.1.462

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 (28) hide show
  1. package/dist/{assocTableSearch-C14i_zJO.js → assocTableSearch-CmzOXI5w.js} +1 -1
  2. package/dist/bn-bus-ui.es.js +1 -1
  3. package/dist/bn-bus-ui.umd.js +1 -1
  4. package/dist/{chooseIPaasData-Cl_5qkFA.js → chooseIPaasData-jkTJEMKT.js} +1 -1
  5. package/dist/{defaultSet-I4xpf8a4.js → defaultSet-CiYuSOzT.js} +1 -1
  6. package/dist/{formItemFooter-CTA7rDtV.js → formItemFooter-BpnVUUgV.js} +1 -1
  7. package/dist/{funcExprDialog-Cm5BiRM3.js → funcExprDialog-BMc-n5FL.js} +1 -1
  8. package/dist/{index-DSEtu7TN.js → index-8GQJARcF.js} +2 -2
  9. package/dist/{index-BmkiB4hr.js → index-8apT0r8m.js} +2 -2
  10. package/dist/{index-C9qrl-yc.js → index-BOFu3qAH.js} +2 -2
  11. package/dist/{index-DzDf9s2W.js → index-BSKXuSid.js} +1 -1
  12. package/dist/{index-DrPj-tmI.js → index-BhYvDd_Q.js} +2 -2
  13. package/dist/{index-ObCfCmDT.js → index-BhqkeVFc.js} +2 -2
  14. package/dist/{index-BdZ1zOap.js → index-CK7_Ou7F.js} +3 -3
  15. package/dist/{index-Br1sqCoo.js → index-Cfb8D3Fg.js} +2 -2
  16. package/dist/{index-B6b4uj8v.js → index-D1fGD0mX.js} +2 -2
  17. package/dist/{index-CXFJXCn5.js → index-DE_eQGbT.js} +2 -2
  18. package/dist/{index-Did0UUWV.js → index-DfgiBqzS.js} +3 -3
  19. package/dist/{index-BfpZqab2.js → index-Dobi0ms9.js} +2 -2
  20. package/dist/{index-LnjudNEI.js → index-DuyQNxe0.js} +1 -1
  21. package/dist/{index-BdzNjjMC.js → index-DxpJkrN7.js} +2 -2
  22. package/dist/{index-BWdkDTbz.js → index-FGHeG46m.js} +1 -1
  23. package/dist/{index-DFPfZ_Il.js → index-P2M7CUTe.js} +2 -2
  24. package/dist/{index-DF114jZq.js → index-xCz2zysE.js} +3 -3
  25. package/dist/{install-C-scqkds.js → install--7IU60oV.js} +36 -36
  26. package/dist/{setOption-CSnWzOny.js → setOption-DehYZpZr.js} +1 -1
  27. package/dist/{setRelationOption-CJcHdfaa.js → setRelationOption-BL-AFUoF.js} +1 -1
  28. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { cloneDeep as w } from "lodash";
2
- import { _ as R, ab as T } from "./install-C-scqkds.js";
2
+ import { _ as R, ab as T } from "./install--7IU60oV.js";
3
3
  import { resolveComponent as b, resolveDirective as I, openBlock as h, createBlock as _, withCtx as c, withDirectives as V, createElementBlock as v, createElementVNode as t, createVNode as i, createTextVNode as D, Fragment as x, renderList as U, createCommentVNode as k } from "vue";
4
4
  const F = {
5
5
  id: "",
@@ -1,4 +1,4 @@
1
- import { B as e, a as o, b as r, c as t, d as B, f as i, g as m, h as d, i as l, j as p, k as F, l as C, m as c, n as g, o as u, p as h, q as D, r as S, s as b, t as R, u as f, v as x, w as A, x as O, y as P, z as T, A as y, C as k, D as I, E as v, F as w, G as E, H as V, I as G, J, K as L, L as N, M as W, N as M, O as U, P as j, Q as q, R as z, S as H, T as K, U as Q, e as X, X as Z, Z as $, $ as Y, a0 as _, a1 as aa, a3 as sa, a4 as na, a6 as ea, a7 as oa, a8 as ra, a9 as ta, aa as Ba, ab as ia, ac as ma } from "./install-C-scqkds.js";
1
+ import { B as e, a as o, b as r, c as t, d as B, f as i, g as m, h as d, i as l, j as p, k as F, l as C, m as c, n as g, o as u, p as h, q as D, r as S, s as b, t as R, u as f, v as x, w as A, x as O, y as P, z as T, A as y, C as k, D as I, E as v, F as w, G as E, H as V, I as G, J, K as L, L as N, M as W, N as M, O as U, P as j, Q as q, R as z, S as H, T as K, U as Q, e as X, X as Z, Z as $, $ as Y, a0 as _, a1 as aa, a3 as sa, a4 as na, a6 as ea, a7 as oa, a8 as ra, a9 as ta, aa as Ba, ab as ia, ac as ma } from "./install--7IU60oV.js";
2
2
  import "vue";
3
3
  export {
4
4
  e as BnAddress,
@@ -9,7 +9,7 @@
9
9
  `).replace(/^\n+|\n+$/g,""),zB.forEach(function(o){if(A.indexOf(`
10
10
  `)>-1){for(var r=A.split(`
11
11
  `),l=0;l<r.length;l++)Qs(r[l],o)&&(r[l]=o+r[l]);A=r.join(`
12
- `)}else Qs(A,o)&&(A=o+A)}),A}function tp(n,A,o={}){const r=ep(o);r&&LB(r);const l=Ap(n);return VB(l)}const ws={1:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],2:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"大于",id:"16"},{title:"小于",id:"17"},{title:"大于等于",id:"18"},{title:"小于等于",id:"19"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],3:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],4:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],5:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],6:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],20:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],7:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"大于",id:"16"},{title:"小于",id:"17"},{title:"大于等于",id:"18"},{title:"小于等于",id:"19"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],8:[{title:"范围",id:"8"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],9:[{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],10:[{title:"为空",id:"9"},{title:"不为空",id:"10"}],11:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],12:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],13:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],14:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],15:[{title:"为空",id:"9"},{title:"不为空",id:"10"}]},np={1:"0",2:"0",3:"2",4:"2",5:"2",6:"2",7:"0",8:"0",9:"0",10:"2",11:"2",12:"2",13:"2",14:"2",15:"2"},op={1:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"重复",id:"15"},{title:"不重复",id:"14"}],2:[{title:"范围",id:"8"},{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],3:[{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],4:[{title:"包含任一项",id:"5"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],5:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],6:[{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],20:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],7:[{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],8:[{title:"范围",id:"8"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],9:[{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],10:[{title:"为空",id:"9"},{title:"不为空",id:"10"}],11:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],12:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],13:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],14:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],15:[{title:"等于",id:"1"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"}]},sl=[{title:"班牛助手(工单)",code:"10001487",id:"10001487"},{title:"班牛助手(服务大厅)",code:"857",id:"857"},{title:"班牛助手(API)",code:"110430206",id:"110430206"}];function ap(n,A,o="id",r="title",l=","){if(!(n!=null&&n.length))return"";if(!A)return n.join(l);const i=new Map;if(Array.isArray(A))for(let f=0,B=A.length;f<B;f++){const p=A[f];p&&i.set(p[o],p[r])}else if(typeof A=="object"){const f=Object.keys(A);for(let B=0,p=f.length;B<p;B++){const u=f[B];i.set(u,A[u])}}let d="";for(let f=0,B=n.length;f<B;f++){const p=n[f];d+=(f>0?l:"")+(i.has(String(p))?i.get(String(p)):i.has(p)?i.get(p):p)}return d}function lp(n,A){let o;if(document.selection)n.focus(),o=document.selection.createRange(),o.text=A,n.focus();else if(n.selectionStart||n.selectionStart=="0"){let r=n.selectionStart,l=n.selectionEnd,i=n.scrollTop;n.value=n.value.substring(0,r)+A+n.value.substring(l,n.value.length),n.focus(),n.selectionStart=r+A.length,n.selectionEnd=r+A.length,n.scrollTop=i}else n.value+=A,n.focus();return n.value}function cl(n){var o,r;if(n.extraInfo.listShow!=1)return null;let A={id:n.id,behaviorType:n.behaviorType,columnCode:n.columnCode,name:n.name,valueType:np[n.behaviorType],extraInfo:n.extraInfo||{},moduleDefinition:n.moduleDefinition||[],insideDataSourceInfo:n.insideDataSourceInfo,outDataSourceInfo:n.outDataSourceInfo||[],matchType:(o=ws[n.behaviorType][0])==null?void 0:o.id,searchType:(r=ws[n.behaviorType][0])==null?void 0:r.id,parentCode:n.parent?n.parent.columnCode:"",parentId:n.parent?n.parent.id:"",parentBehaviorType:n.parent?n.parent.behaviorType:""};switch(A.behaviorType){case 1:case 9:case 11:{A.value="";break}case 3:case 4:{n.insideDataSourceInfo&&n.insideDataSourceInfo.type&&(A.postData={appId:n.appId,projectId:n.tableId,...n.insideDataSourceInfo},A.pathUrl="/v2/project/column/select"),A.value={},A.matchType&&!["1","2","9","10"].includes(A.matchType)&&(A.value=[]);break}case 5:case 6:case 20:case 12:{n.parent&&[14,15].includes(n.parent.behaviorType)&&(A.pathUrl="/address/getAreaDataList"),A.value=[];break}case 10:{A.pathUrl=xn()+"/v2/attachment/upload/task",A.value=[];break}case 2:case 7:{A.value="",A.matchType=="8"&&(A.value={start:"",end:""});break}case 8:{A.value=[],A.matchType&&(A.value={start:"",end:""});break}case 13:{A.value=[],A.moduleDefinition=A.moduleDefinition?A.moduleDefinition:[];let l=[];for(let i in A.moduleDefinition){let d=cl(A.moduleDefinition[i]);d&&l.push(d)}A.moduleDefinition=l;break}}return A}function rl(n,A,o){let r=[];return n.forEach(l=>{if([13,14,15].includes(l.behaviorType))l.moduleDefinition.forEach(i=>{let d=cl({...i,name:`${l.name}-${i.name}`,parent:l,appId:A,tableId:o});d&&r.push(d)});else{let i=cl({...l,appId:A,tableId:o});i&&r.push(i)}}),r}function dl(n){let A=X.cloneDeep(n);return A.forEach(o=>{if(o.value!=null){const r=typeof o.value;if(r!=="string"&&r!=="number"&&r!=="boolean")try{o.value=JSON.stringify(o.value)}catch{console.warn("JSON stringify failed for value:",o.value),o.value=String(o.value)}}}),A}function sa(n,A){var r;if(A&&n.extraInfo[A]!=1)return null;let o={id:n.id,type:n.type,behaviorType:n.behaviorType,defaultInfo:n.defaultInfo,columnCode:n.columnCode,name:n.name,extraInfo:n.extraInfo||{},style:n.style||{},moduleDefinition:n.moduleDefinition||[],insideDataSourceInfo:n.insideDataSourceInfo,outDataSourceInfo:n.outDataSourceInfo||[]};if(A=="queryShow"&&(o.searchType=(r=op[n.behaviorType][0])==null?void 0:r.id,o.parentCode=n.parent?n.parent.columnCode:null,["alarm_status","sync_status"].includes(n.columnCode)))return null;switch(o.behaviorType){case 1:case 9:case 11:{o.value="";break}case 3:case 4:{n.insideDataSourceInfo&&n.insideDataSourceInfo.type&&(o.postData={appId:n.appId,projectId:n.tableId,ids:JSON.stringify(n.insideDataSourceInfo),...n.insideDataSourceInfo},n.insideDataSourceInfo.type=="user"&&(o.postData.selectParams='{"userColId":"-1"}',o.moduleDefinition=X.cloneDeep(sl)),o.pathUrl="/v2/project/column/select"),o.value={},o.searchType&&!["1","2","9","10"].includes(o.searchType)&&(o.value=[]);break}case 5:case 6:case 20:case 12:{n.parent&&[14,15].includes(n.parent.behaviorType)&&(o.pathUrl="/address/getAreaDataList"),o.value=[];break}case 10:{o.pathUrl=xn()+"/v2/attachment/upload/task",o.value=[];break}case 2:case 7:{o.value="",o.searchType&&(o.value={start:"",end:""});break}case 8:{o.value=[],o.searchType&&(o.value={start:"",end:""});break}case 13:{o.value=[],o.moduleDefinition=o.moduleDefinition?o.moduleDefinition:[];let l=[];for(let i in o.moduleDefinition){let d=sa(o.moduleDefinition[i],A);d&&l.push(d)}o.moduleDefinition=l;break}case 14:case 15:{let l={};o.moduleDefinition.forEach(i=>{l[i.columnCode]=i.behaviorType==6?[]:""}),o.value=l}}return o}function hl(n,A,o){let r=[];return n.forEach(l=>{if([13,14,15].includes(l.behaviorType)&&l.extraInfo.queryShow==1&&l.moduleDefinition.length>0)l.moduleDefinition.forEach(i=>{let d=sa({...i,name:`${l.name}-${i.name}`,parent:l,appId:A,tableId:o},"queryShow");d&&r.push(d)});else{let i=sa({...l,appId:A,tableId:o},"queryShow");i&&r.push(i)}}),r}function Cs(n,A,o,r="listShow"){let l=[];return n.forEach(i=>{let d=sa({...i,appId:A,tableId:o},r);d&&l.push(d)}),l}function vs(n,A,o){let r={id:n.id,type:n.type,behaviorType:n.behaviorType,columnCode:n.columnCode,defaultInfo:n.defaultInfo,name:n.name,extraInfo:n.extraInfo||{},style:n.style||{},moduleDefinition:n.moduleDefinition||[],insideDataSourceInfo:n.insideDataSourceInfo,outDataSourceInfo:n.outDataSourceInfo||[]},l=!1;try{l=A&&r.extraInfo[o]}catch{}switch(r.behaviorType){case 1:case 2:case 7:case 9:case 11:{l?r.value=A[r.columnCode]||"":r.value=r.defaultInfo||"";break}case 3:case 4:case 6:case 20:{if(n.insideDataSourceInfo&&n.insideDataSourceInfo.type){if(r.postData={appId:n.appId,projectId:n.tableId,ids:JSON.stringify(n.insideDataSourceInfo),...n.insideDataSourceInfo},n.insideDataSourceInfo.type=="user"&&(r.postData.selectParams='{"userColId":"-1"}'),r.extraInfo.relationColumns&&A){let i={};r.extraInfo.relationColumns.forEach(d=>{A[d]&&(i[d]=A[d].code)}),r.postData.extCondition=JSON.stringify(i)}r.pathUrl="/v2/project/column/select"}if(l)r.behaviorType==6&&A[r.columnCode]?r.value=A[r.columnCode].map(i=>i.code):r.value=A[r.columnCode]||([6,20].includes(r.behaviorType)?[]:{});else try{r.behaviorType==6&&n.defaultInfo?r.value=n.defaultInfo.map(i=>i.code):r.value=n.defaultInfo||([6,20].includes(r.behaviorType)?[]:{})}catch{r.value={}}break}case 5:case 8:case 12:{if(l)r.value=A[r.columnCode]||[];else try{r.value=n.defaultInfo||[]}catch{r.value=[]}break}case 10:{if(r.pathUrl=xn()+"/v2/attachment/upload/task",l)r.value=A[r.columnCode]||[];else try{r.value=n.defaultInfo||[]}catch{r.value=[]}break}case 13:{r.value=A?A[r.columnCode]||[]:[],r.moduleDefinition=r.moduleDefinition?r.moduleDefinition:[];let i=[];for(let d in r.moduleDefinition){let f=vs(r.moduleDefinition[d]);f&&i.push(f)}if(r.moduleDefinition=i,r.value.length>0&&r.moduleDefinition.length>0){const d={};r.moduleDefinition.forEach(f=>{d[f.columnCode]=f.value}),r.value.forEach(f=>{for(const B in d)B in f||(f[B]=d[B])})}break}case 14:case 15:{let i={},d=A?A[r.columnCode]:null;r.moduleDefinition.forEach(f=>{d?i[f.columnCode]=d[f.columnCode]||(f.behaviorType==6?[]:""):i[f.columnCode]=f.behaviorType==6?[]:""}),r.value=i;break}}return r}function ip(n,A,o,r){let l=[],i=r&&r.id?"isEditable":"isAddable";return n.forEach(d=>{let f=vs({...d,appId:A,tableId:o},r,i);f&&l.push(f)}),l}function bs(n,A){let o=X.cloneDeep(A.inside[n.columnCode]),r=X.cloneDeep(A[n.columnCode]),l=n.moduleDefinition.filter(i=>i.behaviorType==10);return l.length>0&&r.forEach((i,d)=>{i.inside={},l.forEach(f=>{i[f.columnCode]&&(i.inside[f.columnCode]=o[d][f.columnCode])})}),r}function sp(n,A){let o=[];try{n.forEach(r=>{let l=A.find(i=>i.columnCode==r.id);l&&o.push({behaviorType:l.behaviorType,columnCode:l.columnCode,name:l.name,searchType:r.searchType,value:r.value})})}catch(r){console.log("tidyJumpSearchDataErr:"+r)}return o}function cp(n=new Date){const A=new Date(n),o=p=>String(p).padStart(2,"0"),r=A.getFullYear(),l=o(A.getMonth()+1),i=o(A.getDate()),d=o(A.getHours()),f=o(A.getMinutes()),B=o(A.getSeconds());return`${r}-${l}-${i} ${d}:${f}:${B}`}const rp=n=>{var A,o,r,l;try{let i=JSON.parse(localStorage.getItem("webLog")||"false")||[],d=JSON.parse(localStorage.getItem("sessionInfo")||"false")||{};try{let B=n.config.data?JSON.parse(n.config.data):{},p=n.data.data;if(n.config.url.indexOf("/v2/logins/checkSession")>=0)d.userName=(A=p.userInfo)==null?void 0:A.workNick,d.userId=(o=p.userInfo)==null?void 0:o.id,d.companyName=(r=p.company)==null?void 0:r.companyName,d.companyId=(l=p.company)==null?void 0:l.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/biztable/definition/table?tableCode")>=0)d.appId=p.appId,d.tableId=p.tableId,d.tableCode=p.tableCode,d.taskId="",d.url=window.location.href,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/biztable/content/get")>=0)d.taskId=p.view.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/v2/project/task/queryV3/")>=0)d.appId=B.appId,d.tableId=B.id,d.taskId="",d.tableCode="",d.workflowId="",d.workFlowNodeId="",d.instanceId="",d.processCode="",d.url=window.location.href,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/v2/project/task/queryByTaskId")>=0)d.taskId=p.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/v2/unitman/list/todo/pendingTaskList")>=0)d.appId=B.appId,d.tableId=B.tableId,d.taskId="",d.tableCode="",d.workflowId="",d.workFlowNodeId="",d.instanceId="",d.processCode="",d.url=window.location.href,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("v2/unitman/list/taskDetail")>=0)d.taskId=B.tableTaskId,d.workflowId=B.workflowId,d.workFlowNodeId=B.workflowNodeId,d.instanceId=p.workflowInstanceId,d.processCode=p.processCode,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/wf/config/findWfTmpVersionByInstanceId")>=0)d.workflowId=p.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/wf/config/findWfTmpVersionByInstanceId")>=0)d.taskId=p.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/v2/scheduleCenter/query/queryNodeList")>=0){let u=p.content?p.content[0]:{};d.workFlowNodeId=u.templateNodeId,d.instanceId=u.instanceId,d.processCode=u.processCode,localStorage.setItem("sessionInfo",JSON.stringify(d))}}catch(B){console.log("apiLog:"+B)}i=[{url:n.config.url,code:n.data?n.data.code:null,time:cp(n.headers.date),traceId:n.headers["trace-id"]||"未返回"},...i].slice(0,50),localStorage.setItem("webLog",JSON.stringify(i))}catch{console.log(`一条日志未能成功捕捉:${JSON.stringify(n)}`)}};function dp(n){var A;window.__POWERED_BY_WUJIE__&&((A=window.$wujie)==null||A.bus.$emit("router-jump",n))}const hp={name:"chooseAssocTable",components:{chooseChildGood:TB,tableCellCopy:GB},props:{postFunc:Function,extendPost:Object},data(){return{show:!1,loading:!1,columnData:{},searchColumns:[],headerColumns:[],tableMaxHeight:400,selectData:[],searchPost:{tableCode:"",pageSize:20,pageNum:1,total:0,sorts:[],conditions:[]},orderList:[],allOrderList:[],searchList:[]}},methods:{open(n){var A;this.columnData=X.cloneDeep(n),this.orderList=[],this.allOrderList=[],this.selectData=[],(A=this.$refs.assocTable)==null||A.clearCheckboxRow(),this.searchPost.tableCode=n.insideDataSourceInfo.tableCode,this.searchPost.pageNum=1,this.searchColumns=[];try{let o=[];n.moduleDefinition.forEach(r=>{var l,i;(l=r.insideDataSourceInfo)!=null&&l.fieldCode&&o.push({...r,columnCode:(i=r.insideDataSourceInfo)==null?void 0:i.fieldCode})}),this.searchColumns=hl(o,this.extendPost.appId,this.extendPost.projectId)}catch(o){console.log("格式化关联表筛选组件"+o)}this.headerColumns=X.cloneDeep(n.moduleDefinition),this.tableMaxHeight=window.innerHeight-360,this.querySearch(),this.postFunc(`/v2/client/cache/get/${this.extendPost.projectId}_${this.columnData.id}_${this.extendPost.userId||""}_assocTable`,{},"get").then(o=>{if(!o.code&&o.data){const r=JSON.parse(o.data);r.conditions?this.searchPost.conditions=r.conditions:this.searchColumns.length>0&&(this.searchPost.conditions=[X.cloneDeep(this.searchColumns[0])])}this.search()}),this.show=!0},checkChange({checked:n,row:A}){this.$refs.assocTable.setCheckboxRow(A,n),n?this.selectData.includes(A.id)||this.selectData.push(A.id):this.selectData.includes(A.id)&&this.selectData.splice(this.selectData.indexOf(A.id),1)},checkAllTask({records:n}){n.length!=0?n.map(A=>{this.selectData.includes(A.id)||this.selectData.push(A.id)}):this.selectData=[]},saveSearch(){if(this.searchPost.conditions.length==0){this.$message.warning("没有可保存的筛选条件");return}if(this.searchList.length>=8){this.$message.warning("最多保存8个筛选项");return}this.$msgBox.prompt("设置你的常用筛选项名称(10个字以内)","保存为常用筛选项",{confirmButtonText:"保存",cancelButtonText:"取消",inputPattern:/^.{1,10}$/,inputErrorMessage:"请输入1到10个字符"}).then(({value:n})=>{this.postFunc("/biztable/content/setUserQueryCondition",{name:n,isCommon:!1,appId:this.extendPost.appId,tableId:this.extendPost.projectId,relationTableId:this.columnData.insideDataSourceInfo.table,value:JSON.stringify(this.searchPost)}).then(A=>{A.code||this.querySearch()})}).catch(()=>{})},querySearch(){this.postFunc("/biztable/content/getUserQueryCondition",{isCommon:!1,appId:this.extendPost.appId,tableId:this.extendPost.projectId,relationTableId:this.columnData.insideDataSourceInfo.table}).then(n=>{n.code||(this.searchList=X.cloneDeep(n.data))})},chooseSearch(n){let A=JSON.parse(n.value);this.searchPost.conditions=A.conditions,this.search()},delSearch(n,A){this.$msgBox.confirm("删除后将不再显示该筛选项?","确定要删除么?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.postFunc(`/biztable/content/delUserQueryCondition/${n.id}`,{},"post").then(o=>{o.code||this.searchList.splice(A,1)})}).catch(()=>{})},search(n){this.searchPost={...this.searchPost,...n},this.postFunc("/v2/client/cache/save",{key:`${this.extendPost.projectId}_${this.columnData.id}_${this.extendPost.userId||""}_assocTable`,value:this.searchPost});let A={...this.searchPost,conditions:dl([...this.searchPost.conditions])};this.loading=!0,this.postFunc("/biztable/content/query",A).then(o=>{if(this.loading=!1,o.code)this.orderList=[],this.searchPost.total=0,this.searchPost.pageNum=1;else{this.orderList=o.data.results.map(l=>{const i={},d={};return this.headerColumns.forEach(f=>{var u;const B=f.columnCode,p=(u=f.insideDataSourceInfo)==null?void 0:u.fieldCode;l.inside&&l.inside.hasOwnProperty(p)?(i[B]=l.inside[p],d[B]=l.view[p]):i[B]=f.value||""}),{...l.view,...d,insideCopy:l.inside,inside:i,id:parseInt(l.view.id)}}),this.searchPost.total=parseInt(o.data.total),this.searchPost.pageNum=o.data.pageNum,this.$nextTick(()=>{this.orderList.forEach(l=>{var i;this.selectData.includes(l.id)&&((i=this.$refs.assocTable)==null||i.setCheckboxRow(l,!0))})});const r=new Set(this.allOrderList.map(l=>l.id));this.orderList.forEach(l=>{r.has(l.id)||this.allOrderList.push(l)})}})},onMouseEvent(n){var o,r,l;if(n.$event.type==="mouseleave")(o=this.$refs.childTableCopy)==null||o.onHide();else{let i={column:{columnCode:(r=this.headerColumns[n.columnIndex-2])==null?void 0:r.columnCode},row:n.row};i.row[i.column.columnCode]&&((l=this.$refs.childTableCopy)==null||l.onShow(n.cell,i))}},rowClick({row:n}){n.combine=="是"&&(n.spec_list&&n.spec_list.length>0?this.$refs.chooseChildGood.open(n,this.columnData):this.$message.warning("该商品没有子商品,无法选择"))},setChildGood(n,A){setTimeout(()=>{this.$emit("setChildrenForm",n,A,this.columnData.columnCode)},200),this.show=!1},sure(n){let A=this.allOrderList.reduce((o,r)=>(this.selectData.includes(r.id)&&o.push(r.inside),o),[]);setTimeout(()=>{this.$emit("setChildrenForm",A,n,this.columnData.columnCode)},200),this.show=!1}}},gp={class:"chooseAssocTable"},fp={class:"chooseAssocTable-search w-margin-bottom10"},Bp={class:"w-flex-between w-margin-bottom10"},pp={class:"w-flex-center"},up={class:"w-flex-center"},Ep={class:"w-flex-center"},mp={key:1},Ip={class:"w-flex-right w-flex-center"},Qp={class:"w-font13 w-color-gray w-margin-right8"};function wp(n,A,o,r,l,i){const d=e.resolveComponent("tableCellCopy"),f=e.resolveComponent("chooseChildGood"),B=e.resolveComponent("BnAdvancedFilter"),p=e.resolveComponent("el-button"),u=e.resolveComponent("BnDrop"),I=e.resolveComponent("el-tag"),w=e.resolveComponent("vxe-column"),C=e.resolveComponent("el-tooltip"),b=e.resolveComponent("BnFileView"),M=e.resolveComponent("vxe-table"),U=e.resolveComponent("el-pagination"),Y=e.resolveComponent("el-popover"),S=e.resolveComponent("el-dialog"),T=e.resolveDirective("loading");return e.openBlock(),e.createBlock(S,{modelValue:l.show,"onUpdate:modelValue":A[7]||(A[7]=G=>l.show=G),title:`请选择${l.columnData.name}`,top:"18px",width:"70%","destroy-on-close":"",style:{"margin-bottom":"0"}},{footer:e.withCtx(()=>[e.createElementVNode("div",Ip,[e.createElementVNode("span",Qp,"已选择("+e.toDisplayString(l.selectData.length)+"/"+e.toDisplayString(l.orderList.length)+")条",1),e.createVNode(U,{class:"w-margin-right8",background:"","current-page":l.searchPost.pageNum,"onUpdate:currentPage":A[2]||(A[2]=G=>l.searchPost.pageNum=G),"page-size":l.searchPost.pageSize,"onUpdate:pageSize":A[3]||(A[3]=G=>l.searchPost.pageSize=G),layout:"prev, pager, next",onCurrentChange:i.search,total:l.searchPost.total},null,8,["current-page","page-size","onCurrentChange","total"]),e.createVNode(p,{onClick:A[4]||(A[4]=G=>l.show=!1)},{default:e.withCtx(()=>[...A[13]||(A[13]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(Y,{placement:"top-start",width:298,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(p,{type:"primary",onClick:A[5]||(A[5]=G=>i.sure("add")),disabled:l.selectData.length==0},{default:e.withCtx(()=>[...A[14]||(A[14]=[e.createTextVNode("确认追加",-1)])]),_:1},8,["disabled"])]),default:e.withCtx(()=>[A[15]||(A[15]=e.createElementVNode("div",{class:"BnSmartForm-title-tip"},"在原有的子表单值的基础上追加选中的数据",-1))]),_:1}),e.createVNode(Y,{placement:"top-start",width:290,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(p,{type:"primary",onClick:A[6]||(A[6]=G=>i.sure("cover")),disabled:l.selectData.length==0},{default:e.withCtx(()=>[...A[16]||(A[16]=[e.createTextVNode("确认覆盖",-1)])]),_:1},8,["disabled"])]),default:e.withCtx(()=>[A[17]||(A[17]=e.createElementVNode("div",{class:"BnSmartForm-title-tip"},"用选中的数据直接覆盖子表单的原有的值",-1))]),_:1})])]),default:e.withCtx(()=>[e.createVNode(d,{ref:"childTableCopy"},null,512),e.createVNode(f,{ref:"chooseChildGood",onSetChildGood:i.setChildGood},null,8,["onSetChildGood"]),e.createElementVNode("div",gp,[e.createElementVNode("div",fp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.searchPost.conditions,(G,z)=>(e.openBlock(),e.createElementBlock("div",{key:z,class:"chooseAssocTable-search-item"},[e.createVNode(B,{modelValue:l.searchPost.conditions[z],"onUpdate:modelValue":j=>l.searchPost.conditions[z]=j,"column-data":G,onValueChange:A[0]||(A[0]=j=>i.search()),allowDel:"",onDel:j=>l.searchPost.conditions.splice(z,1),postFunc:o.postFunc,pathUrl:G.pathUrl,postData:G.postData},null,8,["modelValue","onUpdate:modelValue","column-data","onDel","postFunc","pathUrl","postData"])]))),128))]),e.createElementVNode("div",Bp,[e.createElementVNode("div",pp,[e.createVNode(u,{modelValue:l.searchPost.conditions,"onUpdate:modelValue":A[1]||(A[1]=G=>l.searchPost.conditions=G),options:l.searchColumns,multiple:"",optionProps:{value:"columnCode",label:"name"}},{default:e.withCtx(()=>[e.createVNode(p,{type:"primary",link:""},{default:e.withCtx(()=>[...A[8]||(A[8]=[e.createTextVNode(" + 添加筛选条件",-1)])]),_:1})]),_:1},8,["modelValue","options"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.searchList,(G,z)=>(e.openBlock(),e.createBlock(I,{closable:"",type:"success",onClick:j=>i.chooseSearch(G),onClose:j=>i.delSearch(G,z),class:"w-margin-left8 w-cursor-pointer"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(G.key),1)]),_:2},1032,["onClick","onClose"]))),256))]),e.createElementVNode("div",up,[e.createVNode(p,{onClick:i.saveSearch},{default:e.withCtx(()=>[...A[9]||(A[9]=[e.createTextVNode("另存为常用查询",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{type:"primary",onClick:i.search},{default:e.withCtx(()=>[...A[10]||(A[10]=[e.createTextVNode("筛选",-1)])]),_:1},8,["onClick"])])]),e.withDirectives((e.openBlock(),e.createBlock(M,{ref:"assocTable",border:"",size:"small",data:l.orderList,class:"chooseAssocTable-out","tooltip-config":{},"row-config":{keyField:"id",isCurrent:!0,isHover:!0},"max-height":l.tableMaxHeight,"min-height":"50","expand-config":{expandAll:!0},"column-config":{resizable:!0},"checkbox-config":{checkRowKeys:l.selectData},"scroll-x":{enabled:!0,gt:8},"scroll-y":{enabled:!0,gt:15},onCheckboxChange:i.checkChange,onCellMouseenter:i.onMouseEvent,onCellMouseleave:i.onMouseEvent,onCellClick:i.rowClick,onCheckboxAll:i.checkAllTask},{empty:e.withCtx(()=>[...A[12]||(A[12]=[e.createElementVNode("span",null,"暂无数据",-1)])]),default:e.withCtx(()=>[e.createVNode(w,{type:"checkbox",width:"32",fixed:"left"}),e.createVNode(w,{width:"30",fixed:"left"},{default:e.withCtx(G=>[e.createElementVNode("span",Ep,[G.row.combine=="是"?(e.openBlock(),e.createBlock(C,{key:0,content:"当确定是组合装(combine),允许点击该行选择子商品(spec_list)",placement:"top",effect:"light"},{default:e.withCtx(()=>[...A[11]||(A[11]=[e.createElementVNode("span",{class:"w-color-blue w-cursor-pointer"},[e.createElementVNode("span",{class:"bnUIcon bnUIcon-childGood"})],-1)])]),_:1})):(e.openBlock(),e.createElementBlock("span",mp))])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.headerColumns,(G,z)=>(e.openBlock(),e.createBlock(w,{visible:G.extraInfo.isAddable==1,title:G.name,field:G.columnCode,"min-width":"160",key:z,"show-header-overflow":"title","show-overflow":"title","show-footer-overflow":""},e.createSlots({_:2},[G.behaviorType==10&&G.extraInfo.isAddable==1?{name:"default",fn:e.withCtx(j=>[j.row.inside[G.columnCode]?(e.openBlock(),e.createBlock(b,{key:0,"file-list":j.row.inside[G.columnCode],"is-mini":!0,"no-warp":!0},null,8,["file-list"])):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["visible","title","field"]))),128))]),_:1},8,["data","max-height","checkbox-config","onCheckboxChange","onCellMouseenter","onCellMouseleave","onCellClick","onCheckboxAll"])),[[T,l.loading]])])]),_:1},8,["modelValue","title"])}const Cp=ne(hp,[["render",wp],["__scopeId","data-v-134c4ef8"]]);function Ht(n,A){return n.some(o=>o==A)}function Ds(n,A,o){let r=JSON.parse(JSON.stringify(gl(n).componentMap)),l=[],i=[],d=[];A.map(B=>{if(B.status==1&&(o&&B.columnRules.showScene.includes(2)||!o&&B.columnRules.showScene.includes(1))){let p=gl(B.columnRules.showColumns).ids,u=gl(B.columnRules.conditions).ids,I=vp(B.columnRules.calculation,B.columnRules.conditions,r);d=fl(d,u),I?i=fl(i,p):l=fl(l,p)}});let f=[];for(let B in l)i.includes(l[B])||f.push(l[B]);return{showIds:i,hiddenIds:f,conditionIds:d}}function gl(n){let A={ids:[],componentMap:{}};return n.map(o=>{A.ids.push(o.columnCode),A.componentMap[o.columnCode]=o}),A}function vp(n,A,o){let r=-1;for(let l in A){let i=A[l],d=o[i.columnCode];if(r=l,d){switch(d.behaviorType){case 1:case 10:{r=bp(d,i,l);break}case 2:case 9:{r=Dp(d,i,l);break}case 3:case 4:{r=yp(d,i,l);break}case 5:{r=Mp(d,i,l);break}case 6:{r=xp(d,i,l);break}case 7:{r=Yp(d,i,l);break}case 8:{r=Fp(d,i,l);break}}if(n==="and"){if(r==-1)break}else if(r!=-1)break}else{if(r=-1,n=="and")break;continue}}return r>-1}function bp(n,A,o){let r=o;switch(A.matchType){case"1":{r=A.value==n.value?o:-1;break}case"2":{r=A.value!=n.value?o:-1;break}case"3":{r=n.value.indexOf(A.value)>-1?o:-1;break}case"4":{r=n.value.indexOf(A.value)<0?o:-1;break}case"5":{r=n.value&&A.value.includes(n.value)?o:-1;break}case"9":{r=n.value?-1:o;break}case"10":{r=n.value?o:-1;break}}return r}function Dp(n,A,o){let r=o,l=n.value!=""?parseFloat(n.value):"",i=A.matchType!="8"&&A.value!=""?parseFloat(A.value):"";switch(A.matchType){case"1":{r=l==i?o:-1;break}case"2":{r=l!=i?o:-1;break}case"8":{let d={start:A.value.start!=""?parseFloat(A.value.start):"",end:A.value.end!=""?parseFloat(A.value.end):""};r=l&&l>=d.start&&l<=d.end?o:-1;break}case"9":{r=n.value===""?o:-1;break}case"10":{r=n.value!==""?o:-1;break}case"16":{r=l>i?o:-1;break}case"17":{r=l&&l<i?o:-1;break}case"18":{r=l>=i?o:-1;break}case"19":{r=l&&l<=i?o:-1;break}}return r}function yp(n,A,o){let r=o;switch(A.matchType){case"1":{r=A.value.id==n.value.id?o:-1;break}case"2":{r=A.value.id!=n.value.id?o:-1;break}case"5":{let l=A.value.map(i=>i.id);r=Ht(l,n.value.id)?o:-1;break}case"6":{let l=A.value.map(i=>i.id);r=Ht(l,n.value.id)?-1:o;break}case"9":{r=n.value.id?-1:o;break}case"10":{r=n.value.id?o:-1;break}}return r}function Mp(n,A,o){let r=o,l=n.value.map(i=>i.id);switch(A.matchType){case"1":{if(n.value.length!=A.value.length)r=-1;else for(let i in A.value)if(r=Ht(l,A.value[i].id)?o:-1,r==-1)break;break}case"2":{n.value.length==A.value.length&&(r=A.value.filter(i=>!Ht(l,i.id)).length>0?o:-1);break}case"3":{r=A.value.every(d=>Ht(l,d.id))?o:-1;break}case"4":{r=A.value.every(d=>!Ht(l,d.id))?o:-1;break}case"5":{r=-1;for(let i in A.value)if(r=Ht(l,A.value[i].id)?o:-1,r!=-1)break;break}case"6":{for(let i in A.value)if(r=Ht(l,A.value[i].id)?-1:o,r==-1)break;break}case"7":{r=A.value.every(d=>Ht(l,d.id))?o:-1;break}case"9":{r=l.length==0?o:-1;break}case"10":{r=l.length!=0?o:-1;break}}return r}function xp(n,A,o){let r=o,l=n.value.join(",");switch(A.matchType){case"1":{l==""||A.value.length==0?r=-1:r=l==A.value[0].join(",")?o:-1;break}case"2":{l&&A.value.length>0&&(r=l!=A.value[0].join(",")?o:-1);break}case"3":{r=-1;for(let i in A.value){let d=A.value[i].join(",");if(r=l.indexOf(d)>-1?o:-1,r!=-1)break}break}case"4":{r=A.value.every(d=>l.indexOf(d.join(","))==-1)?o:-1;break}case"5":{r=-1;for(let i in A.value){let d=A.value[i].join(",");if(r=l==d?o:-1,r!=-1)break}break}case"6":{for(let i in A.value){let d=A.value[i].join(",");if(r=l!=d?o:-1,r==-1)break}break}case"9":{r=l==""?o:-1;break}case"10":{r=l!=""?o:-1;break}}return r}function Zt(n){let A=n;return n.length>0&&n.length==10&&(A+="00:00:00"),A?new Date(A):""}function Yp(n,A,o){let r=o,l=Zt(n.value),i=typeof A.value!="object"?Zt(A.value):"";switch(A.matchType){case"1":{r=l==i?o:-1;break}case"2":{r=l!=i?o:-1;break}case"8":{let d=Zt(A.value.start),f=Zt(A.value.end);r=l&&l>=d&&l<=f?o:-1;break}case"9":{r=l===""?o:-1;break}case"10":{r=l!==""?o:-1;break}case"16":{r=l>i?o:-1;break}case"17":{r=l<i?o:-1;break}case"18":{r=l>=i?o:-1;break}case"19":{r=l<=i?o:-1;break}}return r}function Fp(n,A,o){let r=o;switch(A.matchType){case"8":{let l={start:Zt(n.value.start),end:Zt(n.value.end)},i=Zt(A.value.start),d=Zt(A.value.end);r=l.start&&l.start>=i&&l.end&&l.end<=d?o:-1;break}case"9":{r=n.value.start==""&&n.value.end==""?o:-1;break}case"10":{r=n.value.start!=""&&n.value.end!=""?o:-1;break}}return r}function fl(n,A,o){let r=[];return r=Array.from(new Set([...n,...A])),r}const Bl={stringForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ql)),numberForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>wl)),selectForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Cl)),radioForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>vl)),checkboxForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>bl)),dateForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Dl)),dateDualForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>yl)),fileForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ml)),childrenForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>xl)),addressForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Yl)),receiveForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Fl)),relationForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Nl)),scoreForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Tv))},Np={name:"BnSmartForm",components:{BnSmartElf:gB,choosePackage:CB,chooseChildOrder:YB,chooseAssocTable:Cp,chooseIPaasData:e.defineAsyncComponent(()=>Promise.resolve().then(()=>uc))},props:{id:[String,Number],extendPost:Object,extraInfo:Object,components:Array,editType:String,postFunc:Function,dataBack:Object},data(){return{showElf:!1,loading:!1,formLogs:[],orderList:[],childOrders:[],psychicRules:[],hiddenCodes:[],psychicConditionCodes:[],checkedConditionId:[],assocTableSearchCodes:[],assocTableSearchColumnId:[],defaultLink:X.cloneDeep(ho.defaultLink),columnMapping:X.cloneDeep(ho.columnMapping),relationColumns:X.cloneDeep(ho.relationColumns),hasExprExec:!1,afterEventCodes:[]}},created(){this.init(),this._elfKeyHandler=n=>{n.ctrlKey&&n.shiftKey&&n.code==="KeyB"&&(n.preventDefault(),this.showElf=!0)},document.addEventListener("keydown",this._elfKeyHandler)},beforeUnmount(){document.removeEventListener("keydown",this._elfKeyHandler)},methods:{init(){let{defaultLink:n,columnMapping:A,hasExprExec:o,relationColumns:r}=qf(this.componentList);this.defaultLink=X.cloneDeep(n),this.columnMapping=X.cloneDeep(A),this.relationColumns=X.cloneDeep(r),this.hasExprExec=o,this.hasExprExec&&!this.id&&this.exprExecCalc(null,"新建初始化"),this.getPsychicRules(),this.getAssocTableRules(),this.getCheckedRules()},getPsychicRules(){this.psychicRules=[],this.hiddenCodes=[],this.psychicConditionCodes=[],this.postFunc("/v2/columnRule/getColumnRule",{...this.extendPost,type:2,dataFormatFlag:!0}).then(n=>{if(!n.code&&n.data.columnRuleList){this.psychicRules=n.data.columnRuleList;let{conditionIds:A,hiddenIds:o}=Ds(this.componentList,this.psychicRules,this.id);this.hiddenCodes=o,this.psychicConditionCodes=A}})},getAssocTableRules(){this.assocTableSearchCodes=[],this.assocTableSearchColumnId=[],this.postFunc("/v2/columnRule/getColumnRule",{...this.extendPost,type:13,dataFormatFlag:!0}).then(n=>{!n.code&&n.data.columnRuleList&&n.data.columnRuleList.forEach(A=>{A.columnRules&&(this.assocTableSearchColumnId.push(A.ruleSense),A.columnRules.forEach(o=>{o.toColumnType==1&&(this.assocTableSearchCodes.push(o.value.columnCode),o.value.parentCode&&this.assocTableSearchCodes.push(o.value.parentCode))}))})})},getCheckedRules(){this.checkedConditionId=[],this.postFunc(`/v2/columnRule/getSubmitCheckRule/${this.extendPost.appId}/${this.extendPost.projectId}`,null,"get").then(n=>{if(!n.code&&n.data&&n.data.status==1){let A=n.data.rules.reduce((o,r)=>{var l;if(r.type==19&&(r.columnRules.senses.includes(0)&&!this.id||r.columnRules.senses.includes(1)&&this.id)){let i=((l=r.columnRules)==null?void 0:l.columnRules)||[];o=[...o,...i.map(d=>d.parentId?d.parentId:d.id)]}return o},[]);this.checkedConditionId=A}})},getFormContent(){let n={contents:[]};try{for(let A in this.componentList){let o=X.cloneDeep(this.componentList[A]),r={columnCode:o.columnCode};switch(o.behaviorType){case 1:case 2:case 9:case 7:case 11:{r.value=o.value;break}case 3:case 4:case 5:case 6:case 20:case 8:case 10:case 12:case 13:case 14:case 15:{r.value=o.value?JSON.stringify(o.value):"";break}}if(!this.isShow(this.componentList[A]))if(this.hiddenCodes.includes(o.columnCode))r.hide=!0;else continue;n.contents.push(r)}}catch(A){console.log("getFormContentErr:"+A)}return n},checkFormContent(){if(this.loading)return this.$message.warning("还有数据没有加载完毕,请稍后再保存"),{checked:!1};let n={column:null,checked:!0};for(let A in this.componentList){if(!this.isShow(this.componentList[A]))continue;let o={...this.componentList[A]},r={columnCode:o.columnCode};switch(o.behaviorType){case 1:case 2:{o.extraInfo.valueEmptyCheck==1&&o.behaviorType==1&&X.isEmpty(o.value)&&(this.componentList[A].error=o.name+"的值不能为空"),o.extraInfo.valueEmptyCheck==1&&o.behaviorType==2&&(o.value===void 0||o.value===null||o.value==="")&&(this.componentList[A].error=o.name+"的值不能为空"),o.extraInfo.regular&&(new RegExp(o.extraInfo.regular).test(o.value)||(this.componentList[A].error=o.extraInfo.paraExplain||"请输入符合要求的"+o.name));break}case 3:case 4:case 5:case 6:case 20:case 8:case 10:case 12:case 9:case 7:case 11:{o.extraInfo.valueEmptyCheck==1&&X.isEmpty(o.value)&&(this.componentList[A].error=o.name+"的值不能为空");break}case 13:{if(o.extraInfo.valueEmptyCheck==1)if(X.isEmpty(o.value))this.componentList[A].error=o.name+"至少要有一条内容";else{let l=fs(o,this.id);l&&(this.componentList[A].error=l)}break}case 14:case 15:{if(o.extraInfo.valueEmptyCheck==1){for(let l in o.value)if(X.isEmpty(o.value[l])){this.componentList[A].error=`请输入完整的${o.name}`;break}}break}}if(this.componentList[A].error){n.column=this.componentList[A],n.checked=!1,this.getHere(r,!0);break}}return n},getHere(n){const A=document.getElementById("col_"+n.columnCode);A&&this.$refs.formScroll&&this.$refs.formScroll.scrollTo({top:A.offsetTop,behavior:"smooth"})},isShow(n){let A=!this.hiddenCodes.includes(n.columnCode);return(!this.id&&n.extraInfo.isAddable!=1||this.id&&n.extraInfo.isEditable!=1)&&(A=!1),A},isDisabled(n){let A=!1;return(!this.id&&n.extraInfo.valueAddable==1||this.id&&n.extraInfo.valueEditable==1)&&(A=!0),A},componentView(n){var A;return n.behaviorType==4&&["rate_polarity","bn_rate_polarity","bn_addition_polarity"].includes(n.columnCode)?Bl[aa[3]]:n.behaviorType==5&&((A=n.extraInfo)==null?void 0:A.valueType)=="select"?Bl[aa[4]]:Bl[aa[n.behaviorType]]||null},comChange(n,A){this.afterEventCodes=[],this.defaultLink.column.includes(n.columnCode)&&![1,2].includes(n.behaviorType)&&this.defaultLinkEvent(n,"值修改"),this.columnMapping.column.includes(n.columnCode)&&[3,4,6].includes(n.behaviorType)&&this.columnMappingEvent(n,"值修改"),(this.assocTableSearchCodes.includes(n.columnCode)&&!A||A&&A.childColumn&&this.assocTableSearchCodes.includes(A.childColumn.columnCode))&&this.assocTableSearchEvent(n,"值修改"),n.extraInfo.searchKey==2&&n.value&&this.queryOrder(n,"值修改"),this.hasExprExec&&this.exprExecCalc(n,"值修改"),this.relationColumns[n.columnCode]&&this.changeRelationOptions(n,"值修改"),n.extraInfo.isShowWarning==1&&n.value&&this.checkRepeat(n,"值修改"),this.psychicConditionCodes.includes(n.columnCode)&&this.getHiddenCodes(n,"值修改"),this.checkedConditionId.includes(n.id)&&this.getCheckedCodes(n,"值修改"),this.$emit("change",n,A)},comInput(n,A){this.afterEventCodes=[],this.defaultLink.column.includes(n.columnCode)&&this.defaultLinkEvent(n,"值修改"),this.hasExprExec&&this.exprExecCalc(n,"值修改"),this.$emit("input",n,A)},comBlur(n,A){this.afterEventCodes=[],n.extraInfo.searchKey==2&&n.value&&this.queryOrder(n,"失去焦点"),n.extraInfo.isShowWarning==1&&n.value&&this.checkRepeat(n,"失去焦点"),this.checkedConditionId.includes(n.id)&&this.getCheckedCodes(n,"失去焦点"),this.$emit("blur",n,A)},afterEventForm(n,A){if(this.afterEventCodes.includes(n.columnCode+A)){this.insetLog({content:`【${n.name}】已经触发过-${A},不再重复执行`}),this.afterEventCodes=[];return}else this.afterEventCodes.push(n.columnCode+A);this.defaultLink.column.includes(n.columnCode)&&![1,2].includes(n.behaviorType)&&this.defaultLinkEvent(n,A),this.assocTableSearchCodes.includes(n.columnCode)&&this.assocTableSearchEvent(n,A),this.columnMapping.column.includes(n.columnCode)&&[3,4,6].includes(n.behaviorType)&&this.columnMappingEvent(n,A),this.hasExprExec&&this.exprExecCalc(n,A),this.psychicConditionCodes.includes(n.columnCode)&&this.getHiddenCodes(n,A)},operate(n,A){switch(A){case"choosePackage":{this.$refs.choosePackage.open(n);break}case"chooseChildOrder":{this.$refs.chooseChildOrder.open(n);break}case"chooseAssocTable":{this.$refs.chooseAssocTable.open(n);break}case"chooseIPaasData":{this.$refs.chooseIPaasData.open(n,this.getFormContent().contents);break}case"chooseRepeat":{let o={tableCode:this.extendPost.tableCode,pageSize:200,pageNum:1,conditions:[{behaviorType:n.behaviorType,columnCode:n.columnCode,searchType:"1",value:["string","number","boolean"].includes(typeof n.value)?n.value:JSON.stringify(n.value)}]};this.$emit("operate",n,A,o,this.id);break}}},checkedPackage(n,A){this.childOrders=X.cloneDeep(A);let o="你选择包裹",r=this.setColumnsValue(n,2);r.length>0?o+="后,修改了"+r.join(",")+"的值":o+=",但没有获取到需要修改的组件。",this.insetLog({content:o})},setChildrenForm(n,A,o){let r="",l=n;for(let d in this.componentList){let f=this.componentList[d];if(f.columnCode==o){r=f.name,A=="add"&&(l=[...f.value,...l]),this.componentList[d].error="",this.componentList[d].value=X.cloneDeep(l),this.afterEventForm(this.componentList[d],"子表单填充");break}}let i=`你选中${n.length}条数据,修改了${r}的值`;this.insetLog({content:i})},getHiddenCodes:X.debounce(function(n,A){let o=`【${n.name}】${A}触发组件显隐`,{hiddenIds:r}=Ds(this.componentList,this.psychicRules,this.id);this.hiddenCodes=r,this.hiddenCodes.length>0?o+=",共隐藏"+this.hiddenCodes.length+"个组件":o+=",没有要隐藏的组件。",this.insetLog({content:o})},300),getCheckedCodes:X.debounce(function(n,A){let o=`【${n.name}】${A}触发提交校验`,r={tableCode:this.extendPost.tableCode,contents:this.getFormContent().contents};this.id&&(r.id=this.id),this.loading=!0,this.postFunc("/biztable/content/submitCheck",r).then(l=>{this.loading=!1,!l.code&&l.data&&(o+=`:${l.data.info}`,this.$message.warning(o)),this.insetLog({content:o})})},400),queryOrder:X.debounce(function(n,A){let o=`【${n.name}】${A}触发数据拉取`,r={...this.extendPost,triggerField:n.columnCode,[n.columnCode]:n.value};try{this.componentList.forEach(l=>{var i,d;((i=l.outDataSourceInfo[0])==null?void 0:i.field)=="tid"?r.tid=l.value:((d=l.insideDataSourceInfo)==null?void 0:d.type)=="seller"&&(r[l.columnCode]=l.value.code)})}catch(l){console.log(l)}this.loading=!0,this.orderList=[],this.postFunc("/v2/ods/getOdsInfoV3",r).then(l=>{var i,d;if(this.loading=!1,!l.code&&((i=l.data)==null?void 0:i.length)>0){this.orderList=l.data;let f=(d=this.dataBack)!=null&&d.key?this.componentList.filter(u=>u.columnCode==this.dataBack.key)[0]:n,B=l.data[0];if(f.extraInfo.multiplePackagesType==3){o+=",根据组件设置默认不进行回填,请您手动选择。",this.insetLog({content:o});return}else f.extraInfo.multiplePackagesType==2&&(this.$refs.choosePackage.initPackageColumns(B),B=this.$refs.choosePackage.mergeOrders(l.data));this.dataBack&&this.dataBack.order&&(this.childOrders=B[this.dataBack.order]||[]);let p=this.setColumnsValue(B,1);p.length>0?o+="后,修改了"+p.join(",")+"的值":o+=",但没有获取到需要修改的组件。",this.insetLog({content:o}),this.$emit("queryOrder",l)}else l.code==1?(o+=",未拉取到数据",this.insetLog({content:o})):(this.$message.warning("未拉取到数据"),o+=`失败:${l.msg}`,this.insetLog({content:o}))})},400),assocTableSearchEvent:X.debounce(function(n,A){let o=`【${n.name}】${A}触发子表单关联筛选条件`,r=this.getFormContent().contents,l={tableCode:this.extendPost.tableCode,conditions:"{}",taskContents:JSON.stringify(r.filter(i=>this.assocTableSearchCodes.includes(i.columnCode)))};this.loading=!0,this.postFunc("/biztable/content/relation/query",l).then(i=>{if(this.loading=!1,i.code)i.code==1?(o+=",未拉取到数据",this.insetLog({content:o})):(this.$message.warning(i.msg),o+=`,失败:${i.msg}`,this.insetLog({content:o}));else{if(i.data.inside){let d=i.data.inside,f=[],B=[];this.componentList.forEach(p=>{var u;p.behaviorType==13&&this.assocTableSearchColumnId.includes(p.id)&&(d[p.columnCode]?(p.extraInfo.dataForceFill||((u=p.value)==null?void 0:u.length)==0)&&(p.value=$f(p,d[p.columnCode]),this.afterEventForm(p,"关联筛选赋值"),f.push(p.name)):(p.extraInfo.dataForceClear||p.value.length>0)&&(p.value=[],B.push(p.name)))}),f.length>0&&(o+=`后,修改了 ${f.join(",")} 的值`),B.length>0&&(o+=`,清空了 ${B.join(",")} 的值`)}else o+=",未拉取到数据";this.insetLog({content:o})}})},400),checkRepeat:X.debounce(function(n,A){let o=`【${n.name}】${A}触发重复值校验`,r={tableCode:this.extendPost.tableCode,pageSize:200,pageNum:1,conditions:[{behaviorType:n.behaviorType,columnCode:n.columnCode,searchType:"1",value:["string","number","boolean"].includes(typeof n.value)?n.value:JSON.stringify(n.value)}]};this.loading=!0,this.postFunc("/biztable/content/query",r).then(l=>{if(this.loading=!1,l.code)l.code==1?(o+=",未拉取到数据",this.insetLog({content:o})):(this.$message.warning(l.msg),o+=`,失败:${l.msg}`,this.insetLog({content:o}));else{let i=parseInt(l.data.total);i>0&&this.id&&(i=l.data.results.find(f=>f.view.id==this.id)?i-1:i),i>0?(o+=",当前工作表查到"+i+"条相同的任务。",n.warning=`当前工作表内容有${i}条「${n.name}」相同的任务。`):o+=",当前工作没有查到相同的任务。",this.insetLog({content:o})}})},400),exprExecCalc:X.debounce(function(n,A){let o=n?`【${n.name}】${A}触发函数计算`:`${A}触发函数计算`,r={...this.extendPost,...this.getFormContent()};this.loading=!0,this.postFunc("/biztable/content/exprCalculation",r).then(l=>{var i;if(this.loading=!1,l.code)l.code==1?(o+=",未拉取到数据",this.insetLog({content:o})):(this.$message.warning(l.msg),o+=`,失败:${l.msg}`,this.insetLog({content:o}));else{let d=[];(((i=l.data)==null?void 0:i.length)>0?l.data:[]).forEach(B=>{for(let p in this.componentList)if(this.componentList[p].columnCode==B.columnCode&&!ps(this.componentList[p].value,B.value,this.componentList[p].behaviorType)){d.push(this.componentList[p].name),this.componentList[p].value=B.value||eB(this.componentList[p].value),this.afterEventForm(this.componentList[p],"函数表达式计算");break}}),d.length>0?o+="后,修改了"+d.join(",")+"的值":o+=",但没有获取到需要修改的组件。",this.insetLog({content:o})}})},400),changeRelationOptions:X.debounce(function(n,A){let o=`【${n.name}】${A}触发级联选项查询`;this.insetLog({content:o});for(let r in this.componentList)if(this.relationColumns[n.columnCode].includes(this.componentList[r].columnCode))try{let l=this.componentList[r].postData.extCondition?JSON.parse(this.componentList[r].postData.extCondition):{};l[n.columnCode]=n.value.code||n.value,this.componentList[r].postData.extCondition=JSON.stringify(l),this.componentList[r].value=[]}catch{console.log(n),console.log(this.componentList[r]),console.log("关联组件查询选项,extCondition组装失败")}},400),columnMappingEvent(n,A){try{let o=`【${n.name}】${A}触发组件映射`,r=[],l=Zf(n);this.componentList.forEach(i=>{if([3,4,6].includes(i.behaviorType)&&this.columnMapping.setColumn[n.columnCode][i.columnCode]){let f=this.columnMapping.setColumn[n.columnCode][i.columnCode].find(B=>String(B.fromValue.code||B.fromValue.id)==String(l));f&&(r.push(i.name),i.value=hs(i,f.toValue),this.afterEventForm(i,"组件映射"))}}),r.length>0?o+="后,修改了"+r.join(",")+"的值":o+=",没有找到符合映射规则的组件",this.insetLog({content:o})}catch(o){console.log("columnMappingEventErr:"+o)}},defaultLinkEvent(n,A){try{let o=`【${n.name}】${A}触发默认值映射`,r=[];this.componentList.forEach(l=>{l.behaviorType==1&&this.defaultLink.setColumn[l.columnCode]&&this.defaultLink.setColumn[l.columnCode].includes(`##${n.columnCode}`)&&(r.push(l.name),l.value=la(this.componentList,this.defaultLink.setColumn[l.columnCode])),l.behaviorType==13&&l.value.length>0&&this.defaultLink.setColumn[l.columnCode]&&this.defaultLink.setColumn[l.columnCode].includes(n.columnCode)&&l.value.forEach(i=>{for(let d in i)this.defaultLink.setColumn[`${l.columnCode}.${d}`]&&this.defaultLink.setColumn[`${l.columnCode}.${d}`].includes(`##${n.columnCode}`)&&(r.push(l.name),i[d]=la(this.componentList,this.defaultLink.setColumn[`${l.columnCode}.${d}`]))})}),o+="后,修改了"+r.join(",")+"的值",this.insetLog({content:o})}catch(o){console.log("defaultLinkEventErr:"+o)}},shouldFillData(n,A){if(A!==1&&(A!==2||n.behaviorType!==13))return!0;const{multiplePackagesType:o}=n.extraInfo||{};return n.behaviorType===13?o!==3:!o||o!==3},getFillValue(n,A,o){const{multiplePackagesType:r}=n.extraInfo||{};return n.behaviorType===13?r===1?[A[o][0]]:A[o]:n.behaviorType===4&&!A[o].code&&A[o].id?{...A[o],code:A[o].id}:A[o]},setColumnsValue(n,A){let o=[];return this.componentList.forEach(r=>{if(n[r.columnCode]){if(!this.shouldFillData(r,A))return;let l=this.getFillValue(r,n,r.columnCode);ps(r.value,l,r.behaviorType)||(r.value=X.cloneDeep(l),this.afterEventForm(r,"辅助回填"),o.push(`【${r.name}】`))}}),o},insetLog({content:n}){const A=new Date,o=A.getHours(),r=A.getMinutes(),l=`${o.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`;this.formLogs.push({time:l,content:n})}},computed:{componentList:{get(){return this.components},set(n){this.$emit("update:components",n)}},initExtraInfo(){return{...{isAutoAssign:0},...this.extraInfo}}}},Up={class:"BnSmartForm"},kp={key:2,class:"BnSmartForm-head"},Sp={class:"BnSmartForm-body"},Rp=["id"],Tp={key:3,class:"BnSmartForm-elf"};function Hp(n,A,o,r,l,i){const d=e.resolveComponent("chooseAssocTable"),f=e.resolveComponent("chooseIPaasData"),B=e.resolveComponent("choosePackage"),p=e.resolveComponent("chooseChildOrder"),u=e.resolveComponent("el-progress"),I=e.resolveComponent("el-scrollbar"),w=e.resolveComponent("BnSmartElf");return e.openBlock(),e.createElementBlock("div",Up,[e.createVNode(d,{ref:"chooseAssocTable",componentList:i.componentList,postFunc:o.postFunc,extendPost:o.extendPost,onSetChildrenForm:i.setChildrenForm},null,8,["componentList","postFunc","extendPost","onSetChildrenForm"]),e.createVNode(f,{ref:"chooseIPaasData",componentList:i.componentList,postFunc:o.postFunc,extendPost:o.extendPost,onSetChildrenForm:i.setChildrenForm},null,8,["componentList","postFunc","extendPost","onSetChildrenForm"]),o.dataBack&&o.dataBack.order?(e.openBlock(),e.createBlock(B,{key:0,ref:"choosePackage",orderList:l.orderList,onCheckedPackage:i.checkedPackage,componentList:i.componentList,dataBack:o.dataBack},null,8,["orderList","onCheckedPackage","componentList","dataBack"])):e.createCommentVNode("",!0),o.dataBack?(e.openBlock(),e.createBlock(p,{key:1,ref:"chooseChildOrder",childOrders:l.childOrders,onSetChildrenForm:i.setChildrenForm,componentList:i.componentList,dataBack:o.dataBack},null,8,["childOrders","onSetChildrenForm","componentList","dataBack"])):e.createCommentVNode("",!0),l.loading?(e.openBlock(),e.createElementBlock("div",kp,[e.createVNode(u,{percentage:70,indeterminate:!0,"show-text":!1,striped:""})])):e.createCommentVNode("",!0),e.createElementVNode("div",Sp,[e.createVNode(I,{ref:"formScroll",height:"100%",style:{background:"#fff"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.componentList,(C,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.isShow(C)?(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["BnSmartForm-body-item",C.className||""]),key:b,id:"col_"+C.columnCode},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.componentView(C)),{column:C,postFunc:o.postFunc,taskId:o.id,extraInfo:i.initExtraInfo,defaultLink:l.defaultLink,componentList:i.componentList,dataBack:o.dataBack,disabled:i.isDisabled(C),onOperate:i.operate,onOnChange:i.comChange,onOnInput:i.comInput,onBlur:i.comBlur},null,40,["column","postFunc","taskId","extraInfo","defaultLink","componentList","dataBack","disabled","onOperate","onOnChange","onOnInput","onBlur"]))],10,Rp)):e.createCommentVNode("",!0)],64))),256))]),_:1},512)]),l.showElf?(e.openBlock(),e.createElementBlock("div",Tp,[e.createVNode(w,{logs:l.formLogs,onClose:A[0]||(A[0]=C=>l.showElf=!1)},null,8,["logs"])])):e.createCommentVNode("",!0)])}const ys=ne(Np,[["render",Hp],["__scopeId","data-v-c658ebed"]]),Pp={name:"BnBatchForm",props:{id:[String,Number],modelValue:Object,extendPost:Object,components:Array,postFunc:Function},methods:{getFormContent(){let n={contents:[]};try{for(let A in this.componentList){let o=X.cloneDeep(this.componentList[A]),r={columnCode:o.columnCode};switch(o.behaviorType){case 1:case 2:case 9:case 7:case 11:{r.value=o.value;break}case 3:case 4:case 5:case 6:case 20:case 8:case 10:case 12:case 13:case 14:case 15:{r.value=o.value?JSON.stringify(o.value):"";break}}n.contents.push(r)}}catch(A){console.log("getFormContentErr:"+A)}return n},checkFormContent(){let n={column:null,checked:!0};for(let A in this.componentList){let o={...this.componentList[A]},r={columnCode:o.columnCode};switch(o.behaviorType){case 1:case 2:{o.extraInfo.valueEmptyCheck==1&&o.behaviorType==1&&X.isEmpty(o.value)&&(this.componentList[A].error=o.name+"的值不能为空"),o.extraInfo.valueEmptyCheck==1&&o.behaviorType==2&&(o.value===void 0||o.value===null||o.value==="")&&(this.componentList[A].error=o.name+"的值不能为空"),o.extraInfo.regular&&(new RegExp(o.extraInfo.regular).test(o.value)||(this.componentList[A].error=o.extraInfo.paraExplain||"请输入符合要求的"+o.name));break}case 3:case 4:case 5:case 6:case 20:case 8:case 10:case 12:case 9:case 7:case 11:{o.extraInfo.valueEmptyCheck==1&&X.isEmpty(o.value)&&(this.componentList[A].error=o.name+"的值不能为空");break}case 13:{if(o.extraInfo.valueEmptyCheck==1)if(X.isEmpty(o.value))this.componentList[A].error=o.name+"至少要有一条内容";else{let l=fs(o,this.id);l&&(this.componentList[A].error=l)}break}case 14:case 15:{if(o.extraInfo.valueEmptyCheck==1){for(let l in o.value)if(X.isEmpty(o.value[l])){this.componentList[A].error=`请输入完整的${o.name}`;break}}break}}if(this.componentList[A].error){n.column=this.componentList[A],n.checked=!1,this.getHere(r,!0);break}}return n},getHere(n){const A=document.getElementById("col_"+n.columnCode);A&&this.$refs.formScroll&&this.$refs.formScroll.scrollTo({top:A.offsetTop,behavior:"smooth"})},saveTask(){if(this.checkFormContent()){let n=this.getFormContent();return{check:!0,taskStatus:{},carryUser:{},...n}}else return{check:!1}},componentView(n){const A={stringForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ql)),numberForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>wl)),selectForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Cl)),radioForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>vl)),checkboxForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>bl)),dateForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Dl)),dateDualForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>yl)),fileForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ml)),childrenForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>xl)),addressForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Yl)),receiveForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Fl)),relationForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Nl))};let o=aa[n.behaviorType]||null;return A[o]},comChange(){this.$emit("change",this.value)}},computed:{componentList:{get(){return this.components},set(n){this.$emit("update:components",n)}},value(){const n=this.getFormContent();return this.$emit("update:modelValue",n),n}}},Gp={class:"BnBatchForm"},Jp=["val"],jp=["id"],Lp=["onClick"];function Vp(n,A,o,r,l,i){const d=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",Gp,[e.createElementVNode("div",{class:"BnBatchForm-body",val:i.value},[e.createVNode(d,{ref:"formScroll",height:"100%",style:{background:"#fff"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.componentList,(f,B)=>(e.openBlock(),e.createElementBlock("div",{key:B,class:"BnBatchForm-body-item",id:"col_"+f.columnCode},[e.createElementVNode("div",{class:"BnBatchForm-body-item-del",onClick:p=>i.componentList.splice(B,1)},[...A[0]||(A[0]=[e.createElementVNode("span",{class:"bnUIcon bnUIcon-delete"},null,-1)])],8,Lp),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.componentView(f)),{column:f,postFunc:o.postFunc,onOnChange:i.comChange},null,40,["column","postFunc","onOnChange"]))],8,jp))),128))]),_:1},512)],8,Jp)])}const pl=ne(Pp,[["render",Vp],["__scopeId","data-v-600466e3"]]),Op="/biztable/content/updateBatch",Wp={name:"BnBatchFormDialog",components:{BnBatchForm:pl},props:{tableInfo:{type:Object,required:!0},componentList:{type:Array,required:!0},selectData:{type:Array,required:!0},source:{type:String,required:!0},postFunc:{type:Function,required:!0},userId:[String,Number],useInnerRequest:{type:Boolean,default:!0}},emits:["submitSuccess","submit","close"],data(){return{show:!1,loading:!1,formComponent:[],editComponents:[],formVal:{},rememberComponents:!1}},computed:{mergedExtendPost(){var A,o;const n={appId:(A=this.tableInfo)==null?void 0:A.appId,projectId:(o=this.tableInfo)==null?void 0:o.tableId,source:this.source};return this.userId!=null&&(n.userId=this.userId),n},selectCount(){return this.selectData.length||0}},methods:{getColumnCode(n){return n==null?null:typeof n=="object"?n.columnCode:n},extractColumnCodes(n=[]){return n.map(A=>this.getColumnCode(A)).filter(A=>A!=null&&A!=="")},restoreFormComponents(n=[]){const A=this.extractColumnCodes(n);if(!A.length||!this.editComponents.length)return;const o=A.map(r=>this.editComponents.find(l=>l.columnCode===r)).filter(Boolean);o.length&&(this.formComponent=o)},getStorageKey(){var A;const n=(A=this.tableInfo)==null?void 0:A.tableId;return this.userId&&n?`batchEditForm_components_v1_${this.userId}_${n}`:null},getStoredState(){const n=this.getStorageKey();if(!n)return null;try{return JSON.parse(localStorage.getItem(n)||"{}")}catch{return{}}},saveStoredState(){const n=this.getStorageKey();n&&localStorage.setItem(n,JSON.stringify({remember:this.rememberComponents,columnCodes:this.rememberComponents?this.extractColumnCodes(this.formComponent):[]}))},saveRememberFlag(){const n=this.getStorageKey();if(!n)return;const A=this.getStoredState()||{};localStorage.setItem(n,JSON.stringify({...A,remember:this.rememberComponents,columnCodes:this.rememberComponents?A.columnCodes||[]:[]}))},loadStoredState(){var A,o;const n=this.getStoredState();return!n||!Object.keys(n).length||(n.remember===void 0&&((A=n.columnCodes)!=null&&A.length)?this.rememberComponents=!0:this.rememberComponents=!!n.remember,this.rememberComponents&&((o=n.columnCodes)!=null&&o.length)&&this.restoreFormComponents(n.columnCodes)),n},handleClose(){this.show=!1,this.$emit("close")},clearAllComponents(){this.formComponent=[],this.formVal={}},open(){var A;this.editComponents=X.cloneDeep((this.componentList||[]).filter(o=>{const r=o.extraInfo||{};return r.searchKey==2||r.valueEditable==1?!1:r.isEditable==1})),this.formComponent=[],this.formVal={},this.rememberComponents=!1;const n=this.loadStoredState();this.show=!0,(A=n==null?void 0:n.columnCodes)!=null&&A.length&&this.$nextTick(()=>{this.rememberComponents&&!this.formComponent.length&&this.restoreFormComponents(n.columnCodes)})},buildPostData(){var n;return{tableCode:(n=this.tableInfo)==null?void 0:n.tableCode,contents:this.formVal.contents,ids:this.selectData||[]}},internalBatchEditTask(n){return this.postFunc(Op,n)},handleSubmitSuccess(n,A){this.saveStoredState(),this.show=!1,this.$emit("submitSuccess",n,A)},submitTask(){if(!this.validateForm())return;const n=this.buildPostData();if(!this.useInnerRequest){this.saveStoredState(),this.$emit("submit",n);return}this.loading=!0,this.internalBatchEditTask(n).then(A=>{this.loading=!1,A.code||this.handleSubmitSuccess(A,n)}).catch(()=>{this.loading=!1})},validateForm(){var A,o;if(!this.$refs.smartForm)return!0;const n=(o=(A=this.$refs.smartForm).checkFormContent)==null?void 0:o.call(A);return!!(n!=null&&n.checked)}}},zp={key:0,id:"batchEditForm",class:"bn-batch-form-dialog"},Kp={class:"bn-batch-form-dialog-main"},Xp={class:"bn-batch-form-dialog-main-top"},Zp={class:"w-color-gray w-font12"},qp={class:"w-color-blue"},_p={class:"w-padding20"},$p={class:"w-tip bn-batch-form-dialog-tip"},eu={class:"bn-batch-form-dialog-component-row"},Au={key:0,class:"bn-batch-form-dialog-main-body"},tu={key:1,class:"bn-batch-form-dialog-empty"},nu={class:"bn-batch-form-dialog-main-bottom"};function ou(n,A,o,r,l,i){const d=e.resolveComponent("BnDrop"),f=e.resolveComponent("el-popconfirm"),B=e.resolveComponent("BnBatchForm"),p=e.resolveComponent("BnEmptyTip"),u=e.resolveComponent("el-checkbox"),I=e.resolveComponent("el-button"),w=e.resolveDirective("loading");return l.show?(e.openBlock(),e.createElementBlock("div",zp,[e.createElementVNode("div",Kp,[e.createElementVNode("div",Xp,[e.renderSlot(n.$slots,"top",{selectCount:i.selectCount},()=>[e.createElementVNode("span",null,[A[6]||(A[6]=e.createTextVNode(" 批量编辑 ",-1)),e.createElementVNode("span",Zp,[A[4]||(A[4]=e.createTextVNode(" 已选择 ",-1)),e.createElementVNode("span",qp,e.toDisplayString(i.selectCount),1),A[5]||(A[5]=e.createTextVNode(" 条工单 ",-1))])])],!0),e.createElementVNode("span",{class:"sIcon sIcon-close",onClick:A[0]||(A[0]=(...C)=>i.handleClose&&i.handleClose(...C))})]),e.createElementVNode("div",_p,[e.renderSlot(n.$slots,"tip",{},()=>[e.createElementVNode("div",$p,[A[7]||(A[7]=e.createStaticVNode('<div data-v-b1811f13><span class="bn-batch-form-dialog-tip-num" data-v-b1811f13>1.</span><span class="w-color-orange" data-v-b1811f13>批量编辑不支持组件触发拉取,</span><span class="w-color-gray" data-v-b1811f13>例如:订单号、ERP订单号、物流单号、运单号等组件不允许批量修改。</span></div><div data-v-b1811f13><span class="bn-batch-form-dialog-tip-num" data-v-b1811f13>2.</span><span class="w-color-gray" data-v-b1811f13>不可编辑的工单组件不支持批量修改。</span></div><div data-v-b1811f13><span class="bn-batch-form-dialog-tip-num" data-v-b1811f13>3.</span><span class="w-color-gray" data-v-b1811f13>手动添加需要修改的组件,注意:如添加的组件最后保存时值为空,则会清空工单组件数据。</span></div>',3)),e.renderSlot(n.$slots,"tip-extra",{},void 0,!0)])],!0),e.createElementVNode("div",eu,[e.createVNode(d,{modelValue:l.formComponent,"onUpdate:modelValue":A[1]||(A[1]=C=>l.formComponent=C),options:l.editComponents,"option-props":{value:"columnCode",label:"name"},multiple:""},{default:e.withCtx(()=>[...A[8]||(A[8]=[e.createElementVNode("span",{class:"w-color-blue w-font13 w-cursor-pointer"},"请选择组件",-1)])]),_:1},8,["modelValue","options"]),l.formComponent.length>0?(e.openBlock(),e.createBlock(f,{key:0,title:"确定要清空所有已选组件吗?","confirm-button-text":"确定","cancel-button-text":"取消",onConfirm:i.clearAllComponents},{reference:e.withCtx(()=>[...A[9]||(A[9]=[e.createElementVNode("span",{class:"bn-batch-form-dialog-clear-all"},[e.createElementVNode("span",{class:"sIcon sIcon-delete"}),e.createTextVNode(" 一键清空组件 ")],-1)])]),_:1},8,["onConfirm"])):e.createCommentVNode("",!0)])]),l.formComponent.length>0?e.withDirectives((e.openBlock(),e.createElementBlock("div",Au,[e.renderSlot(n.$slots,"form",{formComponent:l.formComponent,formVal:l.formVal,loading:l.loading},()=>[e.createVNode(B,{ref:"smartForm",modelValue:l.formVal,"onUpdate:modelValue":A[2]||(A[2]=C=>l.formVal=C),components:l.formComponent,"extend-post":i.mergedExtendPost,"post-func":o.postFunc},null,8,["modelValue","components","extend-post","post-func"])],!0)])),[[w,l.loading]]):e.createCommentVNode("",!0),l.formComponent.length==0?(e.openBlock(),e.createElementBlock("div",tu,[e.renderSlot(n.$slots,"empty",{},()=>[e.createVNode(p,{tip:"请先选择要修改的组件"})],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",nu,[e.renderSlot(n.$slots,"footer",{loading:l.loading,submit:i.submitTask,rememberComponents:l.rememberComponents,selectCount:i.selectCount},()=>[e.createVNode(u,{modelValue:l.rememberComponents,"onUpdate:modelValue":A[3]||(A[3]=C=>l.rememberComponents=C),onChange:i.saveRememberFlag},{default:e.withCtx(()=>[...A[10]||(A[10]=[e.createTextVNode("记住本次编辑组件,下次默认加载",-1)])]),_:1},8,["modelValue","onChange"]),e.createVNode(I,{type:"primary",loading:l.loading,onClick:i.submitTask},{default:e.withCtx(()=>[...A[11]||(A[11]=[e.createTextVNode(" 提交 ",-1)])]),_:1},8,["loading","onClick"])],!0)])])])):e.createCommentVNode("",!0)}const Ms=ne(Wp,[["render",ou],["__scopeId","data-v-b1811f13"]]);function au(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function lu(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var A=n.default;if(typeof A=="function"){var o=function r(){return this instanceof r?Reflect.construct(A,arguments,this.constructor):A.apply(this,arguments)};o.prototype=A.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var l=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(o,r,l.get?l:{enumerable:!0,get:function(){return n[r]}})}),o}var xs={exports:{}},ca={exports:{}},iu=ca.exports,Ys;function Fs(){return Ys||(Ys=1,(function(n,A){(function(o,r){n.exports=r()})(iu,(function(){var o=navigator.userAgent,r=navigator.platform,l=/gecko\/\d/i.test(o),i=/MSIE \d/.test(o),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),f=/Edge\/(\d+)/.exec(o),B=i||d||f,p=B&&(i?document.documentMode||6:+(f||d)[1]),u=!f&&/WebKit\//.test(o),I=u&&/Qt\/\d+\.\d+/.test(o),w=!f&&/Chrome\/(\d+)/.exec(o),C=w&&+w[1],b=/Opera\//.test(o),M=/Apple Computer/.test(navigator.vendor),U=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),Y=/PhantomJS/.test(o),S=M&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),T=/Android/.test(o),G=S||T||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),z=S||/Mac/.test(r),j=/\bCrOS\b/.test(o),ue=/win/i.test(r),de=b&&o.match(/Version\/(\d*\.\d*)/);de&&(de=Number(de[1])),de&&de>=15&&(b=!1,u=!0);var _=z&&(I||b&&(de==null||de<12.11)),se=l||B&&p>=9;function ee(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var Qe=function(t,a){var c=t.className,s=ee(a).exec(c);if(s){var h=c.slice(s.index+s[0].length);t.className=c.slice(0,s.index)+(h?s[1]+h:"")}};function R(t){for(var a=t.childNodes.length;a>0;--a)t.removeChild(t.firstChild);return t}function W(t,a){return R(t).appendChild(a)}function x(t,a,c,s){var h=document.createElement(t);if(c&&(h.className=c),s&&(h.style.cssText=s),typeof a=="string")h.appendChild(document.createTextNode(a));else if(a)for(var g=0;g<a.length;++g)h.appendChild(a[g]);return h}function le(t,a,c,s){var h=x(t,a,c,s);return h.setAttribute("role","presentation"),h}var Ee;document.createRange?Ee=function(t,a,c,s){var h=document.createRange();return h.setEnd(s||t,c),h.setStart(t,a),h}:Ee=function(t,a,c){var s=document.body.createTextRange();try{s.moveToElementText(t.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",c),s.moveStart("character",a),s};function He(t,a){if(a.nodeType==3&&(a=a.parentNode),t.contains)return t.contains(a);do if(a.nodeType==11&&(a=a.host),a==t)return!0;while(a=a.parentNode)}function Ge(t){var a=t.ownerDocument||t,c;try{c=t.activeElement}catch{c=a.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function qe(t,a){var c=t.className;ee(a).test(c)||(t.className+=(c?" ":"")+a)}function Ke(t,a){for(var c=t.split(" "),s=0;s<c.length;s++)c[s]&&!ee(c[s]).test(a)&&(a+=" "+c[s]);return a}var $e=function(t){t.select()};S?$e=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:B&&($e=function(t){try{t.select()}catch{}});function ze(t){return t.display.wrapper.ownerDocument}function eA(t){return je(t.display.wrapper)}function je(t){return t.getRootNode?t.getRootNode():t.ownerDocument}function fe(t){return ze(t).defaultView}function he(t){var a=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,a)}}function ye(t,a,c){a||(a={});for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(c!==!1||!Object.prototype.hasOwnProperty.call(a,s))&&(a[s]=t[s]);return a}function ke(t,a,c,s,h){a==null&&(a=t.search(/[^\s\u00a0]/),a==-1&&(a=t.length));for(var g=s||0,E=h||0;;){var m=t.indexOf(" ",g);if(m<0||m>=a)return E+(a-g);E+=m-g,E+=c-E%c,g=m+1}}var CA=function(){this.id=null,this.f=null,this.time=0,this.handler=he(this.onTimeout,this)};CA.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},CA.prototype.set=function(t,a){this.f=a;var c=+new Date+t;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=c)};function Fe(t,a){for(var c=0;c<t.length;++c)if(t[c]==a)return c;return-1}var aA=50,oA={toString:function(){return"CodeMirror.Pass"}},_e={scroll:!1},YA={origin:"*mouse"},cA={origin:"+move"};function EA(t,a,c){for(var s=0,h=0;;){var g=t.indexOf(" ",s);g==-1&&(g=t.length);var E=g-s;if(g==t.length||h+E>=a)return s+Math.min(E,a-h);if(h+=g-s,h+=c-h%c,s=g+1,h>=a)return s}}var At=[""];function Jt(t){for(;At.length<=t;)At.push(Re(At)+" ");return At[t]}function Re(t){return t[t.length-1]}function HA(t,a){for(var c=[],s=0;s<t.length;s++)c[s]=a(t[s],s);return c}function yt(t,a,c){for(var s=0,h=c(a);s<t.length&&c(t[s])<=h;)s++;t.splice(s,0,a)}function Mt(){}function xt(t,a){var c;return Object.create?c=Object.create(t):(Mt.prototype=t,c=new Mt),a&&ye(a,c),c}var jt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pt(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||jt.test(t))}function OA(t,a){return a?a.source.indexOf("\\w")>-1&&pt(t)?!0:a.test(t):pt(t)}function Yt(t){for(var a in t)if(t.hasOwnProperty(a)&&t[a])return!1;return!0}var J=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function P(t){return t.charCodeAt(0)>=768&&J.test(t)}function O(t,a,c){for(;(c<0?a>0:a<t.length)&&P(t.charAt(a));)a+=c;return a}function $(t,a,c){for(var s=a>c?-1:1;;){if(a==c)return a;var h=(a+c)/2,g=s<0?Math.ceil(h):Math.floor(h);if(g==a)return t(g)?a:c;t(g)?c=g:a=g+s}}function Be(t,a,c,s){if(!t)return s(a,c,"ltr",0);for(var h=!1,g=0;g<t.length;++g){var E=t[g];(E.from<c&&E.to>a||a==c&&E.to==a)&&(s(Math.max(E.from,a),Math.min(E.to,c),E.level==1?"rtl":"ltr",g),h=!0)}h||s(a,c,"ltr")}var Me=null;function Ne(t,a,c){var s;Me=null;for(var h=0;h<t.length;++h){var g=t[h];if(g.from<a&&g.to>a)return h;g.to==a&&(g.from!=g.to&&c=="before"?s=h:Me=h),g.from==a&&(g.from!=g.to&&c!="before"?s=h:Me=h)}return s??Me}var We=(function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",a="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(v){return v<=247?t.charAt(v):1424<=v&&v<=1524?"R":1536<=v&&v<=1785?a.charAt(v-1536):1774<=v&&v<=2220?"r":8192<=v&&v<=8203?"w":v==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,g=/[LRr]/,E=/[Lb1n]/,m=/[1n]/;function Q(v,y,N){this.level=v,this.from=y,this.to=N}return function(v,y){var N=y=="ltr"?"L":"R";if(v.length==0||y=="ltr"&&!s.test(v))return!1;for(var H=v.length,k=[],V=0;V<H;++V)k.push(c(v.charCodeAt(V)));for(var Z=0,te=N;Z<H;++Z){var oe=k[Z];oe=="m"?k[Z]=te:te=oe}for(var re=0,ae=N;re<H;++re){var ge=k[re];ge=="1"&&ae=="r"?k[re]="n":g.test(ge)&&(ae=ge,ge=="r"&&(k[re]="R"))}for(var De=1,ve=k[0];De<H-1;++De){var Je=k[De];Je=="+"&&ve=="1"&&k[De+1]=="1"?k[De]="1":Je==","&&ve==k[De+1]&&(ve=="1"||ve=="n")&&(k[De]=ve),ve=Je}for(var tA=0;tA<H;++tA){var MA=k[tA];if(MA==",")k[tA]="N";else if(MA=="%"){var rA=void 0;for(rA=tA+1;rA<H&&k[rA]=="%";++rA);for(var nt=tA&&k[tA-1]=="!"||rA<H&&k[rA]=="1"?"1":"N",ZA=tA;ZA<rA;++ZA)k[ZA]=nt;tA=rA-1}}for(var mA=0,qA=N;mA<H;++mA){var FA=k[mA];qA=="L"&&FA=="1"?k[mA]="L":g.test(FA)&&(qA=FA)}for(var wA=0;wA<H;++wA)if(h.test(k[wA])){var IA=void 0;for(IA=wA+1;IA<H&&h.test(k[IA]);++IA);for(var gA=(wA?k[wA-1]:N)=="L",_A=(IA<H?k[IA]:N)=="L",co=gA==_A?gA?"L":"R":N,gn=wA;gn<IA;++gn)k[gn]=co;wA=IA-1}for(var SA=[],St,xA=0;xA<H;)if(E.test(k[xA])){var Oi=xA;for(++xA;xA<H&&E.test(k[xA]);++xA);SA.push(new Q(0,Oi,xA))}else{var Xt=xA,yn=SA.length,Mn=y=="rtl"?1:0;for(++xA;xA<H&&k[xA]!="L";++xA);for(var LA=Xt;LA<xA;)if(m.test(k[LA])){Xt<LA&&(SA.splice(yn,0,new Q(1,Xt,LA)),yn+=Mn);var ro=LA;for(++LA;LA<xA&&m.test(k[LA]);++LA);SA.splice(yn,0,new Q(2,ro,LA)),yn+=Mn,Xt=LA}else++LA;Xt<xA&&SA.splice(yn,0,new Q(1,Xt,xA))}return y=="ltr"&&(SA[0].level==1&&(St=v.match(/^\s+/))&&(SA[0].from=St[0].length,SA.unshift(new Q(0,0,St[0].length))),Re(SA).level==1&&(St=v.match(/\s+$/))&&(Re(SA).to-=St[0].length,SA.push(new Q(0,H-St[0].length,H)))),y=="rtl"?SA.reverse():SA}})();function we(t,a){var c=t.order;return c==null&&(c=t.order=We(t.text,a)),c}var Ye=[],q=function(t,a,c){if(t.addEventListener)t.addEventListener(a,c,!1);else if(t.attachEvent)t.attachEvent("on"+a,c);else{var s=t._handlers||(t._handlers={});s[a]=(s[a]||Ye).concat(c)}};function Ce(t,a){return t._handlers&&t._handlers[a]||Ye}function xe(t,a,c){if(t.removeEventListener)t.removeEventListener(a,c,!1);else if(t.detachEvent)t.detachEvent("on"+a,c);else{var s=t._handlers,h=s&&s[a];if(h){var g=Fe(h,c);g>-1&&(s[a]=h.slice(0,g).concat(h.slice(g+1)))}}}function be(t,a){var c=Ce(t,a);if(c.length)for(var s=Array.prototype.slice.call(arguments,2),h=0;h<c.length;++h)c[h].apply(null,s)}function Ve(t,a,c){return typeof a=="string"&&(a={type:a,preventDefault:function(){this.defaultPrevented=!0}}),be(t,c||a.type,t,a),WA(a)||a.codemirrorIgnore}function PA(t){var a=t._handlers&&t._handlers.cursorActivity;if(a)for(var c=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),s=0;s<a.length;++s)Fe(c,a[s])==-1&&c.push(a[s])}function GA(t,a){return Ce(t,a).length>0}function JA(t){t.prototype.on=function(a,c){q(this,a,c)},t.prototype.off=function(a,c){xe(this,a,c)}}function UA(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Hn(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function WA(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function en(t){UA(t),Hn(t)}function Mo(t){return t.target||t.srcElement}function ut(t){var a=t.which;return a==null&&(t.button&1?a=1:t.button&2?a=3:t.button&4&&(a=2)),z&&t.ctrlKey&&a==1&&(a=3),a}var _l=(function(){if(B&&p<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t})(),Pn;function xa(t){if(Pn==null){var a=x("span","​");W(t,x("span",[a,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Pn=a.offsetWidth<=1&&a.offsetHeight>2&&!(B&&p<8))}var c=Pn?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var xo;function An(t){if(xo!=null)return xo;var a=W(t,document.createTextNode("AخA")),c=Ee(a,0,1).getBoundingClientRect(),s=Ee(a,1,2).getBoundingClientRect();return R(t),!c||c.left==c.right?!1:xo=s.right-c.right<3}var ht=`
12
+ `)}else Qs(A,o)&&(A=o+A)}),A}function tp(n,A,o={}){const r=ep(o);r&&LB(r);const l=Ap(n);return VB(l)}const ws={1:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],2:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"大于",id:"16"},{title:"小于",id:"17"},{title:"大于等于",id:"18"},{title:"小于等于",id:"19"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],3:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],4:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],5:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],6:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],20:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],7:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"大于",id:"16"},{title:"小于",id:"17"},{title:"大于等于",id:"18"},{title:"小于等于",id:"19"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],8:[{title:"范围",id:"8"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],9:[{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],10:[{title:"为空",id:"9"},{title:"不为空",id:"10"}],11:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],12:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],13:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],14:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],15:[{title:"为空",id:"9"},{title:"不为空",id:"10"}]},np={1:"0",2:"0",3:"2",4:"2",5:"2",6:"2",7:"0",8:"0",9:"0",10:"2",11:"2",12:"2",13:"2",14:"2",15:"2"},op={1:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"重复",id:"15"},{title:"不重复",id:"14"}],2:[{title:"范围",id:"8"},{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],3:[{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],4:[{title:"包含任一项",id:"5"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],5:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],6:[{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],20:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],7:[{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],8:[{title:"范围",id:"8"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],9:[{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],10:[{title:"为空",id:"9"},{title:"不为空",id:"10"}],11:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],12:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],13:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"包含任一项",id:"5"},{title:"不包含任一项",id:"6"},{title:"包含所有项",id:"7"},{title:"范围",id:"8"},{title:"为空",id:"9"},{title:"不为空",id:"10"},{title:"属于",id:"11"},{title:"有交集",id:"12"},{title:"无交集",id:"13"}],14:[{title:"等于",id:"1"},{title:"不等于",id:"2"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"}],15:[{title:"等于",id:"1"},{title:"包含",id:"3"},{title:"不包含",id:"4"},{title:"为空",id:"9"},{title:"不为空",id:"10"}]},sl=[{title:"班牛助手(工单)",code:"10001487",id:"10001487"},{title:"班牛助手(服务大厅)",code:"857",id:"857"},{title:"班牛助手(API)",code:"110430206",id:"110430206"}];function ap(n,A,o="id",r="title",l=","){if(!(n!=null&&n.length))return"";if(!A)return n.join(l);const i=new Map;if(Array.isArray(A))for(let f=0,B=A.length;f<B;f++){const p=A[f];p&&i.set(p[o],p[r])}else if(typeof A=="object"){const f=Object.keys(A);for(let B=0,p=f.length;B<p;B++){const u=f[B];i.set(u,A[u])}}let d="";for(let f=0,B=n.length;f<B;f++){const p=n[f];d+=(f>0?l:"")+(i.has(String(p))?i.get(String(p)):i.has(p)?i.get(p):p)}return d}function lp(n,A){let o;if(document.selection)n.focus(),o=document.selection.createRange(),o.text=A,n.focus();else if(n.selectionStart||n.selectionStart=="0"){let r=n.selectionStart,l=n.selectionEnd,i=n.scrollTop;n.value=n.value.substring(0,r)+A+n.value.substring(l,n.value.length),n.focus(),n.selectionStart=r+A.length,n.selectionEnd=r+A.length,n.scrollTop=i}else n.value+=A,n.focus();return n.value}function cl(n){var o,r;if(n.extraInfo.listShow!=1)return null;let A={id:n.id,behaviorType:n.behaviorType,columnCode:n.columnCode,name:n.name,valueType:np[n.behaviorType],extraInfo:n.extraInfo||{},moduleDefinition:n.moduleDefinition||[],insideDataSourceInfo:n.insideDataSourceInfo,outDataSourceInfo:n.outDataSourceInfo||[],matchType:(o=ws[n.behaviorType][0])==null?void 0:o.id,searchType:(r=ws[n.behaviorType][0])==null?void 0:r.id,parentCode:n.parent?n.parent.columnCode:"",parentId:n.parent?n.parent.id:"",parentBehaviorType:n.parent?n.parent.behaviorType:""};switch(A.behaviorType){case 1:case 9:case 11:{A.value="";break}case 3:case 4:{n.insideDataSourceInfo&&n.insideDataSourceInfo.type&&(A.postData={appId:n.appId,projectId:n.tableId,...n.insideDataSourceInfo},A.pathUrl="/v2/project/column/select"),A.value={},A.matchType&&!["1","2","9","10"].includes(A.matchType)&&(A.value=[]);break}case 5:case 6:case 20:case 12:{n.parent&&[14,15].includes(n.parent.behaviorType)&&(A.pathUrl="/address/getAreaDataList"),A.value=[];break}case 10:{A.pathUrl=xn()+"/v2/attachment/upload/task",A.value=[];break}case 2:case 7:{A.value="",A.matchType=="8"&&(A.value={start:"",end:""});break}case 8:{A.value=[],A.matchType&&(A.value={start:"",end:""});break}case 13:{A.value=[],A.moduleDefinition=A.moduleDefinition?A.moduleDefinition:[];let l=[];for(let i in A.moduleDefinition){let d=cl(A.moduleDefinition[i]);d&&l.push(d)}A.moduleDefinition=l;break}}return A}function rl(n,A,o){let r=[];return n.forEach(l=>{if([13,14,15].includes(l.behaviorType))l.moduleDefinition.forEach(i=>{let d=cl({...i,name:`${l.name}-${i.name}`,parent:l,appId:A,tableId:o});d&&r.push(d)});else{let i=cl({...l,appId:A,tableId:o});i&&r.push(i)}}),r}function dl(n){let A=X.cloneDeep(n);return A.forEach(o=>{if(o.value!=null){const r=typeof o.value;if(r!=="string"&&r!=="number"&&r!=="boolean")try{o.value=JSON.stringify(o.value)}catch{console.warn("JSON stringify failed for value:",o.value),o.value=String(o.value)}}}),A}function sa(n,A){var r;if(A&&n.extraInfo[A]!=1)return null;let o={id:n.id,type:n.type,behaviorType:n.behaviorType,defaultInfo:n.defaultInfo,columnCode:n.columnCode,name:n.name,extraInfo:n.extraInfo||{},style:n.style||{},moduleDefinition:n.moduleDefinition||[],insideDataSourceInfo:n.insideDataSourceInfo,outDataSourceInfo:n.outDataSourceInfo||[]};if(A=="queryShow"&&(o.searchType=(r=op[n.behaviorType][0])==null?void 0:r.id,o.parentCode=n.parent?n.parent.columnCode:null,["alarm_status","sync_status"].includes(n.columnCode)))return null;switch(o.behaviorType){case 1:case 9:case 11:{o.value="";break}case 3:case 4:{n.insideDataSourceInfo&&n.insideDataSourceInfo.type&&(o.postData={appId:n.appId,projectId:n.tableId,ids:JSON.stringify(n.insideDataSourceInfo),...n.insideDataSourceInfo},n.insideDataSourceInfo.type=="user"&&(o.postData.selectParams='{"userColId":"-1"}',o.moduleDefinition=X.cloneDeep(sl)),o.pathUrl="/v2/project/column/select"),o.value={},o.searchType&&!["1","2","9","10"].includes(o.searchType)&&(o.value=[]);break}case 5:case 6:case 20:case 12:{n.parent&&[14,15].includes(n.parent.behaviorType)&&(o.pathUrl="/address/getAreaDataList"),o.value=[];break}case 10:{o.pathUrl=xn()+"/v2/attachment/upload/task",o.value=[];break}case 2:case 7:{o.value="",o.searchType&&(o.value={start:"",end:""});break}case 8:{o.value=[],o.searchType&&(o.value={start:"",end:""});break}case 13:{o.value=[],o.moduleDefinition=o.moduleDefinition?o.moduleDefinition:[];let l=[];for(let i in o.moduleDefinition){let d=sa(o.moduleDefinition[i],A);d&&l.push(d)}o.moduleDefinition=l;break}case 14:case 15:{let l={};o.moduleDefinition.forEach(i=>{l[i.columnCode]=i.behaviorType==6?[]:""}),o.value=l}}return o}function hl(n,A,o){let r=[];return n.forEach(l=>{if([13,14,15].includes(l.behaviorType)&&l.extraInfo.queryShow==1&&l.moduleDefinition.length>0)l.moduleDefinition.forEach(i=>{let d=sa({...i,name:`${l.name}-${i.name}`,parent:l,appId:A,tableId:o},"queryShow");d&&r.push(d)});else{let i=sa({...l,appId:A,tableId:o},"queryShow");i&&r.push(i)}}),r}function Cs(n,A,o,r="listShow"){let l=[];return n.forEach(i=>{let d=sa({...i,appId:A,tableId:o},r);d&&l.push(d)}),l}function vs(n,A,o){let r={id:n.id,type:n.type,behaviorType:n.behaviorType,columnCode:n.columnCode,defaultInfo:n.defaultInfo,name:n.name,extraInfo:n.extraInfo||{},style:n.style||{},moduleDefinition:n.moduleDefinition||[],insideDataSourceInfo:n.insideDataSourceInfo,outDataSourceInfo:n.outDataSourceInfo||[]},l=!1;try{l=A&&r.extraInfo[o]}catch{}switch(r.behaviorType){case 1:case 2:case 7:case 9:case 11:{l?r.value=A[r.columnCode]||"":r.value=r.defaultInfo||"";break}case 3:case 4:case 6:case 20:{if(n.insideDataSourceInfo&&n.insideDataSourceInfo.type){if(r.postData={appId:n.appId,projectId:n.tableId,ids:JSON.stringify(n.insideDataSourceInfo),...n.insideDataSourceInfo},n.insideDataSourceInfo.type=="user"&&(r.postData.selectParams='{"userColId":"-1"}'),r.extraInfo.relationColumns&&A){let i={};r.extraInfo.relationColumns.forEach(d=>{A[d]&&(i[d]=A[d].code)}),r.postData.extCondition=JSON.stringify(i)}r.pathUrl="/v2/project/column/select"}if(l)r.behaviorType==6&&A[r.columnCode]?r.value=A[r.columnCode].map(i=>i.code):r.value=A[r.columnCode]||([6,20].includes(r.behaviorType)?[]:{});else try{r.behaviorType==6&&n.defaultInfo?r.value=n.defaultInfo.map(i=>i.code):r.value=n.defaultInfo||([6,20].includes(r.behaviorType)?[]:{})}catch{r.value={}}break}case 5:case 8:case 12:{if(l)r.value=A[r.columnCode]||[];else try{r.value=n.defaultInfo||[]}catch{r.value=[]}break}case 10:{if(r.pathUrl=xn()+"/v2/attachment/upload/task",l)r.value=A[r.columnCode]||[];else try{r.value=n.defaultInfo||[]}catch{r.value=[]}break}case 13:{r.value=A?A[r.columnCode]||[]:[],r.moduleDefinition=r.moduleDefinition?r.moduleDefinition:[];let i=[];for(let d in r.moduleDefinition){let f=vs(r.moduleDefinition[d]);f&&i.push(f)}if(r.moduleDefinition=i,r.value.length>0&&r.moduleDefinition.length>0){const d={};r.moduleDefinition.forEach(f=>{d[f.columnCode]=f.value}),r.value.forEach(f=>{for(const B in d)B in f||(f[B]=d[B])})}break}case 14:case 15:{let i={},d=A?A[r.columnCode]:null;r.moduleDefinition.forEach(f=>{d?i[f.columnCode]=d[f.columnCode]||(f.behaviorType==6?[]:""):i[f.columnCode]=f.behaviorType==6?[]:""}),r.value=i;break}}return r}function ip(n,A,o,r){let l=[],i=r&&r.id?"isEditable":"isAddable";return n.forEach(d=>{let f=vs({...d,appId:A,tableId:o},r,i);f&&l.push(f)}),l}function bs(n,A){let o=X.cloneDeep(A.inside[n.columnCode]),r=X.cloneDeep(A[n.columnCode]),l=n.moduleDefinition.filter(i=>i.behaviorType==10);return l.length>0&&r.forEach((i,d)=>{i.inside={},l.forEach(f=>{i[f.columnCode]&&(i.inside[f.columnCode]=o[d][f.columnCode])})}),r}function sp(n,A){let o=[];try{n.forEach(r=>{let l=A.find(i=>i.columnCode==r.id);l&&o.push({behaviorType:l.behaviorType,columnCode:l.columnCode,name:l.name,searchType:r.searchType,value:r.value})})}catch(r){console.log("tidyJumpSearchDataErr:"+r)}return o}function cp(n=new Date){const A=new Date(n),o=p=>String(p).padStart(2,"0"),r=A.getFullYear(),l=o(A.getMonth()+1),i=o(A.getDate()),d=o(A.getHours()),f=o(A.getMinutes()),B=o(A.getSeconds());return`${r}-${l}-${i} ${d}:${f}:${B}`}const rp=n=>{var A,o,r,l;try{let i=JSON.parse(localStorage.getItem("webLog")||"false")||[],d=JSON.parse(localStorage.getItem("sessionInfo")||"false")||{};try{let B=n.config.data?JSON.parse(n.config.data):{},p=n.data.data;if(n.config.url.indexOf("/v2/logins/checkSession")>=0)d.userName=(A=p.userInfo)==null?void 0:A.workNick,d.userId=(o=p.userInfo)==null?void 0:o.id,d.companyName=(r=p.company)==null?void 0:r.companyName,d.companyId=(l=p.company)==null?void 0:l.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/biztable/definition/table?tableCode")>=0)d.appId=p.appId,d.tableId=p.tableId,d.tableCode=p.tableCode,d.taskId="",d.url=window.location.href,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/biztable/content/get")>=0)d.taskId=p.view.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/v2/project/task/queryV3/")>=0)d.appId=B.appId,d.tableId=B.id,d.taskId="",d.tableCode="",d.workflowId="",d.workFlowNodeId="",d.instanceId="",d.processCode="",d.url=window.location.href,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/v2/project/task/queryByTaskId")>=0)d.taskId=p.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/v2/unitman/list/todo/pendingTaskList")>=0)d.appId=B.appId,d.tableId=B.tableId,d.taskId="",d.tableCode="",d.workflowId="",d.workFlowNodeId="",d.instanceId="",d.processCode="",d.url=window.location.href,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("v2/unitman/list/taskDetail")>=0)d.taskId=B.tableTaskId,d.workflowId=B.workflowId,d.workFlowNodeId=B.workflowNodeId,d.instanceId=p.workflowInstanceId,d.processCode=p.processCode,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/wf/config/findWfTmpVersionByInstanceId")>=0)d.workflowId=p.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/wf/config/findWfTmpVersionByInstanceId")>=0)d.taskId=p.id,localStorage.setItem("sessionInfo",JSON.stringify(d));else if(n.config.url.indexOf("/v2/scheduleCenter/query/queryNodeList")>=0){let u=p.content?p.content[0]:{};d.workFlowNodeId=u.templateNodeId,d.instanceId=u.instanceId,d.processCode=u.processCode,localStorage.setItem("sessionInfo",JSON.stringify(d))}}catch(B){console.log("apiLog:"+B)}i=[{url:n.config.url,code:n.data?n.data.code:null,time:cp(n.headers.date),traceId:n.headers["trace-id"]||"未返回"},...i].slice(0,50),localStorage.setItem("webLog",JSON.stringify(i))}catch{console.log(`一条日志未能成功捕捉:${JSON.stringify(n)}`)}};function dp(n){var A;window.__POWERED_BY_WUJIE__&&((A=window.$wujie)==null||A.bus.$emit("router-jump",n))}const hp={name:"chooseAssocTable",components:{chooseChildGood:TB,tableCellCopy:GB},props:{postFunc:Function,extendPost:Object},data(){return{show:!1,loading:!1,columnData:{},searchColumns:[],headerColumns:[],tableMaxHeight:400,selectData:[],searchPost:{tableCode:"",pageSize:20,pageNum:1,total:0,sorts:[],conditions:[]},orderList:[],allOrderList:[],searchList:[]}},methods:{open(n){var A;this.columnData=X.cloneDeep(n),this.orderList=[],this.allOrderList=[],this.selectData=[],(A=this.$refs.assocTable)==null||A.clearCheckboxRow(),this.searchPost.tableCode=n.insideDataSourceInfo.tableCode,this.searchPost.pageNum=1,this.searchColumns=[];try{let o=[];n.moduleDefinition.forEach(r=>{var l,i;(l=r.insideDataSourceInfo)!=null&&l.fieldCode&&o.push({...r,columnCode:(i=r.insideDataSourceInfo)==null?void 0:i.fieldCode})}),this.searchColumns=hl(o,this.extendPost.appId,this.extendPost.projectId)}catch(o){console.log("格式化关联表筛选组件"+o)}this.headerColumns=X.cloneDeep(n.moduleDefinition),this.tableMaxHeight=window.innerHeight-360,this.querySearch(),this.postFunc(`/v2/client/cache/get/${this.extendPost.projectId}_${this.columnData.id}_${this.extendPost.userId||""}_assocTable`,{},"get").then(o=>{if(!o.code&&o.data){const r=JSON.parse(o.data);r.conditions?this.searchPost.conditions=r.conditions:this.searchColumns.length>0&&(this.searchPost.conditions=[X.cloneDeep(this.searchColumns[0])])}this.search()}),this.show=!0},checkChange({checked:n,row:A}){this.$refs.assocTable.setCheckboxRow(A,n),n?this.selectData.includes(A.id)||this.selectData.push(A.id):this.selectData.includes(A.id)&&this.selectData.splice(this.selectData.indexOf(A.id),1)},checkAllTask({records:n}){n.length!=0?n.map(A=>{this.selectData.includes(A.id)||this.selectData.push(A.id)}):this.selectData=[]},saveSearch(){if(this.searchPost.conditions.length==0){this.$message.warning("没有可保存的筛选条件");return}if(this.searchList.length>=8){this.$message.warning("最多保存8个筛选项");return}this.$msgBox.prompt("设置你的常用筛选项名称(10个字以内)","保存为常用筛选项",{confirmButtonText:"保存",cancelButtonText:"取消",inputPattern:/^.{1,10}$/,inputErrorMessage:"请输入1到10个字符"}).then(({value:n})=>{this.postFunc("/biztable/content/setUserQueryCondition",{name:n,isCommon:!1,appId:this.extendPost.appId,tableId:this.extendPost.projectId,relationTableId:this.columnData.insideDataSourceInfo.table,value:JSON.stringify(this.searchPost)}).then(A=>{A.code||this.querySearch()})}).catch(()=>{})},querySearch(){this.postFunc("/biztable/content/getUserQueryCondition",{isCommon:!1,appId:this.extendPost.appId,tableId:this.extendPost.projectId,relationTableId:this.columnData.insideDataSourceInfo.table}).then(n=>{n.code||(this.searchList=X.cloneDeep(n.data))})},chooseSearch(n){let A=JSON.parse(n.value);this.searchPost.conditions=A.conditions,this.search()},delSearch(n,A){this.$msgBox.confirm("删除后将不再显示该筛选项?","确定要删除么?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.postFunc(`/biztable/content/delUserQueryCondition/${n.id}`,{},"post").then(o=>{o.code||this.searchList.splice(A,1)})}).catch(()=>{})},search(n){this.searchPost={...this.searchPost,...n},this.postFunc("/v2/client/cache/save",{key:`${this.extendPost.projectId}_${this.columnData.id}_${this.extendPost.userId||""}_assocTable`,value:this.searchPost});let A={...this.searchPost,conditions:dl([...this.searchPost.conditions])};this.loading=!0,this.postFunc("/biztable/content/query",A).then(o=>{if(this.loading=!1,o.code)this.orderList=[],this.searchPost.total=0,this.searchPost.pageNum=1;else{this.orderList=o.data.results.map(l=>{const i={},d={};return this.headerColumns.forEach(f=>{var u;const B=f.columnCode,p=(u=f.insideDataSourceInfo)==null?void 0:u.fieldCode;l.inside&&l.inside.hasOwnProperty(p)?(i[B]=l.inside[p],d[B]=l.view[p]):i[B]=f.value||""}),{...l.view,...d,insideCopy:l.inside,inside:i,id:parseInt(l.view.id)}}),this.searchPost.total=parseInt(o.data.total),this.searchPost.pageNum=o.data.pageNum,this.$nextTick(()=>{this.orderList.forEach(l=>{var i;this.selectData.includes(l.id)&&((i=this.$refs.assocTable)==null||i.setCheckboxRow(l,!0))})});const r=new Set(this.allOrderList.map(l=>l.id));this.orderList.forEach(l=>{r.has(l.id)||this.allOrderList.push(l)})}})},onMouseEvent(n){var o,r,l;if(n.$event.type==="mouseleave")(o=this.$refs.childTableCopy)==null||o.onHide();else{let i={column:{columnCode:(r=this.headerColumns[n.columnIndex-2])==null?void 0:r.columnCode},row:n.row};i.row[i.column.columnCode]&&((l=this.$refs.childTableCopy)==null||l.onShow(n.cell,i))}},rowClick({row:n}){n.combine=="是"&&(n.spec_list&&n.spec_list.length>0?this.$refs.chooseChildGood.open(n,this.columnData):this.$message.warning("该商品没有子商品,无法选择"))},setChildGood(n,A){setTimeout(()=>{this.$emit("setChildrenForm",n,A,this.columnData.columnCode)},200),this.show=!1},sure(n){let A=this.allOrderList.reduce((o,r)=>(this.selectData.includes(r.id)&&o.push(r.inside),o),[]);setTimeout(()=>{this.$emit("setChildrenForm",A,n,this.columnData.columnCode)},200),this.show=!1}}},gp={class:"chooseAssocTable"},fp={class:"chooseAssocTable-search w-margin-bottom10"},Bp={class:"w-flex-between w-margin-bottom10"},pp={class:"w-flex-center"},up={class:"w-flex-center"},Ep={class:"w-flex-center"},mp={key:1},Ip={class:"w-flex-right w-flex-center"},Qp={class:"w-font13 w-color-gray w-margin-right8"};function wp(n,A,o,r,l,i){const d=e.resolveComponent("tableCellCopy"),f=e.resolveComponent("chooseChildGood"),B=e.resolveComponent("BnAdvancedFilter"),p=e.resolveComponent("el-button"),u=e.resolveComponent("BnDrop"),I=e.resolveComponent("el-tag"),w=e.resolveComponent("vxe-column"),C=e.resolveComponent("el-tooltip"),b=e.resolveComponent("BnFileView"),M=e.resolveComponent("vxe-table"),U=e.resolveComponent("el-pagination"),Y=e.resolveComponent("el-popover"),S=e.resolveComponent("el-dialog"),T=e.resolveDirective("loading");return e.openBlock(),e.createBlock(S,{modelValue:l.show,"onUpdate:modelValue":A[7]||(A[7]=G=>l.show=G),title:`请选择${l.columnData.name}`,top:"18px",width:"70%","destroy-on-close":"",style:{"margin-bottom":"0"}},{footer:e.withCtx(()=>[e.createElementVNode("div",Ip,[e.createElementVNode("span",Qp,"已选择("+e.toDisplayString(l.selectData.length)+"/"+e.toDisplayString(l.orderList.length)+")条",1),e.createVNode(U,{class:"w-margin-right8",background:"","current-page":l.searchPost.pageNum,"onUpdate:currentPage":A[2]||(A[2]=G=>l.searchPost.pageNum=G),"page-size":l.searchPost.pageSize,"onUpdate:pageSize":A[3]||(A[3]=G=>l.searchPost.pageSize=G),layout:"prev, pager, next",onCurrentChange:i.search,total:l.searchPost.total},null,8,["current-page","page-size","onCurrentChange","total"]),e.createVNode(p,{onClick:A[4]||(A[4]=G=>l.show=!1)},{default:e.withCtx(()=>[...A[13]||(A[13]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(Y,{placement:"top-start",width:298,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(p,{type:"primary",onClick:A[5]||(A[5]=G=>i.sure("add")),disabled:l.selectData.length==0},{default:e.withCtx(()=>[...A[14]||(A[14]=[e.createTextVNode("确认追加",-1)])]),_:1},8,["disabled"])]),default:e.withCtx(()=>[A[15]||(A[15]=e.createElementVNode("div",{class:"BnSmartForm-title-tip"},"在原有的子表单值的基础上追加选中的数据",-1))]),_:1}),e.createVNode(Y,{placement:"top-start",width:290,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(p,{type:"primary",onClick:A[6]||(A[6]=G=>i.sure("cover")),disabled:l.selectData.length==0},{default:e.withCtx(()=>[...A[16]||(A[16]=[e.createTextVNode("确认覆盖",-1)])]),_:1},8,["disabled"])]),default:e.withCtx(()=>[A[17]||(A[17]=e.createElementVNode("div",{class:"BnSmartForm-title-tip"},"用选中的数据直接覆盖子表单的原有的值",-1))]),_:1})])]),default:e.withCtx(()=>[e.createVNode(d,{ref:"childTableCopy"},null,512),e.createVNode(f,{ref:"chooseChildGood",onSetChildGood:i.setChildGood},null,8,["onSetChildGood"]),e.createElementVNode("div",gp,[e.createElementVNode("div",fp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.searchPost.conditions,(G,z)=>(e.openBlock(),e.createElementBlock("div",{key:z,class:"chooseAssocTable-search-item"},[e.createVNode(B,{modelValue:l.searchPost.conditions[z],"onUpdate:modelValue":j=>l.searchPost.conditions[z]=j,"column-data":G,onValueChange:A[0]||(A[0]=j=>i.search()),allowDel:"",onDel:j=>l.searchPost.conditions.splice(z,1),postFunc:o.postFunc,pathUrl:G.pathUrl,postData:G.postData},null,8,["modelValue","onUpdate:modelValue","column-data","onDel","postFunc","pathUrl","postData"])]))),128))]),e.createElementVNode("div",Bp,[e.createElementVNode("div",pp,[e.createVNode(u,{modelValue:l.searchPost.conditions,"onUpdate:modelValue":A[1]||(A[1]=G=>l.searchPost.conditions=G),options:l.searchColumns,multiple:"",optionProps:{value:"columnCode",label:"name"}},{default:e.withCtx(()=>[e.createVNode(p,{type:"primary",link:""},{default:e.withCtx(()=>[...A[8]||(A[8]=[e.createTextVNode(" + 添加筛选条件",-1)])]),_:1})]),_:1},8,["modelValue","options"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.searchList,(G,z)=>(e.openBlock(),e.createBlock(I,{closable:"",type:"success",onClick:j=>i.chooseSearch(G),onClose:j=>i.delSearch(G,z),class:"w-margin-left8 w-cursor-pointer"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(G.key),1)]),_:2},1032,["onClick","onClose"]))),256))]),e.createElementVNode("div",up,[e.createVNode(p,{onClick:i.saveSearch},{default:e.withCtx(()=>[...A[9]||(A[9]=[e.createTextVNode("另存为常用查询",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{type:"primary",onClick:i.search},{default:e.withCtx(()=>[...A[10]||(A[10]=[e.createTextVNode("筛选",-1)])]),_:1},8,["onClick"])])]),e.withDirectives((e.openBlock(),e.createBlock(M,{ref:"assocTable",border:"",size:"small",data:l.orderList,class:"chooseAssocTable-out","tooltip-config":{},"row-config":{keyField:"id",isCurrent:!0,isHover:!0},"max-height":l.tableMaxHeight,"min-height":"50","expand-config":{expandAll:!0},"column-config":{resizable:!0},"checkbox-config":{checkRowKeys:l.selectData},"scroll-x":{enabled:!0,gt:8},"scroll-y":{enabled:!0,gt:15},onCheckboxChange:i.checkChange,onCellMouseenter:i.onMouseEvent,onCellMouseleave:i.onMouseEvent,onCellClick:i.rowClick,onCheckboxAll:i.checkAllTask},{empty:e.withCtx(()=>[...A[12]||(A[12]=[e.createElementVNode("span",null,"暂无数据",-1)])]),default:e.withCtx(()=>[e.createVNode(w,{type:"checkbox",width:"32",fixed:"left"}),e.createVNode(w,{width:"30",fixed:"left"},{default:e.withCtx(G=>[e.createElementVNode("span",Ep,[G.row.combine=="是"?(e.openBlock(),e.createBlock(C,{key:0,content:"当确定是组合装(combine),允许点击该行选择子商品(spec_list)",placement:"top",effect:"light"},{default:e.withCtx(()=>[...A[11]||(A[11]=[e.createElementVNode("span",{class:"w-color-blue w-cursor-pointer"},[e.createElementVNode("span",{class:"bnUIcon bnUIcon-childGood"})],-1)])]),_:1})):(e.openBlock(),e.createElementBlock("span",mp))])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.headerColumns,(G,z)=>(e.openBlock(),e.createBlock(w,{visible:G.extraInfo.isAddable==1,title:G.name,field:G.columnCode,"min-width":"160",key:z,"show-header-overflow":"title","show-overflow":"title","show-footer-overflow":""},e.createSlots({_:2},[G.behaviorType==10&&G.extraInfo.isAddable==1?{name:"default",fn:e.withCtx(j=>[j.row.inside[G.columnCode]?(e.openBlock(),e.createBlock(b,{key:0,"file-list":j.row.inside[G.columnCode],"is-mini":!0,"no-warp":!0},null,8,["file-list"])):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["visible","title","field"]))),128))]),_:1},8,["data","max-height","checkbox-config","onCheckboxChange","onCellMouseenter","onCellMouseleave","onCellClick","onCheckboxAll"])),[[T,l.loading]])])]),_:1},8,["modelValue","title"])}const Cp=ne(hp,[["render",wp],["__scopeId","data-v-134c4ef8"]]);function Ht(n,A){return n.some(o=>o==A)}function Ds(n,A,o){let r=JSON.parse(JSON.stringify(gl(n).componentMap)),l=[],i=[],d=[];A.map(B=>{if(B.status==1&&(o&&B.columnRules.showScene.includes(2)||!o&&B.columnRules.showScene.includes(1))){let p=gl(B.columnRules.showColumns).ids,u=gl(B.columnRules.conditions).ids,I=vp(B.columnRules.calculation,B.columnRules.conditions,r);d=fl(d,u),I?i=fl(i,p):l=fl(l,p)}});let f=[];for(let B in l)i.includes(l[B])||f.push(l[B]);return{showIds:i,hiddenIds:f,conditionIds:d}}function gl(n){let A={ids:[],componentMap:{}};return n.map(o=>{A.ids.push(o.columnCode),A.componentMap[o.columnCode]=o}),A}function vp(n,A,o){let r=-1;for(let l in A){let i=A[l],d=o[i.columnCode];if(r=l,d){switch(d.behaviorType){case 1:case 10:{r=bp(d,i,l);break}case 2:case 9:{r=Dp(d,i,l);break}case 3:case 4:{r=yp(d,i,l);break}case 5:{r=Mp(d,i,l);break}case 6:{r=xp(d,i,l);break}case 7:{r=Yp(d,i,l);break}case 8:{r=Fp(d,i,l);break}}if(n==="and"){if(r==-1)break}else if(r!=-1)break}else{if(r=-1,n=="and")break;continue}}return r>-1}function bp(n,A,o){let r=o;switch(A.matchType){case"1":{r=A.value==n.value?o:-1;break}case"2":{r=A.value!=n.value?o:-1;break}case"3":{r=n.value.indexOf(A.value)>-1?o:-1;break}case"4":{r=n.value.indexOf(A.value)<0?o:-1;break}case"5":{r=n.value&&A.value.includes(n.value)?o:-1;break}case"9":{r=n.value?-1:o;break}case"10":{r=n.value?o:-1;break}}return r}function Dp(n,A,o){let r=o,l=n.value!=""?parseFloat(n.value):"",i=A.matchType!="8"&&A.value!=""?parseFloat(A.value):"";switch(A.matchType){case"1":{r=l==i?o:-1;break}case"2":{r=l!=i?o:-1;break}case"8":{let d={start:A.value.start!=""?parseFloat(A.value.start):"",end:A.value.end!=""?parseFloat(A.value.end):""};r=l&&l>=d.start&&l<=d.end?o:-1;break}case"9":{r=n.value===""?o:-1;break}case"10":{r=n.value!==""?o:-1;break}case"16":{r=l>i?o:-1;break}case"17":{r=l&&l<i?o:-1;break}case"18":{r=l>=i?o:-1;break}case"19":{r=l&&l<=i?o:-1;break}}return r}function yp(n,A,o){let r=o;switch(A.matchType){case"1":{r=A.value.id==n.value.id?o:-1;break}case"2":{r=A.value.id!=n.value.id?o:-1;break}case"5":{let l=A.value.map(i=>i.id);r=Ht(l,n.value.id)?o:-1;break}case"6":{let l=A.value.map(i=>i.id);r=Ht(l,n.value.id)?-1:o;break}case"9":{r=n.value.id?-1:o;break}case"10":{r=n.value.id?o:-1;break}}return r}function Mp(n,A,o){let r=o,l=n.value.map(i=>i.id);switch(A.matchType){case"1":{if(n.value.length!=A.value.length)r=-1;else for(let i in A.value)if(r=Ht(l,A.value[i].id)?o:-1,r==-1)break;break}case"2":{n.value.length==A.value.length&&(r=A.value.filter(i=>!Ht(l,i.id)).length>0?o:-1);break}case"3":{r=A.value.every(d=>Ht(l,d.id))?o:-1;break}case"4":{r=A.value.every(d=>!Ht(l,d.id))?o:-1;break}case"5":{r=-1;for(let i in A.value)if(r=Ht(l,A.value[i].id)?o:-1,r!=-1)break;break}case"6":{for(let i in A.value)if(r=Ht(l,A.value[i].id)?-1:o,r==-1)break;break}case"7":{r=A.value.every(d=>Ht(l,d.id))?o:-1;break}case"9":{r=l.length==0?o:-1;break}case"10":{r=l.length!=0?o:-1;break}}return r}function xp(n,A,o){let r=o,l=n.value.join(",");switch(A.matchType){case"1":{l==""||A.value.length==0?r=-1:r=l==A.value[0].join(",")?o:-1;break}case"2":{l&&A.value.length>0&&(r=l!=A.value[0].join(",")?o:-1);break}case"3":{r=-1;for(let i in A.value){let d=A.value[i].join(",");if(r=l.indexOf(d)>-1?o:-1,r!=-1)break}break}case"4":{r=A.value.every(d=>l.indexOf(d.join(","))==-1)?o:-1;break}case"5":{r=-1;for(let i in A.value){let d=A.value[i].join(",");if(r=l==d?o:-1,r!=-1)break}break}case"6":{for(let i in A.value){let d=A.value[i].join(",");if(r=l!=d?o:-1,r==-1)break}break}case"9":{r=l==""?o:-1;break}case"10":{r=l!=""?o:-1;break}}return r}function Zt(n){let A=n;return n.length>0&&n.length==10&&(A+="00:00:00"),A?new Date(A):""}function Yp(n,A,o){let r=o,l=Zt(n.value),i=typeof A.value!="object"?Zt(A.value):"";switch(A.matchType){case"1":{r=l==i?o:-1;break}case"2":{r=l!=i?o:-1;break}case"8":{let d=Zt(A.value.start),f=Zt(A.value.end);r=l&&l>=d&&l<=f?o:-1;break}case"9":{r=l===""?o:-1;break}case"10":{r=l!==""?o:-1;break}case"16":{r=l>i?o:-1;break}case"17":{r=l<i?o:-1;break}case"18":{r=l>=i?o:-1;break}case"19":{r=l<=i?o:-1;break}}return r}function Fp(n,A,o){let r=o;switch(A.matchType){case"8":{let l={start:Zt(n.value.start),end:Zt(n.value.end)},i=Zt(A.value.start),d=Zt(A.value.end);r=l.start&&l.start>=i&&l.end&&l.end<=d?o:-1;break}case"9":{r=n.value.start==""&&n.value.end==""?o:-1;break}case"10":{r=n.value.start!=""&&n.value.end!=""?o:-1;break}}return r}function fl(n,A,o){let r=[];return r=Array.from(new Set([...n,...A])),r}const Bl={stringForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ql)),numberForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>wl)),selectForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Cl)),radioForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>vl)),checkboxForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>bl)),dateForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Dl)),dateDualForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>yl)),fileForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ml)),childrenForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>xl)),addressForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Yl)),receiveForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Fl)),relationForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Nl)),scoreForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Tv))},Np={name:"BnSmartForm",components:{BnSmartElf:gB,choosePackage:CB,chooseChildOrder:YB,chooseAssocTable:Cp,chooseIPaasData:e.defineAsyncComponent(()=>Promise.resolve().then(()=>uc))},props:{id:[String,Number],extendPost:Object,extraInfo:Object,components:Array,editType:String,postFunc:Function,dataBack:Object},data(){return{showElf:!1,loading:!1,formLogs:[],orderList:[],childOrders:[],psychicRules:[],hiddenCodes:[],psychicConditionCodes:[],checkedConditionId:[],assocTableSearchCodes:[],assocTableSearchColumnId:[],defaultLink:X.cloneDeep(ho.defaultLink),columnMapping:X.cloneDeep(ho.columnMapping),relationColumns:X.cloneDeep(ho.relationColumns),hasExprExec:!1,afterEventCodes:[]}},created(){this.init(),this._elfKeyHandler=n=>{n.ctrlKey&&n.shiftKey&&n.code==="KeyB"&&(n.preventDefault(),this.showElf=!0)},document.addEventListener("keydown",this._elfKeyHandler)},beforeUnmount(){document.removeEventListener("keydown",this._elfKeyHandler)},methods:{init(){let{defaultLink:n,columnMapping:A,hasExprExec:o,relationColumns:r}=qf(this.componentList);this.defaultLink=X.cloneDeep(n),this.columnMapping=X.cloneDeep(A),this.relationColumns=X.cloneDeep(r),this.hasExprExec=o,this.hasExprExec&&!this.id&&this.exprExecCalc(null,"新建初始化"),this.getPsychicRules(),this.getAssocTableRules(),this.getCheckedRules()},getPsychicRules(){this.psychicRules=[],this.hiddenCodes=[],this.psychicConditionCodes=[],this.postFunc("/v2/columnRule/getColumnRule",{...this.extendPost,type:2,dataFormatFlag:!0}).then(n=>{if(!n.code&&n.data.columnRuleList){this.psychicRules=n.data.columnRuleList;let{conditionIds:A,hiddenIds:o}=Ds(this.componentList,this.psychicRules,this.id);this.hiddenCodes=o,this.psychicConditionCodes=A}})},getAssocTableRules(){this.assocTableSearchCodes=[],this.assocTableSearchColumnId=[],this.postFunc("/v2/columnRule/getColumnRule",{...this.extendPost,type:13,dataFormatFlag:!0}).then(n=>{!n.code&&n.data.columnRuleList&&n.data.columnRuleList.forEach(A=>{A.columnRules&&(this.assocTableSearchColumnId.push(A.ruleSense),A.columnRules.forEach(o=>{o.toColumnType==1&&(this.assocTableSearchCodes.push(o.value.columnCode),o.value.parentCode&&this.assocTableSearchCodes.push(o.value.parentCode))}))})})},getCheckedRules(){this.checkedConditionId=[],this.postFunc(`/v2/columnRule/getSubmitCheckRule/${this.extendPost.appId}/${this.extendPost.projectId}`,null,"get").then(n=>{if(!n.code&&n.data&&n.data.status==1){let A=n.data.rules.reduce((o,r)=>{var l;if(r.type==19&&(r.columnRules.senses.includes(0)&&!this.id||r.columnRules.senses.includes(1)&&this.id)){let i=((l=r.columnRules)==null?void 0:l.columnRules)||[];o=[...o,...i.map(d=>d.parentId?d.parentId:d.id)]}return o},[]);this.checkedConditionId=A}})},getFormContent(){let n={contents:[]};try{for(let A in this.componentList){let o=X.cloneDeep(this.componentList[A]),r={columnCode:o.columnCode};switch(o.behaviorType){case 1:case 2:case 9:case 7:case 11:{r.value=o.value;break}case 3:case 4:case 5:case 6:case 20:case 8:case 10:case 12:case 13:case 14:case 15:{r.value=o.value?JSON.stringify(o.value):"";break}}if(!this.isShow(this.componentList[A]))if(this.hiddenCodes.includes(o.columnCode))r.hide=!0;else continue;n.contents.push(r)}}catch(A){console.log("getFormContentErr:"+A)}return n},checkFormContent(){if(this.loading)return this.$message.warning("还有数据没有加载完毕,请稍后再保存"),{checked:!1};let n={column:null,checked:!0};for(let A in this.componentList){if(!this.isShow(this.componentList[A]))continue;let o={...this.componentList[A]},r={columnCode:o.columnCode};switch(o.behaviorType){case 1:case 2:{o.extraInfo.valueEmptyCheck==1&&o.behaviorType==1&&X.isEmpty(o.value)&&(this.componentList[A].error=o.name+"的值不能为空"),o.extraInfo.valueEmptyCheck==1&&o.behaviorType==2&&(o.value===void 0||o.value===null||o.value==="")&&(this.componentList[A].error=o.name+"的值不能为空"),o.extraInfo.regular&&(new RegExp(o.extraInfo.regular).test(o.value)||(this.componentList[A].error=o.extraInfo.paraExplain||"请输入符合要求的"+o.name));break}case 3:case 4:case 5:case 6:case 20:case 8:case 10:case 12:case 9:case 7:case 11:{o.extraInfo.valueEmptyCheck==1&&X.isEmpty(o.value)&&(this.componentList[A].error=o.name+"的值不能为空");break}case 13:{if(o.extraInfo.valueEmptyCheck==1)if(X.isEmpty(o.value))this.componentList[A].error=o.name+"至少要有一条内容";else{let l=fs(o,this.id);l&&(this.componentList[A].error=l)}break}case 14:case 15:{if(o.extraInfo.valueEmptyCheck==1){for(let l in o.value)if(X.isEmpty(o.value[l])){this.componentList[A].error=`请输入完整的${o.name}`;break}}break}}if(this.componentList[A].error){n.column=this.componentList[A],n.checked=!1,this.getHere(r,!0);break}}return n},getHere(n){const A=document.getElementById("col_"+n.columnCode);A&&this.$refs.formScroll&&this.$refs.formScroll.scrollTo({top:A.offsetTop,behavior:"smooth"})},isShow(n){let A=!this.hiddenCodes.includes(n.columnCode);return(!this.id&&n.extraInfo.isAddable!=1||this.id&&n.extraInfo.isEditable!=1)&&(A=!1),A},isDisabled(n){let A=!1;return(!this.id&&n.extraInfo.valueAddable==1||this.id&&n.extraInfo.valueEditable==1)&&(A=!0),A},componentView(n){var A;return n.behaviorType==4&&["rate_polarity","bn_rate_polarity","bn_addition_polarity"].includes(n.columnCode)?Bl[aa[3]]:n.behaviorType==5&&((A=n.extraInfo)==null?void 0:A.valueType)=="select"?Bl[aa[4]]:Bl[aa[n.behaviorType]]||null},comChange(n,A){this.afterEventCodes=[],this.defaultLink.column.includes(n.columnCode)&&![1,2].includes(n.behaviorType)&&this.defaultLinkEvent(n,"值修改"),this.columnMapping.column.includes(n.columnCode)&&[3,4,6].includes(n.behaviorType)&&this.columnMappingEvent(n,"值修改"),(this.assocTableSearchCodes.includes(n.columnCode)&&!A||A&&A.childColumn&&this.assocTableSearchCodes.includes(A.childColumn.columnCode))&&this.assocTableSearchEvent(n,"值修改"),n.extraInfo.searchKey==2&&n.value&&this.queryOrder(n,"值修改"),this.hasExprExec&&this.exprExecCalc(n,"值修改"),this.relationColumns[n.columnCode]&&this.changeRelationOptions(n,"值修改"),n.extraInfo.isShowWarning==1&&n.value&&this.checkRepeat(n,"值修改"),this.psychicConditionCodes.includes(n.columnCode)&&this.getHiddenCodes(n,"值修改"),this.checkedConditionId.includes(n.id)&&this.getCheckedCodes(n,"值修改"),this.$emit("change",n,A)},comInput(n,A){this.afterEventCodes=[],this.defaultLink.column.includes(n.columnCode)&&this.defaultLinkEvent(n,"值修改"),this.hasExprExec&&this.exprExecCalc(n,"值修改"),this.$emit("input",n,A)},comBlur(n,A){this.afterEventCodes=[],n.extraInfo.searchKey==2&&n.value&&this.queryOrder(n,"失去焦点"),n.extraInfo.isShowWarning==1&&n.value&&this.checkRepeat(n,"失去焦点"),this.checkedConditionId.includes(n.id)&&this.getCheckedCodes(n,"失去焦点"),this.$emit("blur",n,A)},afterEventForm(n,A){if(this.afterEventCodes.includes(n.columnCode+A)){this.insetLog({content:`【${n.name}】已经触发过-${A},不再重复执行`}),this.afterEventCodes=[];return}else this.afterEventCodes.push(n.columnCode+A);this.defaultLink.column.includes(n.columnCode)&&![1,2].includes(n.behaviorType)&&this.defaultLinkEvent(n,A),this.assocTableSearchCodes.includes(n.columnCode)&&this.assocTableSearchEvent(n,A),this.columnMapping.column.includes(n.columnCode)&&[3,4,6].includes(n.behaviorType)&&this.columnMappingEvent(n,A),this.hasExprExec&&this.exprExecCalc(n,A),this.psychicConditionCodes.includes(n.columnCode)&&this.getHiddenCodes(n,A)},operate(n,A){switch(A){case"choosePackage":{this.$refs.choosePackage.open(n);break}case"chooseChildOrder":{this.$refs.chooseChildOrder.open(n);break}case"chooseAssocTable":{this.$refs.chooseAssocTable.open(n);break}case"chooseIPaasData":{this.$refs.chooseIPaasData.open(n,this.getFormContent().contents);break}case"chooseRepeat":{let o={tableCode:this.extendPost.tableCode,pageSize:200,pageNum:1,conditions:[{behaviorType:n.behaviorType,columnCode:n.columnCode,searchType:"1",value:["string","number","boolean"].includes(typeof n.value)?n.value:JSON.stringify(n.value)}]};this.$emit("operate",n,A,o,this.id);break}}},checkedPackage(n,A){this.childOrders=X.cloneDeep(A);let o="你选择包裹",r=this.setColumnsValue(n,2);r.length>0?o+="后,修改了"+r.join(",")+"的值":o+=",但没有获取到需要修改的组件。",this.insetLog({content:o})},setChildrenForm(n,A,o){let r="",l=n;for(let d in this.componentList){let f=this.componentList[d];if(f.columnCode==o){r=f.name,A=="add"&&(l=[...f.value,...l]),this.componentList[d].error="",this.componentList[d].value=X.cloneDeep(l),this.afterEventForm(this.componentList[d],"子表单填充");break}}let i=`你选中${n.length}条数据,修改了${r}的值`;this.insetLog({content:i})},getHiddenCodes:X.debounce(function(n,A){let o=`【${n.name}】${A}触发组件显隐`,{hiddenIds:r}=Ds(this.componentList,this.psychicRules,this.id);this.hiddenCodes=r,this.hiddenCodes.length>0?o+=",共隐藏"+this.hiddenCodes.length+"个组件":o+=",没有要隐藏的组件。",this.insetLog({content:o})},300),getCheckedCodes:X.debounce(function(n,A){let o=`【${n.name}】${A}触发提交校验`,r={tableCode:this.extendPost.tableCode,contents:this.getFormContent().contents};this.id&&(r.id=this.id),this.loading=!0,this.postFunc("/biztable/content/submitCheck",r).then(l=>{this.loading=!1,!l.code&&l.data&&(o+=`:${l.data.info}`,this.$message.warning(o)),this.insetLog({content:o})})},400),queryOrder:X.debounce(function(n,A){let o=`【${n.name}】${A}触发数据拉取`,r={...this.extendPost,triggerField:n.columnCode,[n.columnCode]:n.value};try{this.componentList.forEach(l=>{var i,d;((i=l.outDataSourceInfo[0])==null?void 0:i.field)=="tid"?r.tid=l.value:((d=l.insideDataSourceInfo)==null?void 0:d.type)=="seller"&&(r[l.columnCode]=l.value.code)})}catch(l){console.log(l)}this.loading=!0,this.orderList=[],this.postFunc("/v2/ods/getOdsInfoV3",r).then(l=>{var i,d;if(this.loading=!1,!l.code&&((i=l.data)==null?void 0:i.length)>0){this.orderList=l.data;let f=(d=this.dataBack)!=null&&d.key?this.componentList.filter(u=>u.columnCode==this.dataBack.key)[0]:n,B=l.data[0];if(f.extraInfo.multiplePackagesType==3){o+=",根据组件设置默认不进行回填,请您手动选择。",this.insetLog({content:o});return}else f.extraInfo.multiplePackagesType==2&&(this.$refs.choosePackage.initPackageColumns(B),B=this.$refs.choosePackage.mergeOrders(l.data));this.dataBack&&this.dataBack.order&&(this.childOrders=B[this.dataBack.order]||[]);let p=this.setColumnsValue(B,1);p.length>0?o+="后,修改了"+p.join(",")+"的值":o+=",但没有获取到需要修改的组件。",this.insetLog({content:o}),this.$emit("queryOrder",l)}else l.code==1?(o+=",未拉取到数据",this.insetLog({content:o})):(this.$message.warning("未拉取到数据"),o+=`失败:${l.msg}`,this.insetLog({content:o}))})},400),assocTableSearchEvent:X.debounce(function(n,A){let o=`【${n.name}】${A}触发子表单关联筛选条件`,r=this.getFormContent().contents,l={tableCode:this.extendPost.tableCode,conditions:"{}",taskContents:JSON.stringify(r.filter(i=>this.assocTableSearchCodes.includes(i.columnCode)))};this.loading=!0,this.postFunc("/biztable/content/relation/query",l).then(i=>{if(this.loading=!1,i.code)i.code==1?(o+=",未拉取到数据",this.insetLog({content:o})):(this.$message.warning(i.msg),o+=`,失败:${i.msg}`,this.insetLog({content:o}));else{if(i.data.inside){let d=i.data.inside,f=[],B=[];this.componentList.forEach(p=>{var u;p.behaviorType==13&&this.assocTableSearchColumnId.includes(p.id)&&(d[p.columnCode]?(p.extraInfo.dataForceFill||((u=p.value)==null?void 0:u.length)==0)&&(p.value=$f(p,d[p.columnCode]),this.afterEventForm(p,"关联筛选赋值"),f.push(p.name)):(p.extraInfo.dataForceClear||p.value.length>0)&&(p.value=[],B.push(p.name)))}),f.length>0&&(o+=`后,修改了 ${f.join(",")} 的值`),B.length>0&&(o+=`,清空了 ${B.join(",")} 的值`)}else o+=",未拉取到数据";this.insetLog({content:o})}})},400),checkRepeat:X.debounce(function(n,A){let o=`【${n.name}】${A}触发重复值校验`,r={tableCode:this.extendPost.tableCode,pageSize:200,pageNum:1,conditions:[{behaviorType:n.behaviorType,columnCode:n.columnCode,searchType:"1",value:["string","number","boolean"].includes(typeof n.value)?n.value:JSON.stringify(n.value)}]};this.loading=!0,this.postFunc("/biztable/content/query",r).then(l=>{if(this.loading=!1,l.code)l.code==1?(o+=",未拉取到数据",this.insetLog({content:o})):(this.$message.warning(l.msg),o+=`,失败:${l.msg}`,this.insetLog({content:o}));else{let i=parseInt(l.data.total);i>0&&this.id&&(i=l.data.results.find(f=>f.view.id==this.id)?i-1:i),i>0?(o+=",当前工作表查到"+i+"条相同的任务。",n.warning=`当前工作表内容有${i}条「${n.name}」相同的任务。`):o+=",当前工作没有查到相同的任务。",this.insetLog({content:o})}})},400),exprExecCalc:X.debounce(function(n,A){let o=n?`【${n.name}】${A}触发函数计算`:`${A}触发函数计算`,r={...this.extendPost,...this.getFormContent()};this.loading=!0,this.postFunc("/biztable/content/exprCalculation",r).then(l=>{var i;if(this.loading=!1,l.code)l.code==1?(o+=",未拉取到数据",this.insetLog({content:o})):(this.$message.warning(l.msg),o+=`,失败:${l.msg}`,this.insetLog({content:o}));else{let d=[];(((i=l.data)==null?void 0:i.length)>0?l.data:[]).forEach(B=>{for(let p in this.componentList)if(this.componentList[p].columnCode==B.columnCode&&!ps(this.componentList[p].value,B.value,this.componentList[p].behaviorType)){d.push(this.componentList[p].name),this.componentList[p].value=B.value||eB(this.componentList[p].value),this.afterEventForm(this.componentList[p],"函数表达式计算");break}}),d.length>0?o+="后,修改了"+d.join(",")+"的值":o+=",但没有获取到需要修改的组件。",this.insetLog({content:o})}})},400),changeRelationOptions:X.debounce(function(n,A){let o=`【${n.name}】${A}触发级联选项查询`;this.insetLog({content:o});for(let r in this.componentList)if(this.relationColumns[n.columnCode].includes(this.componentList[r].columnCode))try{let l=this.componentList[r].postData.extCondition?JSON.parse(this.componentList[r].postData.extCondition):{};l[n.columnCode]=n.value.code||n.value,this.componentList[r].postData.extCondition=JSON.stringify(l),this.componentList[r].value=[]}catch{console.log(n),console.log(this.componentList[r]),console.log("关联组件查询选项,extCondition组装失败")}},400),columnMappingEvent(n,A){try{let o=`【${n.name}】${A}触发组件映射`,r=[],l=Zf(n);this.componentList.forEach(i=>{if([3,4,6].includes(i.behaviorType)&&this.columnMapping.setColumn[n.columnCode][i.columnCode]){let f=this.columnMapping.setColumn[n.columnCode][i.columnCode].find(B=>String(B.fromValue.code||B.fromValue.id)==String(l));f&&(r.push(i.name),i.value=hs(i,f.toValue),this.afterEventForm(i,"组件映射"))}}),r.length>0?o+="后,修改了"+r.join(",")+"的值":o+=",没有找到符合映射规则的组件",this.insetLog({content:o})}catch(o){console.log("columnMappingEventErr:"+o)}},defaultLinkEvent(n,A){try{let o=`【${n.name}】${A}触发默认值映射`,r=[];this.componentList.forEach(l=>{l.behaviorType==1&&this.defaultLink.setColumn[l.columnCode]&&this.defaultLink.setColumn[l.columnCode].includes(`##${n.columnCode}`)&&(r.push(l.name),l.value=la(this.componentList,this.defaultLink.setColumn[l.columnCode])),l.behaviorType==13&&l.value.length>0&&this.defaultLink.setColumn[l.columnCode]&&this.defaultLink.setColumn[l.columnCode].includes(n.columnCode)&&l.value.forEach(i=>{for(let d in i)this.defaultLink.setColumn[`${l.columnCode}.${d}`]&&this.defaultLink.setColumn[`${l.columnCode}.${d}`].includes(`##${n.columnCode}`)&&(r.push(l.name),i[d]=la(this.componentList,this.defaultLink.setColumn[`${l.columnCode}.${d}`]))})}),o+="后,修改了"+r.join(",")+"的值",this.insetLog({content:o})}catch(o){console.log("defaultLinkEventErr:"+o)}},shouldFillData(n,A){if(A!==1&&(A!==2||n.behaviorType!==13))return!0;const{multiplePackagesType:o}=n.extraInfo||{};return n.behaviorType===13?o!==3:!o||o!==3},getFillValue(n,A,o){const{multiplePackagesType:r}=n.extraInfo||{};return n.behaviorType===13?r===1?[A[o][0]]:A[o]:n.behaviorType===4&&!A[o].code&&A[o].id?{...A[o],code:A[o].id}:A[o]},setColumnsValue(n,A){let o=[];return this.componentList.forEach(r=>{if(n[r.columnCode]){if(!this.shouldFillData(r,A))return;let l=this.getFillValue(r,n,r.columnCode);ps(r.value,l,r.behaviorType)||(r.value=X.cloneDeep(l),this.afterEventForm(r,"辅助回填"),o.push(`【${r.name}】`))}}),o},insetLog({content:n}){const A=new Date,o=A.getHours(),r=A.getMinutes(),l=`${o.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`;this.formLogs.push({time:l,content:n})}},computed:{componentList:{get(){return this.components},set(n){this.$emit("update:components",n)}},initExtraInfo(){return{...{isAutoAssign:0},...this.extraInfo}}}},Up={class:"BnSmartForm"},kp={key:2,class:"BnSmartForm-head"},Sp={class:"BnSmartForm-body"},Rp=["id"],Tp={key:3,class:"BnSmartForm-elf"};function Hp(n,A,o,r,l,i){const d=e.resolveComponent("chooseAssocTable"),f=e.resolveComponent("chooseIPaasData"),B=e.resolveComponent("choosePackage"),p=e.resolveComponent("chooseChildOrder"),u=e.resolveComponent("el-progress"),I=e.resolveComponent("el-scrollbar"),w=e.resolveComponent("BnSmartElf");return e.openBlock(),e.createElementBlock("div",Up,[e.createVNode(d,{ref:"chooseAssocTable",componentList:i.componentList,postFunc:o.postFunc,extendPost:o.extendPost,onSetChildrenForm:i.setChildrenForm},null,8,["componentList","postFunc","extendPost","onSetChildrenForm"]),e.createVNode(f,{ref:"chooseIPaasData",componentList:i.componentList,postFunc:o.postFunc,extendPost:o.extendPost,onSetChildrenForm:i.setChildrenForm},null,8,["componentList","postFunc","extendPost","onSetChildrenForm"]),o.dataBack&&o.dataBack.order?(e.openBlock(),e.createBlock(B,{key:0,ref:"choosePackage",orderList:l.orderList,onCheckedPackage:i.checkedPackage,componentList:i.componentList,dataBack:o.dataBack},null,8,["orderList","onCheckedPackage","componentList","dataBack"])):e.createCommentVNode("",!0),o.dataBack?(e.openBlock(),e.createBlock(p,{key:1,ref:"chooseChildOrder",childOrders:l.childOrders,onSetChildrenForm:i.setChildrenForm,componentList:i.componentList,dataBack:o.dataBack},null,8,["childOrders","onSetChildrenForm","componentList","dataBack"])):e.createCommentVNode("",!0),l.loading?(e.openBlock(),e.createElementBlock("div",kp,[e.createVNode(u,{percentage:70,indeterminate:!0,"show-text":!1,striped:""})])):e.createCommentVNode("",!0),e.createElementVNode("div",Sp,[e.createVNode(I,{ref:"formScroll",height:"100%",style:{background:"#fff"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.componentList,(C,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.isShow(C)?(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["BnSmartForm-body-item",C.className||""]),key:b,id:"col_"+C.columnCode},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.componentView(C)),{column:C,postFunc:o.postFunc,taskId:o.id,extraInfo:i.initExtraInfo,defaultLink:l.defaultLink,componentList:i.componentList,dataBack:o.dataBack,disabled:i.isDisabled(C),onOperate:i.operate,onOnChange:i.comChange,onOnInput:i.comInput,onBlur:i.comBlur},null,40,["column","postFunc","taskId","extraInfo","defaultLink","componentList","dataBack","disabled","onOperate","onOnChange","onOnInput","onBlur"]))],10,Rp)):e.createCommentVNode("",!0)],64))),256))]),_:1},512)]),l.showElf?(e.openBlock(),e.createElementBlock("div",Tp,[e.createVNode(w,{logs:l.formLogs,onClose:A[0]||(A[0]=C=>l.showElf=!1)},null,8,["logs"])])):e.createCommentVNode("",!0)])}const ys=ne(Np,[["render",Hp],["__scopeId","data-v-c658ebed"]]),Pp={name:"BnBatchForm",props:{id:[String,Number],modelValue:Object,extendPost:Object,components:Array,postFunc:Function},methods:{getFormContent(){let n={contents:[]};try{for(let A in this.componentList){let o=X.cloneDeep(this.componentList[A]),r={columnCode:o.columnCode};switch(o.behaviorType){case 1:case 2:case 9:case 7:case 11:{r.value=o.value;break}case 3:case 4:case 5:case 6:case 20:case 8:case 10:case 12:case 13:case 14:case 15:{r.value=o.value?JSON.stringify(o.value):"";break}}n.contents.push(r)}}catch(A){console.log("getFormContentErr:"+A)}return n},checkFormContent(){let n={column:null,checked:!0};for(let A in this.componentList){let o={...this.componentList[A]},r={columnCode:o.columnCode};switch(o.behaviorType){case 1:case 2:{o.extraInfo.valueEmptyCheck==1&&o.behaviorType==1&&X.isEmpty(o.value)&&(this.componentList[A].error=o.name+"的值不能为空"),o.extraInfo.valueEmptyCheck==1&&o.behaviorType==2&&(o.value===void 0||o.value===null||o.value==="")&&(this.componentList[A].error=o.name+"的值不能为空"),o.extraInfo.regular&&(new RegExp(o.extraInfo.regular).test(o.value)||(this.componentList[A].error=o.extraInfo.paraExplain||"请输入符合要求的"+o.name));break}case 3:case 4:case 5:case 6:case 20:case 8:case 10:case 12:case 9:case 7:case 11:{o.extraInfo.valueEmptyCheck==1&&X.isEmpty(o.value)&&(this.componentList[A].error=o.name+"的值不能为空");break}case 13:{if(o.extraInfo.valueEmptyCheck==1)if(X.isEmpty(o.value))this.componentList[A].error=o.name+"至少要有一条内容";else{let l=fs(o,this.id);l&&(this.componentList[A].error=l)}break}case 14:case 15:{if(o.extraInfo.valueEmptyCheck==1){for(let l in o.value)if(X.isEmpty(o.value[l])){this.componentList[A].error=`请输入完整的${o.name}`;break}}break}}if(this.componentList[A].error){n.column=this.componentList[A],n.checked=!1,this.getHere(r,!0);break}}return n},getHere(n){const A=document.getElementById("col_"+n.columnCode);A&&this.$refs.formScroll&&this.$refs.formScroll.scrollTo({top:A.offsetTop,behavior:"smooth"})},saveTask(){if(this.checkFormContent()){let n=this.getFormContent();return{check:!0,taskStatus:{},carryUser:{},...n}}else return{check:!1}},componentView(n){const A={stringForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ql)),numberForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>wl)),selectForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Cl)),radioForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>vl)),checkboxForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>bl)),dateForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Dl)),dateDualForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>yl)),fileForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ml)),childrenForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>xl)),addressForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Yl)),receiveForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Fl)),relationForm:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Nl))};let o=aa[n.behaviorType]||null;return A[o]},comChange(){this.$emit("change",this.value)}},computed:{componentList:{get(){return this.components},set(n){this.$emit("update:components",n)}},value(){const n=this.getFormContent();return this.$emit("update:modelValue",n),n}}},Gp={class:"BnBatchForm"},Jp=["val"],jp=["id"],Lp=["onClick"];function Vp(n,A,o,r,l,i){const d=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",Gp,[e.createElementVNode("div",{class:"BnBatchForm-body",val:i.value},[e.createVNode(d,{ref:"formScroll",height:"100%",style:{background:"#fff"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.componentList,(f,B)=>(e.openBlock(),e.createElementBlock("div",{key:B,class:"BnBatchForm-body-item",id:"col_"+f.columnCode},[e.createElementVNode("div",{class:"BnBatchForm-body-item-del",onClick:p=>i.componentList.splice(B,1)},[...A[0]||(A[0]=[e.createElementVNode("span",{class:"bnUIcon bnUIcon-delete"},null,-1)])],8,Lp),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.componentView(f)),{column:f,postFunc:o.postFunc,onOnChange:i.comChange},null,40,["column","postFunc","onOnChange"]))],8,jp))),128))]),_:1},512)],8,Jp)])}const pl=ne(Pp,[["render",Vp],["__scopeId","data-v-600466e3"]]),Op="/biztable/content/updateBatch",Wp={name:"BnBatchFormDialog",components:{BnBatchForm:pl},props:{tableInfo:{type:Object,required:!0},componentList:{type:Array,required:!0},selectData:{type:Array,required:!0},source:{type:String,required:!0},postFunc:{type:Function,required:!0},userId:[String,Number],useInnerRequest:{type:Boolean,default:!0}},emits:["submitSuccess","submit","close"],data(){return{show:!1,loading:!1,formComponent:[],editComponents:[],formVal:{},rememberComponents:!1}},computed:{mergedExtendPost(){var A,o;const n={appId:(A=this.tableInfo)==null?void 0:A.appId,projectId:(o=this.tableInfo)==null?void 0:o.tableId,source:this.source};return this.userId!=null&&(n.userId=this.userId),n},selectCount(){return this.selectData.length||0}},methods:{getColumnCode(n){return n==null?null:typeof n=="object"?n.columnCode:n},extractColumnCodes(n=[]){return n.map(A=>this.getColumnCode(A)).filter(A=>A!=null&&A!=="")},restoreFormComponents(n=[]){const A=this.extractColumnCodes(n);if(!A.length||!this.editComponents.length)return;const o=A.map(r=>this.editComponents.find(l=>l.columnCode===r)).filter(Boolean);o.length&&(this.formComponent=o)},getStorageKey(){var A;const n=(A=this.tableInfo)==null?void 0:A.tableId;return this.userId&&n?`batchEditForm_components_v1_${this.userId}_${n}`:null},getStoredState(){const n=this.getStorageKey();if(!n)return null;try{return JSON.parse(localStorage.getItem(n)||"{}")}catch{return{}}},saveStoredState(){const n=this.getStorageKey();n&&localStorage.setItem(n,JSON.stringify({remember:this.rememberComponents,columnCodes:this.rememberComponents?this.extractColumnCodes(this.formComponent):[]}))},saveRememberFlag(){const n=this.getStorageKey();if(!n)return;const A=this.getStoredState()||{};localStorage.setItem(n,JSON.stringify({...A,remember:this.rememberComponents,columnCodes:this.rememberComponents?A.columnCodes||[]:[]}))},loadStoredState(){var A,o;const n=this.getStoredState();return!n||!Object.keys(n).length||(n.remember===void 0&&((A=n.columnCodes)!=null&&A.length)?this.rememberComponents=!0:this.rememberComponents=!!n.remember,this.rememberComponents&&((o=n.columnCodes)!=null&&o.length)&&this.restoreFormComponents(n.columnCodes)),n},handleClose(){this.show=!1,this.$emit("close")},clearAllComponents(){this.formComponent=[],this.formVal={}},open(){var A;this.editComponents=X.cloneDeep((this.componentList||[]).filter(o=>{const r=o.extraInfo||{};return r.searchKey==2||r.valueEditable==1?!1:r.isEditable==1})),this.formComponent=[],this.formVal={},this.rememberComponents=!1;const n=this.loadStoredState();this.show=!0,(A=n==null?void 0:n.columnCodes)!=null&&A.length&&this.$nextTick(()=>{this.rememberComponents&&!this.formComponent.length&&this.restoreFormComponents(n.columnCodes)})},buildPostData(){var n;return{tableCode:(n=this.tableInfo)==null?void 0:n.tableCode,contents:this.formVal.contents,ids:this.selectData||[]}},internalBatchEditTask(n){return this.postFunc(Op,n)},handleSubmitSuccess(n,A){this.saveStoredState(),this.show=!1,this.$emit("submitSuccess",n,A)},submitTask(){if(!this.validateForm())return;const n=this.buildPostData();if(!this.useInnerRequest){this.saveStoredState(),this.$emit("submit",n);return}this.loading=!0,this.internalBatchEditTask(n).then(A=>{this.loading=!1,A.code||this.handleSubmitSuccess(A,n)}).catch(()=>{this.loading=!1})},validateForm(){var A,o;if(!this.$refs.smartForm)return!0;const n=(o=(A=this.$refs.smartForm).checkFormContent)==null?void 0:o.call(A);return!!(n!=null&&n.checked)}}},zp={key:0,id:"batchEditForm",class:"bn-batch-form-dialog"},Kp={class:"bn-batch-form-dialog-main"},Xp={class:"bn-batch-form-dialog-main-top"},Zp={class:"w-color-gray w-font12"},qp={class:"w-color-blue"},_p={class:"w-padding20"},$p={class:"w-tip bn-batch-form-dialog-tip"},eu={class:"bn-batch-form-dialog-component-row"},Au={key:0,class:"bn-batch-form-dialog-main-body"},tu={key:1,class:"bn-batch-form-dialog-empty"},nu={class:"bn-batch-form-dialog-main-bottom"};function ou(n,A,o,r,l,i){const d=e.resolveComponent("BnDrop"),f=e.resolveComponent("el-popconfirm"),B=e.resolveComponent("BnBatchForm"),p=e.resolveComponent("BnEmptyTip"),u=e.resolveComponent("el-checkbox"),I=e.resolveComponent("el-button"),w=e.resolveDirective("loading");return l.show?(e.openBlock(),e.createElementBlock("div",zp,[e.createElementVNode("div",Kp,[e.createElementVNode("div",Xp,[e.renderSlot(n.$slots,"top",{selectCount:i.selectCount},()=>[e.createElementVNode("span",null,[A[6]||(A[6]=e.createTextVNode(" 批量编辑 ",-1)),e.createElementVNode("span",Zp,[A[4]||(A[4]=e.createTextVNode(" 已选择 ",-1)),e.createElementVNode("span",qp,e.toDisplayString(i.selectCount),1),A[5]||(A[5]=e.createTextVNode(" 条工单 ",-1))])])],!0),e.createElementVNode("span",{class:"sIcon sIcon-close",onClick:A[0]||(A[0]=(...C)=>i.handleClose&&i.handleClose(...C))})]),e.createElementVNode("div",_p,[e.renderSlot(n.$slots,"tip",{},()=>[e.createElementVNode("div",$p,[A[7]||(A[7]=e.createStaticVNode('<div data-v-b1811f13><span class="bn-batch-form-dialog-tip-num" data-v-b1811f13>1.</span><span class="w-color-orange" data-v-b1811f13>批量编辑不支持组件触发拉取,</span><span class="w-color-gray" data-v-b1811f13>例如:订单号、ERP订单号、物流单号、运单号等组件不允许批量修改。</span></div><div data-v-b1811f13><span class="bn-batch-form-dialog-tip-num" data-v-b1811f13>2.</span><span class="w-color-gray" data-v-b1811f13>不可编辑的工单组件不支持批量修改。</span></div><div data-v-b1811f13><span class="bn-batch-form-dialog-tip-num" data-v-b1811f13>3.</span><span class="w-color-gray" data-v-b1811f13>手动添加需要修改的组件,注意:如添加的组件最后保存时值为空,则会清空工单组件数据。</span></div>',3)),e.renderSlot(n.$slots,"tip-extra",{},void 0,!0)])],!0),e.createElementVNode("div",eu,[e.createVNode(d,{modelValue:l.formComponent,"onUpdate:modelValue":A[1]||(A[1]=C=>l.formComponent=C),options:l.editComponents,"option-props":{value:"columnCode",label:"name"},multiple:""},{default:e.withCtx(()=>[...A[8]||(A[8]=[e.createElementVNode("span",{class:"w-color-blue w-font13 w-cursor-pointer"},"请选择组件",-1)])]),_:1},8,["modelValue","options"]),l.formComponent.length>0?(e.openBlock(),e.createBlock(f,{key:0,title:"确定要清空所有已选组件吗?","confirm-button-text":"确定","cancel-button-text":"取消",onConfirm:i.clearAllComponents},{reference:e.withCtx(()=>[...A[9]||(A[9]=[e.createElementVNode("span",{class:"bn-batch-form-dialog-clear-all"},[e.createElementVNode("span",{class:"sIcon sIcon-delete"}),e.createTextVNode(" 一键清空组件 ")],-1)])]),_:1},8,["onConfirm"])):e.createCommentVNode("",!0)])]),l.formComponent.length>0?e.withDirectives((e.openBlock(),e.createElementBlock("div",Au,[e.renderSlot(n.$slots,"form",{formComponent:l.formComponent,formVal:l.formVal,loading:l.loading},()=>[e.createVNode(B,{ref:"smartForm",modelValue:l.formVal,"onUpdate:modelValue":A[2]||(A[2]=C=>l.formVal=C),components:l.formComponent,"extend-post":i.mergedExtendPost,"post-func":o.postFunc},null,8,["modelValue","components","extend-post","post-func"])],!0)])),[[w,l.loading]]):e.createCommentVNode("",!0),l.formComponent.length==0?(e.openBlock(),e.createElementBlock("div",tu,[e.renderSlot(n.$slots,"empty",{},()=>[e.createVNode(p,{tip:"请先选择要修改的组件"})],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",nu,[e.renderSlot(n.$slots,"footer",{loading:l.loading,submit:i.submitTask,rememberComponents:l.rememberComponents,selectCount:i.selectCount},()=>[e.createVNode(u,{modelValue:l.rememberComponents,"onUpdate:modelValue":A[3]||(A[3]=C=>l.rememberComponents=C),onChange:i.saveRememberFlag},{default:e.withCtx(()=>[...A[10]||(A[10]=[e.createTextVNode("记住本次编辑组件,下次默认加载",-1)])]),_:1},8,["modelValue","onChange"]),e.createVNode(I,{type:"primary",loading:l.loading,onClick:i.submitTask},{default:e.withCtx(()=>[...A[11]||(A[11]=[e.createTextVNode(" 提交 ",-1)])]),_:1},8,["loading","onClick"])],!0)])])])):e.createCommentVNode("",!0)}const Ms=ne(Wp,[["render",ou],["__scopeId","data-v-b1811f13"]]);function au(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function lu(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var A=n.default;if(typeof A=="function"){var o=function r(){return this instanceof r?Reflect.construct(A,arguments,this.constructor):A.apply(this,arguments)};o.prototype=A.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var l=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(o,r,l.get?l:{enumerable:!0,get:function(){return n[r]}})}),o}var xs={exports:{}},ca={exports:{}},iu=ca.exports,Ys;function Fs(){return Ys||(Ys=1,(function(n,A){(function(o,r){n.exports=r()})(iu,(function(){var o=navigator.userAgent,r=navigator.platform,l=/gecko\/\d/i.test(o),i=/MSIE \d/.test(o),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),f=/Edge\/(\d+)/.exec(o),B=i||d||f,p=B&&(i?document.documentMode||6:+(f||d)[1]),u=!f&&/WebKit\//.test(o),I=u&&/Qt\/\d+\.\d+/.test(o),w=!f&&/Chrome\/(\d+)/.exec(o),C=w&&+w[1],b=/Opera\//.test(o),M=/Apple Computer/.test(navigator.vendor),U=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),Y=/PhantomJS/.test(o),S=M&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),T=/Android/.test(o),G=S||T||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),z=S||/Mac/.test(r),j=/\bCrOS\b/.test(o),ue=/win/i.test(r),de=b&&o.match(/Version\/(\d*\.\d*)/);de&&(de=Number(de[1])),de&&de>=15&&(b=!1,u=!0);var _=z&&(I||b&&(de==null||de<12.11)),se=l||B&&p>=9;function ee(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var Qe=function(t,a){var c=t.className,s=ee(a).exec(c);if(s){var h=c.slice(s.index+s[0].length);t.className=c.slice(0,s.index)+(h?s[1]+h:"")}};function R(t){for(var a=t.childNodes.length;a>0;--a)t.removeChild(t.firstChild);return t}function W(t,a){return R(t).appendChild(a)}function x(t,a,c,s){var h=document.createElement(t);if(c&&(h.className=c),s&&(h.style.cssText=s),typeof a=="string")h.appendChild(document.createTextNode(a));else if(a)for(var g=0;g<a.length;++g)h.appendChild(a[g]);return h}function le(t,a,c,s){var h=x(t,a,c,s);return h.setAttribute("role","presentation"),h}var Ee;document.createRange?Ee=function(t,a,c,s){var h=document.createRange();return h.setEnd(s||t,c),h.setStart(t,a),h}:Ee=function(t,a,c){var s=document.body.createTextRange();try{s.moveToElementText(t.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",c),s.moveStart("character",a),s};function He(t,a){if(a.nodeType==3&&(a=a.parentNode),t.contains)return t.contains(a);do if(a.nodeType==11&&(a=a.host),a==t)return!0;while(a=a.parentNode)}function Ge(t){var a=t.ownerDocument||t,c;try{c=t.activeElement}catch{c=a.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function qe(t,a){var c=t.className;ee(a).test(c)||(t.className+=(c?" ":"")+a)}function Ke(t,a){for(var c=t.split(" "),s=0;s<c.length;s++)c[s]&&!ee(c[s]).test(a)&&(a+=" "+c[s]);return a}var $e=function(t){t.select()};S?$e=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:B&&($e=function(t){try{t.select()}catch{}});function ze(t){return t.display.wrapper.ownerDocument}function eA(t){return je(t.display.wrapper)}function je(t){return t.getRootNode?t.getRootNode():t.ownerDocument}function fe(t){return ze(t).defaultView}function he(t){var a=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,a)}}function ye(t,a,c){a||(a={});for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(c!==!1||!Object.prototype.hasOwnProperty.call(a,s))&&(a[s]=t[s]);return a}function ke(t,a,c,s,h){a==null&&(a=t.search(/[^\s\u00a0]/),a==-1&&(a=t.length));for(var g=s||0,E=h||0;;){var m=t.indexOf(" ",g);if(m<0||m>=a)return E+(a-g);E+=m-g,E+=c-E%c,g=m+1}}var CA=function(){this.id=null,this.f=null,this.time=0,this.handler=he(this.onTimeout,this)};CA.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},CA.prototype.set=function(t,a){this.f=a;var c=+new Date+t;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=c)};function Fe(t,a){for(var c=0;c<t.length;++c)if(t[c]==a)return c;return-1}var aA=50,oA={toString:function(){return"CodeMirror.Pass"}},_e={scroll:!1},YA={origin:"*mouse"},cA={origin:"+move"};function EA(t,a,c){for(var s=0,h=0;;){var g=t.indexOf(" ",s);g==-1&&(g=t.length);var E=g-s;if(g==t.length||h+E>=a)return s+Math.min(E,a-h);if(h+=g-s,h+=c-h%c,s=g+1,h>=a)return s}}var At=[""];function Jt(t){for(;At.length<=t;)At.push(Re(At)+" ");return At[t]}function Re(t){return t[t.length-1]}function HA(t,a){for(var c=[],s=0;s<t.length;s++)c[s]=a(t[s],s);return c}function yt(t,a,c){for(var s=0,h=c(a);s<t.length&&c(t[s])<=h;)s++;t.splice(s,0,a)}function Mt(){}function xt(t,a){var c;return Object.create?c=Object.create(t):(Mt.prototype=t,c=new Mt),a&&ye(a,c),c}var jt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pt(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||jt.test(t))}function OA(t,a){return a?a.source.indexOf("\\w")>-1&&pt(t)?!0:a.test(t):pt(t)}function Yt(t){for(var a in t)if(t.hasOwnProperty(a)&&t[a])return!1;return!0}var J=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function P(t){return t.charCodeAt(0)>=768&&J.test(t)}function O(t,a,c){for(;(c<0?a>0:a<t.length)&&P(t.charAt(a));)a+=c;return a}function $(t,a,c){for(var s=a>c?-1:1;;){if(a==c)return a;var h=(a+c)/2,g=s<0?Math.ceil(h):Math.floor(h);if(g==a)return t(g)?a:c;t(g)?c=g:a=g+s}}function Be(t,a,c,s){if(!t)return s(a,c,"ltr",0);for(var h=!1,g=0;g<t.length;++g){var E=t[g];(E.from<c&&E.to>a||a==c&&E.to==a)&&(s(Math.max(E.from,a),Math.min(E.to,c),E.level==1?"rtl":"ltr",g),h=!0)}h||s(a,c,"ltr")}var Me=null;function Ne(t,a,c){var s;Me=null;for(var h=0;h<t.length;++h){var g=t[h];if(g.from<a&&g.to>a)return h;g.to==a&&(g.from!=g.to&&c=="before"?s=h:Me=h),g.from==a&&(g.from!=g.to&&c!="before"?s=h:Me=h)}return s??Me}var We=(function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",a="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(v){return v<=247?t.charAt(v):1424<=v&&v<=1524?"R":1536<=v&&v<=1785?a.charAt(v-1536):1774<=v&&v<=2220?"r":8192<=v&&v<=8203?"w":v==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,g=/[LRr]/,E=/[Lb1n]/,m=/[1n]/;function Q(v,y,N){this.level=v,this.from=y,this.to=N}return function(v,y){var N=y=="ltr"?"L":"R";if(v.length==0||y=="ltr"&&!s.test(v))return!1;for(var H=v.length,k=[],V=0;V<H;++V)k.push(c(v.charCodeAt(V)));for(var Z=0,te=N;Z<H;++Z){var oe=k[Z];oe=="m"?k[Z]=te:te=oe}for(var re=0,ae=N;re<H;++re){var ge=k[re];ge=="1"&&ae=="r"?k[re]="n":g.test(ge)&&(ae=ge,ge=="r"&&(k[re]="R"))}for(var De=1,ve=k[0];De<H-1;++De){var Je=k[De];Je=="+"&&ve=="1"&&k[De+1]=="1"?k[De]="1":Je==","&&ve==k[De+1]&&(ve=="1"||ve=="n")&&(k[De]=ve),ve=Je}for(var tA=0;tA<H;++tA){var MA=k[tA];if(MA==",")k[tA]="N";else if(MA=="%"){var rA=void 0;for(rA=tA+1;rA<H&&k[rA]=="%";++rA);for(var nt=tA&&k[tA-1]=="!"||rA<H&&k[rA]=="1"?"1":"N",ZA=tA;ZA<rA;++ZA)k[ZA]=nt;tA=rA-1}}for(var mA=0,qA=N;mA<H;++mA){var FA=k[mA];qA=="L"&&FA=="1"?k[mA]="L":g.test(FA)&&(qA=FA)}for(var wA=0;wA<H;++wA)if(h.test(k[wA])){var IA=void 0;for(IA=wA+1;IA<H&&h.test(k[IA]);++IA);for(var gA=(wA?k[wA-1]:N)=="L",_A=(IA<H?k[IA]:N)=="L",co=gA==_A?gA?"L":"R":N,gn=wA;gn<IA;++gn)k[gn]=co;wA=IA-1}for(var SA=[],St,xA=0;xA<H;)if(E.test(k[xA])){var Oi=xA;for(++xA;xA<H&&E.test(k[xA]);++xA);SA.push(new Q(0,Oi,xA))}else{var Xt=xA,yn=SA.length,Mn=y=="rtl"?1:0;for(++xA;xA<H&&k[xA]!="L";++xA);for(var LA=Xt;LA<xA;)if(m.test(k[LA])){Xt<LA&&(SA.splice(yn,0,new Q(1,Xt,LA)),yn+=Mn);var ro=LA;for(++LA;LA<xA&&m.test(k[LA]);++LA);SA.splice(yn,0,new Q(2,ro,LA)),yn+=Mn,Xt=LA}else++LA;Xt<xA&&SA.splice(yn,0,new Q(1,Xt,xA))}return y=="ltr"&&(SA[0].level==1&&(St=v.match(/^\s+/))&&(SA[0].from=St[0].length,SA.unshift(new Q(0,0,St[0].length))),Re(SA).level==1&&(St=v.match(/\s+$/))&&(Re(SA).to-=St[0].length,SA.push(new Q(0,H-St[0].length,H)))),y=="rtl"?SA.reverse():SA}})();function we(t,a){var c=t.order;return c==null&&(c=t.order=We(t.text,a)),c}var Ye=[],q=function(t,a,c){if(t.addEventListener)t.addEventListener(a,c,!1);else if(t.attachEvent)t.attachEvent("on"+a,c);else{var s=t._handlers||(t._handlers={});s[a]=(s[a]||Ye).concat(c)}};function Ce(t,a){return t._handlers&&t._handlers[a]||Ye}function xe(t,a,c){if(t.removeEventListener)t.removeEventListener(a,c,!1);else if(t.detachEvent)t.detachEvent("on"+a,c);else{var s=t._handlers,h=s&&s[a];if(h){var g=Fe(h,c);g>-1&&(s[a]=h.slice(0,g).concat(h.slice(g+1)))}}}function be(t,a){var c=Ce(t,a);if(c.length)for(var s=Array.prototype.slice.call(arguments,2),h=0;h<c.length;++h)c[h].apply(null,s)}function Ve(t,a,c){return typeof a=="string"&&(a={type:a,preventDefault:function(){this.defaultPrevented=!0}}),be(t,c||a.type,t,a),WA(a)||a.codemirrorIgnore}function PA(t){var a=t._handlers&&t._handlers.cursorActivity;if(a)for(var c=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),s=0;s<a.length;++s)Fe(c,a[s])==-1&&c.push(a[s])}function GA(t,a){return Ce(t,a).length>0}function JA(t){t.prototype.on=function(a,c){q(this,a,c)},t.prototype.off=function(a,c){xe(this,a,c)}}function UA(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Hn(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function WA(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function en(t){UA(t),Hn(t)}function Mo(t){return t.target||t.srcElement}function ut(t){var a=t.which;return a==null&&(t.button&1?a=1:t.button&2?a=3:t.button&4&&(a=2)),z&&t.ctrlKey&&a==1&&(a=3),a}var _l=(function(){if(B&&p<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t})(),Pn;function xa(t){if(Pn==null){var a=x("span","​");W(t,x("span",[a,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Pn=a.offsetWidth<=1&&a.offsetHeight>2&&!(B&&p<8))}var c=Pn?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var xo;function An(t){if(xo!=null)return xo;var a=W(t,document.createTextNode("AخA")),c=Ee(a,0,1).getBoundingClientRect(),s=Ee(a,1,2).getBoundingClientRect();return R(t),!c||c.left==c.right?!1:xo=s.right-c.right<3}var ht=`
13
13
 
14
14
  b`.split(/\n/).length!=3?function(t){for(var a=0,c=[],s=t.length;a<=s;){var h=t.indexOf(`
15
15
  `,a);h==-1&&(h=t.length);var g=t.slice(a,t.charAt(h-1)=="\r"?h-1:h),E=g.indexOf("\r");E!=-1?(c.push(g.slice(0,E)),a+=E+1):(c.push(g),a=h+1)}return c}:function(t){return t.split(/\r\n?|\n/)},tn=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var a;try{a=t.ownerDocument.selection.createRange()}catch{}return!a||a.parentElement()!=t?!1:a.compareEndPoints("StartToEnd",a)!=0},Ya=(function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")})(),Et=null;function $l(t){if(Et!=null)return Et;var a=W(t,x("span","x")),c=a.getBoundingClientRect(),s=Ee(a,0,1).getBoundingClientRect();return Et=Math.abs(c.left-s.left)>1}var Gn={},mt={};function It(t,a){arguments.length>2&&(a.dependencies=Array.prototype.slice.call(arguments,2)),Gn[t]=a}function En(t,a){mt[t]=a}function Jn(t){if(typeof t=="string"&&mt.hasOwnProperty(t))t=mt[t];else if(t&&typeof t.name=="string"&&mt.hasOwnProperty(t.name)){var a=mt[t.name];typeof a=="string"&&(a={name:a}),t=xt(a,t),t.name=a.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Jn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Jn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function jn(t,a){a=Jn(a);var c=Gn[a.name];if(!c)return jn(t,"text/plain");var s=c(t,a);if(nn.hasOwnProperty(a.name)){var h=nn[a.name];for(var g in h)h.hasOwnProperty(g)&&(s.hasOwnProperty(g)&&(s["_"+g]=s[g]),s[g]=h[g])}if(s.name=a.name,a.helperType&&(s.helperType=a.helperType),a.modeProps)for(var E in a.modeProps)s[E]=a.modeProps[E];return s}var nn={};function Ln(t,a){var c=nn.hasOwnProperty(t)?nn[t]:nn[t]={};ye(a,c)}function Ft(t,a){if(a===!0)return a;if(t.copyState)return t.copyState(a);var c={};for(var s in a){var h=a[s];h instanceof Array&&(h=h.concat([])),c[s]=h}return c}function Yo(t,a){for(var c;t.innerMode&&(c=t.innerMode(a),!(!c||c.mode==t));)a=c.state,t=c.mode;return c||{mode:t,state:a}}function Vn(t,a,c){return t.startState?t.startState(a,c):!0}var hA=function(t,a,c){this.pos=this.start=0,this.string=t,this.tabSize=a||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=c};hA.prototype.eol=function(){return this.pos>=this.string.length},hA.prototype.sol=function(){return this.pos==this.lineStart},hA.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},hA.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},hA.prototype.eat=function(t){var a=this.string.charAt(this.pos),c;if(typeof t=="string"?c=a==t:c=a&&(t.test?t.test(a):t(a)),c)return++this.pos,a},hA.prototype.eatWhile=function(t){for(var a=this.pos;this.eat(t););return this.pos>a},hA.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},hA.prototype.skipToEnd=function(){this.pos=this.string.length},hA.prototype.skipTo=function(t){var a=this.string.indexOf(t,this.pos);if(a>-1)return this.pos=a,!0},hA.prototype.backUp=function(t){this.pos-=t},hA.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ke(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ke(this.string,this.lineStart,this.tabSize):0)},hA.prototype.indentation=function(){return ke(this.string,null,this.tabSize)-(this.lineStart?ke(this.string,this.lineStart,this.tabSize):0)},hA.prototype.match=function(t,a,c){if(typeof t=="string"){var s=function(E){return c?E.toLowerCase():E},h=this.string.substr(this.pos,t.length);if(s(h)==s(t))return a!==!1&&(this.pos+=t.length),!0}else{var g=this.string.slice(this.pos).match(t);return g&&g.index>0?null:(g&&a!==!1&&(this.pos+=g[0].length),g)}},hA.prototype.current=function(){return this.string.slice(this.start,this.pos)},hA.prototype.hideFirstChars=function(t,a){this.lineStart+=t;try{return a()}finally{this.lineStart-=t}},hA.prototype.lookAhead=function(t){var a=this.lineOracle;return a&&a.lookAhead(t)},hA.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function me(t,a){if(a-=t.first,a<0||a>=t.size)throw new Error("There is no line "+(a+t.first)+" in the document.");for(var c=t;!c.lines;)for(var s=0;;++s){var h=c.children[s],g=h.chunkSize();if(a<g){c=h;break}a-=g}return c.lines[a]}function Lt(t,a,c){var s=[],h=a.line;return t.iter(a.line,c.line+1,function(g){var E=g.text;h==c.line&&(E=E.slice(0,c.ch)),h==a.line&&(E=E.slice(a.ch)),s.push(E),++h}),s}function Fo(t,a,c){var s=[];return t.iter(a,c,function(h){s.push(h.text)}),s}function st(t,a){var c=a-t.height;if(c)for(var s=t;s;s=s.parent)s.height+=c}function D(t){if(t.parent==null)return null;for(var a=t.parent,c=Fe(a.lines,t),s=a.parent;s;a=s,s=s.parent)for(var h=0;s.children[h]!=a;++h)c+=s.children[h].chunkSize();return c+a.first}function F(t,a){var c=t.first;e:do{for(var s=0;s<t.children.length;++s){var h=t.children[s],g=h.height;if(a<g){t=h;continue e}a-=g,c+=h.chunkSize()}return c}while(!t.lines);for(var E=0;E<t.lines.length;++E){var m=t.lines[E],Q=m.height;if(a<Q)break;a-=Q}return c+E}function K(t,a){return a>=t.first&&a<t.first+t.size}function Ae(t,a){return String(t.lineNumberFormatter(a+t.firstLineNumber))}function L(t,a,c){if(c===void 0&&(c=null),!(this instanceof L))return new L(t,a,c);this.line=t,this.ch=a,this.sticky=c}function ce(t,a){return t.line-a.line||t.ch-a.ch}function Xe(t,a){return t.sticky==a.sticky&&ce(t,a)==0}function vA(t){return L(t.line,t.ch)}function zA(t,a){return ce(t,a)<0?a:t}function On(t,a){return ce(t,a)<0?t:a}function jc(t,a){return Math.max(t.first,Math.min(a,t.first+t.size-1))}function Se(t,a){if(a.line<t.first)return L(t.first,0);var c=t.first+t.size-1;return a.line>c?L(c,me(t,c).text.length):Sy(a,me(t,a.line).text.length)}function Sy(t,a){var c=t.ch;return c==null||c>a?L(t.line,a):c<0?L(t.line,0):t}function Lc(t,a){for(var c=[],s=0;s<a.length;s++)c[s]=Se(t,a[s]);return c}var Fa=function(t,a){this.state=t,this.lookAhead=a},Nt=function(t,a,c,s){this.state=a,this.doc=t,this.line=c,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};Nt.prototype.lookAhead=function(t){var a=this.doc.getLine(this.line+t);return a!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),a},Nt.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var a=this.baseTokens[this.baseTokenPos+1];return{type:a&&a.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Nt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Nt.fromSaved=function(t,a,c){return a instanceof Fa?new Nt(t,Ft(t.mode,a.state),c,a.lookAhead):new Nt(t,Ft(t.mode,a),c)},Nt.prototype.save=function(t){var a=t!==!1?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fa(a,this.maxLookAhead):a};function Vc(t,a,c,s){var h=[t.state.modeGen],g={};Zc(t,a.text,t.doc.mode,c,function(v,y){return h.push(v,y)},g,s);for(var E=c.state,m=function(v){c.baseTokens=h;var y=t.state.overlays[v],N=1,H=0;c.state=!0,Zc(t,a.text,y.mode,c,function(k,V){for(var Z=N;H<k;){var te=h[N];te>k&&h.splice(N,1,k,h[N+1],te),N+=2,H=Math.min(k,te)}if(V)if(y.opaque)h.splice(Z,N-Z,k,"overlay "+V),N=Z+2;else for(;Z<N;Z+=2){var oe=h[Z+1];h[Z+1]=(oe?oe+" ":"")+"overlay "+V}},g),c.state=E,c.baseTokens=null,c.baseTokenPos=1},Q=0;Q<t.state.overlays.length;++Q)m(Q);return{styles:h,classes:g.bgClass||g.textClass?g:null}}function Oc(t,a,c){if(!a.styles||a.styles[0]!=t.state.modeGen){var s=No(t,D(a)),h=a.text.length>t.options.maxHighlightLength&&Ft(t.doc.mode,s.state),g=Vc(t,a,s);h&&(s.state=h),a.stateAfter=s.save(!h),a.styles=g.styles,g.classes?a.styleClasses=g.classes:a.styleClasses&&(a.styleClasses=null),c===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return a.styles}function No(t,a,c){var s=t.doc,h=t.display;if(!s.mode.startState)return new Nt(s,!0,a);var g=Ry(t,a,c),E=g>s.first&&me(s,g-1).stateAfter,m=E?Nt.fromSaved(s,E,g):new Nt(s,Vn(s.mode),g);return s.iter(g,a,function(Q){ei(t,Q.text,m);var v=m.line;Q.stateAfter=v==a-1||v%5==0||v>=h.viewFrom&&v<h.viewTo?m.save():null,m.nextLine()}),c&&(s.modeFrontier=m.line),m}function ei(t,a,c,s){var h=t.doc.mode,g=new hA(a,t.options.tabSize,c);for(g.start=g.pos=s||0,a==""&&Wc(h,c.state);!g.eol();)Ai(h,g,c.state),g.start=g.pos}function Wc(t,a){if(t.blankLine)return t.blankLine(a);if(t.innerMode){var c=Yo(t,a);if(c.mode.blankLine)return c.mode.blankLine(c.state)}}function Ai(t,a,c,s){for(var h=0;h<10;h++){s&&(s[0]=Yo(t,c).mode);var g=t.token(a,c);if(a.pos>a.start)return g}throw new Error("Mode "+t.name+" failed to advance stream.")}var zc=function(t,a,c){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=a||null,this.state=c};function Kc(t,a,c,s){var h=t.doc,g=h.mode,E;a=Se(h,a);var m=me(h,a.line),Q=No(t,a.line,c),v=new hA(m.text,t.options.tabSize,Q),y;for(s&&(y=[]);(s||v.pos<a.ch)&&!v.eol();)v.start=v.pos,E=Ai(g,v,Q.state),s&&y.push(new zc(v,E,Ft(h.mode,Q.state)));return s?y:new zc(v,E,Q.state)}function Xc(t,a){if(t)for(;;){var c=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;t=t.slice(0,c.index)+t.slice(c.index+c[0].length);var s=c[1]?"bgClass":"textClass";a[s]==null?a[s]=c[2]:new RegExp("(?:^|\\s)"+c[2]+"(?:$|\\s)").test(a[s])||(a[s]+=" "+c[2])}return t}function Zc(t,a,c,s,h,g,E){var m=c.flattenSpans;m==null&&(m=t.options.flattenSpans);var Q=0,v=null,y=new hA(a,t.options.tabSize,s),N,H=t.options.addModeClass&&[null];for(a==""&&Xc(Wc(c,s.state),g);!y.eol();){if(y.pos>t.options.maxHighlightLength?(m=!1,E&&ei(t,a,s,y.pos),y.pos=a.length,N=null):N=Xc(Ai(c,y,s.state,H),g),H){var k=H[0].name;k&&(N="m-"+(N?k+" "+N:k))}if(!m||v!=N){for(;Q<y.start;)Q=Math.min(y.start,Q+5e3),h(Q,v);v=N}y.start=y.pos}for(;Q<y.pos;){var V=Math.min(y.pos,Q+5e3);h(V,v),Q=V}}function Ry(t,a,c){for(var s,h,g=t.doc,E=c?-1:a-(t.doc.mode.innerMode?1e3:100),m=a;m>E;--m){if(m<=g.first)return g.first;var Q=me(g,m-1),v=Q.stateAfter;if(v&&(!c||m+(v instanceof Fa?v.lookAhead:0)<=g.modeFrontier))return m;var y=ke(Q.text,null,t.options.tabSize);(h==null||s>y)&&(h=m-1,s=y)}return h}function Ty(t,a){if(t.modeFrontier=Math.min(t.modeFrontier,a),!(t.highlightFrontier<a-10)){for(var c=t.first,s=a-1;s>c;s--){var h=me(t,s).stateAfter;if(h&&(!(h instanceof Fa)||s+h.lookAhead<a)){c=s+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,c)}}var qc=!1,Vt=!1;function Hy(){qc=!0}function Py(){Vt=!0}function Na(t,a,c){this.marker=t,this.from=a,this.to=c}function Uo(t,a){if(t)for(var c=0;c<t.length;++c){var s=t[c];if(s.marker==a)return s}}function Gy(t,a){for(var c,s=0;s<t.length;++s)t[s]!=a&&(c||(c=[])).push(t[s]);return c}function Jy(t,a,c){var s=c&&window.WeakSet&&(c.markedSpans||(c.markedSpans=new WeakSet));s&&t.markedSpans&&s.has(t.markedSpans)?t.markedSpans.push(a):(t.markedSpans=t.markedSpans?t.markedSpans.concat([a]):[a],s&&s.add(t.markedSpans)),a.marker.attachLine(t)}function jy(t,a,c){var s;if(t)for(var h=0;h<t.length;++h){var g=t[h],E=g.marker,m=g.from==null||(E.inclusiveLeft?g.from<=a:g.from<a);if(m||g.from==a&&E.type=="bookmark"&&(!c||!g.marker.insertLeft)){var Q=g.to==null||(E.inclusiveRight?g.to>=a:g.to>a);(s||(s=[])).push(new Na(E,g.from,Q?null:g.to))}}return s}function Ly(t,a,c){var s;if(t)for(var h=0;h<t.length;++h){var g=t[h],E=g.marker,m=g.to==null||(E.inclusiveRight?g.to>=a:g.to>a);if(m||g.from==a&&E.type=="bookmark"&&(!c||g.marker.insertLeft)){var Q=g.from==null||(E.inclusiveLeft?g.from<=a:g.from<a);(s||(s=[])).push(new Na(E,Q?null:g.from-a,g.to==null?null:g.to-a))}}return s}function ti(t,a){if(a.full)return null;var c=K(t,a.from.line)&&me(t,a.from.line).markedSpans,s=K(t,a.to.line)&&me(t,a.to.line).markedSpans;if(!c&&!s)return null;var h=a.from.ch,g=a.to.ch,E=ce(a.from,a.to)==0,m=jy(c,h,E),Q=Ly(s,g,E),v=a.text.length==1,y=Re(a.text).length+(v?h:0);if(m)for(var N=0;N<m.length;++N){var H=m[N];if(H.to==null){var k=Uo(Q,H.marker);k?v&&(H.to=k.to==null?null:k.to+y):H.to=h}}if(Q)for(var V=0;V<Q.length;++V){var Z=Q[V];if(Z.to!=null&&(Z.to+=y),Z.from==null){var te=Uo(m,Z.marker);te||(Z.from=y,v&&(m||(m=[])).push(Z))}else Z.from+=y,v&&(m||(m=[])).push(Z)}m&&(m=_c(m)),Q&&Q!=m&&(Q=_c(Q));var oe=[m];if(!v){var re=a.text.length-2,ae;if(re>0&&m)for(var ge=0;ge<m.length;++ge)m[ge].to==null&&(ae||(ae=[])).push(new Na(m[ge].marker,null,null));for(var De=0;De<re;++De)oe.push(ae);oe.push(Q)}return oe}function _c(t){for(var a=0;a<t.length;++a){var c=t[a];c.from!=null&&c.from==c.to&&c.marker.clearWhenEmpty!==!1&&t.splice(a--,1)}return t.length?t:null}function Vy(t,a,c){var s=null;if(t.iter(a.line,c.line+1,function(k){if(k.markedSpans)for(var V=0;V<k.markedSpans.length;++V){var Z=k.markedSpans[V].marker;Z.readOnly&&(!s||Fe(s,Z)==-1)&&(s||(s=[])).push(Z)}}),!s)return null;for(var h=[{from:a,to:c}],g=0;g<s.length;++g)for(var E=s[g],m=E.find(0),Q=0;Q<h.length;++Q){var v=h[Q];if(!(ce(v.to,m.from)<0||ce(v.from,m.to)>0)){var y=[Q,1],N=ce(v.from,m.from),H=ce(v.to,m.to);(N<0||!E.inclusiveLeft&&!N)&&y.push({from:v.from,to:m.from}),(H>0||!E.inclusiveRight&&!H)&&y.push({from:m.to,to:v.to}),h.splice.apply(h,y),Q+=y.length-3}}return h}function $c(t){var a=t.markedSpans;if(a){for(var c=0;c<a.length;++c)a[c].marker.detachLine(t);t.markedSpans=null}}function er(t,a){if(a){for(var c=0;c<a.length;++c)a[c].marker.attachLine(t);t.markedSpans=a}}function Ua(t){return t.inclusiveLeft?-1:0}function ka(t){return t.inclusiveRight?1:0}function ni(t,a){var c=t.lines.length-a.lines.length;if(c!=0)return c;var s=t.find(),h=a.find(),g=ce(s.from,h.from)||Ua(t)-Ua(a);if(g)return-g;var E=ce(s.to,h.to)||ka(t)-ka(a);return E||a.id-t.id}function Ar(t,a){var c=Vt&&t.markedSpans,s;if(c)for(var h=void 0,g=0;g<c.length;++g)h=c[g],h.marker.collapsed&&(a?h.from:h.to)==null&&(!s||ni(s,h.marker)<0)&&(s=h.marker);return s}function tr(t){return Ar(t,!0)}function Sa(t){return Ar(t,!1)}function Oy(t,a){var c=Vt&&t.markedSpans,s;if(c)for(var h=0;h<c.length;++h){var g=c[h];g.marker.collapsed&&(g.from==null||g.from<a)&&(g.to==null||g.to>a)&&(!s||ni(s,g.marker)<0)&&(s=g.marker)}return s}function nr(t,a,c,s,h){var g=me(t,a),E=Vt&&g.markedSpans;if(E)for(var m=0;m<E.length;++m){var Q=E[m];if(Q.marker.collapsed){var v=Q.marker.find(0),y=ce(v.from,c)||Ua(Q.marker)-Ua(h),N=ce(v.to,s)||ka(Q.marker)-ka(h);if(!(y>=0&&N<=0||y<=0&&N>=0)&&(y<=0&&(Q.marker.inclusiveRight&&h.inclusiveLeft?ce(v.to,c)>=0:ce(v.to,c)>0)||y>=0&&(Q.marker.inclusiveRight&&h.inclusiveLeft?ce(v.from,s)<=0:ce(v.from,s)<0)))return!0}}}function Qt(t){for(var a;a=tr(t);)t=a.find(-1,!0).line;return t}function Wy(t){for(var a;a=Sa(t);)t=a.find(1,!0).line;return t}function zy(t){for(var a,c;a=Sa(t);)t=a.find(1,!0).line,(c||(c=[])).push(t);return c}function oi(t,a){var c=me(t,a),s=Qt(c);return c==s?a:D(s)}function or(t,a){if(a>t.lastLine())return a;var c=me(t,a),s;if(!on(t,c))return a;for(;s=Sa(c);)c=s.find(1,!0).line;return D(c)+1}function on(t,a){var c=Vt&&a.markedSpans;if(c){for(var s=void 0,h=0;h<c.length;++h)if(s=c[h],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&ai(t,a,s))return!0}}}function ai(t,a,c){if(c.to==null){var s=c.marker.find(1,!0);return ai(t,s.line,Uo(s.line.markedSpans,c.marker))}if(c.marker.inclusiveRight&&c.to==a.text.length)return!0;for(var h=void 0,g=0;g<a.markedSpans.length;++g)if(h=a.markedSpans[g],h.marker.collapsed&&!h.marker.widgetNode&&h.from==c.to&&(h.to==null||h.to!=c.from)&&(h.marker.inclusiveLeft||c.marker.inclusiveRight)&&ai(t,a,h))return!0}function Ot(t){t=Qt(t);for(var a=0,c=t.parent,s=0;s<c.lines.length;++s){var h=c.lines[s];if(h==t)break;a+=h.height}for(var g=c.parent;g;c=g,g=c.parent)for(var E=0;E<g.children.length;++E){var m=g.children[E];if(m==c)break;a+=m.height}return a}function Ra(t){if(t.height==0)return 0;for(var a=t.text.length,c,s=t;c=tr(s);){var h=c.find(0,!0);s=h.from.line,a+=h.from.ch-h.to.ch}for(s=t;c=Sa(s);){var g=c.find(0,!0);a-=s.text.length-g.from.ch,s=g.to.line,a+=s.text.length-g.to.ch}return a}function li(t){var a=t.display,c=t.doc;a.maxLine=me(c,c.first),a.maxLineLength=Ra(a.maxLine),a.maxLineChanged=!0,c.iter(function(s){var h=Ra(s);h>a.maxLineLength&&(a.maxLineLength=h,a.maxLine=s)})}var Wn=function(t,a,c){this.text=t,er(this,a),this.height=c?c(this):1};Wn.prototype.lineNo=function(){return D(this)},JA(Wn);function Ky(t,a,c,s){t.text=a,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),$c(t),er(t,c);var h=s?s(t):1;h!=t.height&&st(t,h)}function Xy(t){t.parent=null,$c(t)}var Zy={},qy={};function ar(t,a){if(!t||/^\s*$/.test(t))return null;var c=a.addModeClass?qy:Zy;return c[t]||(c[t]=t.replace(/\S+/g,"cm-$&"))}function lr(t,a){var c=le("span",null,null,u?"padding-right: .1px":null),s={pre:le("pre",[c],"CodeMirror-line"),content:c,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};a.measure={};for(var h=0;h<=(a.rest?a.rest.length:0);h++){var g=h?a.rest[h-1]:a.line,E=void 0;s.pos=0,s.addToken=$y,An(t.display.measure)&&(E=we(g,t.doc.direction))&&(s.addToken=AM(s.addToken,E)),s.map=[];var m=a!=t.display.externalMeasured&&D(g);tM(g,s,Oc(t,g,m)),g.styleClasses&&(g.styleClasses.bgClass&&(s.bgClass=Ke(g.styleClasses.bgClass,s.bgClass||"")),g.styleClasses.textClass&&(s.textClass=Ke(g.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(xa(t.display.measure))),h==0?(a.measure.map=s.map,a.measure.cache={}):((a.measure.maps||(a.measure.maps=[])).push(s.map),(a.measure.caches||(a.measure.caches=[])).push({}))}if(u){var Q=s.content.lastChild;(/\bcm-tab\b/.test(Q.className)||Q.querySelector&&Q.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return be(t,"renderLine",t,a.line,s.pre),s.pre.className&&(s.textClass=Ke(s.pre.className,s.textClass||"")),s}function _y(t){var a=x("span","•","cm-invalidchar");return a.title="\\u"+t.charCodeAt(0).toString(16),a.setAttribute("aria-label",a.title),a}function $y(t,a,c,s,h,g,E){if(a){var m=t.splitSpaces?eM(a,t.trailingSpace):a,Q=t.cm.state.specialChars,v=!1,y;if(!Q.test(a))t.col+=a.length,y=document.createTextNode(m),t.map.push(t.pos,t.pos+a.length,y),B&&p<9&&(v=!0),t.pos+=a.length;else{y=document.createDocumentFragment();for(var N=0;;){Q.lastIndex=N;var H=Q.exec(a),k=H?H.index-N:a.length-N;if(k){var V=document.createTextNode(m.slice(N,N+k));B&&p<9?y.appendChild(x("span",[V])):y.appendChild(V),t.map.push(t.pos,t.pos+k,V),t.col+=k,t.pos+=k}if(!H)break;N+=k+1;var Z=void 0;if(H[0]==" "){var te=t.cm.options.tabSize,oe=te-t.col%te;Z=y.appendChild(x("span",Jt(oe),"cm-tab")),Z.setAttribute("role","presentation"),Z.setAttribute("cm-text"," "),t.col+=oe}else H[0]=="\r"||H[0]==`
@@ -1,5 +1,5 @@
1
1
  import { cloneDeep as w } from "lodash";
2
- import { _, Y as N, $ as E } from "./install-C-scqkds.js";
2
+ import { _, Y as N, $ as E } from "./install--7IU60oV.js";
3
3
  import { withDirectives as k, openBlock as u, createElementBlock as v, withModifiers as L, normalizeStyle as z, vShow as B, resolveComponent as h, resolveDirective as U, createBlock as C, withCtx as a, createVNode as r, createElementVNode as c, Fragment as D, renderList as P, createTextVNode as g, toDisplayString as x } from "vue";
4
4
  const A = {
5
5
  name: "WorksheetCopy",
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as u, openBlock as f, createElementBlock as s, createVNode as d, withCtx as h, createElementVNode as _, createCommentVNode as c } from "vue";
2
- import { _ as C } from "./install-C-scqkds.js";
2
+ import { _ as C } from "./install--7IU60oV.js";
3
3
  import { cloneDeep as g } from "lodash";
4
4
  const x = {
5
5
  name: "defaultSet",
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as g, openBlock as n, createElementBlock as r, normalizeClass as y, withDirectives as m, createElementVNode as o, vShow as u, createTextVNode as c, toDisplayString as i, createBlock as w, withCtx as s, createCommentVNode as a, Fragment as B, renderList as C } from "vue";
2
- import { _ as v } from "./install-C-scqkds.js";
2
+ import { _ as v } from "./install--7IU60oV.js";
3
3
  const F = {
4
4
  name: "formItemTop",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as i, openBlock as c, createBlock as f, withCtx as n, createCommentVNode as v, createElementVNode as r, createVNode as a, createTextVNode as u } from "vue";
2
- import { _ as I } from "./install-C-scqkds.js";
2
+ import { _ as I } from "./install--7IU60oV.js";
3
3
  const _ = {
4
4
  name: "funcExprDialog",
5
5
  props: {
@@ -1,6 +1,6 @@
1
- import { a as d, f as s } from "./formItemFooter-CTA7rDtV.js";
1
+ import { a as d, f as s } from "./formItemFooter-BpnVUUgV.js";
2
2
  import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as n, createElementVNode as f } from "vue";
3
- import { _ } from "./install-C-scqkds.js";
3
+ import { _ } from "./install--7IU60oV.js";
4
4
  const p = {
5
5
  name: "dateDualForm",
6
6
  props: {
@@ -1,7 +1,7 @@
1
- import { f as i, a as d } from "./formItemFooter-CTA7rDtV.js";
1
+ import { f as i, a as d } from "./formItemFooter-BpnVUUgV.js";
2
2
  import { debounce as f } from "lodash";
3
3
  import { resolveComponent as m, openBlock as p, createElementBlock as h, createVNode as u, createElementVNode as _ } from "vue";
4
- import { _ as I } from "./install-C-scqkds.js";
4
+ import { _ as I } from "./install--7IU60oV.js";
5
5
  const B = {
6
6
  name: "numberForm",
7
7
  components: { formItemTop: d, formItemFooter: i },
@@ -1,7 +1,7 @@
1
1
  import { debounce as F } from "lodash";
2
- import { f as E, a as Q } from "./formItemFooter-CTA7rDtV.js";
2
+ import { f as E, a as Q } from "./formItemFooter-BpnVUUgV.js";
3
3
  import { resolveComponent as u, openBlock as r, createElementBlock as v, createVNode as i, createElementVNode as b, createBlock as d, withCtx as C, createTextVNode as U, toDisplayString as R, createCommentVNode as D } from "vue";
4
- import { _ as N } from "./install-C-scqkds.js";
4
+ import { _ as N } from "./install--7IU60oV.js";
5
5
  const T = {
6
6
  name: "stringForm",
7
7
  components: { formItemTop: Q, formItemFooter: E },
@@ -1,6 +1,6 @@
1
1
  import { debounce as h } from "lodash";
2
2
  import { resolveComponent as n, openBlock as f, createElementBlock as w, createElementVNode as o, createVNode as l, withCtx as c, createTextVNode as r } from "vue";
3
- import { _ } from "./install-C-scqkds.js";
3
+ import { _ } from "./install--7IU60oV.js";
4
4
  const g = {
5
5
  name: "BnAddressParse",
6
6
  props: {
@@ -1,7 +1,7 @@
1
- import { f as d, a as s } from "./formItemFooter-CTA7rDtV.js";
1
+ import { f as d, a as s } from "./formItemFooter-BpnVUUgV.js";
2
2
  import { debounce as f } from "lodash";
3
3
  import { resolveComponent as n, openBlock as i, createElementBlock as _, createVNode as t, createElementVNode as p } from "vue";
4
- import { _ as x } from "./install-C-scqkds.js";
4
+ import { _ as x } from "./install--7IU60oV.js";
5
5
  const h = {
6
6
  name: "numberForm",
7
7
  components: { formItemTop: s, formItemFooter: d },
@@ -1,6 +1,6 @@
1
- import { f as s, a as d } from "./formItemFooter-CTA7rDtV.js";
1
+ import { f as s, a as d } from "./formItemFooter-BpnVUUgV.js";
2
2
  import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as t, createElementVNode as f } from "vue";
3
- import { _ } from "./install-C-scqkds.js";
3
+ import { _ } from "./install--7IU60oV.js";
4
4
  const p = {
5
5
  name: "dateForm",
6
6
  components: { formItemTop: d, formItemFooter: s },
@@ -1,8 +1,8 @@
1
1
  import { debounce as h } from "lodash";
2
- import { f, a as _ } from "./formItemFooter-CTA7rDtV.js";
3
- import { B as p } from "./index-DzDf9s2W.js";
2
+ import { f, a as _ } from "./formItemFooter-BpnVUUgV.js";
3
+ import { B as p } from "./index-BSKXuSid.js";
4
4
  import { resolveComponent as l, openBlock as C, createElementBlock as F, createVNode as u, createElementVNode as s } from "vue";
5
- import { _ as B } from "./install-C-scqkds.js";
5
+ import { _ as B } from "./install--7IU60oV.js";
6
6
  const b = {
7
7
  name: "addressForm",
8
8
  components: { BnAddressParse: p, formItemTop: _, formItemFooter: f },
@@ -1,6 +1,6 @@
1
- import { a as f, f as h } from "./formItemFooter-CTA7rDtV.js";
1
+ import { a as f, f as h } from "./formItemFooter-BpnVUUgV.js";
2
2
  import { resolveComponent as l, openBlock as o, createElementBlock as n, createVNode as m, createElementVNode as _, Fragment as p, renderList as k, createBlock as b, createCommentVNode as v } from "vue";
3
- import { _ as x } from "./install-C-scqkds.js";
3
+ import { _ as x } from "./install--7IU60oV.js";
4
4
  const F = {
5
5
  name: "checkboxForm",
6
6
  components: {
@@ -1,6 +1,6 @@
1
- import { a as f, f as _ } from "./formItemFooter-CTA7rDtV.js";
1
+ import { a as f, f as _ } from "./formItemFooter-BpnVUUgV.js";
2
2
  import { resolveComponent as n, openBlock as o, createElementBlock as t, createVNode as a, createElementVNode as p, Fragment as h, renderList as v, createCommentVNode as F } from "vue";
3
- import { _ as g } from "./install-C-scqkds.js";
3
+ import { _ as g } from "./install--7IU60oV.js";
4
4
  const V = {
5
5
  name: "radioForm",
6
6
  components: { formItemFooter: _, formItemTop: f },
@@ -1,8 +1,8 @@
1
1
  import { debounce as V } from "lodash";
2
- import { _ as U, a5 as z, a2 as P } from "./install-C-scqkds.js";
2
+ import { _ as U, a5 as z, a2 as P } from "./install--7IU60oV.js";
3
3
  import { f as $ } from "./fileFormData-D_Q1vylE.js";
4
4
  import { resolveComponent as d, openBlock as i, createElementBlock as p, createElementVNode as r, createVNode as h, withCtx as u, createTextVNode as y, toDisplayString as I, withDirectives as x, vShow as Y, createCommentVNode as f, resolveDirective as M, createBlock as _, Fragment as S, renderList as T } from "vue";
5
- import { a as j, f as H } from "./formItemFooter-CTA7rDtV.js";
5
+ import { a as j, f as H } from "./formItemFooter-BpnVUUgV.js";
6
6
  const R = {
7
7
  name: "childFormFile",
8
8
  props: {
@@ -1,11 +1,11 @@
1
1
  import { isEmpty as O, cloneDeep as T } from "lodash";
2
- import { _ as U, W as F } from "./install-C-scqkds.js";
2
+ import { _ as U, W as F } from "./install--7IU60oV.js";
3
3
  import { resolveComponent as a, openBlock as i, createElementBlock as s, createVNode as d, mergeProps as b, createElementVNode as o, toDisplayString as f, withCtx as r, createTextVNode as m, createCommentVNode as c, normalizeClass as V, createBlock as $, defineAsyncComponent as D } from "vue";
4
4
  const W = {
5
5
  name: "childrenFormSetting",
6
6
  components: {
7
- columnConfigDialog: D(() => import("./install-C-scqkds.js").then((t) => t.V)),
8
- assocTableSearch: D(() => import("./assocTableSearch-C14i_zJO.js"))
7
+ columnConfigDialog: D(() => import("./install--7IU60oV.js").then((t) => t.V)),
8
+ assocTableSearch: D(() => import("./assocTableSearch-CmzOXI5w.js"))
9
9
  // assocTable: defineAsyncComponent(() => import("./assocTable.vue")),
10
10
  },
11
11
  props: {
@@ -1,6 +1,6 @@
1
- import { a as m, f as s } from "./formItemFooter-CTA7rDtV.js";
1
+ import { a as m, f as s } from "./formItemFooter-BpnVUUgV.js";
2
2
  import { resolveComponent as n, openBlock as d, createElementBlock as f, createVNode as l, createElementVNode as p } from "vue";
3
- import { _ as h } from "./install-C-scqkds.js";
3
+ import { _ as h } from "./install--7IU60oV.js";
4
4
  const _ = {
5
5
  name: "relationForm",
6
6
  components: { formItemFooter: s, formItemTop: m },
@@ -1,4 +1,4 @@
1
- import { _ as g, X as w } from "./install-C-scqkds.js";
1
+ import { _ as g, X as w } from "./install--7IU60oV.js";
2
2
  import { resolveComponent as p, openBlock as l, createElementBlock as o, createVNode as u, createElementVNode as i, withCtx as h, Fragment as b, renderList as _, createCommentVNode as I } from "vue";
3
3
  const v = {
4
4
  name: "paraExplainSet",
@@ -1,6 +1,6 @@
1
- import { a as i, f as s } from "./formItemFooter-CTA7rDtV.js";
1
+ import { a as i, f as s } from "./formItemFooter-BpnVUUgV.js";
2
2
  import { resolveComponent as o, openBlock as d, createElementBlock as r, createVNode as t, createElementVNode as f } from "vue";
3
- import { _ as p } from "./install-C-scqkds.js";
3
+ import { _ as p } from "./install--7IU60oV.js";
4
4
  const h = {
5
5
  name: "editSelectCol",
6
6
  components: { formItemFooter: s, formItemTop: i },
@@ -1,6 +1,6 @@
1
1
  import { isEmpty as u } from "lodash";
2
2
  import { resolveComponent as m, resolveDirective as f, withDirectives as h, openBlock as i, createElementBlock as n, createElementVNode as a, Fragment as g, renderList as _, normalizeClass as y, toDisplayString as F, createVNode as k } from "vue";
3
- import { _ as v } from "./install-C-scqkds.js";
3
+ import { _ as v } from "./install--7IU60oV.js";
4
4
  const x = {
5
5
  name: "packageFilter",
6
6
  computed: {
@@ -1,5 +1,5 @@
1
- import { a as b, f as I } from "./formItemFooter-CTA7rDtV.js";
2
- import { _ as F, a5 as v } from "./install-C-scqkds.js";
1
+ import { a as b, f as I } from "./formItemFooter-BpnVUUgV.js";
2
+ import { _ as F, a5 as v } from "./install--7IU60oV.js";
3
3
  import { f as w } from "./fileFormData-D_Q1vylE.js";
4
4
  import { resolveComponent as o, openBlock as m, createElementBlock as y, createBlock as N, createCommentVNode as x, createElementVNode as a, createVNode as i, withCtx as V, createTextVNode as T, toDisplayString as r, withDirectives as B, vShow as C } from "vue";
5
5
  const D = {
@@ -1,8 +1,8 @@
1
1
  import { debounce as v } from "lodash";
2
- import { f, a as b } from "./formItemFooter-CTA7rDtV.js";
3
- import { B as w } from "./index-DzDf9s2W.js";
2
+ import { f, a as b } from "./formItemFooter-BpnVUUgV.js";
3
+ import { B as w } from "./index-BSKXuSid.js";
4
4
  import { resolveComponent as t, openBlock as s, createElementBlock as B, createBlock as F, createCommentVNode as _, createVNode as a, createElementVNode as d } from "vue";
5
- import { _ as y } from "./install-C-scqkds.js";
5
+ import { _ as y } from "./install--7IU60oV.js";
6
6
  const I = {
7
7
  name: "addressForm",
8
8
  components: { BnAddressParse: w, formItemTop: b, formItemFooter: f },
@@ -6533,8 +6533,8 @@ const ma = {
6533
6533
  { title: "不等于", id: "2" },
6534
6534
  { title: "包含", id: "3" },
6535
6535
  { title: "不包含", id: "4" },
6536
- { title: "包含任一项", id: "5" },
6537
- { title: "不包含任一项", id: "6" },
6536
+ // {title: '包含任一项', id: '5'},
6537
+ // {title: '不包含任一项', id: '6'},
6538
6538
  { title: "为空", id: "9" },
6539
6539
  { title: "不为空", id: "10" }
6540
6540
  // {title: '不重复', id: '14'},
@@ -8231,19 +8231,19 @@ function eo(i, n, o) {
8231
8231
  return c = Array.from(/* @__PURE__ */ new Set([...i, ...n])), c;
8232
8232
  }
8233
8233
  const to = {
8234
- stringForm: ge(() => import("./index-C9qrl-yc.js")),
8235
- numberForm: ge(() => import("./index-BmkiB4hr.js")),
8236
- selectForm: ge(() => import("./index-BdzNjjMC.js")),
8237
- radioForm: ge(() => import("./index-B6b4uj8v.js")),
8238
- checkboxForm: ge(() => import("./index-Br1sqCoo.js")),
8239
- dateForm: ge(() => import("./index-ObCfCmDT.js")),
8240
- dateDualForm: ge(() => import("./index-DSEtu7TN.js")),
8241
- fileForm: ge(() => import("./index-DFPfZ_Il.js")),
8242
- childrenForm: ge(() => import("./index-CXFJXCn5.js")),
8243
- addressForm: ge(() => import("./index-BdZ1zOap.js")),
8244
- receiveForm: ge(() => import("./index-DF114jZq.js")),
8245
- relationForm: ge(() => import("./index-BfpZqab2.js")),
8246
- scoreForm: ge(() => import("./index-DrPj-tmI.js"))
8234
+ stringForm: ge(() => import("./index-BOFu3qAH.js")),
8235
+ numberForm: ge(() => import("./index-8apT0r8m.js")),
8236
+ selectForm: ge(() => import("./index-DxpJkrN7.js")),
8237
+ radioForm: ge(() => import("./index-D1fGD0mX.js")),
8238
+ checkboxForm: ge(() => import("./index-Cfb8D3Fg.js")),
8239
+ dateForm: ge(() => import("./index-BhqkeVFc.js")),
8240
+ dateDualForm: ge(() => import("./index-8GQJARcF.js")),
8241
+ fileForm: ge(() => import("./index-P2M7CUTe.js")),
8242
+ childrenForm: ge(() => import("./index-DE_eQGbT.js")),
8243
+ addressForm: ge(() => import("./index-CK7_Ou7F.js")),
8244
+ receiveForm: ge(() => import("./index-xCz2zysE.js")),
8245
+ relationForm: ge(() => import("./index-Dobi0ms9.js")),
8246
+ scoreForm: ge(() => import("./index-BhYvDd_Q.js"))
8247
8247
  }, eg = {
8248
8248
  name: "BnSmartForm",
8249
8249
  components: {
@@ -8251,7 +8251,7 @@ const to = {
8251
8251
  choosePackage: Qp,
8252
8252
  chooseChildOrder: lm,
8253
8253
  chooseAssocTable: Wm,
8254
- chooseIPaasData: ge(() => import("./chooseIPaasData-Cl_5qkFA.js"))
8254
+ chooseIPaasData: ge(() => import("./chooseIPaasData-jkTJEMKT.js"))
8255
8255
  },
8256
8256
  props: {
8257
8257
  // 表单id 涉及编辑表单
@@ -9151,18 +9151,18 @@ const sg = /* @__PURE__ */ ne(eg, [["render", og], ["__scopeId", "data-v-c658ebe
9151
9151
  * */
9152
9152
  componentView(i) {
9153
9153
  const n = {
9154
- stringForm: ge(() => import("./index-C9qrl-yc.js")),
9155
- numberForm: ge(() => import("./index-BmkiB4hr.js")),
9156
- selectForm: ge(() => import("./index-BdzNjjMC.js")),
9157
- radioForm: ge(() => import("./index-B6b4uj8v.js")),
9158
- checkboxForm: ge(() => import("./index-Br1sqCoo.js")),
9159
- dateForm: ge(() => import("./index-ObCfCmDT.js")),
9160
- dateDualForm: ge(() => import("./index-DSEtu7TN.js")),
9161
- fileForm: ge(() => import("./index-DFPfZ_Il.js")),
9162
- childrenForm: ge(() => import("./index-CXFJXCn5.js")),
9163
- addressForm: ge(() => import("./index-BdZ1zOap.js")),
9164
- receiveForm: ge(() => import("./index-DF114jZq.js")),
9165
- relationForm: ge(() => import("./index-BfpZqab2.js"))
9154
+ stringForm: ge(() => import("./index-BOFu3qAH.js")),
9155
+ numberForm: ge(() => import("./index-8apT0r8m.js")),
9156
+ selectForm: ge(() => import("./index-DxpJkrN7.js")),
9157
+ radioForm: ge(() => import("./index-D1fGD0mX.js")),
9158
+ checkboxForm: ge(() => import("./index-Cfb8D3Fg.js")),
9159
+ dateForm: ge(() => import("./index-BhqkeVFc.js")),
9160
+ dateDualForm: ge(() => import("./index-8GQJARcF.js")),
9161
+ fileForm: ge(() => import("./index-P2M7CUTe.js")),
9162
+ childrenForm: ge(() => import("./index-DE_eQGbT.js")),
9163
+ addressForm: ge(() => import("./index-CK7_Ou7F.js")),
9164
+ receiveForm: ge(() => import("./index-xCz2zysE.js")),
9165
+ relationForm: ge(() => import("./index-Dobi0ms9.js"))
9166
9166
  // showValForm: defineAsyncComponent(() => import('./showValForm/index.vue')),
9167
9167
  };
9168
9168
  let o = Yl[i.behaviorType] || null;
@@ -16920,13 +16920,13 @@ const tv = /* @__PURE__ */ ne(Ag, [["render", ev], ["__scopeId", "data-v-8214601
16920
16920
  isChildren: Boolean
16921
16921
  },
16922
16922
  components: {
16923
- paraExplainSet: ge(() => import("./index-LnjudNEI.js")),
16924
- defaultSet: ge(() => import("./defaultSet-I4xpf8a4.js")),
16925
- funcExprDialog: ge(() => import("./funcExprDialog-Cm5BiRM3.js")),
16926
- setOption: ge(() => import("./setOption-CSnWzOny.js")),
16927
- setRelationOption: ge(() => import("./setRelationOption-CJcHdfaa.js")),
16928
- childrenFormSetting: ge(() => import("./index-Did0UUWV.js")),
16929
- packageFilter: ge(() => import("./index-BWdkDTbz.js"))
16923
+ paraExplainSet: ge(() => import("./index-DuyQNxe0.js")),
16924
+ defaultSet: ge(() => import("./defaultSet-CiYuSOzT.js")),
16925
+ funcExprDialog: ge(() => import("./funcExprDialog-BMc-n5FL.js")),
16926
+ setOption: ge(() => import("./setOption-DehYZpZr.js")),
16927
+ setRelationOption: ge(() => import("./setRelationOption-BL-AFUoF.js")),
16928
+ childrenFormSetting: ge(() => import("./index-DfgiBqzS.js")),
16929
+ packageFilter: ge(() => import("./index-FGHeG46m.js"))
16930
16930
  },
16931
16931
  data() {
16932
16932
  return {
@@ -23026,7 +23026,7 @@ function LC(i, n, o, c, a, u) {
23026
23026
  ])) : z("", !0)
23027
23027
  ]);
23028
23028
  }
23029
- const OC = /* @__PURE__ */ ne(CC, [["render", LC], ["__scopeId", "data-v-95812b85"]]), BC = ge(() => import("./index-C9qrl-yc.js")), AC = ge(() => import("./index-BmkiB4hr.js")), _C = ge(() => import("./index-BdzNjjMC.js")), MC = ge(() => import("./index-B6b4uj8v.js")), FC = ge(() => import("./index-Br1sqCoo.js")), VC = ge(() => import("./index-ObCfCmDT.js")), EC = ge(() => import("./index-DSEtu7TN.js")), NC = ge(() => import("./index-DFPfZ_Il.js")), zC = ge(() => import("./index-CXFJXCn5.js")), HC = ge(() => import("./chooseIPaasData-Cl_5qkFA.js")), RC = ge(() => import("./index-BdZ1zOap.js")), UC = ge(() => import("./index-DF114jZq.js")), jC = ge(() => import("./index-BfpZqab2.js")), KC = {
23029
+ const OC = /* @__PURE__ */ ne(CC, [["render", LC], ["__scopeId", "data-v-95812b85"]]), BC = ge(() => import("./index-BOFu3qAH.js")), AC = ge(() => import("./index-8apT0r8m.js")), _C = ge(() => import("./index-DxpJkrN7.js")), MC = ge(() => import("./index-D1fGD0mX.js")), FC = ge(() => import("./index-Cfb8D3Fg.js")), VC = ge(() => import("./index-BhqkeVFc.js")), EC = ge(() => import("./index-8GQJARcF.js")), NC = ge(() => import("./index-P2M7CUTe.js")), zC = ge(() => import("./index-DE_eQGbT.js")), HC = ge(() => import("./chooseIPaasData-jkTJEMKT.js")), RC = ge(() => import("./index-CK7_Ou7F.js")), UC = ge(() => import("./index-xCz2zysE.js")), jC = ge(() => import("./index-Dobi0ms9.js")), KC = {
23030
23030
  install: (i) => {
23031
23031
  i.component("BnAddress", ec), i.component("BnMenus", yc), i.component("BnSelect", Dc), i.component("BnVirtPopover", Oc), i.component("BnAdvancedFilter", mf), i.component("BnFilterView", kf), i.component("BnDatePicker", If), i.component("BnCheck", Lf), i.component("BnOrderCard", ah), i.component("BnDrop", Ph), i.component("BnFileView", Zh), i.component("BnInpNum", tp), i.component("BnRadio", rp), i.component("BnRelation", ap), i.component("BnCondition", kp), i.component("BnSmartForm", sg), i.component("BnBatchForm", Ea), i.component("BnBatchFormDialog", Pg), i.component("BnStringForm", BC), i.component("BnNumberForm", AC), i.component("BnSelectForm", _C), i.component("BnRadioForm", MC), i.component("BnCheckboxForm", FC), i.component("BnDateForm", VC), i.component("BnDateDualForm", EC), i.component("BnFileForm", NC), i.component("BnChildrenForm", zC), i.component("BnChooseIPaasData", HC), i.component("BnAddressForm", RC), i.component("BnReceiveForm", UC), i.component("BnRelationForm", jC), i.component("BnFunExpr", tv), i.component("BnColumnConfig", Nv), i.component("BnColumnConfigDialog", za), i.component("BnFilterOption", Jv), i.component("BnImportOrder", Ha), i.component("BnImportTemplate", db), i.component("BnExportOrder", Eb), i.component("BnOrderShare", a1), i.component("BnOrderDetail", t0), i.component("BnEmptyTip", s0), i.component("BnWebLog", dC), i.component("BnCascader", x0), i.component("BnCascaderPanel", R0), i.component("BnWorkSettingDrop", OC);
23032
23032
  }
@@ -1,6 +1,6 @@
1
1
  import { cloneDeep as _ } from "lodash";
2
2
  import { resolveComponent as p, openBlock as u, createElementBlock as c, createElementVNode as s, toDisplayString as V, createVNode as d, withCtx as r, createTextVNode as h, createCommentVNode as w, withKeys as k, normalizeClass as g } from "vue";
3
- import { _ as I } from "./install-C-scqkds.js";
3
+ import { _ as I } from "./install--7IU60oV.js";
4
4
  const F = {
5
5
  name: "setOption",
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { cloneDeep as qn } from "lodash";
2
2
  import _n, { resolveComponent as $t, openBlock as Dt, createElementBlock as Yt, createTextVNode as Mt, createVNode as Ft, withCtx as Ut, createCommentVNode as re, createBlock as je, createElementVNode as at, normalizeClass as tr, withModifiers as ln, Fragment as er, renderList as nr } from "vue";
3
- import { _ as On } from "./install-C-scqkds.js";
3
+ import { _ as On } from "./install--7IU60oV.js";
4
4
  function rr(o) {
5
5
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytenew/bn-bus-ui",
3
- "version": "1.1.461",
3
+ "version": "1.1.462",
4
4
  "description": "班牛业务组件库,集合版",
5
5
  "private": false,
6
6
  "main": "dist/bn-bus-ui.umd.js",