@cniot/mdd-editor 0.3.8 → 0.3.9

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.
@@ -58,8 +58,8 @@ No matching component was found for:
58
58
  // debugger
59
59
  // console.log('response:======',response);
60
60
  // return response;
61
- }`;function cn(e){const{defaultValue:t,value:r,schema:o,onChange:i,selectTypes:s=["json","ajax"],generateFastJson:m,hasDelete:d=!1}=e,f=l.default.useState(()=>{if(o===void 0){const w=r||t||{type:s[0]};return new Ct(w)}else return o})[0],[v,{toggle:y}]=_i.useToggle(),[,b]=l.default.useState({});return l.default.useEffect(()=>{f.on("$updated",()=>{b({}),o===void 0&&i&&i(f.toJSON())})},[f]),f.get("type")||(s==null||s[0]),l.default.createElement("div",{className:"ajax-schema-form-container"},l.default.createElement("div",{style:{flex:1}},f.isAjax()?l.default.createElement("div",{className:"data-source-item",onClick:y},l.default.createElement("div",{className:"method"},`${f.get("method")||"-"}`),l.default.createElement("div",{className:"host"},`${f.get("host")||""}`),l.default.createElement("div",{className:"url",title:f.get("url")},`${f.get("url")||""}`)):null,f.isFlow()?l.default.createElement("div",{className:"data-source-item",onClick:y},l.default.createElement("div",{className:"method"},"Flow"),l.default.createElement("div",{className:"host"},`${f.get("params.processDefKey")||""}`),l.default.createElement("div",{className:"url",title:f.get("url")},`${f.get("url")||""}`)):null,f.isStatic()?l.default.createElement("div",{className:"data-source-item",onClick:y},l.default.createElement("div",{className:"method"},"\u9759\u6001(JSON)")):null,f.isEmpty()?l.default.createElement("div",{className:"data-source-item",onClick:y},l.default.createElement("div",{className:"method"},"\u65E0")):null),d&&l.default.createElement(h.Button,{style:{marginLeft:"24px"},warning:!0,onClick:()=>{f.update({type:""})}},l.default.createElement(h.Icon,{type:"ashbin"})),v?l.default.createElement(bT,{visible:!0,schema:f,onClose:y,selectTypes:s,generateFastJson:m}):null)}const pp=({codeRef:e,codeState:t,setCodeState:r,DefaultCode:o})=>l.default.createElement("text",{className:"handle-by-source-code",onClick:()=>{const i=()=>e.current=t,s=h.CnDialog.show({title:"response\u6E90\u7801\u5904\u7406",content:l.default.createElement(Lr,{defaultLanguage:"javascript",defaultValue:t||o,onChange:m=>{e.current=m}}),width:"60%",onOk:()=>{r(e.current||o),s.hide()},onCancel:i,onClose:i})}},"\u6E90\u7801\u5904\u7406");function bT({title:e="\u6570\u636E\u6E90\u914D\u7F6E",schema:t,visible:r,onClose:o,selectTypes:i,generateFastJson:s}){const m=pn(),d=l.default.useMemo(()=>t.clone(),[r]),[f,v]=l.default.useState(Math.random()),[y,b]=l.default.useState(Math.random()),[w,E]=l.default.useState(()=>JSON.stringify(d.get("content"),""," ")),F=l.default.useRef(JSON.stringify(d.get("content"))),[k,C]=l.default.useState(d.get("requestHandleCode")),T=l.default.useRef(d.get("requestHandleCode")),[U,J]=l.default.useState(d.get("responseHandleCode")),W=l.default.useRef(d.get("responseHandleCode")),[,K]=l.default.useState({});l.default.useEffect(()=>{d.on("$updated",S=>{K({})})},[d]);const L=d.getViewType();return l.default.createElement(h.Dialog,{footerActions:["cancel","ok"],title:e,v2:!0,visible:r,centered:!0,width:"80%",height:window.innerHeight*.9,onClose:o,onCancel:o,onOk:()=>{try{d.isStatic()&&d.set("content",JSON.parse(F.current)),k&&d.set("requestHandleCode",k),U&&d.set("responseHandleCode",U)}catch{h.Message.error("JSON \u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5");return}t.extends(d),o()}},l.default.createElement(h.Form,{size:"small",labelAlign:"top",onChange:(S,O)=>{const{name:Y,value:j}=O;Y&&Y!=="type"&&d.set(Y,j),Y==="params.processDefKey"&&b(Math.random())}},l.default.createElement(ln,{name:"type",required:!0,wrapperCol:un,labelCol:sn},l.default.createElement(hT,{value:L,onChange:S=>{d.changeType(S)}},i.indexOf("json")>-1?l.default.createElement(h.Radio,{value:"json"},"\u9759\u6001\u6570\u636E"):null,i.indexOf("ajax")>-1?l.default.createElement(h.Radio,{value:"ajax"},"\u8BF7\u6C42\u63A5\u53E3"):null,i.indexOf("ajax")>-1?l.default.createElement(h.Radio,{value:"flow"},"Flow"):null)),d.isAjax()?l.default.createElement(l.default.Fragment,null,l.default.createElement(ln,{fullWidth:!0,label:"\u8BF7\u6C42\u57DF\u540D",name:"host",wrapperCol:un,labelCol:sn,help:"\u8FD9\u91CC\u914D\u7F6E\u7684\u662F\u53D8\u91CF\u540D\uFF0C\u53D8\u91CF\u5177\u4F53\u503C\u8BF7\u5728\u9879\u76EE config \u76EE\u5F55\u6309\u73AF\u5883\u914D\u7F6E"},l.default.createElement(h.Select.AutoComplete,{dataSource:gT,defaultValue:d.get("host")})),l.default.createElement(ln,{fullWidth:!0,label:"\u8BF7\u6C42\u5730\u5740",name:"url",required:!0,wrapperCol:un,labelCol:sn},l.default.createElement(h.Select.AutoComplete,{dataSource:m.apiList,defaultValue:d.get("url"),onChange:S=>{const O=m.getApi(S);O?d.setAjaxRequest(S,O.method):d.set("url",S)}})),l.default.createElement(ln,{style:{width:"50%"},label:"\u8BF7\u6C42\u65B9\u5F0F",name:"method",required:!0,wrapperCol:un,labelCol:sn},l.default.createElement(h.Select,{value:d.get("method"),dataSource:vT})),l.default.createElement(ln,{label:l.default.createElement("div",null,"\u8BF7\u6C42\u53C2\u6570",l.default.createElement(pp,{codeRef:T,codeState:k,setCodeState:C,DefaultCode:xT}),l.default.createElement("text",{className:"handle-by-source-code-tip"},"\u5148\u4F9D\u636E\u8868\u683C\u586B\u5145\u5165\u53C2\u518D\u8FDB\u5165",l.default.createElement("b",null,"\u6E90\u7801\u5904\u7406")),l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:"",wrapperCol:un,labelCol:sn,style:{position:"relative"}},l.default.createElement("div",{className:"form-item-exart-abs"},"\u5FEB\u6377\u586B\u5145\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:sp,onChange:S=>{d.setParams(cp.get(S)),b(Math.random())}})),l.default.createElement(Un,{key:y,keyTitle:"key(\u53C2\u6570\u540D)",valueTitle:"value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",value:d.get("params"),onChange:S=>{d.set("params",S)}})),l.default.createElement(ln,{fullWidth:!0,label:l.default.createElement("div",null,"\u8FD4\u56DE\u6570\u636E\u683C\u5F0F\u5316",l.default.createElement(pp,{codeRef:W,codeState:U,setCodeState:J,DefaultCode:ET}),l.default.createElement("text",{className:"handle-by-source-code-tip"},"\u5148\u7ECF\u8FC7",l.default.createElement("b",null,"\u6E90\u7801\u5904\u7406"),"\u518D\u4F9D\u636E\u8868\u683C\u5BF9\u5E94\u5173\u7CFB\u5BF9\u5E94"),l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/3942628d-90ec-4b36-a0ed-3038a04bedcb",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:"",wrapperCol:un,labelCol:sn,style:{position:"relative"}},l.default.createElement("div",{className:"form-item-exart-abs"},"\u5E38\u7528\u683C\u5F0F\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:ip,onChange:S=>{d.setFormatResponseData(dp.get(S)),v(Math.random())}})),l.default.createElement(Un,{key:f,value:d.get("formatResponseData"),onChange:S=>{d.set("formatResponseData",S)}}))):null,d.isFlow()?l.default.createElement(l.default.Fragment,null,l.default.createElement(ln,{label:"Flow processDefKey",name:"params.processDefKey",required:!0,wrapperCol:un,labelCol:sn},l.default.createElement(h.CnAsyncSelect,{style:{width:200},showSearch:!0,filterLocal:!1,value:d.get("params.processDefKey"),requestConfig:{url:"/api/flow/desc/pagingList",searchKey:"code"}}),l.default.createElement("a",{href:"/flow/index",style:{marginLeft:10},target:"_blank"},"\u521B\u5EFA Flow")),l.default.createElement(ln,{label:l.default.createElement("div",null,"\u8BF7\u6C42\u53C2\u6570",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:"",wrapperCol:un,labelCol:sn,style:{position:"relative"}},l.default.createElement("div",{className:"form-item-exart-abs"},"\u5FEB\u6377\u586B\u5145\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:sp,onChange:S=>{d.setParams(cp.get(S)),b(Math.random())}})),l.default.createElement(Un,{key:y,keyTitle:"key(\u53C2\u6570\u540D)",valueTitle:"value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",value:d.get("params"),onChange:S=>{d.set("params",S)}})),l.default.createElement(ln,{fullWidth:!0,label:l.default.createElement("div",null,"\u8FD4\u56DE\u6570\u636E\u683C\u5F0F\u5316",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/3942628d-90ec-4b36-a0ed-3038a04bedcb",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:"",wrapperCol:un,labelCol:sn,style:{position:"relative"}},l.default.createElement("div",{className:"form-item-exart-abs"},"\u5E38\u7528\u683C\u5F0F\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:ip,onChange:S=>{d.setFormatResponseData(dp.get(S)),v(Math.random())}})),l.default.createElement(Un,{key:f,value:d.get("formatResponseData"),onChange:S=>{d.set("formatResponseData",S)}}))):null,d.isStatic()?l.default.createElement(ln,{label:"\u8BF7\u8F93\u5165\u6807\u51C6 JSON \u6570\u636E",wrapperCol:un,labelCol:sn,style:{position:"relative"}},s?l.default.createElement("div",{className:"form-item-exart-abs"},"\u5FEB\u6377\u586B\u5145\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:yT,onChange:S=>{const O=s(S);E(O),F.current=O}})):null,l.default.createElement(Lr,{value:w,onChange:S=>{F.current=S}})):null))}const{connect:CT,mapReadPretty:FT,mapProps:ST}=h.formilyReact,Rf=CT(cn,ST((e,t)=>({hasExtra:!0,...e}),Jn,Gn),FT(cn)),{connect:DT,mapReadPretty:AT,mapProps:wT}=h.formilyReact,ss=DT(Un,wT((e,t)=>({hasExtra:!0,...e}),Jn,Gn),AT(Un)),mp="CUSTOM",TT="NOW",fp=[{label:"\u65E0",value:"EMPTY"},{label:"\u5F53\u524D\u65F6\u95F4(\u4ECA\u5929)",value:"NOW"},{label:"\u524D\u4E00\u5468",value:"FORWARD_1_WEEK"},{label:"\u524D\u4E00\u6708",value:"FORWARD_1_MONTH"},{label:"\u524D\u4E09\u6708",value:"FORWARD_3_MONTH"},{label:"\u524D\u4E00\u5E74",value:"FORWARD_1_YEAR"},{label:"\u540E\u4E00\u5468",value:"BACKWARD_1_WEEK"},{label:"\u540E\u4E00\u6708",value:"BACKWARD_1_MONTH"},{label:"\u540E\u4E09\u6708",value:"BACKWARD_3_MONTH"},{label:"\u540E\u4E00\u5E74",value:"BACKWARD_1_YEAR"},{label:"\u81EA\u5B9A\u4E49",value:"CUSTOM"}];function hp(e){const{value:t,onChange:r=()=>{},isRange:o}=e,{type:i=TT,value:s=""}=t||{},[m,d]=M.useState(()=>i===mp),f=y=>{d(y===mp);let b={type:y,value:s};y||(b=o?[]:void 0),r(b)},v=y=>{r({type:i,value:y})};return l.default.createElement(h.Box,{spacing:10,direction:"row",align:"center"},l.default.createElement(h.Select,{size:"small",defaultValue:i,dataSource:fp,placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F\u7C7B\u578B",onChange:f,style:{width:200}}),m&&l.default.createElement(h.Input,{size:"small",dataSource:fp,defaultValue:s,placeholder:"\u8BF7\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u5757Key",onChange:v}))}const{connect:IT,mapReadPretty:_T,mapProps:$T}=h.formilyReact,Bf=IT(hp,$T((e,t)=>({...e}),Jn,Gn),_T(hp));function Si(e){const{value:t="",onChange:r=()=>{},_type:o}=e,i=RT(t),s=o==="select";return l.default.createElement(h.Box,{spacing:10,direction:"row",align:"center"},l.default.createElement(h.Select,{size:"small",dataSource:s?$f:oo,value:i.prev,style:{width:"80%"},onChange:m=>{r(BT(m,i.last))}}),OT(i.prev)?l.default.createElement(h.Select.AutoComplete,{dataSource:[],size:"small",style:{width:"20%"},value:i.last,onChange:m=>r(jr(i.prev,m))}):l.default.createElement(h.Input,{size:"small",style:{width:"20%",minWidth:120},value:i.last,hasClear:!0,onChange:m=>r(jr(i.prev,m))}))}function OT(e){const t=$f.find(r=>r.value===e);return t&&t.isOptional}function gp(e,t){const r=e.replace(t,"");return{prev:t,last:r.replace(/^./,"")}}function RT(e){let t=Of(e);return typeof e=="string"&&e.indexOf(zr)!==-1?t={prev:e,last:""}:typeof e=="string"&&e.indexOf(Ja)!==-1?t=gp(e,Ja):typeof e=="string"&&e.indexOf(Ga)!==-1&&(t=gp(e,Ga)),t}function BT(e,t){return e===zr?zr:jr(e,t)}const{connect:kT,mapReadPretty:MT,mapProps:PT}=h.formilyReact,kf=kT(Si,PT((e,t)=>({...e}),Jn,Gn),MT(Si)),NT=({moduleDataSource:e={}})=>({form:{labelCol:4,wrapperCol:20},schema:{type:"object",properties:{action:{type:"object","x-validator":[],name:"action","x-designable-id":"hka9f1m28r0","x-index":0,properties:{type:{type:"string | number",title:"\u64CD\u4F5C\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup",enum:[{children:[],label:"\u63A5\u53E3\u8BF7\u6C42",value:"ajax"},{children:[],label:"url\u8DF3\u8F6C",value:"url"},{children:[],label:"\u6253\u5F00\u5F39\u7A97",value:"dialog"},{children:[],label:"\u6253\u5F00\u62BD\u5C49",value:"drawer"},{children:[],label:"onePage \u6253\u5F00\u5206\u680F",value:"onePage"},{children:[],label:"\u81EA\u5B9A\u4E49",value:"custom"},{children:[],label:"\u5185\u7F6E\u6A21\u5757",value:"defaultModule"}],"x-validator":[],"x-component-props":{optionType:"button",buttonStyle:"solid"},"x-decorator-props":{},name:"type","x-designable-id":"t4h8awuyfv7",default:"ajax"},dataSource:{type:"string",title:"\u63A5\u53E3\u914D\u7F6E","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax"]},"x-decorator-props":{},name:"dataSource","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"t0uv4o8e9ds"},blank:{type:"boolean",title:"\u662F\u5426\u65B0\u7A97\u53E3\u6253\u5F00","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{size:""},"x-decorator-props":{},name:"blank","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'url'}}"}}},"x-designable-id":"emb21kitjil"},value:{title:"\u9875\u9762\u8DEF\u5F84","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"value","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'url'}}"}}},"x-designable-id":"9ifgulzttsh"},cols:{title:"\u5360\u5217\u5BBD","x-decorator":"CnFormItem","x-component":"NumberPicker","x-component-props":{step:1,min:1,max:23},"x-decorator-props":{tip:"\u6700\u5C0F\u4E3A 1\uFF0C\u6700\u5927\u4E3A 23\uFF0C\u9ED8\u8BA4 \u4E3A6\uFF0C\u4E3B\u9875\u9762\u5360\u5217\u5BBD \u4F1A\u81EA\u52A8\u51CF\u53BB\u5F53\u524D cols"},name:"cols",default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'onePage'}}"}}},"x-designable-id":"9efgulzttsh"},selectValue:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"selectValue",enum:(e==null?void 0:e.l4ModuleOptions)||[],default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'custom'}}"}}},"x-designable-id":"9efgulzttsh"},moduleValue:{title:"\u6A21\u5757\u540D\u79F0","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"moduleValue",enum:[{label:"\u5BFC\u5165",value:"mdd_import"},{label:"\u5BFC\u5165(\u5E26\u8F6E\u8BAD\u8FDB\u5EA6)",value:"mdd_import_plus"},{label:"\u5BFC\u51FA",value:"mdd_export"},{label:"\u53EF\u9009\u5217\u5BFC\u51FA",value:"mdd_export_plus"},{label:"\u590D\u5236\u8868\u683C\u6570\u636E",value:"mdd_copy"}],default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule'}}"}}},"x-designable-id":"9ef4545h"},templateUrl:{type:"string",title:"\u4E0B\u8F7D\u6A21\u677F\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"templateUrl",default:{type:"ajax",host:"",method:"GET",url:"/eiport/api/v1/scene/query-by-code",watch:[],params:{sceneCode:"\u8FD9\u91CC\u9700\u8981\u6362\u6210\u81EA\u5DF1\u7684\u4E1A\u52A1code"},formatResponseData:{url:"$RET.data.templateFileAddress"}},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus')}}"}}},"x-designable-id":"t0u12221ds"},ossSignService:{type:"string",title:"\u83B7\u53D6\u7B7E\u540D\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u4F8B\u5982: /eiport/api/v1/task/sign?sceneCode=dwms-count-paper-count-result-export"},"x-decorator-props":{},default:"/eiport/api/v1/task/sign?sceneCode={\u8FD9\u91CC\u6362\u6210\u81EA\u5DF1\u7684\u4E1A\u52A1code}",name:"ossSignService","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus')}}"}}},"x-designable-id":"t0u11111ds"},importStatusService:{type:"string",title:"\u8F6E\u8BAD\u5BFC\u5165\u72B6\u6001\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax","flow"],placeholder:"\u4F8B\u5982: POST /eiport/api/v1/task/query-by-id"},"x-decorator-props":{},name:"importStatusService",default:{type:"ajax",host:"",method:"POST",url:"/eiport/api/v1/task/query-by-id",watch:[],params:{id:"$Import_Plus_Taks_Id.id",taskType:"0"},formatResponseData:{data:"$RET.data"},content:{},summary:"\u8F6E\u8BAD\u83B7\u53D6\u5BFC\u5165\u72B6\u6001",label:"\u8F6E\u8BAD\u83B7\u53D6\u5BFC\u5165\u72B6\u6001",value:"/eiport/api/v1/task/query-by-id"},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && $deps.moduleValue === 'mdd_import_plus'}}"}}},"x-designable-id":"t0u122221111ds"},getFieldsService:{type:"string",title:"\u83B7\u53D6\u6A21\u5757\u5B57\u6BB5\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u83B7\u53D6\u53EF\u9009\u5B57\u6BB5\u5217\u8868\u63A5\u53E3\uFF0Ceg: /common/export/fields?modelCode=xxxxx"},name:"getFieldsService","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ( $deps.moduleValue === 'mdd_export_plus' )}}"}}},"x-designable-id":"9ef452244245h"},service:{type:"string",title:"\u6570\u636E\u8BF7\u6C42\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax"]},"x-decorator-props":{tip:"\u5BFC\u5165 \u6216\u8005 \u5BFC\u51FA\u63A5\u53E3\uFF0C\u652F\u6301\u5F02\u6B65/\u540C\u6B65, taskType: 0\u4E3A\u5BFC\u5165\uFF1B1 \u4E3A\u5BFC\u51FA"},name:"service",default:{type:"ajax",host:"",method:"POST",url:"/eiport/api/v1/task/create",watch:[],params:{sceneCode:"dwms-count-paper-count-result-export",taskType:"0"},formatResponseData:{}},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus' || $deps.moduleValue === 'mdd_export' || $deps.moduleValue === 'mdd_export_plus' )}}"}}},"x-designable-id":"9ef4545h"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'url' || $deps.type === 'custom' || $deps.type === 'updateOtherColumns' }}"}}}},isParentRefresh:{type:"boolean",title:"\u662F\u5426\u7236\u7EA7\u5217\u8868\u5237\u65B0","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"isParentRefresh",default:!0,"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"}}},"x-designable-id":"g63q49ybbc2"},title:{type:"string",title:"\u5BB9\u5668\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:'\u5BB9\u5668\u6807\u9898\uFF0C\u652F\u6301\u6A21\u677F\u8868\u8FBE\u5F0F. eg: "\u6D4B\u8BD5\u6807\u9898 - " + $TABLE.RECORD_DATA.creator'},name:"title","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"d3qx5xvfff4"},closeMode:{title:"\u5173\u95ED\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple"},"x-decorator-props":{},name:"closeMode",enum:[{children:[],label:"\u5173\u95ED\u6309\u94AE",value:"close"},{children:[],label:"\u70B9\u51FBmask\u533A\u57DF",value:"mask"},{label:"\u952E\u76D8esc\u6309\u952E",value:"esc"}],default:"close","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"jtknf7sgpow"},parentRefreshWhenClose:{type:"boolean",title:"\u5173\u95ED\u65F6\u5237\u65B0\u7236\u7EA7\u5217\u8868","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u4EC5\u5728 \u5173\u95ED onePage \u5206\u680F\u65F6\u3001\u6216 \u901A\u8FC7\u3010\u5173\u95ED\u6309\u94AE X\u3011\u3010\u70B9\u51FBmask\u533A\u57DF\u3011\u3010\u952E\u76D8esc\u6309\u952E\u3011\u5173\u95ED\u5F39\u7A97\u65F6 \u5237\u65B0\u7236\u7EA7\u5217\u8868"},name:"parentRefreshWhenClose","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"}}}},size:{type:"string",title:"\u5F39\u7A97\u5C3A\u5BF8","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"size",default:"medium",enum:[{label:"\u5C0F\u53F7",value:"small"},{label:"\u4E2D\u53F7",value:"medium"},{label:"\u5927\u53F7",value:"large"},{label:"\u81EA\u52A8\u9002\u914D",value:"autoLarge"}],"x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog'}}"}}},"x-designable-id":"32ou555h9f3ze7"},width:{type:"string",title:"\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"width",default:"50%","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer'}}"}}},"x-designable-id":"32ouh9f3ze7"},height:{type:"string",title:"\u9AD8\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"height","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"eikfmax2d13"},secondConfirm:{type:"boolean",title:"\u662F\u5426\u4E8C\u6B21\u786E\u8BA4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"secondConfirm","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgussstsh"},secondConfirmTitle:{type:"boolean",title:"\u4E8C\u6B21\u786E\u8BA4\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u6A21\u677F eg: \u63D0\u793A${$TABLE.RECORD_DATA.id} (\u5F53\u524D\u884C\u5BF9\u8C61\u7684id\u53D8\u91CF); https://yuque.antfin.com/docs/share/b0464a1d-77a3-4884-a981-7857a71174aa#H6z5E"},name:"secondConfirmTitle","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"},{property:"value",type:"boolean",source:"action.secondConfirm",name:"secondConfirm"}],fulfill:{state:{visible:"{{$deps.type === 'ajax' && $deps.secondConfirm === true}}"}}},"x-designable-id":"9if123estsh"},secondConfirmContent:{type:"boolean",title:"\u4E8C\u6B21\u786E\u8BA4\u63D0\u793A\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u6A21\u677F eg: \u63D0\u793A${$TABLE.RECORD_DATA.id} (\u5F53\u524D\u884C\u5BF9\u8C61\u7684id\u53D8\u91CF)"},name:"secondConfirmContent","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"},{property:"value",type:"boolean",source:"action.secondConfirm",name:"secondConfirm"}],fulfill:{state:{visible:"{{$deps.type === 'ajax' && $deps.secondConfirm === true}}"}}},"x-designable-id":"9if44453estsh"},successMessage:{type:"string",title:"\u81EA\u5B9A\u4E49\u6210\u529F\u6587\u6848","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"successMessage","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgjasdussstsh"},errorMessage:{type:"string",title:"\u81EA\u5B9A\u4E49\u5931\u8D25\u6587\u6848","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"errorMessage","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgja09sdussstsh"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{tip:'eg: $CURRENT_DATA.status==="success", $CURRENT_DATA\u662F\u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61(\u6BD4\u5982\u8868\u683C\u7684\u884C\u5BF9\u8C61), \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"shouldRender","x-designable-id":"9ifgulsstsh3333"},isDisabled:{title:"\u662F\u5426\u7981\u7528","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u7981\u7528"},"x-decorator-props":{tip:'eg: $CURRENT_DATA.status==="success", $CURRENT_DATA\u662F\u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61(\u6BD4\u5982\u8868\u683C\u7684\u884C\u5BF9\u8C61), \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"isDisabled","x-designable-id":"9ifgulsstsh3335553"},customType:{title:"\u81EA\u5B9A\u4E49\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{mode:"single"},"x-decorator-props":{},name:"customType",enum:[{children:[],label:"\u81EA\u5B9A\u4E49\u6E32\u67D3",value:"RENDER"},{children:[],label:"\u81EA\u5B9A\u4E49\u52A8\u4F5C",value:"ACTION"}],default:"ACTION","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'custom'}}"}}},"x-designable-id":"jtknf7sgpow"},delayLoadingMessageDuration:{type:"string",title:"loading\u63D0\u793A\u6700\u957F\u65F6\u957F","x-decorator":"CnFormItem","x-component":"NumberPicker","x-validator":[],"x-component-props":{innerAfter:"\u6BEB\u79D2",step:1e3,min:1e3},"x-decorator-props":{tip:"\u4EC5\u5F53 \u8BE5\u63A5\u53E3 \u54CD\u5E94\u65F6\u95F4 \u8FC7\u957F(\u4F8B\u5982 \u8D85\u8FC710\u79D2)\u65F6\u4F7F\u7528\uFF0C\u5176\u4ED6\u60C5\u51B5\u4E0D\u63A8\u8350\u4F7F\u7528\u3002key\uFF1AdelayLoadingMessageDuration"},name:"delayLoadingMessageDuration","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgussstsh"}}},btnType:{title:"\u6309\u94AE\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"btnType",enum:[{label:"\u666E\u901A\u6309\u94AE",value:"normal"},{label:"\u4E3B\u6309\u94AE",value:"primary"},{label:"\u6B21\u6309\u94AE",value:"secondary"}],default:"normal","x-designable-id":"jtknf7sgpow22221"},iconClass:{title:"\u6309\u94AE\u56FE\u6807","x-decorator":"CnFormItem","x-component":"CnInput","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u56FE\u6807code"},"x-decorator-props":{tip:"\u8BF7\u5230\u56FE\u6807\u5E93\u9009\u62E9\u56FE\u6807code (\u56FE\u6807\u5E93\u5730\u5740: https://cone.cainiao-inc.com/dsm/common/material/pc/CnIcon)"},name:"iconClass","x-designable-id":"jtknf723334545sgpow22221"},powerId:{title:"\u6743\u9650\u7F16\u7801","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u7F16\u7801\uFF0C\u4E0D\u8BBE\u7F6E\u8868\u793A\u4E00\u76F4\u663E\u793A"},"x-decorator-props":{},name:"powerId","x-designable-id":"jtknqweqe2221"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u989D\u5916\u63D0\u793A\u4FE1\u606F\uFF0C\u76EE\u524D\u4EC5\u90E8\u5206\u6309\u94AE\u652F\u6301"},name:"tooltip","x-designable-id":"sxbt443332zmzk"}},"x-designable-id":"6mjeu53tsgt"}}),LT=(e,t)=>{const{action:r}=e||{},{type:o,dataSource:i,selectValue:s,shouldRender:m,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,isDisabled:y,successMessage:b,errorMessage:w,delayLoadingMessageDuration:E,...F}=r||{};return o==="ajax"?i&&!t?e.action={type:o,...F,shouldRender:m,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,isDisabled:y,successMessage:b,errorMessage:w,delayLoadingMessageDuration:E,...i}:e.action={type:o,dataSource:{type:o,...F},shouldRender:m,isDisabled:y,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,successMessage:b,delayLoadingMessageDuration:E,errorMessage:w,...F}:["dialog","drawer","custom"].includes(o)&&(t?t&&(e.action={...e.action,selectValue:e.action.value}):(e.action={...e.action,value:s},delete e.action.selectValue)),{...e}};var jT={dataAdaptor:LT,formilySchema:NT},YT={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{type:{type:"string | number",title:"\u64CD\u4F5C\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup",enum:[{children:[],label:"\u8BF7\u6C42\u540E\u7AEF",value:0},{children:[],label:"\u5F39\u7A97\u8868\u5355",value:1}],"x-validator":[],"x-component-props":{optionType:"button",buttonStyle:"solid"},"x-decorator-props":{},name:"type","x-designable-id":"sis9fiyypk4","x-index":0},method:{type:"string",title:"\u94FE\u63A5","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"method","x-designable-id":"9gxchnh7fyp","x-index":1}},"x-designable-id":"01oidyjuxnb"}},zT=({moduleDataSource:e={}})=>({form:{labelCol:4,wrapperCol:20},schema:{type:"object",properties:{action:{type:"object","x-validator":[],name:"action","x-designable-id":"hka9f1m28r0","x-index":0,properties:{value:{title:"\u9875\u9762\u8DEF\u5F84","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u53EA\u5141\u8BB8\u662FFTP\u9875\u9762",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},enum:(e==null?void 0:e.l4ModuleOptions)||[],default:"",name:"value","x-designable-id":"9ifgulzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy"},title:{type:"string",title:"\u5BB9\u5668\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"title","x-designable-id":"d3qx5xvfff4"},closeMode:{title:"\u5173\u95ED\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple"},"x-decorator-props":{},name:"closeMode",enum:[{children:[],label:"\u5173\u95ED\u6309\u94AE",value:"close"},{children:[],label:"\u70B9\u51FBmask\u533A\u57DF",value:"mask"},{label:"\u952E\u76D8esc\u6309\u952E",value:"esc"}],default:"close","x-designable-id":"jtknf7sgpow"},width:{type:"string",title:"\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"width","x-designable-id":"32ouh9f3ze7"}}},mode:{title:"\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},enum:[{children:[],label:"\u5355\u9009",value:"single"},{children:[],label:"\u591A\u9009",value:"multiple"}],default:"multiple","x-decorator-props":{},name:"mode","x-designable-id":"jtk2222nqweqe2221"},allowsDuplicates:{title:"\u662F\u5426\u5141\u8BB8\u91CD\u590D","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},default:!0,"x-decorator-props":{},name:"allowsDuplicates","x-designable-id":"jtk1112222nqweqe2221"},unique:{title:"\u91CD\u590D\u503C\u5224\u65ADKEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},default:!1,"x-decorator-props":{tip:"\u652F\u6301\u591A\u5C42\u7EA7\uFF0C\u4F8B\u5982: updater.0"},name:"unique",default:"id","x-designable-id":"jtk111555522nqweqe2221"},btnType:{title:"\u6309\u94AE\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"btnType",enum:[{label:"\u666E\u901A\u6309\u94AE",value:"normal"},{label:"\u4E3B\u6309\u94AE",value:"primary"},{label:"\u6B21\u6309\u94AE",value:"secondary"}],default:"normal","x-designable-id":"jtknf7sg222pow22221"},powerId:{title:"\u6743\u9650\u7F16\u7801","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u7F16\u7801\uFF0C\u4E0D\u8BBE\u7F6E\u8868\u793A\u4E00\u76F4\u663E\u793A"},"x-decorator-props":{},name:"powerId","x-designable-id":"jtknqweqe2221"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u989D\u5916\u63D0\u793A\u4FE1\u606F\uFF0C\u76EE\u524D\u4EC5\u90E8\u5206\u6309\u94AE\u652F\u6301"},name:"tooltip","x-designable-id":"sxbt443332zmzk"}},"x-designable-id":"6mjeu53tsgt"}});const HT=({moduleDataSource:e={}})=>({form:{labelCol:4,wrapperCol:20},schema:{type:"object",properties:{action:{type:"object","x-validator":[],name:"action","x-designable-id":"hka9f1m28r0","x-index":0,properties:{type:{type:"string | number",title:"\u64CD\u4F5C\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup",enum:[{children:[],label:"\u6253\u5F00\u62BD\u5C49",value:"drawer"},{children:[],label:"\u5185\u7F6E\u6A21\u5757",value:"defaultModule"}],"x-validator":[],"x-component-props":{optionType:"button",buttonStyle:"solid"},"x-decorator-props":{},name:"type","x-designable-id":"t4h8awuyfv7",default:"ajax"},dataSource:{type:"string",title:"\u63A5\u53E3\u914D\u7F6E","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax"]},"x-decorator-props":{},name:"dataSource","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"t0uv4o8e9ds"},blank:{type:"boolean",title:"\u662F\u5426\u65B0\u7A97\u53E3\u6253\u5F00","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{size:""},"x-decorator-props":{},name:"blank","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'url'}}"}}},"x-designable-id":"emb21kitjil"},value:{title:"\u9875\u9762\u8DEF\u5F84","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"value","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'url'}}"}}},"x-designable-id":"9ifgulzttsh"},cols:{title:"\u5360\u5217\u5BBD","x-decorator":"CnFormItem","x-component":"NumberPicker","x-component-props":{step:1,min:1,max:23},"x-decorator-props":{tip:"\u6700\u5C0F\u4E3A 1\uFF0C\u6700\u5927\u4E3A 23\uFF0C\u9ED8\u8BA4 \u4E3A6\uFF0C\u4E3B\u9875\u9762\u5360\u5217\u5BBD \u4F1A\u81EA\u52A8\u51CF\u53BB\u5F53\u524D cols"},name:"cols",default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'onePage'}}"}}},"x-designable-id":"9efgulzttsh"},selectValue:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"selectValue",enum:(e==null?void 0:e.l4ModuleOptions)||[],default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'custom'}}"}}},"x-designable-id":"9efgulzttsh"},moduleValue:{title:"\u6A21\u5757\u540D\u79F0","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"moduleValue",enum:[{label:"\u5BFC\u5165",value:"mdd_import"},{label:"\u5BFC\u5165(\u5E26\u8F6E\u8BAD\u8FDB\u5EA6)",value:"mdd_import_plus"},{label:"\u5BFC\u51FA",value:"mdd_export"},{label:"\u53EF\u9009\u5217\u5BFC\u51FA",value:"mdd_export_plus"},{label:"\u590D\u5236\u8868\u683C\u6570\u636E",value:"mdd_copy"}],default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule'}}"}}},"x-designable-id":"9ef4545h"},templateUrl:{type:"string",title:"\u4E0B\u8F7D\u6A21\u677F\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"templateUrl",default:{type:"ajax",host:"",method:"GET",url:"/eiport/api/v1/scene/query-by-code",watch:[],params:{sceneCode:"\u8FD9\u91CC\u9700\u8981\u6362\u6210\u81EA\u5DF1\u7684\u4E1A\u52A1code"},formatResponseData:{url:"$RET.data.templateFileAddress"}},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus')}}"}}},"x-designable-id":"t0u12221ds"},ossSignService:{type:"string",title:"\u83B7\u53D6\u7B7E\u540D\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u4F8B\u5982: /eiport/api/v1/task/sign?sceneCode=dwms-count-paper-count-result-export"},"x-decorator-props":{},default:"/eiport/api/v1/task/sign?sceneCode={\u8FD9\u91CC\u6362\u6210\u81EA\u5DF1\u7684\u4E1A\u52A1code}",name:"ossSignService","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus')}}"}}},"x-designable-id":"t0u11111ds"},importStatusService:{type:"string",title:"\u8F6E\u8BAD\u5BFC\u5165\u72B6\u6001\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax","flow"],placeholder:"\u4F8B\u5982: POST /eiport/api/v1/task/query-by-id"},"x-decorator-props":{},name:"importStatusService",default:{type:"ajax",host:"",method:"POST",url:"/eiport/api/v1/task/query-by-id",watch:[],params:{id:"$Import_Plus_Taks_Id.id",taskType:"0"},formatResponseData:{data:"$RET.data"},content:{},summary:"\u8F6E\u8BAD\u83B7\u53D6\u5BFC\u5165\u72B6\u6001",label:"\u8F6E\u8BAD\u83B7\u53D6\u5BFC\u5165\u72B6\u6001",value:"/eiport/api/v1/task/query-by-id"},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && $deps.moduleValue === 'mdd_import_plus'}}"}}},"x-designable-id":"t0u122221111ds"},getFieldsService:{type:"string",title:"\u83B7\u53D6\u6A21\u5757\u5B57\u6BB5\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u83B7\u53D6\u53EF\u9009\u5B57\u6BB5\u5217\u8868\u63A5\u53E3\uFF0Ceg: /common/export/fields?modelCode=xxxxx"},name:"getFieldsService","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ( $deps.moduleValue === 'mdd_export_plus' )}}"}}},"x-designable-id":"9ef452244245h"},service:{type:"string",title:"\u6570\u636E\u8BF7\u6C42\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax"]},"x-decorator-props":{tip:"\u5BFC\u5165 \u6216\u8005 \u5BFC\u51FA\u63A5\u53E3\uFF0C\u652F\u6301\u5F02\u6B65/\u540C\u6B65, taskType: 0\u4E3A\u5BFC\u5165\uFF1B1 \u4E3A\u5BFC\u51FA"},name:"service",default:{type:"ajax",host:"",method:"POST",url:"/eiport/api/v1/task/create",watch:[],params:{sceneCode:"dwms-count-paper-count-result-export",taskType:"0"},formatResponseData:{}},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus' || $deps.moduleValue === 'mdd_export' || $deps.moduleValue === 'mdd_export_plus' )}}"}}},"x-designable-id":"9ef4545h"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'url' || $deps.type === 'custom' || $deps.type === 'updateOtherColumns' }}"}}}},isParentRefresh:{type:"boolean",title:"\u662F\u5426\u7236\u7EA7\u5217\u8868\u5237\u65B0","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"isParentRefresh",default:!0,"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"}}},"x-designable-id":"g63q49ybbc2"},mode:{title:"\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},enum:[{children:[],label:"\u5355\u9009",value:"single"},{children:[],label:"\u591A\u9009",value:"multiple"}],default:"multiple","x-decorator-props":{},name:"mode","x-designable-id":"jtk2222nqweqe2221","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer' }}"}}}},allowsDuplicates:{title:"\u662F\u5426\u5141\u8BB8\u91CD\u590D","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},default:!0,"x-decorator-props":{},name:"allowsDuplicates","x-designable-id":"jtk1112222nqweqe2221","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer' }}"}}}},unique:{title:"\u91CD\u590D\u503C\u5224\u65ADKEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u591A\u5C42\u7EA7\uFF0C\u4F8B\u5982: updater.0"},name:"unique",default:"id","x-designable-id":"jtk111555522nqweqe2221","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer' }}"}}}},"btn-type":{title:"\u6309\u94AE\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},name:"btn-type",default:"batch-add","x-display":"hidden","x-designable-id":"jtk111555522nqweqe2221","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{value:"{{$deps.type === 'drawer' ? 'batch-add' : 'import'}}"}}}},title:{type:"string",title:"\u5BB9\u5668\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:'\u5BB9\u5668\u6807\u9898\uFF0C\u652F\u6301\u6A21\u677F\u8868\u8FBE\u5F0F. eg: "\u6D4B\u8BD5\u6807\u9898 - " + $TABLE.RECORD_DATA.creator'},name:"title","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"d3qx5xvfff4"},closeMode:{title:"\u5173\u95ED\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple"},"x-decorator-props":{},name:"closeMode",enum:[{children:[],label:"\u5173\u95ED\u6309\u94AE",value:"close"},{children:[],label:"\u70B9\u51FBmask\u533A\u57DF",value:"mask"},{label:"\u952E\u76D8esc\u6309\u952E",value:"esc"}],default:"close","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"jtknf7sgpow"},parentRefreshWhenClose:{type:"boolean",title:"\u5173\u95ED\u65F6\u5237\u65B0\u7236\u7EA7\u5217\u8868","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u4EC5\u5728 \u5173\u95ED onePage \u5206\u680F\u65F6\u3001\u6216 \u901A\u8FC7\u3010\u5173\u95ED\u6309\u94AE X\u3011\u3010\u70B9\u51FBmask\u533A\u57DF\u3011\u3010\u952E\u76D8esc\u6309\u952E\u3011\u5173\u95ED\u5F39\u7A97\u65F6 \u5237\u65B0\u7236\u7EA7\u5217\u8868"},name:"parentRefreshWhenClose","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"}}}},size:{type:"string",title:"\u5F39\u7A97\u5C3A\u5BF8","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"size",default:"medium",enum:[{label:"\u5C0F\u53F7",value:"small"},{label:"\u4E2D\u53F7",value:"medium"},{label:"\u5927\u53F7",value:"large"},{label:"\u81EA\u52A8\u9002\u914D",value:"autoLarge"}],"x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog'}}"}}},"x-designable-id":"32ou555h9f3ze7"},width:{type:"string",title:"\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"width",default:"50%","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer'}}"}}},"x-designable-id":"32ouh9f3ze7"},height:{type:"string",title:"\u9AD8\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"height","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"eikfmax2d13"},secondConfirm:{type:"boolean",title:"\u662F\u5426\u4E8C\u6B21\u786E\u8BA4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"secondConfirm","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgussstsh"},secondConfirmTitle:{type:"boolean",title:"\u4E8C\u6B21\u786E\u8BA4\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u6A21\u677F eg: \u63D0\u793A${$TABLE.RECORD_DATA.id} (\u5F53\u524D\u884C\u5BF9\u8C61\u7684id\u53D8\u91CF); https://yuque.antfin.com/docs/share/b0464a1d-77a3-4884-a981-7857a71174aa#H6z5E"},name:"secondConfirmTitle","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"},{property:"value",type:"boolean",source:"action.secondConfirm",name:"secondConfirm"}],fulfill:{state:{visible:"{{$deps.type === 'ajax' && $deps.secondConfirm === true}}"}}},"x-designable-id":"9if123estsh"},secondConfirmContent:{type:"boolean",title:"\u4E8C\u6B21\u786E\u8BA4\u63D0\u793A\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u6A21\u677F eg: \u63D0\u793A${$TABLE.RECORD_DATA.id} (\u5F53\u524D\u884C\u5BF9\u8C61\u7684id\u53D8\u91CF)"},name:"secondConfirmContent","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"},{property:"value",type:"boolean",source:"action.secondConfirm",name:"secondConfirm"}],fulfill:{state:{visible:"{{$deps.type === 'ajax' && $deps.secondConfirm === true}}"}}},"x-designable-id":"9if44453estsh"},successMessage:{type:"string",title:"\u81EA\u5B9A\u4E49\u6210\u529F\u6587\u6848","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"successMessage","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgjasdussstsh"},errorMessage:{type:"string",title:"\u81EA\u5B9A\u4E49\u5931\u8D25\u6587\u6848","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"errorMessage","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgja09sdussstsh"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{tip:'eg: $CURRENT_DATA.status==="success", $CURRENT_DATA\u662F\u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61(\u6BD4\u5982\u8868\u683C\u7684\u884C\u5BF9\u8C61), \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"shouldRender","x-designable-id":"9ifgulsstsh3333"},isDisabled:{title:"\u662F\u5426\u7981\u7528","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u7981\u7528"},"x-decorator-props":{tip:'eg: $CURRENT_DATA.status==="success", $CURRENT_DATA\u662F\u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61(\u6BD4\u5982\u8868\u683C\u7684\u884C\u5BF9\u8C61), \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"isDisabled","x-designable-id":"9ifgulsstsh3335553"},customType:{title:"\u81EA\u5B9A\u4E49\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{mode:"single"},"x-decorator-props":{},name:"customType",enum:[{children:[],label:"\u81EA\u5B9A\u4E49\u6E32\u67D3",value:"RENDER"},{children:[],label:"\u81EA\u5B9A\u4E49\u52A8\u4F5C",value:"ACTION"}],default:"ACTION","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'custom'}}"}}},"x-designable-id":"jtknf7sgpow"},delayLoadingMessageDuration:{type:"string",title:"loading\u63D0\u793A\u6700\u957F\u65F6\u957F","x-decorator":"CnFormItem","x-component":"NumberPicker","x-validator":[],"x-component-props":{innerAfter:"\u6BEB\u79D2",step:1e3,min:1e3},"x-decorator-props":{tip:"\u4EC5\u5F53 \u8BE5\u63A5\u53E3 \u54CD\u5E94\u65F6\u95F4 \u8FC7\u957F(\u4F8B\u5982 \u8D85\u8FC710\u79D2)\u65F6\u4F7F\u7528\uFF0C\u5176\u4ED6\u60C5\u51B5\u4E0D\u63A8\u8350\u4F7F\u7528\u3002key\uFF1AdelayLoadingMessageDuration"},name:"delayLoadingMessageDuration","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgussstsh"}}},btnType:{title:"\u6309\u94AE\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"btnType",enum:[{label:"\u666E\u901A\u6309\u94AE",value:"normal"},{label:"\u4E3B\u6309\u94AE",value:"primary"},{label:"\u6B21\u6309\u94AE",value:"secondary"}],default:"normal","x-designable-id":"jtknf7sgpow22221"},iconClass:{title:"\u6309\u94AE\u56FE\u6807","x-decorator":"CnFormItem","x-component":"CnInput","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u56FE\u6807code"},"x-decorator-props":{tip:"\u8BF7\u5230\u56FE\u6807\u5E93\u9009\u62E9\u56FE\u6807code (\u56FE\u6807\u5E93\u5730\u5740: https://cone.cainiao-inc.com/dsm/common/material/pc/CnIcon)"},name:"iconClass","x-designable-id":"jtknf723334545sgpow22221"},powerId:{title:"\u6743\u9650\u7F16\u7801","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u7F16\u7801\uFF0C\u4E0D\u8BBE\u7F6E\u8868\u793A\u4E00\u76F4\u663E\u793A"},"x-decorator-props":{},name:"powerId","x-designable-id":"jtknqweqe2221"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u989D\u5916\u63D0\u793A\u4FE1\u606F\uFF0C\u76EE\u524D\u4EC5\u90E8\u5206\u6309\u94AE\u652F\u6301"},name:"tooltip","x-designable-id":"sxbt443332zmzk"}},"x-designable-id":"6mjeu53tsgt"}}),VT=(e,t)=>{const{action:r}=e||{},{type:o,dataSource:i,selectValue:s,shouldRender:m,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,isDisabled:y,successMessage:b,errorMessage:w,delayLoadingMessageDuration:E,...F}=r||{};return o==="ajax"?i&&!t?e.action={type:o,...F,shouldRender:m,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,isDisabled:y,successMessage:b,errorMessage:w,delayLoadingMessageDuration:E,...i}:e.action={type:o,dataSource:{type:o,...F},shouldRender:m,isDisabled:y,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,successMessage:b,delayLoadingMessageDuration:E,errorMessage:w,...F}:["dialog","drawer","custom"].includes(o)&&(t?t&&(e.action={...e.action,selectValue:e.action.value}):(e.action={...e.action,value:s},delete e.action.selectValue)),{...e}};var UT={dataAdaptor:VT,formilySchema:HT},qT={button:jT,multiButton:YT,"batch-add":zT,editButton:UT},WT={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{primaryKey:{type:"string",title:"\u4E3B\u952E","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u4E3B\u952E"},"x-decorator-props":{},name:"primaryKey",required:!1,"x-designable-id":"zdrjdigckvw","x-index":0}},"x-designable-id":"c1f6xiczrp8"}},at=({listSchema:e=[]})=>{var r;const t=(e==null?void 0:e.map(o=>({...o,value:o.name||o.label})))||[];return{width:{type:"number",title:"\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[{triggerType:"onBlur",format:"number",message:"\u4EC5\u652F\u6301\u6570\u5B57"}],"x-component-props":{precision:5,onCorrect:()=>{}},"x-decorator-props":{},name:"width","x-designable-id":"qii5r2m5svg"},serverI18nKey:{type:"string",title:"\u56FD\u9645\u5316KEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"},name:"serverI18nKey","x-designable-id":"sxbti2p222233122mzk"},serverDataHandleType:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{useDetailValue:!0,hasClear:!0},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\uFF0C\u4E0D\u5904\u7406\uFF0C\u53EF\u4EE5\u9009\u62E9json\uFF0C \u8868\u793A\u5B57\u7B26\u4E32 \u548C json \u4E92\u8F6C"},name:"serverDataHandleType",enum:((r=window==null?void 0:window.__MDD_ModuleDataSource)==null?void 0:r.l4DataHandleOptions)||[{label:"JSON\u5904\u7406",value:"json"}],"x-designable-id":"sxbtip2222311236622mzk"},serverDataHandleParams:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570\uFF0C\u4E0D\u540C\u7684\u5904\u7406\u7C7B\u578B\uFF0C\u53C2\u6570\u4E0D\u540C,eg: arg1,arg2"},name:"serverDataHandleParams","x-designable-id":"sxasd223122mzk","x-reactions":{dependencies:[".serverDataHandleType"],when:"{{$deps[0]}}",fulfill:{state:{value:'{{$deps[0]?.params || ""}}'}}}},lock:{title:"\u662F\u5426\u9501\u5217","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"lock",default:"",enum:[{label:"\u4E0D\u9501\u5217",value:""},{label:"\u5DE6\u4FA7\u9501\u5217",value:"left"},{label:"\u53F3\u4FA7\u9501\u5217",value:"right"}],"x-designable-id":"sudwfycwir1"},sortable:{title:"\u662F\u5426\u53EF\u6392\u5E8F","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u6682\u65F6\u53EA\u80FD\u5728FTP\u6A21\u677F\u4E2D\u4F7F\u7528\u3002\u9ED8\u8BA4\u662F\u524D\u7AEF\u672C\u5730\u6392\u5E8F\uFF0C\u5728\u5185\u5BB9\u533A\u914D\u7F6E\u6700\u4E0B\u9762\u53EF\u4EE5\u5F00\u542F\u8FDC\u7A0B\u6392\u5E8F"},name:"sortable",default:!1,"x-designable-id":"sudwfyc3211"},filter:{title:"\u662F\u5426\u53EF\u5217\u5934\u7B5B\u9009","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u7EAF\u524D\u7AEF\u6392\u5E8F\uFF0C \u9700\u8981\u914D\u5408\u5185\u5BB9\u533A\u5F00\u542F\u6392\u5E8F\u529F\u80FD\uFF0C \u6216\u8005\u5168\u5C40\u5F00\u542F\u6392\u5E8F\u529F\u80FD"},name:"filter",default:!0,"x-designable-id":"sudwf33333yc3211"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{tip:'\u6682\u65F6\u53EA\u80FD\u5728\u8BE6\u60C5\u5361\u7247\u4E2D\u4F7F\u7528\u3002eg: value==="success", value\u4E3A\u5F53\u524D\u5361\u7247item\u7684value, \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"shouldRender","x-designable-id":"9ifgu123sh3333"},align:{title:"\u6587\u672C\u5BF9\u9F50\u65B9\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"table\u5355\u5143\u683C\u4E2D\u7684\u6587\u672C\u6216\u5185\u5BB9\u7684 \u5BF9\u5176\u65B9\u5411 eg: left\u3001right\u3001center"},enum:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:"align","x-designable-id":"9ifgu13123333"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u989D\u5916\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbti21112zmzk"},parentHeaderColumn:{type:"string",title:"\u8868\u5934\u5206\u7EC4\u7236\u7EA7\u5217","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{tip:"\u8BBE\u7F6E\u7236\u7EA7\u540E\uFF0C\u5F53\u524D\u5217\u8868\u5934\u4F1A\u663E\u793A\u5728\u7236\u7EA7\u5217\u7684\u4E0B\u9762"},enum:t,name:"parentHeaderColumn","x-designable-id":"sxbti11221112zmzk"}}};const lo={shouldCopyClipboard:{title:"\u53EF\u590D\u5236","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u662F\u5426\u53EF\u4EE5\u590D\u5236\u5230\u526A\u5207\u677F"},default:!1,name:"shouldCopyClipboard","x-designable-id":"sxbti22331112zmzk"}};var KT=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),...lo},"x-designable-id":"j744a1rk494"}}),JT=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),tpl:{type:"string",title:"\u6A21\u677F\u8868\u8FBE\u5F0F","x-decorator":"CnFormItem","x-component":"Input","x-validator":[{triggerType:"onBlur",message:""}],"x-component-props":{},"x-decorator-props":{inset:!1,tip:'\u793A\u4F8B\uFF1A${value ? "\u662F" : "\u5426"}'},"x-designable-id":"di5at2neb8u","x-index":0},...lo},"x-designable-id":"kv084cg1qw7"}}),GT=e=>({form:{labelCol:4,wrapperCol:18},schema:{type:"object",properties:{...at(e),dataSource:{type:"array",title:"\u6807\u7B7E\u9879","x-decorator":"CnFormItem","x-component":"CnArrayTable","x-validator":[],"x-component-props":{},"x-decorator-props":{},"x-designable-id":"2llnlw0zknr","x-index":0,name:"dataSource",items:{type:"object","x-designable-id":"092v9dqg2an",properties:{label:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u663E\u793A\u540D"},name:"label","x-designable-id":"6t89030495o","x-index":0,properties:{label:{type:"string","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8F93\u5165\u663E\u793A\u5185\u5BB9"},"x-decorator-props":{},name:"label","x-designable-id":"lhgnd2hni2c","x-index":0}}},value:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u679A\u4E3E\u503C"},name:"value","x-designable-id":"dbpmpr1s8l0","x-index":1,properties:{value:{type:"string","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8F93\u5165\u663E\u793A\u5BF9\u5E94\u7684\u503C"},"x-decorator-props":{},name:"value","x-designable-id":"eza9h5nd811","x-index":0}}},type:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u989C\u8272"},name:"type","x-designable-id":"c56rfuaez26","x-index":2,properties:{type:{"x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u9009\u62E9\u989C\u8272",size:"small"},"x-decorator-props":{},name:"type",enum:[{children:[],label:"\u6D45\u7EFF",value:"#D6FCF5"},{children:[],label:"\u6D45\u84DD",value:"#A3D9FB"},{children:[],label:"\u6D45\u7EA2",value:"#ffeeec"},{children:[],label:"\u6D45\u9EC4",value:"#FEF0D6"},{children:[],label:"\u6D45\u7070",value:"#E9EDF8"},{children:[],label:"\u84DD\u8272",value:"blue"},{children:[],label:"\u7EFF\u8272",value:"green"},{children:[],label:"\u6A59\u8272",value:"orange"},{children:[],label:"\u7EA2\u8272",value:"red"},{children:[],label:"\u7EFF\u677E\u77F3",value:"turquoise"},{children:[],label:"\u9EC4\u8272",value:"yellow"},{children:[],label:"\u9ED8\u8BA4",value:"default"}],"x-designable-id":"i43112h1uge","x-index":0}}},hqnameqwa3b:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u64CD\u4F5C",width:90},"x-designable-id":"hqnameqwa3b","x-index":3,properties:{b7kptwyd6np:{type:"void","x-component":"CnArrayTableRemove","x-designable-id":"b7kptwyd6np","x-index":0},pj1bx0ttexd:{type:"void","x-component":"CnArrayTableMoveDown","x-designable-id":"pj1bx0ttexd","x-index":1},i1og9fm20lb:{type:"void","x-component":"CnArrayTableMoveUp","x-designable-id":"i1og9fm20lb","x-index":2}}}}},properties:{tb7rhj3oln3:{type:"void",title:"Addition","x-component":"CnArrayTableAddition","x-component-props":{title:"\u6DFB\u52A0",method:"push"},"x-designable-id":"tb7rhj3oln3","x-index":0}}}},"x-designable-id":"kv084cg1qw7"}}),QT=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),format:{type:"string",title:"\u65E5\u671F\u663E\u793A\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"}},"x-decorator-props":{},default:"YYYY-MM-DD",name:"format",enum:[{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"}],"x-designable-id":"sxb8qjazmzk","x-index":0},...lo,"x-designable-id":"loa7444d8t3"}}}),XT=e=>{const{moduleDataSource:t={}}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),customType:{title:"\u81EA\u5B9A\u4E49\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{mode:"single"},"x-decorator-props":{},name:"customType",enum:[{children:[],label:"\u81EA\u5B9A\u4E49\u6E32\u67D3",value:"RENDER"},{children:[],label:"\u81EA\u5B9A\u4E49\u52A8\u4F5C",value:"ACTION"}],default:"ACTION","x-designable-id":"jtknf7sgpow"},value:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"value",enum:(t==null?void 0:t.l4ModuleOptions)||[],default:"","x-designable-id":"9efgulzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy"},"x-designable-id":"loa5555d8t3"}}}},ZT=e=>({form:{labelCol:4,wrapperCol:18},schema:{type:"object",properties:{...at(e),dataSource:{type:"array",title:"\u679A\u4E3E\u9879","x-decorator":"CnFormItem","x-component":"CnArrayTable","x-validator":[],"x-component-props":{},"x-decorator-props":{},"x-designable-id":"2llnlw0zknr","x-index":0,name:"dataSource",items:{type:"object","x-designable-id":"092v9dqg2an",properties:{label:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u663E\u793A\u540D"},name:"label","x-designable-id":"6t89030495o","x-index":0,properties:{label:{type:"string","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8F93\u5165\u663E\u793A\u5185\u5BB9"},"x-decorator-props":{},name:"label","x-designable-id":"lhgnd2hni2c","x-index":0}}},value:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u679A\u4E3E\u503C"},name:"value","x-designable-id":"dbpmpr1s8l0","x-index":1,properties:{value:{type:"string","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8F93\u5165\u663E\u793A\u5BF9\u5E94\u7684\u503C"},"x-decorator-props":{},name:"value","x-designable-id":"eza9h5nd811","x-index":0}}},hqnameqwa3b:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u64CD\u4F5C",width:90},"x-designable-id":"hqnameqwa3b","x-index":3,properties:{b7kptwyd6np:{type:"void","x-component":"CnArrayTableRemove","x-designable-id":"b7kptwyd6np","x-index":0},pj1bx0ttexd:{type:"void","x-component":"CnArrayTableMoveDown","x-designable-id":"pj1bx0ttexd","x-index":1},i1og9fm20lb:{type:"void","x-component":"CnArrayTableMoveUp","x-designable-id":"i1og9fm20lb","x-index":2}}}}},properties:{tb7rhj3oln3:{type:"void",title:"Addition","x-component":"CnArrayTableAddition","x-component-props":{title:"\u6DFB\u52A0",method:"push"},"x-designable-id":"tb7rhj3oln3","x-index":0}}}},"x-designable-id":"kv084cg1qw7"}}),eI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),format:{title:"\u6570\u503C\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",placeholder:"\u652F\u6301\u624B\u52A8\u8F93\u5165numeraljs\u683C\u5F0F\u5316\u5B57\u7B26\u4E32"},"x-decorator-props":{tip:"\u652F\u6301numeraljs\u6240\u6709\u683C\u5F0F\u5316\u914D\u7F6E,\u53C2\u8003: http://numeraljs.com/#format"},name:"format",enum:[{label:"\u65E0",value:"decimal"},{label:"\u8D27\u5E01\u683C\u5F0F",value:"currency"},{label:"\u767E\u5206\u6BD4",value:"percent"}],"x-designable-id":"v15ikv970as"},...lo},"x-designable-id":"kv084cg1qw7"}}),tI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"j741121rk494"}}),nI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),showNum:{type:"number",title:"\u663E\u793A\u5728\u8868\u683C\u5217\u7684\u6761\u6570","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[{triggerType:"onBlur",format:"number",message:"\u4EC5\u652F\u6301\u6570\u5B57"}],"x-component-props":{min:1},"x-decorator-props":{},default:1,name:"showNum","x-designable-id":"qii5r222m5svg"},copyToClipboard:{type:"boolean",title:"\u662F\u5426\u53EF\u590D\u5236","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!0,name:"copyToClipboard","x-designable-id":"qii1232m5svg"},moreText:{type:"string",title:'\u81EA\u5B9A\u4E49"\u66F4\u591A"\u6587\u6848',"x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"\u66F4\u591A",name:"moreText","x-designable-id":"qii1233332m5svg"},valueRenderKey:{type:"string",title:"\u663E\u793A\u5B57\u6BB5(\u5B57\u7B26\u4E32\u6570\u7EC4\u65E0\u9700\u8BBE\u7F6E)","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"valueRenderKey","x-designable-id":"qii12345532m5svg"}},"x-designable-id":"j74114234494"}}),rI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),align:{title:"\u6D6E\u5C42\u65B9\u5411","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"align",default:"t",enum:[{label:"\u4E0A",value:"t"},{label:"\u5DE6",value:"l"},{label:"\u53F3",value:"r"},{label:"\u4E0B",value:"b"}],"x-designable-id":"v15i22270as"},...lo,"x-designable-id":"asda74434d8t3"}}}),aI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),isFile:{type:"boolean",title:"\u662F\u5426\u662F\u9644\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u662F\u5219\u663E\u793A\u9644\u4EF6\u7C7B\u578B\uFF0C\u5426\u5219\u663E\u793A\u56FE\u7247\u7C7B\u578B"},default:!1,name:"isImage","x-designable-id":"sxb85123k22323"},shape:{type:"string",title:"\u5F62\u72B6","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"mini",name:"shape",enum:[{label:"\u7D27\u51D1",value:"mini"},{label:"\u5E38\u89C4",value:"normal"}],"x-designable-id":"sxb85123222k22323"},imageWidth:{type:"string",title:"\u7F29\u7565\u56FE\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{precision:5,onCorrect:()=>{}},"x-decorator-props":{},default:30,name:"imageWidth","x-designable-id":"sxb85123k"},imageHeight:{type:"string",title:"\u7F29\u7565\u56FE\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{precision:5,onCorrect:()=>{}},"x-decorator-props":{},default:30,name:"imageHeight","x-designable-id":"sxb8123mzk"},errorUrl:{type:"string",title:"\u52A0\u8F7D\u51FA\u9519\u5360\u4F4D\u56FE","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"",name:"errorUrl","x-designable-id":"sxb85235mzk"},hasDownload:{type:"string",title:"\u80FD\u5426\u4E0B\u8F7D","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!0,name:"hasDownload","x-designable-id":"sxb1235235mzk"},"x-designable-id":"loa73568t3"}}}),oI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),lI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),uI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),iI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),sI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),cI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg3331qw7"}}),pt=()=>{var e;return{shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{},name:"shouldRender"},hasClear:{type:"boolean",title:"\u6709\u6E05\u9664\u6309\u94AE","x-decorator":"CnFormItem","x-component":"Switch",name:"hasClear","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k3272222"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbtip2222mzk"},serverI18nKey:{type:"string",title:"\u56FD\u9645\u5316KEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"},name:"serverI18nKey","x-designable-id":"sxbtip22223122mzk"},serverDataHandleType:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{useDetailValue:!0,hasClear:!0},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\uFF0C\u4E0D\u5904\u7406\uFF0C\u53EF\u4EE5\u9009\u62E9json\uFF0C \u8868\u793A\u5B57\u7B26\u4E32 \u548C json \u4E92\u8F6C"},name:"serverDataHandleType",enum:((e=window==null?void 0:window.__MDD_ModuleDataSource)==null?void 0:e.l4DataHandleOptions)||[{label:"JSON\u5904\u7406",value:"json"}],"x-designable-id":"sxbtip2222311236622mzk"},serverDataHandleParams:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570\uFF0C\u4E0D\u540C\u7684\u5904\u7406\u7C7B\u578B\uFF0C\u53C2\u6570\u4E0D\u540C,eg: arg1,arg2"},name:"serverDataHandleParams","x-designable-id":"sxasd223122mzk","x-reactions":{dependencies:[".serverDataHandleType"],when:"{{$deps[0]}}",fulfill:{state:{value:'{{$deps[0]?.params || ""}}'}}}}}},Mf=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{messageType:{type:"string",title:"\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"success",name:"messageType",enum:[{label:"loading",value:"loading"},{label:"warning",value:"warning"},{label:"error",value:"error"},{label:"success",value:"success"},{label:"help",value:"help"},{label:"notice",value:"notice"}]},title:{type:"string",title:"\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u53EF\u4EE5\u662F \u51FD\u6570\u540D\uFF0C\u5982 _customRenderMessageTitle\uFF0C\u5199\u6CD5\u7C7B\u4F3C\u4E8E \u81EA\u5B9A\u4E49\u6E32\u67D3\u7684\u51FD\u6570\u5199\u6CD5\uFF1B\u5426\u5219\u76F4\u63A5\u4F5C\u4E3A\u5B57\u7B26\u4E32\u8D4B\u7ED9 message.title"},default:"",name:"title"},messageChildren:{type:"string",title:"\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u53EF\u4EE5\u662F \u51FD\u6570\u540D\uFF0C\u5982 _customRenderMessageChildren\uFF0C\u5199\u6CD5\u7C7B\u4F3C\u4E8E \u81EA\u5B9A\u4E49\u6E32\u67D3\u7684\u51FD\u6570\u5199\u6CD5\uFF1B\u5426\u5219\u76F4\u63A5\u4F5C\u4E3A\u5B57\u7B26\u4E32\u8D4B\u7ED9 message.children"},default:"",name:"messageChildren"},iconType:{type:"string",title:"\u56FE\u6807\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u4F1A\u8986\u76D6\u5185\u90E8\u8BBE\u7F6E\u7684IconType\uFF0C\u4E00\u822C\u60C5\u51B5\u4E0B\u4E0D\u5EFA\u8BAE\u4F7F\u7528\uFF0Cfalse\u8868\u793A\u4E0D\u663E\u793A\u56FE\u6807\u3002\u586B\u5199\u5185\u5BB9\u53C2\u8003\uFF1Ahttps://dsm.cone.cainiao-inc.com/components/cnui/CnIcon?device=pc\uFF0C\u5982\uFF1Acomplete-r-fill"},default:"",name:"iconType"}},"x-designable-id":"loa7444w8t3"}}),dI={text:KT,tpl:JT,tag:GT,"single-enum":ZT,date:QT,custom:XT,num:eI,clipboard:tI,list:nI,"tooltip-text":rI,images:aI,message:(...e)=>{const t=Mf(...e);return t.schema.properties={colSpan:{type:"number",title:"\u8DE8\u5217\u8BBE\u7F6E","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{tip:"\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E09\u5217"},default:3,"x-designable-id":"r52k327v2zu"},...t.schema.properties},t},"cn-tag":oI,"cn-number":lI,"cn-bank":uI,"cn-image-text":iI,"cn-progress":sI,"cn-graphics-percent":cI},pI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{paging:{type:"boolean",title:"\u5F00\u542F\u5206\u9875","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"paging",default:!0,"x-designable-id":"v80d32s7cnp"},disableGlobalConfig:{type:"boolean",title:"\u7981\u7528\u5168\u5C40\u914D\u7F6E","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u5F00\u542F\u7981\u7528\u5168\u5C40\u914D\u7F6E\u540E\uFF0C\u624D\u80FD\u8BBE\u7F6E\u9ED8\u8BA4\u6BCF\u9875\u6761\u6570"},name:"disableGlobalConfig",default:!1,"x-designable-id":"v80d22232s7cnp"},defaultPageSize:{type:"number",title:"\u6BCF\u9875\u6570\u91CF","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u6BCF\u9875\u6570\u91CF"},"x-decorator-props":{tip:""},default:"20","x-designable-id":"ecc63shkjtk",description:"",name:"defaultPageSize","x-reactions":{dependencies:[{property:"value",type:"any",source:"paging",name:"paging"},{property:"value",type:"any",source:"disableGlobalConfig",name:"disableGlobalConfig"}],fulfill:{state:{hidden:"{{$deps.paging === false || $deps.disableGlobalConfig === false}}"}}}},pageSizeList:{type:"string",title:"\u5206\u9875\u53EF\u9009\u5927\u5C0F","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u5206\u9875\u6570\u503C\uFF0C\u9017\u53F7\u9694\u5F00\uFF0C eg: 10,20,30,50"},default:"","x-decorator-props":{},name:"pageSizeList","x-designable-id":"v80d22232s7cnp222","x-reactions":{dependencies:[{property:"value",type:"any",source:"paging",name:"paging"}],fulfill:{state:{hidden:"{{$deps.paging === false }}"}}}}},"x-designable-id":"c1f6xiczrp8"}};const mn=()=>({width:at.width,lock:at.lock}),mI={required:{type:"boolean",title:"\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"r52kt27v9zu"},serverI18nKey:{type:"string",title:"\u56FD\u9645\u5316KEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"},name:"serverI18nKey","x-designable-id":"sxbti3122mzk"},serverDataHandleType:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\uFF0C\u4E0D\u5904\u7406\u3002\u53EF\u4EE5\u9009\u62E9json\uFF0C \u8868\u793A\u5B57\u7B26\u4E32 \u548C json \u4E92\u8F6C"},name:"serverDataHandleType",enum:[{label:"JSON\u5904\u7406",value:"json"}],"x-designable-id":"sxbtip2222311236622mzk"},validator:{type:"string",title:"\u6B63\u5219\u6821\u9A8C","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6B63\u5219\u6821\u9A8C\u8868\u8FBE\u5F0F",size:"small"},"x-decorator-props":{},name:"validator",enum:[{label:"\u90AE\u7BB1",value:"^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$"},{label:"\u6570\u5B57",value:"^[+-]?\\d+(\\.\\d+)?$"},{label:"\u6574\u6570",value:"^[+-]?\\d+$"},{label:"QQ",value:"^(\\+?[1-9]\\d*|0)$"},{label:"\u624B\u673A\u53F7",value:"^\\d{3}-\\d{8}$|^\\d{4}-\\d{7}$|^\\d{11}$"},{label:"\u8EAB\u4EFD\u8BC1\u53F7",value:"^\\d{15}$|^\\d{17}(\\d|x|X)$"},{label:"\u91D1\u989D",value:"^([\\u0024\\u00A2\\u00A3\\u00A4\\u20AC\\u00A5\\u20B1\\u20B9\\uFFE5]\\s*)(\\d+,?)+\\.?\\d*\\s*$"},{label:"\u4E2D\u6587",value:"^[\\u4e00-\\u9fa5]+$"},{label:"\u65E5\u671F",value:"^[0-9]+[./-][0-9]+[./-][0-9]+\\s*(?:[0-9]+\\s*:\\s*[0-9]+\\s*:\\s*[0-9]+)?$"}],"x-designable-id":"df97o0zfqde"}},An={...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u8F93\u5165",name:"placeholder","x-designable-id":"f8sf3ednwf4"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"3hvt8e2efyl"},...mI},fI={...An,maxLength:{type:"number",title:"\u6700\u957F\u957F\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"maxLength","x-designable-id":"xe60ju8pq9g"},minLength:{type:"number",title:"\u6700\u77ED\u957F\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"minLength","x-designable-id":"yam9t8o7oh9"},trim:{type:"boolean",title:"\u6E05\u7A7A\u524D\u540E\u7A7A\u683C","x-decorator":"CnFormItem","x-component":"Switch",name:"trim","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k3272222"}};var hI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...fI}}},"x-designable-id":"edit-table-j744a1rk494"}},gI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),customType:{title:"\u81EA\u5B9A\u4E49\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{mode:"single"},"x-decorator-props":{},name:"customType",enum:[{children:[],label:"\u81EA\u5B9A\u4E49\u6E32\u67D3",value:"RENDER"}],default:"RENDER","x-designable-id":"jtknf7sgpow"},value:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{showSearch:!0,hasClear:!0},"x-decorator-props":{},name:"value",enum:[{children:[],label:"\u793A\u4F8B\u5185\u5BB9",value:"/pages/demo"}],default:"","x-designable-id":"9efgulzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy"},"x-designable-id":"loa5555d8t3"}}};const vI={...An,inputProps:{type:"object",properties:{hasClear:{type:"boolean",title:"\u6709\u6E05\u9664\u6309\u94AE","x-decorator":"CnFormItem","x-component":"Switch",name:"hasClear","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k22233322"}}}};var yI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...vI}}},"x-designable-id":"edit-table-j744a1rk494"}};const xI={...An,max:{type:"number",title:"\u6700\u5927\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"max","x-designable-id":"uqm7q06jq7h"},min:{type:"number",title:"\u6700\u5C0F\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"min","x-designable-id":"mvrqq9snczf"},step:{type:"number",title:"\u6B65\u957F","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"step","x-designable-id":"mvrqq222"},precision:{type:"number",title:"\u4FDD\u7559\u51E0\u4F4D\u5C0F\u6570\u70B9","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],default:0,"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"precision","x-designable-id":"m111222nczf"}};var EI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...xI}}},"x-designable-id":"edit-table-j744a1rk494"}};const bI={...An,mode:{type:"string | number",title:"\u9009\u62E9\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"single",enum:[{label:"\u5355\u9009",value:"single"},{label:"\u591A\u9009",value:"multiple"}],"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},default:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},showSearch:{type:"boolean",title:"\u5F00\u542F\u8FDC\u7A0B\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showSearch","x-designable-id":"5icqqwaac9k"},searchKey:{title:"\u641C\u7D22Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u63A5\u53E3\u8BF7\u6C42\u7684key\uFF0C\u9ED8\u8BA4\u662Fkeyword"},name:"searchKey",default:"keyword","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"decoratorProps.showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true }}"}}},"x-designable-id":"5111aac9k"},backfillingSource:{type:"string",title:"\u56DE\u586B\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],default:"","x-component-props":{},"x-decorator-props":{tip:"\u76EE\u7684\u662F\u56DE\u586B\u5206\u9875\u4E0B\u62C9\u65F6\u6570\u636E\u56DE\u586B\u95EE\u9898\u3002\u4F1A\u5C06\u5F53\u524D\u503C\u4F20\u7ED9\u540E\u7AEF\uFF0C\u540E\u7AEF\u8FD4\u56DE\u7684opts\u6570\u636E\u4F1A\u548C\u539F\u59CB\u4E0B\u62C9\u6570\u636E\u6E90\u5408\u5E76\uFF0C\u5177\u4F53\u5B9E\u73B0\u53C2\u8003: https://alidocs.dingtalk.com/i/nodes/oP0MALyR8kzGnoOwF5Ka1dxwJ3bzYmDO"},name:"backfillingSource","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"decoratorProps.showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true}}"}}},"x-designable-id":"t0uv4o22222332328e9ds"},valueRenderCode:{title:"\u56DE\u586B\u663E\u793AKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u7528\u4E8E\u56DE\u586B\u503C\u65F6\uFF0C\u6307\u5B9A\u53E6\u4E00\u5B57\u6BB5\u503C\u8FDB\u884C\u9875\u9762\u663E\u793A"},name:"valueRenderCode",default:"","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"decoratorProps.showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true }}"}}}},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"},useDetailValue:{type:"string",title:"\u503C\u4E3A\u5BF9\u8C61","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"useDetailValue",default:!1,"x-designable-id":"bt66222xl3px"}};var CI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...bI}}},"x-designable-id":"edit-table-j744a1rk494"}};const FI={...An,format:{type:"string",title:"\u65E5\u671F\u663E\u793A\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"format",default:"YYYY/MM/DD",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"}],"x-designable-id":"sxb8qjzzmzk"},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"outputFormat",default:"timestamp",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"\u65F6\u95F4\u6233",value:"timestamp"}],"x-designable-id":"sxb8qjzzmz1"},showTime:{type:"boolean",title:"\u662F\u5426\u663E\u793A\u65F6\u95F4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showTime","x-designable-id":"atio0qbel1n"},dateRange:{type:"string[]",title:"\u53EF\u9009\u65E5\u671F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{style:{width:"200px"}},"x-decorator-props":{},name:"dateRange",enum:[{label:"\u5168\u90E8\u53EF\u9009",value:"ALL_SELECTED"},{label:"\u4ECA\u65E5\u4E4B\u524D\u4E0D\u53EF\u9009",value:"BEFORE_NOW_DISABLED"},{label:"\u4ECA\u65E5\u4E4B\u540E\u4E0D\u53EF\u9009",value:"AFTER_NOW_DISABLED"},{label:"\u524D\u4E00\u5468\u53EF\u9009",value:"FORWARD_1_WEEK"},{label:"\u524D\u4E00\u4E2A\u6708\u53EF\u9009",value:"FORWARD_1_MONTH"},{label:"\u524D\u4E09\u4E2A\u6708\u53EF\u9009",value:"FORWARD_3_MONTH"},{label:"\u524D\u4E00\u5E74\u53EF\u9009",value:"FORWARD_1_YEAR"},{label:"\u540E\u4E00\u5468\u53EF\u9009",value:"BACKWARD_1_WEEK"},{label:"\u540E\u4E00\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_1_MONTH"},{label:"\u540E\u4E09\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_3_MONTH"},{label:"\u540E\u4E00\u5E74\u53EF\u9009",value:"BACKWARD_1_YEAR"}],"x-designable-id":"fkh6rbtovz6"}};var SI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirv2xpflgk",properties:{...FI}}},"x-designable-id":"edit-table-j744a21rk494"}};const DI={...An,format:{title:"\u65F6\u95F4\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{},name:"format",default:"HH:mm:ss",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"}],"x-designable-id":"v15ikv970as","x-index":0},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{tip:"\u8F93\u51FA\u683C\u5F0F\u53EA\u80FD\u662F\u7A7A \u6216\u8005 \u548C\u663E\u793A\u683C\u5F0F\u5316\u4E00\u81F4\uFF0C\u5426\u5219\u6E32\u67D3\u9519\u8BEF"},name:"outputFormat",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"},{label:"\u65F6\u95F4\u6233(\u6E05\u7A7A\u5373\u53EF)",value:""}],"x-designable-id":"sxb8qj22zzmz1"},disabledHours:{title:"\u4E0D\u53EF\u9009\u5C0F\u65F6","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple",hasSelectAll:!1,tagInline:!0,style:{width:"200px"}},"x-decorator-props":{},enum:[{children:[],label:"1",value:1},{children:[],label:"2",value:2},{children:[],label:"3",value:3},{children:[],label:"4",value:4},{children:[],label:"5",value:5},{children:[],label:"6",value:6},{children:[],label:"7",value:7},{children:[],label:"8",value:8},{children:[],label:"9",value:9},{children:[],label:"10",value:10},{children:[],label:"11",value:11},{children:[],label:"12",value:12}],name:"disabledHours","x-designable-id":"und4tb07kwb","x-index":2},defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"CnTimePickerPro","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy","x-index":3},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u9009\u62E9",name:"placeholder","x-designable-id":"bt66ecxl3px","x-index":4},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jdsx3d3zrua","x-index":5}};var AI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirv22xpflgk",properties:{...DI}}},"x-designable-id":"edit-table-j744a221rk494"}};const wI={...An,defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9"},default:"\u8BF7\u9009\u62E9",name:"placeholder","x-decorator-props":{},"x-designable-id":"fgzs02l3sg2"},mode:{type:"string",title:"\u6570\u636E\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"api",enum:[{label:"API",value:"api"},{label:"CDN",value:"cdn"}],"x-validator":[],"x-component-props":{mode:"api"},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},baseUrl:{type:"string",title:"\u8BF7\u6C42\u57DF\u540D","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"baseUrl",default:"/base/api/v1","x-designable-id":"44dxrx59k4y","x-reactions":{dependencies:[{property:"value",type:"string",source:"decoratorProps.mode",name:"mode"}],fulfill:{state:{visible:'{{$deps.mode === "api"}}'}}},required:!0},cdnUrl:{type:"string",title:"cdn\u5730\u5740",default:"https://division-data.alicdn.com/simple/addr_1_4_all.js","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{cdnUrl:"https://division-data.alicdn.com/simple/addr_1_4_all.js"},"x-decorator-props":{},name:"cdnUrl","x-designable-id":"44dxrx59k1y","x-reactions":{dependencies:[{property:"value",type:"string",source:"decoratorProps.mode",name:"mode"}],fulfill:{state:{visible:'{{$deps.mode === "cdn"}}'}}},required:!0},multiple:{type:"boolean",title:"\u591A\u9009","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{multiple:!1},"x-decorator-props":{},default:!1,name:"multiple","x-designable-id":"bnxhtei07c4"},maxLevel:{type:"number",title:"\u6700\u5927\u5C42\u7EA7","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{maxLevel:4,max:5},"x-decorator-props":{},default:3,name:"maxLevel","x-designable-id":"5rff5nscn5n"},showSearch:{type:"boolean",title:"\u5F00\u542F\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!0,name:"showSearch","x-designable-id":"bnxhtei22207c1"},changeOnSelect:{type:"boolean",title:"\u9009\u62E9\u5373\u6539\u53D8","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{changeOnSelect:!1},"x-decorator-props":{},default:!1,name:"changeOnSelect","x-designable-id":"bnxhtei07c1"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"ff3dus7pijt"},showTopLevel:{type:"boolean",title:"\u662F\u5426\u5148\u9009\u62E9\u56FD\u5BB6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!1,name:"showTopLevel","x-designable-id":"bnxht222111ei07c4"},iso:{type:"string",title:"\u9ED8\u8BA4\u56FD\u5BB6ISO","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u56FD\u5BB6\u7F16\u7801"},default:"CN",name:"iso","x-decorator-props":{tip:"\u9ED8\u8BA4\u4E2D\u56FDCN\u3002\u8BBE\u7F6E\u7A7A && \u5F00\u542F\u5148\u9009\u62E9\u56FD\u5BB6 \u8868\u793A\u9009\u62E9\u56FD\u5BB6\u3002 ISO\u5B57\u5178\u67E5\u770B: https://aliyuque.antfin.com/cndzk/fex/xc1vnw?"},"x-designable-id":"fgzssslls02l3sg2"}};var TI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvx2pflgk",properties:{...wI}}},"x-designable-id":"yk7opli2cp8"}};const II={...An,mode:{type:"string | number",title:"\u9009\u62E9\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"single",enum:[{label:"\u5355\u9009",value:"single"},{label:"\u591A\u9009",value:"multiple"}],"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},default:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"},changeOnSelect:{type:"string",title:"\u9009\u62E9\u5373\u6539\u53D8","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"changeOnSelect",default:!1,"x-designable-id":"bt66221112xl3px"}};var _I={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...II}}},"x-designable-id":"edit-table-j744a1rk494"}};const $I={...An,service:{type:"string",title:"\u83B7\u53D6OSS\u51ED\u8BC1\u63A5\u53E3\u5730\u5740","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165,eg: https://example/getOssUploadParams"},"x-decorator-props":{tip:"\u63A5\u53E3\u89C4\u8303\u8BE6\u89C1: https://yuque.antfin.com/cn-ui/cn-ui-data-structure/cn-upload"},name:"service","x-designable-id":"hso2ft3bll3"},shape:{type:"string",title:"\u4E0A\u4F20\u6837\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"shape",default:"normal",enum:[{label:"\u666E\u901A\u4E0A\u4F20",value:"normal"},{label:"\u7B80\u6D01\u4E0A\u4F20",value:"mini"},{label:"\u62D6\u62FD\u4E0A\u4F20",value:"dragger"}],"x-designable-id":"sxb8qjzzmzk"},showUploadList:{type:"boolean",title:"\u662F\u5426\u6709\u6587\u4EF6\u5217\u8868","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showUploadList",default:!0,"x-designable-id":"1oxz0inalmf"},showPreview:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u6587\u4EF6\u9884\u89C8ICON","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!1,"x-component-props":{},"x-decorator-props":{},name:"showPreview","x-designable-id":"hgrh67bvlwc"},showRemove:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u5220\u9664\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},name:"showRemove","x-designable-id":"vbylh6fa2mb"},showDownload:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u4E0B\u8F7D\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},name:"showDownload","x-designable-id":"5tb55oy67tw"},multiple:{type:"boolean",title:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"multiple","x-designable-id":"jyl8akeqpkr"},accept:{type:"string",title:"\u63A5\u53D7\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8BE6\u89C1https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept"},name:"accept",description:"","x-designable-id":"wdi2j6qqy17"},limit:{type:"number",title:"\u4E0A\u4F20\u6587\u4EF6\u6570\u91CF\u9650\u5236","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"limit","x-designable-id":"auj6iuyrk8v"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbtip2222mzk"}};var OI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...$I}}},"x-designable-id":"loa7444w8t3"}},RI={"edit-custom":gI,"edit-input":hI,"edit-batch-input":yI,"edit-number-picker":EI,"edit-select":CI,"edit-date-picker":SI,"edit-time-picker":AI,"edit-address-select":TI,"edit-cascader-select":_I,upload:OI},BI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{path:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{showSearch:!0,hasClear:!0},"x-decorator-props":{},name:"path",enum:[{children:[],label:"\u793A\u4F8B\u5185\u5BB9",value:"/pages/demo"}],default:"","x-designable-id":"9efgu222lzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv422o8e9uy"}},"x-designable-id":"c1f6x222iczrp8"}},kI={primaryKey:WT,...dI,pagination:pI,...RI,moduleImport:BI},vp={colSpan:{type:"number",title:"\u8DE8\u5217\u8BBE\u7F6E","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{tip:"\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E00\u884C\u4E00\u5217"},default:1,"x-designable-id":"r52k327v2zu"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{},name:"shouldRender"}},Pf={required:{type:"boolean",title:"\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"r52kt27v9zu"},pattern:{type:"string",title:"\u6B63\u5219\u6821\u9A8C","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6B63\u5219\u6821\u9A8C\u8868\u8FBE\u5F0F",size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"pattern",enum:[{label:"\u90AE\u7BB1",value:"^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$"},{label:"\u6570\u5B57",value:"^[+-]?\\d+(\\.\\d+)?$"},{label:"\u6574\u6570",value:"^[+-]?\\d+$"},{label:"QQ",value:"^(\\+?[1-9]\\d*|0)$"},{label:"\u624B\u673A\u53F7",value:"^\\d{3}-\\d{8}$|^\\d{4}-\\d{7}$|^\\d{11}$"},{label:"\u8EAB\u4EFD\u8BC1\u53F7",value:"^\\d{15}$|^\\d{17}(\\d|x|X)$"},{label:"\u91D1\u989D",value:"^([\\u0024\\u00A2\\u00A3\\u00A4\\u20AC\\u00A5\\u20B1\\u20B9\\uFFE5]\\s*)(\\d+,?)+\\.?\\d*\\s*$"},{label:"\u4E2D\u6587",value:"^[\\u4e00-\\u9fa5]+$"},{label:"\u65E5\u671F",value:"^[0-9]+[./-][0-9]+[./-][0-9]+\\s*(?:[0-9]+\\s*:\\s*[0-9]+\\s*:\\s*[0-9]+)?$"}],"x-designable-id":"df97o0zfqde"}},ei=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3","x-index":0},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u8F93\u5165",name:"placeholder","x-designable-id":"f8sf3ednwf4","x-index":1},maxLength:{type:"number",title:"\u6700\u957F\u957F\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"maxLength","x-designable-id":"xe60ju8pq9g","x-index":2},minLength:{type:"number",title:"\u6700\u77ED\u957F\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"minLength","x-designable-id":"yam9t8o7oh9","x-index":3},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"3hvt8e2efyl","x-index":4},trim:{type:"boolean",title:"\u6E05\u7A7A\u524D\u540E\u7A7A\u683C","x-decorator":"CnFormItem","x-component":"Switch",name:"trim","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k3272222"},...Pf},"x-designable-id":"loa7444w8t3"}});const{hasClear:R7,...MI}=pt;var PI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...MI,valueType:{type:"string",title:"\u8FD4\u56DE\u503C\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:'string: \u8FD4\u56DE "a,b,c" \u683C\u5F0F; list: \u8FD4\u56DE ["a","b","c"] \u683C\u5F0F'},default:"string",enum:[{label:"string",value:"string"},{label:"list",value:"list"}],name:"valueType","x-designable-id":"valueType001"},defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u8F93\u5165",name:"placeholder","x-designable-id":"f8sf3ednwf4"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"3hvt8e2efyl"},inputProps:{type:"object",properties:{hasClear:{type:"boolean",title:"\u6709\u6E05\u9664\u6309\u94AE","x-decorator":"CnFormItem","x-component":"Switch",name:"hasClear","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k3272222"}}},...Pf},"x-designable-id":"loa7444w8t3"}};const NI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",_type:"select"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"5ic30uaac9k"},mode:{type:"string | number",title:"\u9009\u62E9\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"single",enum:[{label:"\u5355\u9009",value:"single"},{label:"\u591A\u9009",value:"multiple"}],"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],default:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]},"x-component-props":{},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},showSearch:{type:"boolean",title:"\u5F00\u542F\u8FDC\u7A0B\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showSearch","x-designable-id":"5icqqwaac9k"},searchKey:{title:"\u641C\u7D22Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u63A5\u53E3\u8BF7\u6C42\u7684key\uFF0C\u9ED8\u8BA4\u662Fkeyword"},name:"searchKey",default:"keyword","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true}}"}}},"x-designable-id":"5111aac9k"},backfillingSource:{type:"string",title:"\u56DE\u586B\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],default:"","x-component-props":{},"x-decorator-props":{tip:"\u76EE\u7684\u662F\u56DE\u586B\u5206\u9875\u4E0B\u62C9\u65F6\u6570\u636E\u56DE\u586B\u95EE\u9898\u3002\u4F1A\u5C06\u5F53\u524D\u503C\u4F20\u7ED9\u540E\u7AEF\uFF0C\u540E\u7AEF\u8FD4\u56DE\u7684opts\u6570\u636E\u4F1A\u548C\u539F\u59CB\u4E0B\u62C9\u6570\u636E\u6E90\u5408\u5E76\uFF0C\u5177\u4F53\u5B9E\u73B0\u53C2\u8003: https://alidocs.dingtalk.com/i/nodes/oP0MALyR8kzGnoOwF5Ka1dxwJ3bzYmDO"},name:"backfillingSource","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true}}"}}},"x-designable-id":"t0uv4o2222233238e9ds"},valueRenderCode:{title:"\u56DE\u586B\u663E\u793AKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u7528\u4E8E\u56DE\u586B\u503C\u65F6\uFF0C\u6307\u5B9A\u53E6\u4E00\u5B57\u6BB5\u503C\u8FDB\u884C\u9875\u9762\u663E\u793A"},name:"valueRenderCode",default:"","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true}}"}}}},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"placeholder",default:"\u8BF7\u9009\u62E9",description:"\u683C\u5F0F: \u5F00\u59CB\u65E5\u671F,\u7ED3\u675F\u65E5\u671F\u3002\u4E2D\u95F4\u4EE5\u82F1\u6587\u9017\u53F7\u9694\u5F00","x-designable-id":"bt66ecxl3px"},useDetailValue:{type:"string",title:"\u503C\u4E3A\u5BF9\u8C61","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"useDetailValue",default:!1,"x-designable-id":"bt66222xl3px"}},"x-designable-id":"u5ih0wihqbh"}},LI=(e,t)=>{const{mode:r,defaultValue:o}=e||{},i=r==="multiple";if(!i)return Array.isArray(o)&&(e.defaultValue=o.length!==0?o.join(","):""),e;const s=typeof o=="string"&&((o==null?void 0:o.startsWith(zr))||(o==null?void 0:o.startsWith(Ja))||(o==null?void 0:o.startsWith(Ga)));return i&&!t&&typeof o=="string"&&!s?e.defaultValue=e.defaultValue?e.defaultValue.split(","):[]:t&&Array.isArray(o)&&i&&(e.defaultValue=o.length!==0?o.join(","):""),e};var jI={dataAdaptor:LI,formilySchema:NI},YI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"5ic30uaac9k"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{defaultValue:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]}},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"}},"x-designable-id":"u5ih0wihqbh"}}),zI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"number",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},default:"\u8BF7\u8F93\u5165","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},max:{type:"number",title:"\u6700\u5927\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"max","x-designable-id":"uqm7q06jq7h"},min:{type:"number",title:"\u6700\u5C0F\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"min","x-designable-id":"mvrqq9snczf"},step:{type:"number",title:"\u6B65\u957F","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"step","x-designable-id":"mvrqq222"},precision:{type:"number",title:"\u4FDD\u7559\u51E0\u4F4D\u5C0F\u6570\u70B9","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],default:0,"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"precision","x-designable-id":"m111222nczf"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m"}},"x-designable-id":"loa7444w8t3"}}),HI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"number",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},default:"\u8BF7\u8F93\u5165","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},max:{type:"number",title:"\u6700\u5927\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"max","x-designable-id":"uqm7q06jq7h"},min:{type:"number",title:"\u6700\u5C0F\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"min","x-designable-id":"mvrqq9snczf"},step:{type:"number",title:"\u6B65\u957F","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"step","x-designable-id":"mvrqq222"},precision:{type:"number",title:"\u4FDD\u7559\u51E0\u4F4D\u5C0F\u6570\u70B9","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],default:0,"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"precision","x-designable-id":"m111222nczf"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m"}},"x-designable-id":"loa7444w8t3"}}),VI=()=>({form:{labelCol:6,wrapperCol:16,pattern:"editable"},schema:{type:"object",properties:{...pt(),format:{title:"\u65F6\u95F4\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{},name:"format",default:"HH:mm:ss",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"}],"x-designable-id":"v15ikv970as","x-index":0},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{tip:"\u8F93\u51FA\u683C\u5F0F\u53EA\u80FD\u662F\u7A7A \u6216\u8005 \u548C\u663E\u793A\u683C\u5F0F\u5316\u4E00\u81F4\uFF0C\u5426\u5219\u6E32\u67D3\u9519\u8BEF"},name:"outputFormat",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"},{label:"\u65F6\u95F4\u6233(\u6E05\u7A7A\u5373\u53EF)",value:""}],"x-designable-id":"sxb8qj22zzmz1"},disabledHours:{title:"\u4E0D\u53EF\u9009\u5C0F\u65F6","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple",hasSelectAll:!1,tagInline:!0,style:{width:"200px"}},"x-decorator-props":{},enum:[{children:[],label:"1",value:1},{children:[],label:"2",value:2},{children:[],label:"3",value:3},{children:[],label:"4",value:4},{children:[],label:"5",value:5},{children:[],label:"6",value:6},{children:[],label:"7",value:7},{children:[],label:"8",value:8},{children:[],label:"9",value:9},{children:[],label:"10",value:10},{children:[],label:"11",value:11},{children:[],label:"12",value:12}],name:"disabledHours","x-designable-id":"und4tb07kwb","x-index":2},defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"CnTimePickerPro","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy","x-index":3},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u9009\u62E9",name:"placeholder","x-designable-id":"bt66ecxl3px","x-index":4},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jdsx3d3zrua","x-index":5}},"x-designable-id":"loa7444w8t3"}}),UI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"object",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueDate","x-validator":[],"x-component-props":{isRange:!1},"x-decorator-props":{},name:"defaultValue",default:{type:"NOW"},"x-designable-id":"t0uv4o819uy"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},default:"\u8BF7\u9009\u62E9","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},format:{type:"string",title:"\u65E5\u671F\u663E\u793A\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"format",default:"YYYY/MM/DD",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"}],"x-designable-id":"sxb8qjzzmzk"},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"outputFormat",default:"timestamp",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"},{label:"\u65F6\u95F4\u6233",value:"timestamp"}],"x-designable-id":"sxb8qjzzmz1"},showTime:{type:"boolean",title:"\u662F\u5426\u663E\u793A\u65F6\u95F4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showTime","x-designable-id":"atio0qbel1n"},dateRange:{type:"string[]",title:"\u53EF\u9009\u65E5\u671F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",placeholder:"\u652F\u6301\u9009\u62E9\u548C\u81EA\u5B9A\u4E49\u6A21\u5757\u8F93\u5165"},"x-decorator-props":{},name:"dateRange",enum:[{label:"\u5168\u90E8\u53EF\u9009",value:"ALL_SELECTED"},{label:"\u4ECA\u65E5\u4E4B\u524D\u4E0D\u53EF\u9009",value:"BEFORE_NOW_DISABLED"},{label:"\u4ECA\u65E5\u4E4B\u540E\u4E0D\u53EF\u9009",value:"AFTER_NOW_DISABLED"},{label:"\u524D\u4E00\u5468\u53EF\u9009",value:"FORWARD_1_WEEK"},{label:"\u524D\u4E00\u4E2A\u6708\u53EF\u9009",value:"FORWARD_1_MONTH"},{label:"\u524D\u4E09\u4E2A\u6708\u53EF\u9009",value:"FORWARD_3_MONTH"},{label:"\u524D\u4E00\u5E74\u53EF\u9009",value:"FORWARD_1_YEAR"},{label:"\u540E\u4E00\u5468\u53EF\u9009",value:"BACKWARD_1_WEEK"},{label:"\u540E\u4E00\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_1_MONTH"},{label:"\u540E\u4E09\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_3_MONTH"},{label:"\u540E\u4E00\u5E74\u53EF\u9009",value:"BACKWARD_1_YEAR"}],"x-designable-id":"fkh6rbtovz6"},mode:{type:"string[]",title:"\u65E5\u671F\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode",default:"date",enum:[{label:"\u65E5\u671F",value:"date"},{label:"\u6708",value:"month"},{label:"\u5468",value:"week"},{label:"\u5B63\u5EA6",value:"quarter"},{label:"\u5E74",value:"year"}],"x-designable-id":"fkh6r234ovz6"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"gqfh1tekdw4"}},"x-designable-id":"loa7444w8t3"}}),qI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy","x-index":0},checkedChildren:{type:"string",title:"\u6253\u5F00\u65F6\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"checkedChildren","x-designable-id":"bt66ecxl3px","x-index":1},unCheckedChildren:{type:"string",title:"\u5173\u95ED\u65F6\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"unCheckedChildren","x-designable-id":"dfwy2zwgm0j","x-index":2},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m","x-index":3}},"x-designable-id":"loa7444w8t3"}}),WI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"5ic30uaac9k"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{defaultValue:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]}},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"}},"x-designable-id":"u5ih0wihqbh"}});const KI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue",description:"","x-designable-id":"t0uv4o8e9uy"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9"},default:"\u8BF7\u9009\u62E9","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},multiple:{type:"boolean",title:"\u662F\u5426\u591A\u9009","x-decorator":"CnFormItem","x-component":"Switch",default:!1,"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"multiple","x-designable-id":"y5mtbwr162t"},canOnlyCheckLeaf:{type:"boolean",title:"\u591A\u9009\u65F6\u53EA\u80FD\u9009\u4E2D\u53F6\u5B50\u8282\u70B9","x-decorator":"CnFormItem","x-component":"Switch",default:!1,"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"canOnlyCheckLeaf","x-designable-id":"y5mtbw2222222r162t","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"multiple",name:"multiple"}],fulfill:{state:{visible:"{{$deps.multiple === true}}"}}}},changeOnSelect:{type:"boolean",title:"\u9009\u62E9\u53CA\u6539\u53D8","x-decorator":"CnFormItem","x-component":"Switch",default:!1,"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"changeOnSelect","x-designable-id":"y5mtbw2222233322r162t","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"multiple",name:"multiple"}],fulfill:{state:{visible:"{{$deps.multiple === false}}"}}}},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],default:{type:"json",content:[{label:"\u9009\u98791",value:"1",children:[{label:"\u5B50\u9009\u9879",value:"3"}]},{label:"\u9009\u98792",value:"2"}]},"x-component-props":{},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},showSearch:{type:"boolean",title:"\u5F00\u542F\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showSearch",default:!0,"x-designable-id":"5icqqwaac9k"}},"x-designable-id":"loa7444w8t3"}},JI=(e,t)=>{const{multiple:r,defaultValue:o}=e||{},i=r===!0;if(!i)return Array.isArray(o)&&(e.defaultValue=o.length!==0?o.join(","):""),e;const s=typeof o=="string"&&((o==null?void 0:o.startsWith(zr))||(o==null?void 0:o.startsWith(Ja))||(o==null?void 0:o.startsWith(Ga)));return i&&!t&&typeof o=="string"&&!s?e.defaultValue=e.defaultValue?e.defaultValue.split(","):[]:t&&Array.isArray(o)&&i&&(e.defaultValue=o.length!==0?o.join(","):""),e};var GI={dataAdaptor:JI,formilySchema:KI},QI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"object",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueDate","x-validator":[],"x-component-props":{isRange:!1},"x-decorator-props":{},name:"defaultValue",default:{type:"NOW"},"x-designable-id":"t0uv4o819uy","x-index":0},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"placeholder",default:"\u8BF7\u9009\u62E9","x-designable-id":"bt66ecxl3px","x-index":1},format:{type:"string",title:"\u65E5\u671F\u663E\u793A\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"format",default:"YYYY/MM/DD",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"}],"x-designable-id":"sxb8qjzzmzk","x-index":2},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{tip:"\u62C6\u5206\u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9\u4E3A\u591A\u4E2A\u5165\u53C2\u8BF7\u53C2\u8003: https://yuque.antfin.com/docs/share/64ec82c7-13bf-4f71-a899-09915bb20c1c?# "},name:"outputFormat",default:"timestamp",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"},{label:"\u65F6\u95F4\u6233",value:"timestamp"}],"x-designable-id":"sxb8qjzzmzk","x-index":3},showTime:{type:"boolean",title:"\u662F\u5426\u663E\u793A\u65F6\u95F4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showTime","x-designable-id":"jr6tnw52im1","x-index":4},dateRange:{type:"string[]",title:"\u53EF\u9009\u65E5\u671F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",placeholder:"\u652F\u6301\u9009\u62E9\u548C\u81EA\u5B9A\u4E49\u6A21\u5757\u8F93\u5165"},"x-decorator-props":{},name:"dateRange",enum:[{label:"\u5168\u90E8\u53EF\u9009",value:"ALL_SELECTED"},{label:"\u4ECA\u65E5\u4E4B\u524D\u4E0D\u53EF\u9009",value:"BEFORE_NOW_DISABLED"},{label:"\u4ECA\u65E5\u4E4B\u540E\u4E0D\u53EF\u9009",value:"AFTER_NOW_DISABLED"},{label:"\u524D\u4E00\u5468\u53EF\u9009",value:"FORWARD_1_WEEK"},{label:"\u524D\u4E00\u4E2A\u6708\u53EF\u9009",value:"FORWARD_1_MONTH"},{label:"\u524D\u4E09\u4E2A\u6708\u53EF\u9009",value:"FORWARD_3_MONTH"},{label:"\u524D\u4E00\u5E74\u53EF\u9009",value:"FORWARD_1_YEAR"},{label:"\u540E\u4E00\u5468\u53EF\u9009",value:"BACKWARD_1_WEEK"},{label:"\u540E\u4E00\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_1_MONTH"},{label:"\u540E\u4E09\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_3_MONTH"},{label:"\u540E\u4E00\u5E74\u53EF\u9009",value:"BACKWARD_1_YEAR"},{label:"\u4E00\u5468\u533A\u95F4\u53EF\u9009",value:"BETWEEN_1_WEEK"},{label:"\u4E00\u4E2A\u6708\u533A\u95F4\u53EF\u9009",value:"BETWEEN_1_MONTH"},{label:"\u4E00\u5E74\u533A\u95F4\u53EF\u9009",value:"BETWEEN_1_YEAR"}],"x-designable-id":"fkh6rbtovz6","x-index":5},mode:{type:"string[]",title:"\u65E5\u671F\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode",default:"date",enum:[{label:"\u65E5\u671F",value:"date"},{label:"\u6708",value:"month"},{label:"\u5468",value:"week"},{label:"\u5B63\u5EA6",value:"quarter"},{label:"\u5E74",value:"year"}],"x-designable-id":"fkh6r234ovz6"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"gqfh1tekdw4","x-index":6},colSpan:{type:"number",title:"\u8DE8\u5217\u8BBE\u7F6E","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{tip:"\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E00\u884C\u4E00\u5217"},default:2,"x-designable-id":"r52k327v2zu3333311"}},"x-designable-id":"loa7444w8t3"}}),XI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyTR","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy","x-index":0},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"placeholder",default:"\u8BF7\u9009\u62E9",description:"\u683C\u5F0F: \u5F00\u59CB\u65F6\u95F4,\u7ED3\u675F\u65F6\u95F4\u3002\u4E2D\u95F4\u4EE5\u82F1\u6587\u9017\u53F7\u9694\u5F00","x-designable-id":"bt66ecxl3px","x-index":1},format:{type:"string",title:"\u65F6\u95F4\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},default:"HH:mm:ss",name:"format",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"}],"x-designable-id":"sxb8qjzzmzk","x-index":2},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{tip:"\u8F93\u51FA\u683C\u5F0F\u53EA\u80FD\u662F\u7A7A \u6216\u8005 \u548C\u663E\u793A\u683C\u5F0F\u5316\u4E00\u81F4\uFF0C\u5426\u5219\u6E32\u67D3\u9519\u8BEF"},name:"outputFormat",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"},{label:"\u65F6\u95F4\u6233(\u6E05\u7A7A\u5373\u53EF)",value:""}],"x-designable-id":"sxb8q33j22zzmz1"},disabledHours:{title:"\u4E0D\u53EF\u9009\u5C0F\u65F6","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple",hasSelectAll:!1,tagInline:!0,style:{width:"200px"}},"x-decorator-props":{},enum:[{children:[],label:"1",value:1},{children:[],label:"2",value:2},{children:[],label:"3",value:3},{children:[],label:"4",value:4},{children:[],label:"5",value:5},{children:[],label:"6",value:6},{children:[],label:"7",value:7},{children:[],label:"8",value:8},{children:[],label:"9",value:9},{children:[],label:"10",value:10},{children:[],label:"11",value:11},{children:[],label:"12",value:12}],name:"disabledHours","x-designable-id":"und4tb07kwb","x-index":3},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jdsx3d3zrua","x-index":5}},"x-designable-id":"loa7444w8t3"}}),ZI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9"},default:"\u8BF7\u9009\u62E9",name:"placeholder","x-decorator-props":{},"x-designable-id":"fgzs02l3sg2"},mode:{type:"string",title:"\u6570\u636E\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"api",enum:[{label:"API",value:"api"},{label:"CDN",value:"cdn"}],"x-validator":[],"x-component-props":{mode:"api"},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},baseUrl:{type:"string",title:"\u8BF7\u6C42\u57DF\u540D","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"baseUrl",default:"/base/api/v1","x-designable-id":"44dxrx59k4y","x-reactions":{dependencies:[{property:"value",type:"string",source:"mode",name:"mode"}],fulfill:{state:{visible:'{{$deps.mode === "api"}}'}}},required:!0},cdnUrl:{type:"string",title:"cdn\u5730\u5740",default:"https://division-data.alicdn.com/simple/addr_1_4_all.js","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{cdnUrl:"https://division-data.alicdn.com/simple/addr_1_4_all.js"},"x-decorator-props":{},name:"cdnUrl","x-designable-id":"44dxrx59k1y","x-reactions":{dependencies:[{property:"value",type:"string",source:"mode",name:"mode"}],fulfill:{state:{visible:'{{$deps.mode === "cdn"}}'}}},required:!0},multiple:{type:"boolean",title:"\u591A\u9009","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{multiple:!1},"x-decorator-props":{},default:!1,name:"multiple","x-designable-id":"bnxhtei07c4"},showTopLevel:{type:"boolean",title:"\u662F\u5426\u5148\u9009\u62E9\u56FD\u5BB6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!1,name:"showTopLevel","x-designable-id":"bnxht222111ei07c4"},iso:{type:"string",title:"\u9ED8\u8BA4\u56FD\u5BB6ISO","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u56FD\u5BB6\u7F16\u7801"},default:"CN",name:"iso","x-decorator-props":{tip:"\u9ED8\u8BA4\u4E2D\u56FDCN\u3002\u8BBE\u7F6E\u7A7A && \u5F00\u542F\u5148\u9009\u62E9\u56FD\u5BB6 \u8868\u793A\u9009\u62E9\u56FD\u5BB6\u3002 ISO\u5B57\u5178\u67E5\u770B: https://aliyuque.antfin.com/cndzk/fex/xc1vnw?"},"x-designable-id":"fgzssslls02l3sg2"},maxLevel:{type:"number",title:"\u6700\u5927\u5C42\u7EA7","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{maxLevel:4,max:5},"x-decorator-props":{},default:3,name:"maxLevel","x-designable-id":"5rff5nscn5n"},showSearch:{type:"boolean",title:"\u5F00\u542F\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!0,name:"showSearch","x-designable-id":"bnxhtei22207c1"},changeOnSelect:{type:"boolean",title:"\u9009\u62E9\u5373\u6539\u53D8","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{changeOnSelect:!1},"x-decorator-props":{},default:!1,name:"changeOnSelect","x-designable-id":"bnxhtei07c1"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"ff3dus7pijt"}},"x-designable-id":"yk7opli2cp8"}}),e4=({moduleDataSource:e={}})=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2223bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u8F93\u5165",name:"placeholder","x-designable-id":"f8sf666"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"3hv88e2efyl"},path:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"path",enum:(e==null?void 0:e.l4ModuleOptions)||[],default:"","x-designable-id":"9efgu22662lzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv42662o8e9uy"}},"x-designable-id":"loa748844w8t3"}});const Nf={input:ei,batchInput:PI,"input-textarea":d4(ei,{rows:{type:"number",title:"\u884C\u6570","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-component-props":{placeholder:"\u8BF7\u8F93\u5165",min:1,step:1,style:{width:"200px"}},name:"rows"}}),"input-password":ei,"number-picker":zI,"number-range-picker":HI,select:jI,"time-picker2":VI,"date-picker2":UI,switch:qI,radio:YI,"check-box":WI,"cascader-select":GI,"date-range-picker":QI,"time-range-picker":XI,"address-select":ZI,"import-component":e4},yp=Al(Nf),t4=Object.keys(yp).reduce((e,t)=>{var o,i,s;const r=yp[t];return(o=r==null?void 0:r.schema)!=null&&o.properties&&(r.schema.properties={...vp,...r.schema.properties}),(s=(i=r==null?void 0:r.formilySchema)==null?void 0:i.schema)!=null&&s.properties&&(r.formilySchema.schema.properties={...vp,...r.formilySchema.schema.properties}),{...e,[t]:r}},{});var n4=e=>{const{blocksDataSource:t=[]}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{blockPath:{title:"\u533A\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"blockPath",enum:(t==null?void 0:t.filter(r=>r.mddTemplateType==="blocks-table"))||[],default:"","x-designable-id":"9efgulzttsh"},parentDataIndex:{type:"string",title:"\u7236\u7EA7 dataIndex","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u6E32\u67D3\u533A\u5757\u7684\u6BCF\u4E2A\u5217\u65F6\uFF0C\u6307\u5B9A\u7236\u7EA7\u53D6\u503C\u7684key\u3002\u4F18\u5148\u7EA7 \u5927\u4E8E \u5F53\u524D\u5217\u914D\u7F6E\u7684dataIndex\u3002\u82E5\u5747\u4E3A\u914D\u7F6E \u5219\u9ED8\u8BA4\u5E73\u94FA\u3002\u4F8B\u5982\uFF1A\u533A\u5757\u5217\u4E2D\u7B2C\u4E00\u5217 \u7684 dataIndex \u4E3A name\uFF0CparentDataIndex \u4E3A ownerDto\uFF0C\u5219\u8BE5\u5217\u6E32\u67D3\u65F6\u7684\u5B9E\u9645 dataIndex \u4E3A ownerDto.name"},name:"parentDataIndex","x-designable-id":"sxbti2p222233122mzk"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD \u6574\u4E2A\u533A\u5757 \u662F\u5426\u6E32\u67D3"},name:"shouldRender"},"x-designable-id":"loa5555d8t3"}}}},r4=e=>{const{blocksDataSource:t=[]}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{blockPath:{title:"\u533A\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"blockPath",enum:(t==null?void 0:t.filter(r=>r.mddTemplateType==="blocks-filter"))||[],default:"","x-designable-id":"9efgulzttsh"},"x-designable-id":"loa5555d8t3"}}}},a4=e=>{const{blocksDataSource:t=[]}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{blockPath:{title:"\u533A\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"blockPath",enum:(t==null?void 0:t.filter(r=>r.mddTemplateType==="blocks-form"))||[],default:"","x-designable-id":"9efgulzttsh"},"x-designable-id":"loa5555d8t3"}}}},o4=e=>{const{blocksDataSource:t=[]}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{blockPath:{title:"\u533A\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"blockPath",enum:(t==null?void 0:t.filter(r=>r.mddTemplateType==="blocks-edit-table"))||[],default:"","x-designable-id":"9efgulzttsh"},"x-designable-id":"loa5555d8t3"}}}},l4={"blocks-table":n4,"blocks-filter":r4,"blocks-form":a4,"blocks-edit-table":o4},xp={f_gridSpan:{type:"number",title:"\u8DE8\u5217\u8BBE\u7F6E","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{tip:"\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E00\u884C\u4E00\u5217"},default:1,"x-designable-id":"r52k327v2zu"},f_pattern:{type:"string",title:"UI\u5F62\u6001","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"",name:"f_pattern",enum:[{label:"\u7EE7\u627F",value:""},{label:"\u53EF\u7F16\u8F91",value:"editable"},{label:"\u9605\u8BFB",value:"readPretty"},{label:"\u7981\u7528",value:"disabled"},{label:"\u53EA\u8BFB",value:"readOnly"}],"x-designable-id":"sxb8fjzzmzk"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbtips2zmzk"},leftRender:{type:"string",title:"\u5DE6\u4FA7\u81EA\u5B9A\u4E49\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u5DE6\u4FA7\u81EA\u5B9A\u4E49\u6E32\u67D3"},name:"leftRender","x-designable-id":"sxbtips2zmzk"},rightRender:{type:"string",title:"\u53F3\u4FA7\u81EA\u5B9A\u4E49\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u53F3\u4FA7\u81EA\u5B9A\u4E49\u6E32\u67D3"},name:"rightRender","x-designable-id":"sxbtips2zmzk"}},u4={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{icon:{type:"string",title:"\u56FE\u6807","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"icon","x-designable-id":"hso2ft3bll3"},cardTitleExtra:{type:"string",title:"\u5361\u7247\u6807\u9898\u989D\u5916\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-component-props":{placeholder:"\u4EE5\u81EA\u5B9A\u4E49\u6E32\u67D3\u6A21\u5F0F\u5B9A\u4E49"},"x-decorator-props":{tip:"\u4EE5\u81EA\u5B9A\u4E49\u6E32\u67D3\u6A21\u5F0F \u5B9A\u4E49"},name:"cardTitleExtra"},transparent:{type:"string",title:"\u80CC\u666F\u900F\u660E","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:!1,name:"transparent","x-designable-id":"f8sf3ednwf4"}},"x-designable-id":"loa7444w8t3"}},i4={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{icon:{type:"string",title:"\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"icon","x-designable-id":"hso2ft3bll3"},cardTitleExtra:{type:"string",title:"\u5361\u7247\u6807\u9898\u989D\u5916\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-component-props":{placeholder:"\u4EE5\u81EA\u5B9A\u4E49\u6E32\u67D3\u6A21\u5F0F\u5B9A\u4E49"},"x-decorator-props":{tip:"\u4EE5\u81EA\u5B9A\u4E49\u6E32\u67D3\u6A21\u5F0F \u5B9A\u4E49"},name:"cardTitleExtra"},transparent:{type:"string",title:"\u80CC\u666F\u900F\u660E","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:!1,name:"transparent","x-designable-id":"f8sf3ednwf4"}},"x-designable-id":"loa7444w8t3"}},s4=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"number",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},default:"\u8BF7\u8F93\u5165","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},defaultCountryCode:{type:"string",title:"\u9ED8\u8BA4\u56FD\u5BB6\u533A\u53F7","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],default:"86","x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},"x-designable-id":"jl0fyw111xdg12353m"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m"}},"x-designable-id":"loa7444w8t3"}}),c4={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{required:{type:"boolean",title:"\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"r52kt27v9zu"},serverI18nKey:{type:"string",title:"\u56FD\u9645\u5316KEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"},name:"serverI18nKey","x-designable-id":"sxbtip222233122mzk"},defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},service:{type:"string",title:"\u83B7\u53D6OSS\u51ED\u8BC1\u63A5\u53E3\u5730\u5740","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165,eg: https://example/getOssUploadParams"},"x-decorator-props":{tip:"\u63A5\u53E3\u89C4\u8303\u8BE6\u89C1: https://yuque.antfin.com/cn-ui/cn-ui-data-structure/cn-upload"},name:"service","x-designable-id":"hso2ft3bll3"},shape:{type:"string",title:"\u4E0A\u4F20\u6837\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"shape",default:"normal",enum:[{label:"\u666E\u901A\u4E0A\u4F20",value:"normal"},{label:"\u7B80\u6D01\u4E0A\u4F20",value:"mini"},{label:"\u62D6\u62FD\u4E0A\u4F20",value:"dragger"}],"x-designable-id":"sxb8qjzzmzk"},showUploadList:{type:"boolean",title:"\u662F\u5426\u6709\u6587\u4EF6\u5217\u8868","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showUploadList",default:!0,"x-designable-id":"1oxz0inalmf"},showPreview:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u6587\u4EF6\u9884\u89C8ICON","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!1,"x-component-props":{},"x-decorator-props":{},name:"showPreview","x-designable-id":"hgrh67bvlwc"},showRemove:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u5220\u9664\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},name:"showRemove","x-designable-id":"vbylh6fa2mb"},showDownload:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u4E0B\u8F7D\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},name:"showDownload","x-designable-id":"5tb55oy67tw"},multiple:{type:"boolean",title:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"multiple","x-designable-id":"jyl8akeqpkr"},accept:{type:"string",title:"\u63A5\u53D7\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8BE6\u89C1https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept"},name:"accept",description:"","x-designable-id":"wdi2j6qqy17"},limit:{type:"number",title:"\u4E0A\u4F20\u6587\u4EF6\u6570\u91CF\u9650\u5236","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"limit","x-designable-id":"auj6iuyrk8v"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbtip2222mzk"}},"x-designable-id":"loa7444w8t3"}};const Ep={...Al(Nf),"global-phone-picker":s4,message:Mf,upload:c4},cs=Object.keys(Ep).reduce((e,t)=>{const r=Ep[t];return typeof r=="function"?{...e,[t]:(...o)=>{const i=r(...o);return bp(i),i}}:(bp(r),{...e,[t]:r})},{});function bp(e){var t,r,o;(t=e==null?void 0:e.schema)!=null&&t.properties&&(e.schema.properties={...xp,...e.schema.properties}),(o=(r=e==null?void 0:e.formilySchema)==null?void 0:r.schema)!=null&&o.properties&&(e.formilySchema.schema.properties={...xp,...e.formilySchema.schema.properties})}cs.cncard=u4;cs["cncard-sub"]=i4;var Di={...t4,...qT,...kI,...l4};function d4(e,t){const r=JSON.parse(JSON.stringify(e()));return Object.entries(t).forEach(([o,i])=>{r.schema.properties[o]=i}),()=>r}function p4(){const[e,t]=M.useState({});return{dataMap:e,setDataMap:t,getModule:s=>e[s],setModule:(s,m)=>{e[s]=m,t({...e})},setModules:s=>{t({...Object.assign(e,s)})}}}var uo=us(p4);const m4="_mddTableForm_tl8oe_1",f4="_tableFormTitle_tl8oe_14",h4="_tableFormContent_tl8oe_20",g4="_tableFormBottom_tl8oe_34",v4="_itemTitle_tl8oe_41",y4="_itemComponent_tl8oe_70",x4="_itemLabel_tl8oe_76",E4="_collapseContent_tl8oe_81",b4="_itemClose_tl8oe_85";var Yt={mddTableForm:m4,tableFormTitle:f4,tableFormContent:h4,tableFormBottom:g4,itemTitle:v4,"drop-over-downward":"_drop-over-downward_tl8oe_62","drop-over-upward":"_drop-over-upward_tl8oe_66",itemComponent:y4,itemLabel:x4,collapseContent:E4,itemClose:b4};const Cp="PanelTitle",{Panel:C4}=h.Collapse,{Tooltip:F4}=h.Balloon,S4=e=>{const t=M.useRef(null),{data:r,onSortUpdate:o,index:i,draggable:s,onRemove:m,onChange:d,componentOptions:f,titleType:v=["label","name","type"],penetrateType:y,swaggerFieldDataSource:b,customRender:w}=e,[E,F]=M.useState(r),{label:k,name:C,type:T,groupKey:U}=E||{};M.useEffect(()=>{F(r)},[k,C,T,U,r]);const[{isOver:J},W]=ts({accept:Cp,collect(N){return{isOver:N.isOver()}},drop(N){const G=N.index;s&&o(G,i)}}),[{isDragging:K,sourceItem:L},S]=es({type:Cp,item:()=>({index:i}),collect:N=>({isDragging:N.isDragging(),sourceItem:N.getItem()})}),O=K?0:1;s&&S(W(t));const Y=(N,G)=>{if(E[N]=G,y&&N==="type"){const ie=Oe[G];ie&&(E[G]=ie);const re=BF[T];if(re)for(const _ of re)!["name"].includes(_)&&delete E[_]}F({...E}),d(E,N)},j=qi.bind(Yt)({itemTitle:"itemTitle","drop-over-upward":J&&i<L.index,"drop-over-downward":J&&i>L.index});return l.default.createElement("div",{ref:t,className:j,style:{cursor:s?"move":"default",opacity:O},onClick:N=>s&&N.stopPropagation()},w==null?void 0:w(e),v.includes("label")&&l.default.createElement(h.Input,{size:"small",value:k,onChange:N=>Y("label",N),placeholder:"\u8F93\u5165\u4E2D\u6587\u540D"}),v.includes("type")&&l.default.createElement("div",{className:Yt.itemComponent},l.default.createElement("label",{className:Yt.itemLabel},"\u7EC4\u4EF6: "),l.default.createElement(h.Select,{size:"small",autoWidth:!1,value:T,onChange:N=>Y("type",N)},f&&f.map(N=>l.default.createElement(h.Select.Option,{key:N.value,value:N.value},N.label)))),v.includes("name")&&l.default.createElement(h.Select.AutoComplete,{style:{width:"200px"},size:"small",dataSource:b,value:C,onChange:N=>Y("name",N),placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u53D8\u91CF\u540D"}),v.includes("groupKey")&&l.default.createElement("div",{className:Yt.itemComponent},l.default.createElement("label",{className:Yt.itemLabel},"\u5206\u7EC4: "),l.default.createElement(h.Input,{size:"small",value:U,onChange:N=>Y("groupKey",N),placeholder:"\u5206\u7EC4\u6807\u8BC6\uFF0C\u53EF\u4EE5\u662F\u4E2D\u6587\u3002\u76F8\u540C\u7684\u6807\u8BC6\u4F1A\u5408\u5E76\u6210\u529F\u80FD\u7EC4, \u6BD4\u5982\u591A\u4E2A\u6309\u94AE\u5408\u5E76\u6210\u6309\u94AE\u7EC4"})),l.default.createElement(h.Icon,{type:"close",size:"small",className:Yt.itemClose,onClick:m}))},D4=e=>{var L,S;const{values:t,effects:r,onChange:o,schema:i,index:s,extraFieldSchema:m,updateForceFLag:d,listSchema:f}=e,{type:v,label:y,name:b}=t,{formilySchema:w,dataAdaptor:E}=i||{},[F,k]=M.useState(za()),{dataMap:C,getModule:T}=uo(),U=T("$ModuleDataSource"),J=T("$BlocksDataSource");l.default.useEffect(Na(()=>{k(za())},500),[`${(L=e==null?void 0:e.values)==null?void 0:L.label}_${(S=e==null?void 0:e.values)==null?void 0:S.name}`]);const W=M.useMemo(()=>{const O=w4(w||i,{moduleDataSource:U,listSchema:f,blocksDataSource:J});return T4(O,m)},[w,i,m,U,F,f]),K=M.useMemo(()=>({values:E?E(t,!0):t,schema:W,effects:r,updateForceFLag:d,onChange:({record:Y})=>{const j=E?E(Y,!1):Y;o({record:j})},customComponents:{FormilyDS:xf,FormilyTR:bf,FormilyAddress:Cf,FormilyPS:Ef,FormilySelect:is,FormilyAjaxSchemaForm:Rf,FormilyTableFormProxy:ss,FormilyDynamicValueDate:Bf,FormilyDynamicValueBase:kf}}),[v,d,W]);return l.default.createElement("div",{className:Yt.collapseContent},l.default.createElement(_f,{...K,hiddenSubmit:!0}))};function A4(e,t){const{title:r="\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",tip:o="",actionContent:i=null,data:s=[],onChange:m=()=>{},onSort:d=z=>{},onAdd:f,onRemove:v,draggable:y=!0,titleType:b,penetrateType:w,effects:E={},swaggerFieldDataSource:F=[],extraFieldSchema:k,titleRender:C,hideAddButton:T}=e,[U,J]=M.useState(0),[W,K]=M.useState({}),L=M.useRef(s),S=M.useRef([]),O=M.useMemo(()=>w===io.FORM?{...Di,...cs}:Di,[]),Y=()=>{J(Math.random())},j=z=>{const D=S.current;S.current=z.map((R,Q)=>D[Q]||za())},N=z=>(S.current[z]||(S.current[z]=za()),S.current[z]),G=z=>{L.current=Array.isArray(z)?z:[],j(L.current),Y()};M.useEffect(()=>{L.current=Array.isArray(s)?s:[],j(L.current),Y()},[s]),M.useImperativeHandle(t,()=>({updateData:G}),[]);const ie=z=>{S.current.splice(z,1),v(z),Y()},re=()=>{f(),Y()},_=M.useCallback((z,D)=>{const R=Math.min(z,D),Q=Math.max(z,D);L.current.splice(D,0,L.current.splice(z,1)[0]);const B=S.current.splice(z,1)[0]||za();S.current.splice(D,0,B),d(L.current),Y();for(let q=R;q<=Q;q++)W[q]=Math.random();K({...W})},[L.current,d]),$=z=>{m(z),Y()};return l.default.createElement("div",{className:Yt.mddTableForm},l.default.createElement("div",{className:Yt.tableFormTitle},l.default.createElement("div",null,typeof r=="function"?r():r,o&&l.default.createElement(F4,{trigger:l.default.createElement(h.Icon,{type:"help",size:"small"}),align:"t"},o)),i&&l.default.createElement("div",{className:Yt.tableFormAction},i)),l.default.createElement("div",{className:Yt.tableFormContent},l.default.createElement(Ol,null,l.default.createElement(h.Collapse,{accordion:!0},L.current.map((z,D)=>l.default.createElement(C4,{key:N(D),title:l.default.createElement(S4,{index:D,draggable:y,onChange:(R,Q)=>{const{type:B,name:q,label:ee,groupKey:oe,...de}=L.current[D],Be={...R,...de};$({index:D,record:Be})},swaggerFieldDataSource:F,onRemove:()=>ie(D),data:z,onSortUpdate:_,penetrateType:w,titleType:b,componentOptions:e.componentOptions,customRender:C})},l.default.createElement(D4,{updateForceFLag:W[D],values:z,index:D,schema:O[z.type],extraFieldSchema:k,effects:E,listSchema:L.current,onChange:({record:R})=>{const{type:Q,name:B,label:q,groupKey:ee,...oe}=L.current[D],de={...R,label:q,name:B,groupKey:ee};w&&(de[Q]=oe[Q]),$({index:D,record:de})}})))))),!T&&l.default.createElement("div",{className:Yt.tableFormBottom},l.default.createElement(h.Button,{onClick:re,style:{padding:"0 48px"}},"\u6DFB\u52A0\u9879")))}function w4(e,t={}){return typeof e=="function"?e(t):e}function T4(e,t){var r;if(((r=e==null?void 0:e.schema)==null?void 0:r.properties)&&t){const o=Al(e);return o.schema.properties={...e.schema.properties,...t},o}return e}function za(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e=="x"?t:t&3|8;return r.toString(16)})}const io={FILTER:"filter",FORM:"form"};var dt=M.forwardRef(A4);const I4="_mddForm_1e2nn_1",_4="_FormTitle_1e2nn_20",$4="_FormTitleHelp_1e2nn_24",O4="_FormContent_1e2nn_30",R4="_content_1e2nn_35";var Pa={mddForm:I4,FormTitle:_4,FormTitleHelp:$4,FormContent:O4,content:R4};const B4=e=>{const{values:t,index:r,effects:o,onChange:i,schema:s}=e,m=M.useMemo(()=>({values:t,schema:s,effects:o,index:r,onChange:i,customComponents:{FormilyDS:xf,FormilyTR:bf,FormilyAddress:Cf,FormilyPS:Ef,FormilySelect:is,FormilyAjaxSchemaForm:Rf,FormilyTableFormProxy:ss,FormilyDynamicValueDate:Bf,FormilyDynamicValueBase:kf}}),[s]);return l.default.createElement("div",{className:Pa.content},l.default.createElement(_f,{...m,hiddenSubmit:!0}))};function Wn(e){const{title:t="\u914D\u7F6E\u5206\u9875",help:r,data:o={},type:i,onChange:s=()=>{},effects:m={},children:d,style:f,contentStyle:v}=e;return l.default.createElement("div",{className:Pa.mddForm,style:f},l.default.createElement("div",{className:Pa.FormTitle},t),r&&l.default.createElement("div",{className:Pa.FormTitleHelp},r),l.default.createElement("div",{className:Pa.FormContent,style:v},d||l.default.createElement(B4,{values:o,schema:Di[i],effects:m,onChange:({index:y,record:b})=>s({index:y,record:b})})))}const ds=[{value:"cncard",label:"\u5361\u7247"},{value:"cncard-sub",label:"\u5B50\u5361\u7247"},{value:"input",label:"\u8F93\u5165\u6846"},{value:"batchInput",label:"\u6279\u91CF\u8F93\u5165\u6846"},{value:"input-textarea",label:"\u6587\u672C\u6846"},{value:"number-picker",label:"\u6570\u5B57\u6846"},{value:"number-range-picker",label:"\u6570\u5B57\u533A\u95F4\u6846"},{value:"select",label:"\u4E0B\u62C9\u6846"},{value:"cascader-select",label:"\u7EA7\u8054\u4E0B\u62C9\u6846"},{value:"time-picker2",label:"\u65F6\u95F4\u9009\u62E9"},{value:"date-picker2",label:"\u65E5\u671F\u9009\u62E9"},{value:"switch",label:"\u5F00\u5173"},{value:"radio",label:"\u5355\u9009"},{value:"check-box",label:"\u591A\u9009"},{value:"date-range-picker",label:"\u65E5\u671F\u8303\u56F4"},{value:"time-range-picker",label:"\u65F6\u95F4\u8303\u56F4"},{value:"address-select",label:"\u5730\u5740\u9009\u62E9"},{value:"upload",label:"OSS\u4E0A\u4F20"},{value:"import-component",label:"\u81EA\u5B9A\u4E49\u6A21\u5757"}],so=[...ds];so.splice(3,0,{value:"input-password",label:"\u5BC6\u7801\u8F93\u5165\u6846"});so.splice(3,0,{value:"message",label:"\u4FE1\u606F\u63D0\u793A"});so.splice(3,0,{value:"global-phone-picker",label:"\u56FD\u9645\u7535\u8BDD\u8F93\u5165\u6846"});const Lf=[{value:"text",label:"\u6587\u672C"},{value:"tooltip-text",label:"\u8D85\u957F\u6587\u672C"},{value:"num",label:"\u6570\u503C"},{value:"tag",label:"\u6807\u7B7E"},{value:"single-enum",label:"\u679A\u4E3E"},{value:"date",label:"\u65F6\u95F4\u5C55\u793A"},{value:"tpl",label:"\u6A21\u677F\u8868\u8FBE\u5F0F"},{value:"clipboard",label:"\u53EF\u590D\u5236\u5230\u526A\u5207\u677F"},{value:"list",label:"\u7B80\u5355\u5217\u8868"},{value:"images",label:"\u9644\u4EF6/\u56FE\u7247"},{value:"custom",label:"\u81EA\u5B9A\u4E49"}],Ml=[...Lf,{value:"cn-tag",label:"\u6807\u7B7EV2"},{value:"cn-number",label:"\u7B80\u5355\u6570\u503C"},{value:"cn-graphics-percent",label:"\u8FDB\u5EA6\u6761"},{value:"cn-image-text",label:"\u56FE\u7247\u6587\u672C"},{value:"cn-bank",label:"\u94F6\u884C\u5361\u53F7"},{value:"blocks-table",label:"\u5217\u8868\u533A\u5757"}],jf=[{value:"text",label:"\u6587\u672C"},{value:"edit-input",label:"\u8F93\u5165\u6846"},{value:"edit-batch-input",label:"\u6279\u91CF\u8F93\u5165\u6846"},{value:"edit-number-picker",label:"\u6570\u503C\u8F93\u5165\u6846"},{value:"edit-select",label:"\u4E0B\u62C9\u9009\u62E9\u6846"},{value:"edit-date-picker",label:"\u65E5\u671F\u9009\u62E9"},{value:"edit-time-picker",label:"\u65F6\u95F4\u9009\u62E9"},{value:"edit-address-select",label:"\u5730\u5740\u9009\u62E9"},{value:"edit-cascader-select",label:"\u7EA7\u8054\u9009\u62E9\u5668"},{value:"upload",label:"OSS\u4E0A\u4F20"},{value:"blocks-table",label:"\u5217\u8868\u533A\u5757"},{value:"blocks-edit-table",label:"\u53EF\u7F16\u8F91\u8868\u683C\u533A\u5757"},{value:"edit-custom",label:"\u81EA\u5B9A\u4E49"}],k4=[{label:"\u4E0A\u65B9(\u63A8\u8350)",value:"top"},{label:"\u5DE6\u8FB9",value:"left"}],M4={type:"input",label:"\u8F93\u5165\u6846",name:"",input:Oe.input},Ai=[{label:"\u4E0D\u5F00\u542F",value:""},{label:"\u5F00\u542F\u5BA2\u6237\u7AEF\u7F13\u5B58",value:"local"},{label:"\u5F00\u542F\u670D\u52A1\u7AEF\u7F13\u5B58",value:"server"}],P4=[{label:"\u81EA\u9002\u5E94",value:0},{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",value:5},{label:"6",value:6},{label:"7",value:7},{label:"8",value:8}];function Yf({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{const y=(b,w)=>{!w&&i({})};return e.on("$updated",y),()=>{e.off("$updated",y)}},[e]);const s=e.get("fields"),m=()=>{var y;(y=r.current)==null||y.updateData(e.get("fields"))},d=()=>{e.add(M4,!0),m()},f=y=>{e.remove(y,!0),m()},v=({index:y,record:b})=>{for(const w in Oe)b.type!==w&&!["name"].includes(w)&&delete b[w];e.update(y,b,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s,penetrateType:io.FILTER,componentOptions:[...ds,{value:"blocks-filter",label:"\u7B5B\u9009\u9879\u533A\u5757"}],title:"\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",onAdd:d,onRemove:f,onChange:v,swaggerFieldDataSource:t,onSort:y=>{e.setFieldsAll(y,!0)}}),l.default.createElement(Wn,{title:"\u57FA\u7840\u6837\u5F0F\u914D\u7F6E"},l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(y,b)=>{e.set(b.name,b.value)}},l.default.createElement(h.Form.Item,{label:"\u9ED8\u8BA4\u5C55\u5F00:",name:"defaultExpand",help:"\u4EC5\u5728 \u65B0\u7248\u5E03\u5C40\u4E2D\u751F\u6548"},l.default.createElement(h.Switch,{defaultChecked:e.get("defaultExpand")})),l.default.createElement(h.Form.Item,{label:"\u6587\u672C\u4F4D\u7F6E:",name:"labelAlign"},l.default.createElement(h.Select,{dataSource:k4,defaultValue:e.get("labelAlign")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u6700\u5927\u884C\u6570:",name:"maxVisibleRow"},l.default.createElement(h.NumberPicker,{defaultValue:e.get("maxVisibleRow")})),l.default.createElement(h.Form.Item,{label:"\u6BCF\u884C\u663E\u793A\u5217\u6570:",name:"col"},l.default.createElement(h.Select,{defaultValue:e.get("col"),dataSource:P4})),l.default.createElement(h.Form.Item,{label:"label\u5BBD\u5EA6:",name:"labelSpan",help:"\u5BBD\u5EA6\u4E3A 20 * {\u56FA\u5B9Alabel\u5BBD\u5EA6\u503C}\uFF0C\u6587\u672C\u4F4D\u7F6E\u5DE6\u8FB9\u7684\u65F6\u5019\u6709\u6548"},l.default.createElement(h.NumberPicker,{defaultValue:e.get("labelSpan"),min:0,max:24})),l.default.createElement(h.Form.Item,{label:"\u7F13\u5B58key:",name:"storageKey",help:"\u81EA\u5DF1\u5B9A\u4E49\u9009\u9879\u4E2D\uFF0C\u672C\u5730\u7F13\u5B58\u7684key\u952E\uFF0C\u4FDD\u8BC1\u5168\u5C40\u552F\u4E00\u5373\u53EF"},l.default.createElement(h.Input,{defaultValue:e.get("storageKey")})),l.default.createElement(h.Form.Item,{label:"\u7F13\u5B58\u65B9\u5F0F:",name:"enableSaveSelected",help:l.default.createElement("span",null,"\u67E5\u8BE2\u6761\u4EF6\u7684\u7F13\u5B58\u65B9\u5F0F\uFF1A\u4E0D\u542F\u52A8\u3001\u672C\u5730localStorage\u7F13\u5B58 \u548C \u670D\u52A1\u7AEF\u63A5\u53E3\u7F13\u5B58, \u53C2\u8003:"," ",l.default.createElement("a",{href:"https://alidocs.dingtalk.com/i/nodes/Obva6QBXJwxNZoMOC34Bmylx8n4qY5Pr"},"\u6587\u6863"))},l.default.createElement(h.Select,{style:{width:"300px"},dataSource:Ai,defaultValue:N4(e.get("enableSaveSelected"))})))))}function N4(e){return typeof e=="boolean"?e===!0?Ai[1].value:Ai[0].value:e}function zf({schema:e,moduleMap:t}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{const b=(w,E)=>{!E&&i({})};return e.on("$updated",b),()=>{e.off("$updated",b)}},[e]);const s=e.getData(),m=()=>{var b;(b=r.current)==null||b.updateData(e.getData())},d=()=>{e.add({type:"button",actionType:"url",label:"\u64CD\u4F5C",name:""},!0),m()},f=b=>{e.remove(b,!0),m()},v=({index:b,record:w})=>{e.update(b,w,!0)},y=t==null?void 0:t.get("$QuickAction");return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s,title:"\u914D\u7F6E\u5168\u5C40\u64CD\u4F5C",actionContent:typeof y=="function"?y({schema:e,refresh:m}):null,titleType:["label","groupKey"],onAdd:d,onRemove:f,onChange:v,onSort:b=>{e.updateAll(b,!0)}}))}function L4({schema:e,swaggerFields:t=[]}){var z;const r=l.default.useRef(),o=l.default.useRef(),i=l.default.useRef(),s=l.default.useRef(),[m,d]=M.useState({}),[f,v]=M.useState(!!((z=e.get("rowDetailModule"))!=null&&z.path));M.useEffect(()=>{const D=(R,Q)=>{!Q&&d({})};return e.on("$updated",D),j4(e),()=>{e.off("$updated",D)}},[e]);const y=e.get("primaryKey"),b=e.get("bulkActions"),w=e.get("columns"),E=e.get("actionColumns"),F=e.get("rowDoubleClick"),k=e.get("pagination"),C=e.get("tree"),T=e.get("showIndex"),U=e.get("hideCommonToolbar"),J=e.get("actionMaxCharNum"),W=e.get("actionWidth"),K=e.get("showSelect"),L=e.get("rowDetailModule"),S=e.get("remoteSort"),O=e.get("treeLinkageCheck"),Y=e.getLoadChildrenDataApiPanel(),j=D=>{var R,Q,B,q;switch(D){case"bulkActions":e.add({type:"button",action:{type:"url",params:{ids:"$TABLE.SELECTED_KEY_DATA"}},label:"\u64CD\u4F5C",name:""},"bulkActions",!0),(R=o.current)==null||R.updateData(e.get("bulkActions"));break;case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),(Q=r.current)==null||Q.updateData(e.get("columns"));break;case"actionColumns":e.add({type:"button",action:{type:"url",params:{record:"$TABLE.RECORD_DATA"}},label:"\u64CD\u4F5C",name:""},"actionColumns",!0),(B=i.current)==null||B.updateData(e.get("actionColumns"));break;case"rowDoubleClick":e.add({type:"button",action:{type:"url",params:{record:"$TABLE.RECORD_DATA"}}},"rowDoubleClick",!0),(q=s.current)==null||q.updateData(e.get("rowDoubleClick"));break}},N=(D,R)=>{var Q,B,q,ee;e.remove(D,R,!0),R==="bulkActions"?(Q=o.current)==null||Q.updateData(e.get("bulkActions")):R==="columns"?(B=r.current)==null||B.updateData(e.get("columns")):R==="actionColumns"?(q=i.current)==null||q.updateData(e.get("actionColumns")):R==="rowDoubleClick"&&((ee=s.current)==null||ee.updateData(e.get("rowDoubleClick")))},G=({index:D,record:R},Q)=>{e.update(D,R,Q,!0)},ie=D=>{e.update("",D?Number(D):"","actionMaxCharNum")},re=D=>{e.update("",D?Number(D):"","actionWidth")},_=(D,R)=>{e.update("",R,D)},$=D=>{v(D),D||(G({},"rowDetailModule"),_("rowDetailDefaultOpenAll",!1))};return l.default.createElement("div",null,l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u4E3B\u952E\uFF1A"),l.default.createElement(h.Input,{value:y,size:"small",onChange:D=>_("primaryKey",D)})),l.default.createElement(dt,{ref:o,data:b,title:"\u914D\u7F6E\u6279\u91CF\u64CD\u4F5C",titleType:["label","groupKey"],onAdd:()=>j("bulkActions"),onRemove:D=>N(D,"bulkActions"),onChange:({index:D,record:R})=>G({index:D,record:R},"bulkActions"),onSort:D=>{e.setItemAll(D,"bulkActions",!0)}}),l.default.createElement(dt,{ref:r,data:w,title:"\u914D\u7F6E\u8868\u683C\u5217",componentOptions:Ml,onAdd:()=>j("columns"),onRemove:D=>N(D,"columns"),onChange:({index:D,record:R})=>G({index:D,record:R},"columns"),swaggerFieldDataSource:t,onSort:D=>{e.setItemAll(D,"columns",!0)}}),l.default.createElement(dt,{ref:i,data:E,title:"\u914D\u7F6E\u64CD\u4F5C\u5217",titleType:["label"],onAdd:()=>j("actionColumns"),onRemove:D=>N(D,"actionColumns"),onChange:({index:D,record:R})=>G({index:D,record:R},"actionColumns"),onSort:D=>{e.setItemAll(D,"actionColumns",!0)}}),l.default.createElement(dt,{ref:s,data:F,title:()=>{var D;return l.default.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},"\u914D\u7F6E\u884C\u53CC\u51FB\u4E8B\u4EF6",l.default.createElement(h.CnSwitch,{size:"small",checked:((D=e.get("rowDoubleClick"))==null?void 0:D.length)>0,onChange:R=>{R?j("rowDoubleClick"):N(0,"rowDoubleClick")}}),l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.Icon,{type:"prompt"})},"\u884C\u53CC\u51FB\u4E8B\u4EF6 \u548C \u64CD\u4F5C\u5217\u6309\u94AE \u914D\u7F6E\u4FDD\u6301\u4E00\u81F4\uFF0C\u4E0B\u9762 \u5173\u4E8E\u6309\u94AE\u7684\u914D\u7F6E \u5747\u4F1A\u5931\u6548\uFF0C\u8BF7\u53EA\u5173\u6CE8 \u53CC\u51FB \u8981\u6267\u884C\u7684\u4E8B\u4EF6\u672C\u8EAB"))},titleType:[],draggable:!1,titleRender:()=>"\u884C\u53CC\u51FB \u4E8B\u4EF6\u914D\u7F6E",onRemove:()=>{},onChange:({index:D,record:R})=>G({index:D,record:R},"rowDoubleClick")}),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u64CD\u4F5C\u5217\u6309\u94AE\u6700\u957F\u5B57\u7B26\u6570\uFF1A"),l.default.createElement(h.NumberPicker,{value:J,size:"small",onChange:ie,min:1,max:10}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8D85\u957F\u90E8\u5206\u4F1A\u663E\u793A\u4E3A\u201C...\u201D[\u6CE8\u610F\uFF1A\u9700\u5168\u5C40\u5F00\u542F\u914D\u7F6E\u540E \u6B64\u9879\u751F\u6548\uFF1B\u5728\u4F4E\u7248\u672C CN-UI \u4E0A\u4E0D\u751F\u6548\uFF0C\u5982 \u5B9E\u65BD\u5DE5\u4F5C\u53F0\uFF1B\u53EF\u80FD\u4F1A\u5BF9\u4E00\u7801\u591A\u7AEF\u6548\u679C\u9020\u6210\u5F71\u54CD\uFF0C\u614E\u7528]")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u64CD\u4F5C\u5217\u5BBD\u5EA6\uFF1A"),l.default.createElement(h.Input,{value:W,size:"small",onChange:re}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u9ED8\u8BA4\u4E0D\u8BBE\u7F6E\u662F\u81EA\u52A8\u8BA1\u7B97\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u6307\u5B9A\u5BBD\u5EA6")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u6700\u5927\u9AD8\u5EA6\uFF1A"),l.default.createElement(h.NumberPicker,{value:e.get("maxHeight"),size:"small",onChange:D=>_("maxHeight",D),min:0}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)")),l.default.createElement(Wn,{contentStyle:{padding:"10px"},data:k,type:"pagination",title:"\u914D\u7F6E\u5206\u9875",onChange:({index:D,record:R})=>G({index:D,record:R},"pagination")}),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u5F00\u542F\u81EA\u5B9A\u4E49\u884C\u8BE6\u60C5\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:f,size:"small",onChange:$}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u975E\u6811\u5F62\u7684\u7236\u5B50\u5173\u7CFB\uFF0C\u53EF\u4EE5\u4F7F\u7528\u8BE5\u914D\u7F6E\uFF0C\u53EF\u4EE5\u5185\u5D4C\u81EA\u5B9A\u4E49\u5B50\u6A21\u5757, \u5185\u7F6E\u6A21\u5757\u63A5\u6536\u989D\u5916\u4E24\u4E2A\u53C2\u6570:row, rowIndex")),f&&l.default.createElement(Wn,{contentStyle:{padding:"10px"},data:L,type:"moduleImport",title:"\u914D\u7F6E\u884C\u8BE6\u60C5",onChange:({index:D,record:R})=>G({index:D,record:R},"rowDetailModule")}),f&&l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u884C\u8BE6\u60C5\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u5168\u90E8\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("rowDetailDefaultOpenAll"),size:"small",onChange:D=>_("rowDetailDefaultOpenAll",D)})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u6811\u5F62\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:C,size:"small",onChange:D=>_("tree",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u6811\u5F62\u7ED3\u6784\u9ED8\u8BA4\u5B50\u8282\u70B9KEY\u4E3Achildren , \u5F00\u542F\u540E\u4E5F\u53EF\u901A\u8FC7\u4E0B\u9762\u7684\u61D2\u52A0\u8F7D\u8BBE\u7F6E\u6539\u6210\u61D2\u52A0\u8F7D\u6A21\u5F0F\uFF0C\u4E0D\u914D\u7F6E\u5219\u9700\u8981\u4E00\u6B21\u6027\u8FD4\u56DE\u6811\u5F62\u6570\u636E")),C&&l.default.createElement("div",{style:{marginLeft:"20px",marginBottom:8,display:"flex"}},l.default.createElement("label",null,"\u7236\u5B50\u8282\u70B9\u7EA7\u8054\u52FE\u9009\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:O,size:"small",onChange:D=>_("treeLinkageCheck",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," ","\u7236\u8282\u70B9\u52FE\u9009\u9ED8\u8BA4\u4F1A\u52FE\u9009\u6240\u6709\u5B50\u8282\u70B9,\u5B50\u8282\u70B9\u52FE\u9009\u9ED8\u8BA4\u4F1A\u52FE\u4E0A\u7236\u8282\u70B9\u3010\u5FC5\u987B\u914D\u7F6E\u552F\u4E00\u4E3B\u952E\uFF0C\u4E0D\u652F\u6301\u5F02\u6B65\u6570\u636E\u3011")),C&&l.default.createElement("div",{style:{marginLeft:"20px",marginBottom:8,display:"flex"}},l.default.createElement("label",null,"\u5B50\u8282\u70B9\u61D2\u52A0\u8F7D\u914D\u7F6E\uFF1A"),l.default.createElement("div",null,l.default.createElement(cn,{schema:Y,isSelectType:!1}),l.default.createElement("span",{className:"mdd-tip",style:{padding:0}},l.default.createElement(h.Icon,{type:"prompt"})," \u5B50\u8282\u70B9\u901A\u8FC7ajax\u8BF7\u6C42\u52A0\u8F7D\uFF0CdataSource\u9700\u8981\u8FD4\u56DE hasChildren:true \u624D\u4F1A\u6709\u5B50\u8282\u70B9\u5C55\u5F00\u7BAD\u5934"))),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u663E\u793A\u5E8F\u53F7\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:T,size:"small",onChange:D=>_("showIndex",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7"," ")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:U,size:"small",onChange:D=>_("hideCommonToolbar",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u662F\u5426\u9690\u85CFtable\u9876\u90E8\u64CD\u4F5C\u533A\u7684\u901A\u7528\u64CD\u4F5C\u6309\u94AE\uFF0C\u6BD4\u5982\u5168\u5C4F\u3001\u6591\u9A6C\u7EBF\u3001\u5217\u8BBE\u7F6E\u3001\u5C3A\u5BF8\u7B49")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u53EF\u9009\u62E9\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:K,size:"small",onChange:D=>_("showSelect",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u9ED8\u8BA4\u662F\u6279\u91CF\u64CD\u4F5C\u6309\u94AE\u63A7\u5236\uFF0C \u4E5F\u53EF\u4EE5\u5728\u6CA1\u6709\u6279\u91CF\u64CD\u4F5C\u6309\u94AE\u65F6\uFF0C\u663E\u793A\u52FE\u9009\u529F\u80FD")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u8FDC\u7A0B\u6392\u5E8F\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:S,size:"small",onChange:D=>_("remoteSort",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8FDC\u7A0B\u6392\u5E8F\u9700\u8981\u5728\u6570\u636E\u6E90\u4E2D\u914D\u7F6E\u8BF7\u6C42\u53C2\u6570\uFF0C\u652F\u6301\u5355\u5B57\u6BB5\u6392\u5E8F\u548C\u591A\u5B57\u6BB5\u6392\u5E8F\uFF0C\u53C2\u8003",l.default.createElement("a",{href:"https://alidocs.dingtalk.com/i/nodes/ZK0RbznqyYaWdyw4p2pPV953mBE4AdDw",target:"_blank",rel:"noreferrer"},"\u6587\u6863"))),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u5217\u5934\u7B5B\u9009\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("filter"),size:"small",onChange:D=>_("filter",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u7B5B\u9009")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u591A\u7EF4\u6307\u6807\u6392\u5E8F\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("customSort"),size:"small",onChange:D=>{_("customSort",D),!D&&_("customSortStorage","")}}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u6392\u5E8F"),e.get("customSort")&&l.default.createElement(h.Input,{style:{marginLeft:8},value:e.get("customSortStorage"),size:"small",placeholder:"\u8DDF\u968F\u9875\u9762\u7F13\u5B58",onChange:D=>{_("customSortStorage",D)}})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u5217\u5934\u590D\u5236\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("copy"),size:"small",onChange:D=>_("copy",D)})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u865A\u62DF\u6EDA\u52A8\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("useVirtual"),size:"small",onChange:D=>_("useVirtual",D)})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u81EA\u52A8\u5217\u5BBD\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("columnsAutoWidth"),size:"small",onChange:D=>_("columnsAutoWidth",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u5982\u679C\u6709\u6027\u80FD\u95EE\u9898\u53EF\u4EE5\u5173\u95ED\u8BE5\u5C5E\u6027\uFF0C\u540C\u65F6\u624B\u52A8\u8BBE\u7F6E\u5217\u5BBD")))}function j4(e){e.get("rowDetail")&&e.set("rowDetail",void 0)}var wi={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(S){return typeof S=="object"&&!("toString"in S)?Object.prototype.toString.call(S).slice(8,-1):S}var o=typeof process=="object"&&!0;function i(S,O){if(!S)throw o?new Error("Invariant failed"):new Error(O())}t.invariant=i;var s=Object.prototype.hasOwnProperty,m=Array.prototype.splice,d=Object.prototype.toString;function f(S){return d.call(S).slice(8,-1)}var v=Object.assign||function(S,O){return y(O).forEach(function(Y){s.call(O,Y)&&(S[Y]=O[Y])}),S},y=typeof Object.getOwnPropertySymbols=="function"?function(S){return Object.keys(S).concat(Object.getOwnPropertySymbols(S))}:function(S){return Object.keys(S)};function b(S){return Array.isArray(S)?v(S.constructor(S.length),S):f(S)==="Map"?new Map(S):f(S)==="Set"?new Set(S):S&&typeof S=="object"?v(Object.create(Object.getPrototypeOf(S)),S):S}var w=function(){function S(){this.commands=v({},E),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(O,Y){return O===Y},this.update.newContext=function(){return new S().update}}return Object.defineProperty(S.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(O){this.update.isEquals=O},enumerable:!0,configurable:!0}),S.prototype.extend=function(O,Y){this.commands[O]=Y},S.prototype.update=function(O,Y){var j=this,N=typeof Y=="function"?{$apply:Y}:Y;Array.isArray(O)&&Array.isArray(N)||i(!Array.isArray(N),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),i(typeof N=="object"&&N!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(j.commands).join(", ")+".")});var G=O;return y(N).forEach(function(ie){if(s.call(j.commands,ie)){var re=O===G;G=j.commands[ie](N[ie],G,N,O),re&&j.isEquals(G,O)&&(G=O)}else{var _=f(O)==="Map"?j.update(O.get(ie),N[ie]):j.update(O[ie],N[ie]),$=f(G)==="Map"?G.get(ie):G[ie];(!j.isEquals(_,$)||typeof _=="undefined"&&!s.call(O,ie))&&(G===O&&(G=b(O)),f(G)==="Map"?G.set(ie,_):G[ie]=_)}}),G},S}();t.Context=w;var E={$push:function(S,O,Y){return k(O,Y,"$push"),S.length?O.concat(S):O},$unshift:function(S,O,Y){return k(O,Y,"$unshift"),S.length?S.concat(O):O},$splice:function(S,O,Y,j){return T(O,Y),S.forEach(function(N){U(N),O===j&&N.length&&(O=b(j)),m.apply(O,N)}),O},$set:function(S,O,Y){return W(Y),S},$toggle:function(S,O){C(S,"$toggle");var Y=S.length?b(O):O;return S.forEach(function(j){Y[j]=!O[j]}),Y},$unset:function(S,O,Y,j){return C(S,"$unset"),S.forEach(function(N){Object.hasOwnProperty.call(O,N)&&(O===j&&(O=b(j)),delete O[N])}),O},$add:function(S,O,Y,j){return L(O,"$add"),C(S,"$add"),f(O)==="Map"?S.forEach(function(N){var G=N[0],ie=N[1];O===j&&O.get(G)!==ie&&(O=b(j)),O.set(G,ie)}):S.forEach(function(N){O===j&&!O.has(N)&&(O=b(j)),O.add(N)}),O},$remove:function(S,O,Y,j){return L(O,"$remove"),C(S,"$remove"),S.forEach(function(N){O===j&&O.has(N)&&(O=b(j)),O.delete(N)}),O},$merge:function(S,O,Y,j){return K(O,S),y(S).forEach(function(N){S[N]!==O[N]&&(O===j&&(O=b(j)),O[N]=S[N])}),O},$apply:function(S,O){return J(S),S(O)}},F=new w;t.isEquals=F.update.isEquals,t.extend=F.extend,t.default=F.update,t.default.default=e.exports=v(t.default,t);function k(S,O,Y){i(Array.isArray(S),function(){return"update(): expected target of "+r(Y)+" to be an array; got "+r(S)+"."}),C(O[Y],Y)}function C(S,O){i(Array.isArray(S),function(){return"update(): expected spec of "+r(O)+" to be an array; got "+r(S)+". Did you forget to wrap your parameter in an array?"})}function T(S,O){i(Array.isArray(S),function(){return"Expected $splice target to be an array; got "+r(S)}),U(O.$splice)}function U(S){i(Array.isArray(S),function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(S)+". Did you forget to wrap your parameters in an array?"})}function J(S){i(typeof S=="function",function(){return"update(): expected spec of $apply to be a function; got "+r(S)+"."})}function W(S){i(Object.keys(S).length===1,function(){return"Cannot have more than one key in an object with $set"})}function K(S,O){i(O&&typeof O=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+r(O)}),i(S&&typeof S=="object",function(){return"update(): $merge expects a target of type 'object'; got "+r(S)})}function L(S,O){var Y=f(S);i(Y==="Map"||Y==="Set",function(){return"update(): "+r(O)+" expects a target of type Set or Map; got "+r(Y)})}})(wi,wi.exports);var Hf=Xh(wi.exports);const Y4="_mddTableArray_16ght_1",z4="_tableArrayTitle_16ght_14",H4="_tableArrayContent_16ght_18",V4="_tableArrayBottom_16ght_32",U4="_itemTitle_16ght_39",q4="_collapseContent_16ght_69",W4="_itemClose_16ght_73";var mr={mddTableArray:Y4,tableArrayTitle:z4,tableArrayContent:H4,tableArrayBottom:V4,itemTitle:U4,"drop-over-downward":"_drop-over-downward_16ght_61","drop-over-upward":"_drop-over-upward_16ght_65",collapseContent:q4,itemClose:W4};const Fp="TableArrayPanelTitle",{Panel:K4}=h.Collapse,J4=e=>{const t=M.useRef(null),{data:r,onSortUpdate:o,index:i,draggable:s,onRemove:m,onChange:d,customRender:f=()=>{},otherInfo:v}=e,{dataMap:y,getModule:b}=uo(),w=b("$ModuleDataSource"),[{isOver:E},F]=ts({accept:Fp,collect(W){return{isOver:W.isOver()}},drop(W){const K=W.index;s&&o(K,i)}}),[{isDragging:k,sourceItem:C},T]=es({type:Fp,item:()=>({index:i}),collect:W=>({isDragging:W.isDragging(),sourceItem:W.getItem()})}),U=k?0:1;s&&T(F(t));const J=qi.bind(mr)({itemTitle:"itemTitle","drop-over-upward":E&&i<C.index,"drop-over-downward":E&&i>C.index});return l.default.createElement("div",{ref:t,className:J,style:{cursor:s?"move":"default",opacity:U},onClick:W=>W.stopPropagation()},f&&f({data:r,index:i,onChange:d,moduleDataSource:w,otherInfo:v}),l.default.createElement(h.Icon,{type:"close",size:"small",className:mr.itemClose,onClick:m}))};function Vf(e){var F;const{title:t="",tip:r,data:o=[],onChange:i=()=>{},onSort:s=()=>{},onAdd:m,onRemove:d,draggable:f=!0,titleRender:v,contentRender:y,otherInfo:b}=e,w=M.useCallback((k,C)=>{const T=Hf(o,{$splice:[[k,1],[C,0,o[k]]]});s(T,k,C)},[o,s]),E=({index:k,record:C})=>{o.splice(k,1,C),i({record:C,index:k,data:o})};return l.default.createElement("div",{className:mr.mddTableArray},l.default.createElement("div",{className:mr.tableArrayTitle},t,r&&l.default.createElement(h.Balloon,{trigger:l.default.createElement(h.Icon,{type:"help",size:"small"}),align:"t"},r)),l.default.createElement("div",{className:mr.tableArrayContent},l.default.createElement(Ol,null,l.default.createElement(h.Collapse,{accordion:!0},(F=o==null?void 0:o.map)==null?void 0:F.call(o,(k,C)=>l.default.createElement(K4,{title:l.default.createElement(J4,{index:C,draggable:f,onChange:T=>{E({index:C,record:T})},onRemove:()=>d(C),data:k,onSortUpdate:w,customRender:v,otherInfo:b})},l.default.createElement("div",{className:mr.collapseContent},y({data:k,index:C,onChange:E,otherInfo:b}))))))),l.default.createElement("div",{className:mr.tableArrayBottom},l.default.createElement(h.Button,{onClick:m,style:{padding:"0 48px"}},"\u6DFB\u52A0\u9879")))}const G4="_customTabItem_119xt_1",Q4="_tabTitle_119xt_5",X4="_tabLabel_119xt_9",Z4="_middleBox_119xt_20",e3="_middleBoxLeft_119xt_26",t3="_middleBoxRight_119xt_31";var lt={customTabItem:G4,tabTitle:Q4,tabLabel:X4,middleBox:Z4,middleBoxLeft:e3,middleBoxRight:t3};const n3=[{label:"FTP\u591A\u6807\u7B7E",value:"ftp-tabs"}];function r3(e){const{schema:t}=e,[r,o]=l.default.useState({});l.default.useEffect(()=>{const f=(v,y)=>{!y&&o({})};return t.on("$updated",f),()=>{t.off("$updated",f)}},[t]);const i=()=>{t.addMiddle(),o({})},s=f=>{t.removeMiddle(f),o({})},m=({index:f,record:v,data:y})=>{t.updateMiddle(f,v),o({})},d=(f,v,y)=>{t.sortMiddle(v,y),o({})};return l.default.createElement("div",null,l.default.createElement(Vf,{data:t.getMiddlePanel(),titleRender:a3,contentRender:o3,title:"\u914D\u7F6E\u4E2D\u95F4\u6A21\u5757\u533A\u57DF",onChange:m,onSort:d,onAdd:i,onRemove:s}))}function a3(e){const{data:t,index:r}=e;return l.default.createElement("div",null,"\u4E2D\u95F4\u6A21\u5757",r+1)}function o3(e){const{data:t,index:r,onChange:o}=e,i=(m,d)=>{t.set(m,d),o({index:r,record:t})},s=t.get("value");return l.default.createElement("div",null,l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u6E32\u67D3\u6A21\u5757\uFF1A"),l.default.createElement(h.Select.AutoComplete,{dataSource:n3,size:"small",className:lt.middleBoxRight,value:s,onChange:m=>i("value",m)})),l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u6A21\u5757\u53C2\u6570\uFF1A"),l.default.createElement(Un,{className:lt.middleBoxRight,value:t.get("params"),onChange:m=>i("params",m)})),s==="ftp-tabs"&&l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u63A5\u53E3\u8BF7\u6C42KEY\uFF1A"),l.default.createElement(h.Input,{className:lt.middleBoxRight,value:t.get("dataIndex"),size:"small",onChange:m=>i("dataIndex",m)})),l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u9ED8\u8BA4\u503C\uFF1A"),l.default.createElement(Si,{className:lt.middleBoxRight,value:t.get("defaultTabValue"),size:"small",onChange:m=>i("defaultTabValue",m)})),l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u591A\u6807\u7B7E\u6570\u636E\u6E90\uFF1A"),l.default.createElement("div",{className:lt.middleBoxRight},l.default.createElement(cn,{schema:t.getSourcePanel(),isSelectType:!1}),l.default.createElement("span",{className:"mdd-tip",style:{padding:0}},l.default.createElement(h.Icon,{type:"prompt"})," \u652F\u6301\u7EAF\u9759\u6001\u6807\u7B7E\u548C\u63A5\u53E3\u52A8\u6001\u6807\u7B7E\uFF0C\u4F7F\u7528\u6307\u5357\u53C2\u8003",l.default.createElement("a",{href:"https://alidocs.dingtalk.com/i/nodes/dpYLaezmVNRMGX56C1ZxqyYdVrMqPxX6"},"\u6587\u6863"))))))}const l3=({title:e,icon:t})=>l.default.createElement("div",{className:lt.customTabItem},l.default.createElement("div",{className:lt.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:lt.tabLabel},e)));function Uf({schema:e,moduleMap:t}){const{getApiFields:r}=pn(),o=e.getDataSourcePanel(),{parameterFields:i=[],responseFields:s=[]}=l.default.useMemo(()=>r(o==null?void 0:o.getApiUrl(),"ftp")||{},[o,r]);return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(m,d)=>l.default.createElement(l3,{key:m,...d})},l.default.createElement(h.Tab.Item,{title:"\u641C\u7D22\u533A",icon:"search"},l.default.createElement(Yf,{schema:e.getFilterPanel(),swaggerFields:i})),l.default.createElement(h.Tab.Item,{title:"\u4E2D\u95F4\u6A21\u5757\u533A",icon:"flag"},l.default.createElement(r3,{schema:e,moduleMap:t})),l.default.createElement(h.Tab.Item,{title:"\u9876\u90E8\u64CD\u4F5C\u533A",icon:"set"},l.default.createElement(zf,{schema:e.getHeaderToolbarPanel(),moduleMap:t})),l.default.createElement(h.Tab.Item,{title:"\u5185\u5BB9\u533A",icon:"detail"},l.default.createElement(L4,{schema:e.getTablePanel(),swaggerFields:s,moduleMap:t})),l.default.createElement(h.Tab.Item,{title:"\u4E3B\u6570\u636E\u6E90",icon:"filter"},l.default.createElement("div",{style:{marginLeft:"10px"}},l.default.createElement("div",{style:{marginBottom:8}},l.default.createElement("label",null,"\u5217\u8868\u6570\u636E\u6E90\uFF1A")),l.default.createElement(cn,{hasDelete:!0,schema:e.getDataSourcePanel(),isSelectType:!1}))))}function u3({schema:e}){const t=l.default.useRef(),[r,o]=M.useState({});M.useEffect(()=>{e.on("$updated",(f,v)=>{!v&&o({})}),i3(e)},[]);const i=e.get("columns"),s=f=>{var v;switch(f){case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),(v=t.current)==null||v.updateData(e.get("columns"));break}},m=(f,v)=>{var y;e.remove(f,v,!0),v==="columns"&&((y=t.current)==null||y.updateData(e.get("columns")))},d=({index:f,record:v},y)=>{e.update(f,v,y,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:t,data:i,title:"\u914D\u7F6E\u8868\u683C\u5217",componentOptions:Ml.filter(f=>f.value!=="blocks-table"),onAdd:()=>s("columns"),onRemove:f=>m(f,"columns"),onChange:({index:f,record:v})=>d({index:f,record:v},"columns"),onSort:f=>{e.setItemAll(f,"columns",!0)}}))}function i3(e){e.get("rowDetail")&&e.set("rowDetail",void 0)}const s3={type:"input",label:"\u8F93\u5165\u6846",name:"",input:Oe.input};function c3({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(y,b)=>{!b&&i({})})},[]);const s=e.get("fields"),m=()=>{var y;(y=r.current)==null||y.updateData(e.get("fields"))},d=()=>{e.add(s3,"fields",!0),m()},f=y=>{e.remove(y,"fields",!0),m()},v=({index:y,record:b})=>{for(const w in Oe)b.type!==w&&!["name"].includes(w)&&delete b[w];e.update(y,b,"fields",!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s,penetrateType:io.FILTER,componentOptions:ds,title:"\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",onAdd:d,onRemove:f,onChange:v,swaggerFieldDataSource:t,onSort:y=>{e.setFieldsAll(y,!0)}}))}const d3={type:"input",label:"\u8F93\u5165\u6846",name:"",input:Oe.input};function p3({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(y,b)=>{!b&&i({})})},[]);const s=e.get("fields"),m=()=>{var y;(y=r.current)==null||y.updateData(e.get("fields"))},d=()=>{e.add(d3,"fields",!0),m()},f=y=>{e.remove(y,"fields",!0),m()},v=({index:y,record:b})=>{for(const w in Oe)b.type!==w&&!["name"].includes(w)&&delete b[w];e.update(y,b,"fields",!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s,penetrateType:io.FORM,componentOptions:so,title:"\u914D\u7F6E\u8868\u5355\u9879",onAdd:d,onRemove:f,onChange:v,swaggerFieldDataSource:t,onSort:y=>{e.setFieldsAll(y,!0)}}))}function m3({schema:e}){const t=l.default.useRef(),[r,o]=M.useState({});M.useEffect(()=>{e.on("$updated",(f,v)=>{!v&&o({})})},[]);const i=e.get("columns"),s=f=>{var v;switch(f){case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),(v=t.current)==null||v.updateData(e.get("columns"));break}},m=(f,v)=>{var y;e.remove(f,v,!0),(y=t.current)==null||y.updateData(e.get("columns"))},d=({index:f,record:v},y)=>{e.update(f,v,y,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:t,data:i,title:"\u914D\u7F6E\u53EF\u7F16\u8F91\u8868\u683C\u5217",componentOptions:jf.filter(f=>!["blocks-edit-table","blocks-table"].includes(f.value)),onAdd:()=>s("columns"),onRemove:f=>m(f,"columns"),onChange:({index:f,record:v})=>d({index:f,record:v},"columns"),onSort:f=>{e.setItemAll(f,"columns",!0)}}))}const f3="_customTabItem_119xt_1",h3="_tabTitle_119xt_5",g3="_tabLabel_119xt_9",v3="_middleBox_119xt_20",y3="_middleBoxLeft_119xt_26",x3="_middleBoxRight_119xt_31";var ti={customTabItem:f3,tabTitle:h3,tabLabel:g3,middleBox:v3,middleBoxLeft:y3,middleBoxRight:x3};const E3={"blocks-table":u3,"blocks-filter":c3,"blocks-form":p3,"blocks-edit-table":m3},b3={"blocks-table":"\u5217\u8868\u9879","blocks-filter":"\u641C\u7D22\u9879","blocks-form":"\u8868\u5355\u9879","blocks-edit-table":"\u53EF\u7F16\u8F91\u8868\u683C\u9879"},C3=({title:e,icon:t})=>l.default.createElement("div",{className:ti.customTabItem},l.default.createElement("div",{className:ti.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:ti.tabLabel},e)));function ul({schema:e,moduleMap:t}){const r=E3[e.type];return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(o,i)=>l.default.createElement(C3,{key:o,...i})},l.default.createElement(h.Tab.Item,{title:b3[e.type],icon:"detail"},l.default.createElement(r,{schema:e.getPanel()})))}const F3="_mddTableArray_16ght_1",S3="_tableArrayTitle_16ght_14",D3="_tableArrayContent_16ght_18",A3="_tableArrayBottom_16ght_32",w3="_itemTitle_16ght_39",T3="_collapseContent_16ght_69",I3="_itemClose_16ght_73";var fr={mddTableArray:F3,tableArrayTitle:S3,tableArrayContent:D3,tableArrayBottom:A3,itemTitle:w3,"drop-over-downward":"_drop-over-downward_16ght_61","drop-over-upward":"_drop-over-upward_16ght_65",collapseContent:T3,itemClose:I3};const Sp="TableArrayPanelTitle",{Panel:_3}=h.Collapse,$3=e=>{const t=M.useRef(null),{data:r,onSortUpdate:o,index:i,draggable:s,onRemove:m,onChange:d,customRender:f=()=>{}}=e,[{isOver:v},y]=ts({accept:Sp,collect(C){return{isOver:C.isOver()}},drop(C){const T=C.index;s&&o(T,i)}}),[{isDragging:b,sourceItem:w},E]=es({type:Sp,item:()=>({index:i}),collect:C=>({isDragging:C.isDragging(),sourceItem:C.getItem()})}),F=b?0:1;s&&E(y(t));const k=qi.bind(fr)({itemTitle:"itemTitle","drop-over-upward":v&&i<w.index,"drop-over-downward":v&&i>w.index});return l.default.createElement("div",{ref:t,className:k,style:{cursor:s?"move":"default",opacity:F},onClick:C=>C.stopPropagation()},f&&f({data:r,index:i,onChange:d}),l.default.createElement(h.Icon,{type:"close",size:"small",className:fr.itemClose,onClick:m}))},O3=e=>e.reduce((t,r)=>({...t,[r.value]:r}),{});function R3(e){const{title:t="\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",data:r=[],onChange:o=()=>{},onSort:i=()=>{},onAdd:s,onRemove:m,draggable:d=!0,typeContent:f=[],titleRender:v}=e,[y]=M.useState(()=>O3(f)),b=M.useCallback((E,F)=>{const k=Hf(r,{$splice:[[E,1],[F,0,r[E]]]});i(k,E,F)},[r,i]),w=({index:E,record:F})=>{r.splice(E,1,F),o({record:F,index:E,data:r})};return l.default.createElement("div",{className:fr.mddTableArray},l.default.createElement("div",{className:fr.tableArrayTitle},t),l.default.createElement("div",{className:fr.tableArrayContent},l.default.createElement(Ol,null,l.default.createElement(h.Collapse,{accordion:!0},r.map((E,F)=>{var C;const k=E instanceof tt?E.get("type"):E==null?void 0:E.type;return l.default.createElement(_3,{title:l.default.createElement($3,{index:F,draggable:d,onChange:T=>{w({index:F,record:T})},onRemove:()=>m(F),data:E,onSortUpdate:b,typeContent:f,customRender:v})},l.default.createElement("div",{className:fr.collapseContent},(C=y[k])==null?void 0:C.contentRender({data:E,index:F,onChange:w})))})))),l.default.createElement("div",{className:fr.tableArrayBottom},l.default.createElement(h.Button,{onClick:s,style:{padding:"0 48px"}},"\u6DFB\u52A0\u9879")))}function Qa({schema:e,generateFastJson:t,single:r=!1,isUnCipher:o=!1,onChange:i=()=>{},defaultJsonSource:s={}}){const[m,d]=l.default.useState({}),f=(e==null?void 0:e.get(o?"unCipherSource":"source"))||[];return l.default.useEffect(()=>{e.on("$updated",()=>{d({})})},[e]),l.default.createElement(h.Box,{align:"center"},f.map((v,y)=>l.default.createElement(h.Box,{direction:"row",style:{width:"100%"}},l.default.createElement("div",{style:{flex:1}},l.default.createElement(cn,{onChange:b=>{o?e.updateUnCipherSource(y,b):e.updateSource(y,b),i(y,b)},defaultValue:v,generateFastJson:t})),l.default.createElement(h.Button,{style:{marginLeft:"24px"},warning:!0,onClick:()=>{o?e.removeUnCipherSource(y):e.removeSource(y)}},l.default.createElement(h.Icon,{type:"ashbin"})))),(r&&f.length===0||!r)&&l.default.createElement(h.Button,{style:{width:"140px"},onClick:()=>{const v={type:"json",content:s||{}};o?e.addUnCipherSource(v):e.addSource(v)}},"\u6DFB\u52A0\u9879"))}function co({schema:e}){const t=l.default.useRef(),[r,o]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(v,y)=>{!y&&o({})})},[]);const i=e.getActionsData(),s=()=>{var v;(v=t.current)==null||v.updateData(e.getActionsData())},m=()=>{e.addActions({type:"button",actionType:"url",label:"\u64CD\u4F5C",name:""},!0),s()},d=v=>{e.removeActions(v,!0),s()},f=({index:v,record:y})=>{e.updateActions(v,y,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:t,data:i,title:"\u914D\u7F6E\u5361\u7247\u53F3\u4FA7\u64CD\u4F5C",tip:"\u5361\u7247\u53F3\u4FA7\u6309\u94AE\u5728\u5206\u7EC4\u914D\u7F6E\u4E0B\u4F1A\u53D6\u6D88, \u5982\u679C\u9700\u8981\u64CD\u4F5C\u6309\u94AE\uFF0C\u4E0D\u8981\u505A\u5206\u7EC4\u5408\u5E76",titleType:["label"],onAdd:m,onRemove:d,onChange:f,onSort:v=>{e.updateAllActions(v,!0)}}))}const qf=[...Lf];qf.splice(5,0,{value:"message",label:"\u4FE1\u606F\u63D0\u793A"});const B3={renderToTitle:{title:"\u6E32\u67D3\u5230\u6807\u9898","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u5C06\u5F53\u524D\u8282\u70B9\u6E32\u67D3\u5230\u6807\u9898\u4E0A\uFF0C\u5E38\u7528\u4E8E\u6807\u7B7E\u6E32\u67D3"},name:"renderToTitle",default:!1,"x-designable-id":"sudwfyc22222333333211"}};function k3(e){const{data:t,index:r,onChange:o}=e,[i,s]=l.default.useState({}),{swaggerInfo:m,getApiFields:d}=pn(),f=l.default.useRef(),v=l.default.useRef();l.default.useEffect(()=>{v.current=m},[m]);const y=t.getFirstSourceApiUrl(),{responseFields:b=[]}=l.default.useMemo(()=>d(y,"detail")||{},[y,d]),w=()=>{t.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns")},E=T=>{t.remove(T,"columns")},F=({index:T,record:U})=>{t.update(T,U,"columns")},k=l.default.useCallback(T=>{if(T==="record"){const U=t.get("columns"),J={};return U.forEach(W=>{J[W.name]=`$PARAMS.record.${W.name}`}),JSON.stringify(J,""," ")}return"{}"},[]),C=(T,U)=>{const{type:J,url:W,formatResponseData:K}=U||{};!J||J!=="ajax"||h.Dialog.confirm({title:"\u63D0\u793A",content:"\u9700\u8981\u6839\u636E\u63A5\u53E3\u521D\u59CB\u5316\u914D\u7F6E\u5417\uFF1F",onOk:()=>{var Y;const L=Kt(W,v.current),{responses:S}=L||{},O=ht(S,"responses","detail",K==null?void 0:K.detailData);t.setFieldsAll(O),s({}),(Y=f.current)==null||Y.updateData(t.get("columns"))}})};return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(T,U)=>{t.set(U.name,U.value),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u5206\u7EC4\u5207\u6362\u5237\u65B0:",name:"groupToggleRefresh"},l.default.createElement(h.CnSwitch,{defaultChecked:t.get("groupToggleRefresh")})),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u6BCF\u884C\u663E\u793A\u5217\u6570:",name:"col"},l.default.createElement(h.CnNumberPicker,{defaultValue:t.get("col")})),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u8BE6\u60C5\u5361\u7247\u5C3A\u5BF8:",name:"size"},l.default.createElement(h.CnRadioGroup,{defaultValue:t.get("size")},l.default.createElement(h.CnRadio,{value:"normal"},"\u6B63\u5E38"),l.default.createElement(h.CnRadio,{value:"large"},"\u5927\u53F7"))),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u521D\u59CB\u6570\u636E\u6E90",tip:"\u540C\u540D\u5C5E\u6027\u8986\u76D6\u987A\u5E8F\uFF1A\u4ECE\u4E0B\u81F3\u4E0A"},l.default.createElement(Qa,{schema:t,generateFastJson:k,onChange:C})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u660E\u6587\u6570\u636E\u6E90",tip:"\u540C\u540D\u5C5E\u6027\u8986\u76D6\u987A\u5E8F\uFF1A\u4ECE\u4E0B\u81F3\u4E0A"},l.default.createElement(Qa,{schema:t,isUnCipher:!0,generateFastJson:k})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u5217\u4FE1\u606F\u914D\u7F6E"},l.default.createElement(dt,{ref:f,data:t.get("columns"),title:"",extraFieldSchema:B3,swaggerFieldDataSource:b,componentOptions:qf,onAdd:()=>w(),onRemove:T=>E(T),onChange:({index:T,record:U})=>F({index:T,record:U}),onSort:T=>{t.setItemAll(T,"columns")}})),l.default.createElement(co,{schema:t}))}const M3=["https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?1654831339341","https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp"];function P3(e){const{data:t,index:r,onChange:o}=e,i=l.default.useCallback(s=>{if(s==="record"){const m={images:"$PARAMS.record.images"};return JSON.stringify(m,""," ")}return"{}"},[]);return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(s,m)=>{const{name:d,value:f}=m;let v=f;["itemWidth","itemHeight"].includes(d)&&(v=Number(f)),t.set(d,v),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{label:"\u5206\u7EC4\u5207\u6362\u5237\u65B0:",name:"groupToggleRefresh"},l.default.createElement(h.Switch,{defaultChecked:t.get("groupToggleRefresh")})),l.default.createElement(h.Form.Item,{label:"\u521D\u59CB\u6570\u636E\u6E90",help:l.default.createElement(l.default.Fragment,null,"\u56FE\u7247json\u683C\u5F0F\u53C2\u8003:",l.default.createElement("a",{href:"https://yuque.antfin-inc.com/docs/share/b6f2b791-3535-4579-a1e9-278057589f6e?# \u300ASchema\u300B",target:"_blank",rel:"noreferrer"},"schema"))},l.default.createElement(Qa,{single:!0,schema:t,generateFastJson:i,defaultJsonSource:M3})),l.default.createElement(h.Form.Item,{label:"\u7F29\u7565\u56FE\u5BBD\u5EA6:",name:"itemWidth"},l.default.createElement(h.Input,{defaultValue:t.get("itemWidth"),placeholder:"\u8BF7\u8F93\u5165\u7F29\u7565\u56FE\u5BBD\u5EA6, eg: 100",style:{width:"200px"}})),l.default.createElement(h.Form.Item,{label:"\u7F29\u7565\u56FE\u9AD8\u5EA6:",name:"itemHeight"},l.default.createElement(h.Input,{defaultValue:t.get("itemHeight"),placeholder:"\u8BF7\u8F93\u5165\u7F29\u7565\u56FE\u9AD8\u5EA6, eg: 100",style:{width:"200px"}})),l.default.createElement(co,{schema:t}))}function N3(e){const{data:t,index:r,onChange:o}=e,[i,s]=l.default.useState({}),{swaggerInfo:m,getApiFields:d}=pn(),f=l.default.useRef(),v=l.default.useRef();l.default.useEffect(()=>{v.current=m},[m]);const y=t.getFirstSourceApiUrl(),{responseFields:b=[]}=l.default.useMemo(()=>d(y,"ftp")||{},[y,d]),w=()=>{t.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns")},E=W=>{t.remove(W,"columns")},F=({index:W,record:K})=>{t.update(W,K,"columns")},k=({index:W,record:K})=>{t.updatePagination({defaultPageSize:K==null?void 0:K.defaultPageSize,paging:K==null?void 0:K.paging}),s({})},C=(W,K)=>{const{type:L,url:S,formatResponseData:O}=K||{};!L||L!=="ajax"||h.Dialog.confirm({title:"\u63D0\u793A",content:"\u9700\u8981\u6839\u636E\u63A5\u53E3\u521D\u59CB\u5316\u914D\u7F6E\u5417\uFF1F",onOk:()=>{var Y;try{const j=Kt(S,v.current),{responses:N}=j||{},G=ht(N,"responses","ftp",O==null?void 0:O.tableData);t.setFieldsAll(G),(Y=f.current)==null||Y.updateData(t.get("columns")),s({})}catch(j){console.warn(j),h.CnMessage.error(j.message)}}})},T=l.default.useCallback(W=>{if(W==="record"){const K={tableData:"$PARAMS.record.tableData"};return JSON.stringify(K,""," ")}return"{}"},[]),U=t.get("pagination");return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(W,K)=>{t.set(K.name,K.value),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u5206\u7EC4\u5207\u6362\u5237\u65B0:",name:"groupToggleRefresh"},l.default.createElement(h.Switch,{defaultChecked:t.get("groupToggleRefresh")})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u521D\u59CB\u6570\u636E\u6E90"},l.default.createElement(Qa,{single:!0,schema:t,onChange:C,generateFastJson:T})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u5217\u4FE1\u606F\u914D\u7F6E"},l.default.createElement(dt,{ref:f,data:t.get("columns"),title:"",swaggerFieldDataSource:b,componentOptions:Ml,onAdd:()=>w(),onRemove:W=>E(W),onChange:({index:W,record:K})=>F({index:W,record:K}),onSort:W=>{t.setItemAll(W,"columns")}})),l.default.createElement(co,{schema:t}),l.default.createElement(Wn,{data:U,type:"pagination",title:"\u914D\u7F6E\u5206\u9875",onChange:({index:W,record:K})=>k({index:W,record:K})}),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A:",name:"hideCommonToolbar"},l.default.createElement(h.Switch,{autoWidth:!0,size:"small",defaultChecked:t.get("hideCommonToolbar")})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u6700\u5927\u9AD8\u5EA6\uFF1A"),l.default.createElement(h.NumberPicker,{value:t.get("maxHeight"),size:"small",onChange:W=>J("maxHeight",W),min:0}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)")));function J(W,K){t.update("",K,W),o({index:r,record:t})}}function L3(e){var s;const{data:t,index:r,onChange:o}=e,{getModule:i}=uo();return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(m,d)=>{t.set(d.name,d.value),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{label:"\u5206\u7EC4\u5207\u6362\u5237\u65B0:",name:"groupToggleRefresh"},l.default.createElement(h.Switch,{defaultChecked:t.get("groupToggleRefresh")})),l.default.createElement(h.Form.Item,{label:"\u9875\u9762\u5730\u5740:",name:"path"},l.default.createElement(h.Select.AutoComplete,{style:{width:"100%"},defaultValue:t.get("path"),dataSource:((s=i("$ModuleDataSource"))==null?void 0:s.l4ModuleOptions)||[]})),l.default.createElement(h.Form.Item,{label:l.default.createElement("div",null,"\u8BF7\u6C42\u53C2\u6570",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:""},l.default.createElement(Un,{keyTitle:"key(\u53C2\u6570\u540D)",valueTitle:"value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",value:t.get("params"),onChange:m=>{t.set("params",m)}})),l.default.createElement(co,{schema:t}))}function j3(e){const{data:t,index:r,onChange:o}=e;return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small"},l.default.createElement(h.Form.Item,{label:l.default.createElement("div",null,"\u6570\u636E\u6E90",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://alidocs.dingtalk.com/i/nodes/N7dx2rn0JbxOaqnACjApgxgNWMGjLRb3",title:"\u6570\u636E\u683C\u5F0F\u6587\u6863",className:"help-link"},"(\u63A5\u53E3\u683C\u5F0F)")),name:"source"},l.default.createElement(Qa,{schema:t,single:!0})))}const Y3="_title_10adh_1",z3="_titleItem_10adh_7",H3="_titleItemLabel_10adh_12";var ka={title:Y3,titleItem:z3,titleItemLabel:H3};const{Panel:V3}=h.Collapse;function U3(e){const{data:t,index:r,onChange:o}=e,[i,s]=l.default.useState({});l.default.useEffect(()=>(t.set("hideCardTitle",!0),s(),()=>{t.set("hideCardTitle",!1),s()}),[]);const m=()=>{t.add({moduleName:"",hideSelfCard:!0,params:[],canUpdateOtherColumns:!0,canBeUpdated:!0},"columnsBoxes"),s({})},d=v=>{t.remove(v,"columnsBoxes"),s({})},f=({index:v,record:y})=>{t.update(v,y,"columnsBoxes"),s({})};return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(v,y)=>{t.set(y.name,y.value),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u5E03\u5C40\u65B9\u5F0F",name:"columnsDirection"},l.default.createElement(h.CnRadioGroup,{defaultValue:t.get("columnsDirection")},l.default.createElement(h.CnRadio,{value:"row"},"\u5DE6\u53F3\u5E03\u5C40"),l.default.createElement(h.CnRadio,{value:"column"},"\u4E0A\u4E0B\u5E03\u5C40"))),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u9AD8\u5EA6",name:"height"},l.default.createElement(h.CnNumberPicker,{defaultValue:t.get("height"),min:0,max:100,innerAfter:"%",style:{width:90}}),l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.Icon,{type:"prompt",style:{marginLeft:6}})},"0-100 \u7684\u6574\u6570\uFF0C0 \u8868\u793A\u81EA\u52A8\u9AD8\u5EA6")),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u9690\u85CF\u7236\u7EA7\u5361\u7247",name:"hideCard"},l.default.createElement(h.CnSwitch,{checked:t.get("hideCard")})),!t.get("hideCard")&&l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u9690\u85CF\u7236\u7EA7\u5361\u7247\u5934\u90E8",name:"hideCardTitle"},l.default.createElement(h.CnSwitch,{checked:t.get("hideCardTitle")})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:""},l.default.createElement(Vf,{data:t.get("columnsBoxes"),titleRender:q3,contentRender:W3,title:"\u914D\u7F6E\u5206\u680F\u4FE1\u606F",tip:"\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24",onChange:f,onSort:v=>{t.setItemAll(v,"columnsBoxes"),s({})},onAdd:m,onRemove:v=>d(v),otherInfo:{columnsDirection:t.get("columnsDirection")}})),t.get("hideCardTitle")?null:l.default.createElement(co,{schema:t}))}function q3(e){const{data:t,index:r,onChange:o,moduleDataSource:i,otherInfo:s={}}=e;return l.default.createElement("div",{className:ka.title},l.default.createElement("div",{className:ka.titleItem},l.default.createElement("label",{className:ka.titleItemLabel},"\u6A21\u5757\u5730\u5740"),l.default.createElement(h.Select.AutoComplete,{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{minWidth:280},dataSource:(i==null?void 0:i.l4ModuleOptions)||i||[],value:t==null?void 0:t.moduleName,onChange:m=>o({...t,moduleName:m})})),(s==null?void 0:s.columnsDirection)==="row"&&l.default.createElement("div",{className:ka.titleItem},l.default.createElement("label",{className:ka.titleItemLabel},l.default.createElement(h.Balloon,{trigger:l.default.createElement("div",{style:{display:"flex",alignItems:"center"}},"\u5360\u5217\u6570 ",l.default.createElement(h.Icon,{type:"help",size:"small"})),align:"t"},l.default.createElement("b",null,"\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24"))),l.default.createElement(h.CnNumberPicker,{size:"small",min:0,max:24,value:t==null?void 0:t.cols,onChange:m=>o({...t,cols:m}),placeholder:"\u5360\u5217\u6570 \u4E4B\u548C\u5E94\u4E3A24"})))}const ni={wrapperCol:{span:16},labelCol:{span:8}};function W3(e){return l.default.createElement(K3,{...e})}const K3=e=>{const{data:t,index:r,onChange:o,otherInfo:i={}}=e;return l.default.createElement(l.default.Fragment,null,(i==null?void 0:i.columnsDirection)==="column"&&l.default.createElement(h.Form.Item,{wrapperCol:{span:20},labelCol:{span:4},label:"\u9AD8\u5EA6",name:""},l.default.createElement(h.CnNumberPicker,{min:0,max:100,innerAfter:"%",style:{width:90},defaultValue:t==null?void 0:t.height,onChange:s=>o({index:r,record:{...t,height:s}})}),l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.Icon,{type:"prompt",style:{marginLeft:6}})},"\u4EC5\u5728\u4E0A\u4E0B\u5E03\u5C40\u4E2D\u751F\u6548\uFF1A0-100 \u7684\u6574\u6570\uFF0C0 \u8868\u793A\u81EA\u52A8\u9AD8\u5EA6")),l.default.createElement(h.Form.Item,{name:"",wrapperCol:{span:20},labelCol:{span:4},style:{position:"relative"},label:l.default.createElement("div",null,"\u53C2\u6570",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9"))},l.default.createElement(ss,{keyTitle:"key(\u53C2\u6570\u540D)",valueTitle:"value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",value:t==null?void 0:t.params,onChange:s=>o({index:r,record:{...t,params:s}})})),l.default.createElement(h.Form.Item,{wrapperCol:{span:20},labelCol:{span:4},label:"\u9690\u85CF \u5F53\u524D\u680F \u5361\u7247",name:""},l.default.createElement(h.CnSwitch,{defaultChecked:t==null?void 0:t.hideSelfCard,onChange:s=>o({index:r,record:{...t,hideSelfCard:s}})})),l.default.createElement(h.Collapse,{accordion:!0},l.default.createElement(V3,{title:l.default.createElement(h.Balloon,{trigger:l.default.createElement("div",{style:{width:"fit-content",display:"flex",alignItems:"center"}},"\u5176\u4ED6\u914D\u7F6E\uFF1A",l.default.createElement(h.Icon,{type:"help",size:"small"})),align:"t"},"\u914D\u7F6E\u4EE5\u4E0B\u5C5E\u6027\u540E\uFF0C\u65B9\u53EF\u5728\u6BCF\u4E2A\u5206\u680F\u4E2D \u4F7F\u7528\u3010\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0\u3011\u4E8B\u4EF6\uFF0C\u5F15\u64CE\u4F1A\u76D1\u542C \u5E76\u81EA\u52A8\u66F4\u65B0\u5176\u4ED6\u5206\u680F\uFF08\u89E6\u53D1\u4E00\u4E2A detail:updateColumns \u4E8B\u4EF6\u3002\u82E5\u5206\u680F\u4E3A FTP \u7C7B\u578B \u5219\u652F\u6301\u81EA\u52A8\u5237\u65B0\uFF0C\u5176\u4ED6\u9875\u9762\u7C7B\u578B\u6682\u4E0D\u652F\u6301\uFF09\u3002",l.default.createElement("div",null,l.default.createElement("b",null,"\u5EFA\u8BAE\u5728\u6BCF\u4E2A\u5206\u680F\u6A21\u5757\u4E2D\u5199\u80F6\u6C34\u4EE3\u7801\uFF0C\u624B\u52A8\u63A7\u5236\u5176\u4ED6\u5206\u680F\u5237\u65B0\u3002")))},l.default.createElement(h.Form.Item,{...ni,label:"\u53EF\u4EE5\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0",name:""},l.default.createElement(h.CnSwitch,{defaultChecked:t==null?void 0:t.canUpdateOtherColumns,onChange:s=>o({index:r,record:{...t,canUpdateOtherColumns:s}})})),l.default.createElement(h.Form.Item,{...ni,label:"\u53EF\u88AB\u5176\u4ED6\u5206\u680F\u5237\u65B0",name:""},l.default.createElement(h.CnSwitch,{defaultChecked:t==null?void 0:t.canBeUpdated,onChange:s=>o({index:r,record:{...t,canBeUpdated:s}})})),l.default.createElement(h.Form.Item,{...ni,label:l.default.createElement(h.Balloon,{trigger:l.default.createElement("div",null,"\u5F53\u524D\u5206\u680F\u4E3AFTP\u65F6\u81EA\u52A8\u5237\u65B0",l.default.createElement(h.Icon,{type:"help",size:"small"})),align:"t"},l.default.createElement("b",null,"\u4EE5FTP\u9875\u9762\u683C\u5F0F \u88AB\u66F4\u65B0\uFF0C\u5176\u4ED6\u9875\u9762\u7C7B\u578B\u6682\u4E0D\u652F\u6301")),name:""},l.default.createElement(h.CnSwitch,{defaultChecked:t==null?void 0:t.autoUpdateWhenIsFTP,onChange:s=>o({index:r,record:{...t,autoUpdateWhenIsFTP:s}})})))))},J3="_customTabItem_1lh1l_1",G3="_tabTitle_1lh1l_5",Q3="_tabLabel_1lh1l_9",X3="_mddDetailItems_1lh1l_14",Z3="_itemComponent_1lh1l_14",e8="_itemLabel_1lh1l_19";var Yr={customTabItem:J3,tabTitle:G3,tabLabel:Q3,mddDetailItems:X3,itemComponent:Z3,itemLabel:e8};const Ti=[{label:"\u8BE6\u60C5\u5361\u7247",value:"detail-card",contentRender:e=>l.default.createElement(k3,{...e})},{label:"\u56FE\u7247\u9884\u89C8",value:"detail-image-view",contentRender:e=>l.default.createElement(P3,{...e})},{label:"\u8BE6\u60C5\u8868\u683C",value:"detail-table",contentRender:e=>l.default.createElement(N3,{...e})},{label:"\u6B65\u9AA4\u6761",value:"detail-static-steps",contentRender:e=>l.default.createElement(j3,{...e})},{label:"\u5E03\u5C40",value:"detail-columns",contentRender:e=>l.default.createElement(U3,{...e})},{label:"\u5185\u5D4C\u9875\u9762",value:"import-component",contentRender:e=>l.default.createElement(L3,{...e})}],ri=(e,t)=>e.get(t),t8=e=>{const{data:t,index:r,onChange:o}=e,i=(s,m)=>{t.set(s,m),s==="type"&&m==="detail-static-steps"&&t.initStepSource(),s==="type"&&m==="detail-columns"?t.set("hideCard",!0):t.set("hideCard",!1),o(t)};return l.default.createElement(l.default.Fragment,null,l.default.createElement(h.Input,{size:"small",value:ri(t,"label"),onChange:s=>i("label",s),placeholder:"\u8F93\u5165\u6807\u9898"}),l.default.createElement("div",{className:Yr.itemComponent},l.default.createElement("label",{className:Yr.itemLabel},"\u7C7B\u578B: "),l.default.createElement(h.Select,{size:"small",value:ri(t,"type"),onChange:s=>i("type",s)},Ti&&Ti.map(s=>l.default.createElement(h.Select.Option,{key:s.value,value:s.value},s.label)))),l.default.createElement(h.Input,{size:"small",value:ri(t,"groupId"),onChange:s=>i("groupId",s),placeholder:"\u9009\u586B, \u76F8\u540CID\u4F1A\u88AB\u5408\u5E76\u6210Tab",innerAfter:l.default.createElement(h.Balloon,{size:"small",v2:!0,triggerType:"click",title:"\u4F7F\u7528\u63D0\u793A",trigger:l.default.createElement(h.Icon,{type:"help",size:"xs",style:{margin:4,cursor:"pointer"}}),align:"br",closable:!1},"\u8F93\u5165\u5206\u7EC4ID, \u76F8\u540CID\u4F1A\u88AB\u5408\u5E76, \u6BD4\u5982\u8BE6\u60C5\u9875\u7684\u540C\u4E00\u5206\u7EC4ID\u4F1A\u4F7F\u7528tabs\u7EC4\u4EF6\u5305\u88F9, \u5206\u7EC4ID\u6709\u503C\u8868\u793Atab\u5C55\u793A, \u6CA1\u503C\u8868\u793A\u5361\u7247\u5C55\u793A")}))};function n8({schema:e={}}){const[t,r]=l.default.useState({}),o=e.getChildrenPanel(),i=()=>{e.addChildren(),r({})},s=f=>{e.removeChildren(f),r({})},m=({index:f,record:v,data:y})=>{e.updateChildren(f,v),r({})},d=(f,v,y)=>{e.sortChildren(v,y),r({})};return l.default.createElement("div",{className:Yr.mddDetailItems},l.default.createElement(R3,{data:o,titleRender:t8,typeContent:Ti,title:"\u914D\u7F6E\u8BE6\u60C5\u9879",onChange:m,onSort:d,onAdd:i,onRemove:s}))}const r8=({title:e,icon:t})=>l.default.createElement("div",{className:Yr.customTabItem},l.default.createElement("div",{className:Yr.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:Yr.tabLabel},e)));function Wf({schema:e}){return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(t,r)=>l.default.createElement(r8,{key:t,...r})},l.default.createElement(h.Tab.Item,{title:"\u57FA\u672C\u4FE1\u606F",icon:"search"},l.default.createElement(Wn,{title:"\u57FA\u7840\u6837\u5F0F\u914D\u7F6E"},l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(t,r)=>{console.log("item: ",r),e.set(r.name,r.value)}},l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u8FD4\u56DE\u6309\u94AE:",name:"hasBackBtn"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasBackBtn")})),l.default.createElement(h.Form.Item,{label:"\u8FD4\u56DE\u6309\u94AE\u6587\u6848:",name:"backText",help:"\u5982\u679C\u5728\u5F39\u7A97\u91CC\uFF0C\u8FD4\u56DE\u6309\u94AE\u4F1A\u76F4\u63A5\u5173\u95ED\u5F39\u7A97"},l.default.createElement(h.Input,{defaultValue:e.get("backText")})),l.default.createElement(h.Form.Item,{label:"\u662F\u5426\u5E26\u6709\u7535\u68AF:",name:"hasAnchor"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasAnchor")})),l.default.createElement(h.Form.Item,{label:"\u662F\u5426\u6491\u6EE1\u7236\u5BB9\u5668:",name:"fullHeight"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("fullHeight")})),l.default.createElement(h.Form.Item,{label:"\u662F\u5426\u5E26\u6709\u767D\u8272\u80CC\u666F:",name:"whiteBackground"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("whiteBackground")}))))),l.default.createElement(h.Tab.Item,{title:"\u5185\u5BB9\u533A",icon:"detail"},l.default.createElement(n8,{schema:e}),l.default.createElement("div",{className:"build-page-tab-detail-help"},l.default.createElement("h5",null,"\u89C4\u5219\u8BF4\u660E"),"1. \u5361\u7247\u6309\u914D\u7F6E\u987A\u5E8F\u4F9D\u6B21\u6E32\u67D3\uFF1B",l.default.createElement("br",null),"2. \u5206\u7EC4ID\u9009\u586B\uFF0C\u76F8\u540C\u7684ID\u4F1A\u88AB\u5408\u5E76\u4E3ATab\uFF1B",l.default.createElement("br",null),"3. \u5E26\u641C\u7D22\u7684\u8868\u683C\u4F7F\u7528\u2018\u5185\u5D4C\u9875\u9762\u2019")))}const a8=[{label:"\u4E0A\u65B9(\u63A8\u8350)",value:"top"},{label:"\u5DE6\u8FB9",value:"left"}],o8=[{label:"\u53EF\u7F16\u8F91",value:"editable"},{label:"\u9605\u8BFB",value:"readPretty"},{label:"\u7981\u7528",value:"disabled"},{label:"\u53EA\u8BFB",value:"readOnly"}],l8=[{label:"\u5DE6\u5BF9\u9F50",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u53F3\u5BF9\u9F50",value:"right"}],u8=[{label:"\u81EA\u9002\u5E94",value:0},{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",value:5},{label:"6",value:6},{label:"7",value:7},{label:"8",value:8}];function i8({schema:e}){const[t,r]=l.default.useState({});return l.default.useEffect(()=>{e.on("$updated",()=>{r({})})},[]),l.default.createElement("div",null,l.default.createElement(Wn,{title:"\u5168\u5C40\u914D\u7F6E"},l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(o,i)=>{i.name==="col"?e.set(i.name,Number(i.value)):e.set(i.name,i.value)}},l.default.createElement(h.Form.Item,{label:"\u9996\u6B21\u6E32\u67D3\u4E0D\u6267\u884C\u8054\u52A8:",name:"firstRenderWithoutEffects"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("firstRenderWithoutEffects")})),l.default.createElement(h.Form.Item,{label:"\u6587\u672C\u4F4D\u7F6E:",name:"labelAlign"},l.default.createElement(h.Select,{dataSource:a8,defaultValue:e.get("labelAlign")})),l.default.createElement(h.Form.Item,{label:"\u6BCF\u884C\u663E\u793A\u5217\u6570:",name:"col"},l.default.createElement(h.Select,{defaultValue:e.get("col"),dataSource:u8})),l.default.createElement(h.Form.Item,{label:"\u56FA\u5B9Alabel\u5BBD\u5EA6:",name:"labelColFixedSpan",help:"\u5BBD\u5EA6\u4E3A 20 * {\u56FA\u5B9Alabel\u5BBD\u5EA6\u503C}\uFF0C\u6587\u672C\u4F4D\u7F6E\u5DE6\u8FB9\u7684\u65F6\u5019\u6709\u6548"},l.default.createElement(h.NumberPicker,{defaultValue:e.get("labelColFixedSpan"),min:0})),l.default.createElement(h.Form.Item,{label:"UI\u5F62\u6001:",name:"pattern"},l.default.createElement(h.Select,{dataSource:o8,defaultValue:e.get("pattern")?e.get("pattern"):"editable"})),l.default.createElement(h.Form.Item,{label:"\u6309\u94AE\u7EC4\u4F4D\u7F6E:",name:"actionsAlign"},l.default.createElement(h.Select,{dataSource:l8,defaultValue:e.get("actionsAlign")?e.get("actionsAlign"):"right"})),l.default.createElement(h.Form.Item,{label:"\u662F\u5426\u5E26\u6709\u7535\u68AF:",name:"hasAnchor"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasAnchor")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u63D0\u4EA4\u6309\u94AE:",name:"hasSubmit"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasSubmit")})),l.default.createElement(h.Form.Item,{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u6848:",name:"submitText"},l.default.createElement(h.Input,{defaultValue:e.get("submitText")})),l.default.createElement(h.Form.Item,{label:"\u63D0\u4EA4\u4E8C\u6B21\u786E\u8BA4:",name:"secondConfirm"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("secondConfirm")})),e.get("secondConfirm")?l.default.createElement(h.Form.Item,{label:"\u4E8C\u6B21\u786E\u8BA4\u5F39\u7A97\u6807\u9898:",name:"secondConfirmTitle"},l.default.createElement(h.Input,{defaultValue:e.get("secondConfirmTitle")})):null,e.get("secondConfirm")?l.default.createElement(h.Form.Item,{label:"\u4E8C\u6B21\u786E\u8BA4\u5F39\u7A97\u6587\u6848:",name:"secondConfirmContent"},l.default.createElement(h.Input,{defaultValue:e.get("secondConfirmContent")})):null,l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u91CD\u7F6E\u6309\u94AE:",name:"hasReset"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasReset")})),l.default.createElement(h.Form.Item,{label:"\u91CD\u7F6E\u6309\u94AE\u6587\u6848:",name:"resetText"},l.default.createElement(h.Input,{defaultValue:e.get("resetText")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u53D6\u6D88\u6309\u94AE:",name:"hasCancel"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasCancel")})),l.default.createElement(h.Form.Item,{label:"\u53D6\u6D88\u6309\u94AE\u6587\u6848:",name:"cancelText"},l.default.createElement(h.Input,{defaultValue:e.get("cancelText")})))))}function s8({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(y,b)=>{!b&&i({})})},[]);const s=e.get("fields"),m=()=>{e.add({type:"input",label:"\u8F93\u5165\u6846",name:"",input:Oe.input},!0),f()},d=y=>{e.remove(y,!0),f()},f=()=>{var y;(y=r.current)==null||y.updateData(e.get("fields"))},v=({index:y,record:b})=>{for(const w in Oe)b.type!==w&&!["name"].includes(w)&&delete b[w];e.update(y,b,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s||[],penetrateType:io.FORM,componentOptions:[...so,,{value:"blocks-form",label:"\u8868\u5355\u533A\u5757"}],swaggerFieldDataSource:t,title:"\u914D\u7F6E\u8868\u5355\u9879",onAdd:m,onRemove:d,onChange:v,onSort:y=>{e.setFieldsAll(y,!0)}}))}const c8="_customTabItem_ac2i9_1",d8="_tabTitle_ac2i9_5",p8="_tabLabel_ac2i9_9";var ai={customTabItem:c8,tabTitle:d8,tabLabel:p8};const m8=({title:e,icon:t})=>l.default.createElement("div",{className:ai.customTabItem},l.default.createElement("div",{className:ai.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:ai.tabLabel},e))),oi=({title:e="",subTitle:t="",children:r})=>l.default.createElement("div",{className:"formily-form-v2-kv"},l.default.createElement(h.Box,{direction:"row",align:"flex-end",className:"formily-form-v2-title-wrapper"},l.default.createElement("label",{className:"title"},e),l.default.createElement("label",{className:"subTitle"},t)),l.default.createElement("div",null,r)),Dp=({schema:e,generateFastJson:t})=>{const[r,o]=l.default.useState({}),i=(e==null?void 0:e.data)||[];return l.default.useEffect(()=>{e.on("$updated",()=>{o({})})},[e]),l.default.createElement(h.Box,{align:"center"},i.map((s,m)=>{const d=e.getApiItemPanel(m);return l.default.createElement(h.Box,{direction:"row",style:{width:"100%"}},l.default.createElement("div",{style:{flex:1}},l.default.createElement(cn,{key:Math.random(),onChange:f=>{e.update(m,f)},defaultValue:d,generateFastJson:t})),l.default.createElement(h.Button,{style:{marginLeft:"24px"},warning:!0,onClick:()=>{e.delete(m)}},l.default.createElement(h.Icon,{type:"ashbin"})))}),l.default.createElement(h.Button,{style:{width:"140px"},onClick:()=>{e.add({type:"json",content:{}})}},"\u6DFB\u52A0\u9879"))};function Kf({schema:e}){const{getApiFields:t}=pn(),r=e.getApiPanel(),o=l.default.useCallback(s=>{if(s==="record"){const m=e.getFieldsPanel().getJSON(),d={};return m.forEach(f=>{d[f.name]=`$PARAMS.record.${f.name}`}),JSON.stringify(d,""," ")}return"{}"},[]),{parameterFields:i=[]}=l.default.useMemo(()=>t(r==null?void 0:r.getApiUrl(),"formily-form-v2")||{},[r,t]);return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(s,m)=>l.default.createElement(m8,{key:s,...m})},l.default.createElement(h.Tab.Item,{title:"\u8868\u5355\u9879",icon:"search"},l.default.createElement(s8,{schema:e.getFieldsPanel(),swaggerFields:i})),l.default.createElement(h.Tab.Item,{title:"\u57FA\u672C\u4FE1\u606F",icon:"set"},l.default.createElement(i8,{schema:e.getBaseInfoPanel()})),l.default.createElement(h.Tab.Item,{title:"\u6570\u636E\u6E90",icon:"filter"},l.default.createElement(oi,{title:"\u521D\u59CB\u6570\u636E\u6E90",subTitle:"\u540C\u540D\u5C5E\u6027\u8986\u76D6\u987A\u5E8F\uFF1A\u4ECE\u4E0B\u81F3\u4E0A"},l.default.createElement(Dp,{schema:e.getInitApiPanel(),generateFastJson:o})),l.default.createElement(oi,{title:"\u8054\u52A8\u6570\u636E\u6E90",subTitle:"\u540C\u540D\u5C5E\u6027\u8986\u76D6\u987A\u5E8F\uFF1A\u4ECE\u4E0B\u81F3\u4E0A"},l.default.createElement(Dp,{schema:e.getEffectApiPanel(),generateFastJson:o})),l.default.createElement(oi,{title:"\u63D0\u4EA4\u6570\u636E\u6E90"},l.default.createElement(cn,{hasDelete:!0,schema:e.getApiPanel(),selectTypes:["ajax"]}))))}function f8({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=M.useState({});M.useEffect(()=>{e.on("$updated",(E,F)=>{!F&&i({})})},[]);const s=e.get("primaryKey"),m=e.get("columns"),d=e.get("showIndex"),f=E=>{var F;switch(E){case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),(F=r.current)==null||F.updateData(e.get("columns"));break}},v=(E,F)=>{var k;e.remove(E,F,!0),(k=r.current)==null||k.updateData(e.get("columns"))},y=({index:E,record:F},k)=>{e.update(E,F,k,!0)},b=E=>{e.update("",E,"primaryKey")},w=(E,F)=>{e.update("",F,E)};return l.default.createElement("div",null,l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u4E3B\u952E\uFF1A"),l.default.createElement(h.Input,{value:s,size:"small",onChange:b})),l.default.createElement(dt,{ref:r,data:m,title:"\u914D\u7F6E\u8868\u683C\u5217",swaggerFieldDataSource:t,componentOptions:jf,onAdd:()=>f("columns"),onRemove:E=>v(E,"columns"),onChange:({index:E,record:F})=>y({index:E,record:F},"columns"),onSort:E=>{e.setItemAll(E,"columns",!0)}}),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u6700\u5927\u9AD8\u5EA6\uFF1A"),l.default.createElement(h.NumberPicker,{value:e.get("maxHeight"),size:"small",onChange:E=>e.update("",E,"maxHeight"),min:0}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u663E\u793A\u5E8F\u53F7\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:d,size:"small",onChange:E=>w("showIndex",E)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7"," ")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u865A\u62DF\u6EDA\u52A8\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("useVirtual"),size:"small",onChange:E=>w("useVirtual",E)})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u81EA\u52A8\u5217\u5BBD\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("columnsAutoWidth"),size:"small",onChange:E=>w("columnsAutoWidth",E)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u5982\u679C\u6709\u6027\u80FD\u95EE\u9898\u53EF\u4EE5\u5173\u95ED\u8BE5\u5C5E\u6027\uFF0C\u540C\u65F6\u624B\u52A8\u8BBE\u7F6E\u5217\u5BBD")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("hideCommonToolbar"),size:"small",onChange:E=>w("hideCommonToolbar",E)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u662F\u5426\u9690\u85CFtable\u9876\u90E8\u64CD\u4F5C\u533A\u7684\u901A\u7528\u64CD\u4F5C\u6309\u94AE\uFF0C\u6BD4\u5982\u5168\u5C4F\u3001\u6591\u9A6C\u7EBF\u3001\u5217\u8BBE\u7F6E\u3001\u5C3A\u5BF8\u7B49")))}function h8({schema:e}){const t=l.default.useRef(),[r,o]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(v,y)=>{!y&&o({})})},[]);const i=e.getData(),s=()=>{var v;(v=t.current)==null||v.updateData(e.getData())},m=()=>{e.add({type:"editButton",label:"\u6279\u91CF\u65B0\u589E",action:{type:"drawer",closeMode:["close","mask","esc"],title:"\u65B0\u589E"}},!0),s()},d=v=>{e.remove(v,!0),s()},f=({index:v,record:y})=>{e.update(v,y,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:t,data:i,title:"\u914D\u7F6E\u5168\u5C40\u64CD\u4F5C",titleType:["label"],onAdd:m,onRemove:d,onChange:f,onSort:v=>{e.updateAll(v,!0)}}))}const g8="_kvContainer_rfbib_1",v8="_kvWrapper_rfbib_7",y8="_kvTitle_rfbib_11",x8="_kvSubTitle_rfbib_14";var il={kvContainer:g8,kvWrapper:v8,kvTitle:y8,kvSubTitle:x8},Ap=({title:e="",subTitle:t="",children:r})=>l.default.createElement("div",{className:il.kvContainer},l.default.createElement(h.Box,{direction:"row",align:"flex-end",className:il.kvWrapper},l.default.createElement("label",{className:il.kvTitle},e),l.default.createElement("label",{className:il.kvSubTitle},t)),l.default.createElement("div",null,r));const E8="_customTabItem_1y6va_1",b8="_tabTitle_1y6va_5",C8="_tabLabel_1y6va_9";var li={customTabItem:E8,tabTitle:b8,tabLabel:C8};const F8=({title:e,icon:t})=>l.default.createElement("div",{className:li.customTabItem},l.default.createElement("div",{className:li.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:li.tabLabel},e)));function Jf({schema:e,moduleMap:t}){const[r,o]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(d,f)=>{!f&&o({})})},[]);const{getApiFields:i}=pn(),s=e.getInitApiPanel(),{responseFields:m=[]}=l.default.useMemo(()=>i(s==null?void 0:s.getApiUrl(),"edit-table")||{},[s,i]);return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(d,f)=>l.default.createElement(F8,{key:d,...f})},l.default.createElement(h.Tab.Item,{title:"\u57FA\u672C\u4FE1\u606F",icon:"search"},l.default.createElement(Wn,{title:"\u57FA\u7840\u914D\u7F6E"},l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(d,f)=>{e.set(f.name,f.value)}},l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u4FDD\u5B58\u6309\u94AE:",name:"hasSaveBtn"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasSaveBtn")})),e.get("hasSaveBtn")&&l.default.createElement(h.Form.Item,{label:"\u4FDD\u5B58\u6309\u94AE\u6587\u6848:",name:"saveBtnText"},l.default.createElement(h.Input,{defaultValue:e.get("saveBtnText")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u884C\u65B0\u589E\u6309\u94AE:",name:"hasAddRow"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasAddRow")})),l.default.createElement(h.Form.Item,{label:"\u6700\u5927\u884C\u6570:",name:"maxRowLength"},l.default.createElement(h.Input,{defaultValue:e.get("maxRowLength")})),e.get("hasAddRow")&&l.default.createElement(h.Form.Item,{label:"\u65B0\u589E\u884C\u6309\u94AE\u6587\u6848:",name:"addBtnText"},l.default.createElement(h.Input,{defaultValue:e.get("addBtnText")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u884C\u5220\u9664\u6309\u94AE:",name:"hasDeleteRow"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasDeleteRow")})),e.get("hasDeleteRow")&&l.default.createElement(h.Form.Item,{label:"\u5220\u9664\u884C\u6309\u94AE\u6587\u6848:",name:"deleteBtnText"},l.default.createElement(h.Input,{defaultValue:e.get("deleteBtnText")}))))),l.default.createElement(h.Tab.Item,{title:"\u9876\u90E8\u64CD\u4F5C\u533A",icon:"set"},l.default.createElement(h8,{schema:e.getHeaderToolbarPanel()})),l.default.createElement(h.Tab.Item,{title:"\u5185\u5BB9\u533A",icon:"detail"},l.default.createElement(f8,{schema:e.getTablePanel(),swaggerFields:m})),l.default.createElement(h.Tab.Item,{title:"\u6570\u636E\u6E90",icon:"filter"},l.default.createElement(Ap,{title:"\u521D\u59CB\u6570\u636E\u6E90",subTitle:"\u683C\u5F0F\u548CFTP\u4E3B\u63A5\u53E3\u4E00\u81F4"},l.default.createElement(cn,{hasDelete:!0,schema:e.getInitApiPanel()})),l.default.createElement(Ap,{title:"\u63D0\u4EA4\u6570\u636E\u6E90",subTitle:"\u5C06\u5168\u7F16\u8F91\u8868\u683C\u6570\u636E\u63D0\u4EA4"},l.default.createElement(cn,{hasDelete:!0,schema:e.getSubmitApiPanel(),selectTypes:["ajax"]}))))}const Ha="http://127.0.0.1:17678",Gf=(e="")=>e.replace(/\/+$/,""),wp="mdd-ai-bridge",Tp=new Map,S8=(e="")=>/^http:\/\/(127(?:\.\d{1,3}){3}|localhost)(?::\d+)?/i.test(e);class Qf extends Error{constructor(t,r={}){super(t),this.name="BridgeRequestError",this.status=r.status||0,this.data=r.data||null}}function Xf(e){return typeof window!="undefined"&&!window.isSecureContext&&S8(e)}function D8(){return`${Date.now()}_${Math.random().toString(16).slice(2)}`}async function Qr(e,t,r={}){if(Xf(e))return w8(e,t,r);const o=await fetch(`${Gf(e)}${t}`,{...r,headers:{"Content-Type":"application/json",...r.headers||{}}}),i=await o.text();let s=null;try{s=i?JSON.parse(i):null}catch{s={message:i}}if(!o.ok)throw new Qf((s==null?void 0:s.message)||`\u8BF7\u6C42\u672C\u5730 AI Bridge \u5931\u8D25: ${o.status}`,{status:o.status,data:s});return s}function A8(e){const t=Gf(e),r=`${t}/relay`,o=Tp.get(t);if((o==null?void 0:o.window)&&!o.window.closed)return o;const i=window.open(r,"mdd-ai-bridge-relay","width=520,height=320,menubar=no,toolbar=no,location=no,status=no");if(!i)throw new Error("\u6D4F\u89C8\u5668\u62E6\u622A\u4E86\u672C\u5730 Bridge \u7A97\u53E3\uFF0C\u8BF7\u5141\u8BB8\u5F39\u7A97\u540E\u91CD\u8BD5");const s={origin:t,window:i,ready:!1};return Tp.set(t,s),s}function w8(e,t,r={}){const o=A8(e),i=D8();return new Promise((s,m)=>{let d=!1,f=!1,v=!1;const y=()=>{window.removeEventListener("message",E),clearTimeout(F),clearTimeout(k)},b=(C="ready")=>{if(C==="ready"){if(v)return;v=!0}else{if(f)return;f=!0}if(!o.window||o.window.closed){w(m,new Error("\u672C\u5730 Bridge relay \u7A97\u53E3\u5DF2\u5173\u95ED\uFF0C\u8BF7\u91CD\u8BD5"));return}o.window.postMessage({channel:wp,type:"request",id:i,path:t,options:r},o.origin)},w=(C,T)=>{d||(d=!0,y(),C(T))},E=C=>{var U;if(C.origin!==o.origin||C.source!==o.window)return;const T=C.data||{};if(T.channel===wp){if(T.type==="ready"){o.ready=!0,b("ready");return}if(!(T.type!=="response"||T.id!==i)){if(!T.ok){w(m,new Qf(((U=T.data)==null?void 0:U.message)||`\u8BF7\u6C42\u672C\u5730 AI Bridge \u5931\u8D25: ${T.status||0}`,{status:T.status||0,data:T.data}));return}w(s,T.data)}}},F=setTimeout(()=>{w(m,new Error("\u672C\u5730 AI Bridge relay \u54CD\u5E94\u8D85\u65F6\uFF0C\u8BF7\u786E\u8BA4\u670D\u52A1\u5DF2\u542F\u52A8"))},3e4),k=setTimeout(()=>{o.ready||b("fallback")},500);window.addEventListener("message",E),o.ready&&setTimeout(()=>b("ready"),0)})}function T8(e){return e===!1?{enabled:!1,baseURL:Ha}:typeof e=="string"?{enabled:!0,baseURL:e||Ha}:{...e||{},enabled:(e==null?void 0:e.enabled)!==!1,baseURL:(e==null?void 0:e.baseURL)||Ha}}function I8(e){return Qr(e,"/health",{method:"GET"})}function _8(e,t,r){return Qr(e,`/pages/${encodeURIComponent(t)}/push`,{method:"POST",body:JSON.stringify(r)})}function $8(e,t){return Qr(e,`/pages/${encodeURIComponent(t)}/pull`,{method:"GET"})}function O8(e,t){return Qr(e,`/pages/${encodeURIComponent(t)}/rollback`,{method:"POST"})}function R8(e,t){return Qr(e,`/pages/${encodeURIComponent(t)}/status`,{method:"GET"})}function B8(e,t){return Qr(e,`/pages/${encodeURIComponent(t)}/open`,{method:"POST"})}const k8=(e,t)=>{const r={};return t.forEach(o=>{e&&e[o]!==void 0&&(r[o]=e[o])}),r},M8=(e="")=>{const t=[],r=/^\s*import\s+(.+?)\s+from\s+['"](.+?)['"]/gm;let o=r.exec(e);for(;o;)t.push({what:o[1].trim(),from:o[2]}),o=r.exec(e);return t},P8=(e="")=>{const t=[],r=/(?:function\s+([A-Za-z0-9_$]+)|const\s+([A-Za-z0-9_$]+)\s*=\s*(?:\([^)]*\)|[A-Za-z0-9_$]+)\s*=>)/g;let o=r.exec(e);for(;o;)t.push(o[1]||o[2]),o=r.exec(e);return t},kr=e=>Array.isArray(e)?e:[];function Zf({schemaJson:e={},script:t="",style:r="",pageMeta:o={}}){var y,b,w,E,F,k,C;const i=e.body||{},s=kr((y=i.filter)==null?void 0:y.fields),m=kr((b=i.table)==null?void 0:b.columns),d=kr(i.headerToolbar),f=kr((w=i.table)==null?void 0:w.actionColumns),v=kr((E=i.table)==null?void 0:E.bulkActions);return{meta:{code:o.code,name:o.name,template:o.mddTemplateType||i.type,editorVersion:e.editorVersion,host:e.host,pageType:e.type,gmtModified:o.gmtModified,modifierAccount:o.modifierAccount},api:i.api?{...k8(i.api,["type","host","method","url","content","value"]),watch:kr(i.api.watch),paramsKeys:Object.keys(i.api.params||{}),formatResponseData:i.api.formatResponseData,hasResponseHandleCode:!!i.api.responseHandleCode}:null,filter:{count:s.length,fields:s.map((T,U)=>{var J,W,K,L;return{index:U,path:`body.filter.fields[${U}]`,type:T.type,name:T.name,label:T.label,colSpan:T.colSpan,sourceUrl:(J=T.source)==null?void 0:J.url,sourceMethod:(W=T.source)==null?void 0:W.method,enumCode:(L=(K=T.source)==null?void 0:K.params)==null?void 0:L.code}})},headerToolbar:d.map((T,U)=>{var J,W,K,L;return{index:U,path:`body.headerToolbar[${U}]`,type:T.type,label:T.label,name:T.name,actionType:T.actionType,action:(J=T.action)==null?void 0:J.type,value:(W=T.action)==null?void 0:W.value,title:(K=T.action)==null?void 0:K.title,shouldRender:((L=T.action)==null?void 0:L.shouldRender)||T.shouldRender}}),table:{primaryKey:(F=i.table)==null?void 0:F.primaryKey,pagination:(k=i.table)==null?void 0:k.pagination,showSelect:(C=i.table)==null?void 0:C.showSelect,columnCount:m.length,actionCount:f.length,bulkActionCount:v.length,columns:m.map((T,U)=>({index:U,path:`body.table.columns[${U}]`,type:T.type,name:T.name,label:T.label,lock:T.lock,sortable:T.sortable,filter:T.filter,customType:T.customType,value:T.value,format:T.format})),actionColumns:f.map((T,U)=>{var J,W,K,L;return{index:U,path:`body.table.actionColumns[${U}]`,type:T.type,label:T.label,name:T.name,actionType:T.actionType,action:(J=T.action)==null?void 0:J.type,value:(W=T.action)==null?void 0:W.value,title:(K=T.action)==null?void 0:K.title,shouldRender:((L=T.action)==null?void 0:L.shouldRender)||T.shouldRender}})},script:{length:t.length,imports:M8(t),functions:P8(t),hasSetModule:/\.setModule\s*\(/.test(t),hasSetComponent:/\.setComponent\s*\(/.test(t),hasMDDRenderEngine:t.indexOf("MDDRenderEngine")>-1},style:{length:r.length}}}function N8(e={},t={}){var o,i;const r=new URLSearchParams(window.location.search||"");return t.code||r.get("code")||(e==null?void 0:e.code)||((o=e==null?void 0:e.body)==null?void 0:o.code)||`local-${((i=e==null?void 0:e.body)==null?void 0:i.type)||"mdd"}`}const eh="0.1.4",L8=`npm i -g @cniot/mdd-ai-bridge
62
- mdd-ai-bridge`,j8=(e="")=>e.replace(/\/+$/,""),Xa=e=>e?typeof e=="string"?JSON.parse(e):e:null,Ip=(e,t)=>{if(!(!e||!t)){if(typeof e.initFromCache=="function"){e.initFromCache(t),e.emit(Pe.SCHEMA_UPDATE,{schemaJson:e.getAllJSON(),schema:e});return}e.emit(Pe.SCHEMA_UPDATE_FORCE,t)}},Y8=(e="",t="")=>{const r=String(e).split(".").map(s=>Number(s)||0),o=String(t).split(".").map(s=>Number(s)||0),i=Math.max(r.length,o.length);for(let s=0;s<i;s+=1){if((r[s]||0)>(o[s]||0))return 1;if((r[s]||0)<(o[s]||0))return-1}return 0},z8=e=>Boolean(e)&&Y8(e,eh)>=0,H8=async e=>{var r;if(typeof navigator!="undefined"&&((r=navigator==null?void 0:navigator.clipboard)==null?void 0:r.writeText)){await navigator.clipboard.writeText(e);return}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","readonly"),t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},V8=e=>{var r;const t=(r=e==null?void 0:e.data)==null?void 0:r.jsonError;return t?{title:`${t.file||"JSON"} \u89E3\u6790\u5931\u8D25${t.line?`\uFF1A\u7B2C ${t.line} \u884C${t.column?`\uFF0C\u7B2C ${t.column} \u5217`:""}`:""}`,message:t.message||e.message||"",snippet:t.snippet||""}:{title:"\u540C\u6B65\u5931\u8D25",message:(e==null?void 0:e.message)||"\u540C\u6B65\u672C\u5730 AI \u4FEE\u6539\u5931\u8D25",snippet:""}},U8=e=>{switch(e){case"added":return"\u65B0\u589E";case"removed":return"\u5220\u9664";case"type":return"\u7C7B\u578B\u53D8\u5316";case"changed":return"\u4FEE\u6539";default:return e||"\u4FEE\u6539"}},ui=/(\/\/.*|\/\*.*?\*\/|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|\b(?:async|await|break|case|catch|class|const|default|else|export|false|finally|for|from|function|if|import|let|new|null|return|switch|throw|true|try|undefined|var|while)\b|\b\d+(?:\.\d+)?\b|[#.][a-zA-Z_-][\w-]*|@[a-zA-Z-]+|[{}()[\],;:])/g,q8=(e,t)=>/^\/\//.test(e)||/^\/\*/.test(e)?"tok-comment":/^["'`]/.test(e)?(t==="json"&&e.endsWith('"'),"tok-string"):/^\d/.test(e)?"tok-number":/^(#|\.|@)/.test(e)?"tok-selector":/^[{}()[\],;:]$/.test(e)?"tok-punc":"tok-keyword",_p=(e="",t="text")=>{if(!e)return l.default.createElement("span",{className:"tok-empty"},"\xA0");const r=[];let o=0,i=ui.exec(e);for(;i;){i.index>o&&r.push(e.slice(o,i.index));const s=i[0];r.push(l.default.createElement("span",{className:q8(s,t),key:`${i.index}-${s}`},s)),o=i.index+s.length,i=ui.exec(e)}return o<e.length&&r.push(e.slice(o)),ui.lastIndex=0,r};function W8({files:e=[]}){return e.length?l.default.createElement("div",{className:"mdd-local-ai-side-diff"},e.map(t=>{var r,o;return l.default.createElement("div",{className:"mdd-local-ai-side-file",key:t.fileName},l.default.createElement("div",{className:"mdd-local-ai-side-file-head"},l.default.createElement("span",null,t.fileName),l.default.createElement("span",null,"-",((r=t.stats)==null?void 0:r.removed)||0," / +",((o=t.stats)==null?void 0:o.added)||0)),l.default.createElement("div",{className:"mdd-local-ai-side-grid"},l.default.createElement("div",{className:"mdd-local-ai-side-col-head"},"\u4E0A\u6B21\u53D1\u9001"),l.default.createElement("div",{className:"mdd-local-ai-side-col-head"},"\u672C\u5730\u4FEE\u6539"),(t.rows||[]).map((i,s)=>{var m,d,f,v;return l.default.createElement(l.default.Fragment,{key:`${t.fileName}-${s}`},l.default.createElement("div",{className:`mdd-local-ai-side-cell is-before is-${i.type}`},l.default.createElement("span",{className:"mdd-local-ai-side-line"},((m=i.before)==null?void 0:m.lineNumber)||""),l.default.createElement("code",null,_p(((d=i.before)==null?void 0:d.content)||"",t.language))),l.default.createElement("div",{className:`mdd-local-ai-side-cell is-after is-${i.type}`},l.default.createElement("span",{className:"mdd-local-ai-side-line"},((f=i.after)==null?void 0:f.lineNumber)||""),l.default.createElement("code",null,_p(((v=i.after)==null?void 0:v.content)||"",t.language))))})))})):null}function K8({diffSummary:e}){var s,m,d,f,v,y,b,w;if(!(e!=null&&e.hasBaseline))return null;const t=((s=e.schema)==null?void 0:s.changes)||((m=e.schema)==null?void 0:m.paths)||[],r=e.diffText||"",o=e.diffFiles||[];return t.length>0||((d=e.script)==null?void 0:d.changed)||((f=e.style)==null?void 0:f.changed)||r||o.length?l.default.createElement("details",{className:"mdd-local-ai-diff"},l.default.createElement("summary",null,"\u67E5\u770B\u5177\u4F53\u6539\u52A8\u4E0E diff"),l.default.createElement("div",{className:"mdd-local-ai-diff-content"},t.length>0?l.default.createElement("div",{className:"mdd-local-ai-diff-section"},l.default.createElement("div",{className:"mdd-local-ai-diff-title"},"Schema \u6539\u52A8\u4F4D\u7F6E"),l.default.createElement("ul",{className:"mdd-local-ai-diff-list"},t.map((E,F)=>{const k=typeof E=="string"?E:E.path,C=typeof E=="string"?"changed":E.type;return l.default.createElement("li",{key:`${k}-${F}`},l.default.createElement("code",null,k),l.default.createElement("span",null,U8(C)))}))):null,(v=e.script)!=null&&v.changed?l.default.createElement("div",{className:"mdd-local-ai-diff-section"},l.default.createElement("div",{className:"mdd-local-ai-diff-title"},"Script \u6539\u52A8"),l.default.createElement("div",null,e.script.message),(y=e.script.addedFunctions)!=null&&y.length?l.default.createElement("div",null,"\u65B0\u589E\uFF1A",e.script.addedFunctions.join("\u3001")):null,(b=e.script.removedFunctions)!=null&&b.length?l.default.createElement("div",null,"\u79FB\u9664\uFF1A",e.script.removedFunctions.join("\u3001")):null):null,(w=e.style)!=null&&w.changed?l.default.createElement("div",{className:"mdd-local-ai-diff-section"},l.default.createElement("div",{className:"mdd-local-ai-diff-title"},"Style \u6539\u52A8"),l.default.createElement("div",null,e.style.message)):null,o.length?l.default.createElement(W8,{files:o}):null,!o.length&&r?l.default.createElement("pre",{className:"mdd-local-ai-diff-pre"},r):null)):null}const J8=/L4:([a-zA-Z0-9_-]+)/g,G8="/l4/api/v1/console/get-by-code",Q8="[MDD AI Bridge][L4]",X8="\u672C\u5730\u5DF2\u6709\u672A\u540C\u6B65\u4FEE\u6539",th=e=>typeof e=="string"?e:e==null?"":JSON.stringify(e,null,2),Hn=(...e)=>{typeof console!="undefined"&&typeof console.info=="function"&&console.info(Q8,...e)},gl=(e="",t="script",r="$")=>{const o=[],i=new RegExp(J8);let s=i.exec(String(e));for(;s;)o.push({code:s[1],source:t,paths:[r]}),s=i.exec(String(e));return o},Ii=(e,t="$",r=[])=>typeof e=="string"?(r.push(...gl(e,"schema",t)),r):Array.isArray(e)?(e.forEach((o,i)=>Ii(o,`${t}[${i}]`,r)),r):(e&&typeof e=="object"&&Object.keys(e).forEach(o=>{r.push(...gl(o,"schema-key",`${t}.${o}`)),Ii(e[o],`${t}.${o}`,r)}),r),Z8=(e=[],t)=>{const r=new Map;return e.forEach(o=>{if(!(o!=null&&o.code)||o.code===t)return;const i=r.get(o.code)||{code:o.code,source:o.source,paths:[]};i.source=i.source===o.source?i.source:"mixed",i.paths=[...new Set([...i.paths,...o.paths||[]])],r.set(o.code,i)}),[...r.values()]},$p=({schemaJson:e,scriptInfo:t,rootCode:r,extraSources:o=[]})=>{const i=Ii(e),s=gl(t,"script","mdd.script.jsx"),m=o.flatMap(d=>gl((d==null?void 0:d.text)||"",(d==null?void 0:d.source)||"extra",(d==null?void 0:d.path)||"$"));return Z8([...i,...s,...m],r)},ps=(e={},t="payload")=>["schemaInfo","schemaJson","schema","scriptInfo","script","style","compileFile","translateInfo","serverDataHandle","metaData","sqlData","sqlDataCount","swaggerInfo","dataPermissions","pageMeta","pageIR"].filter(o=>e[o]!=null).map(o=>({source:o,path:`${t}.${o}`,text:th(e[o])})),Op=({queue:e,referenceMap:t,references:r,parentCode:o,depth:i,rootCode:s,visitedCodes:m})=>{r.forEach(d=>{if(!(d!=null&&d.code)||d.code===s)return;const f={...d,parentCode:o,depth:i},v=t.get(d.code);if(v){v.source=v.source===f.source?v.source:"mixed",v.paths=[...new Set([...v.paths||[],...f.paths||[]])],v.parents=[...new Set([...v.parents||[],o])],v.depth=Math.min(v.depth||i,i);return}t.set(d.code,{...f,parents:[o]}),m.has(d.code)||e.push(f)})},e7=async(e,t={})=>{var v;const r=t.linkedPageDetailUrl||G8,o=r.includes("?")?"&":"?",i=`${r}${o}code=${encodeURIComponent(e)}`;Hn("fetch page detail",{code:e,url:i});const s=await fetch(i,{credentials:"include"}),m=await s.text();let d=null;try{d=m?JSON.parse(m):null}catch{throw new Error(`\u5173\u8054 L4 \u9875\u9762\u8BE6\u60C5\u63A5\u53E3\u8FD4\u56DE\u975E JSON\uFF1A${m||s.status}`)}if(!s.ok)throw new Error((d==null?void 0:d.errorMessage)||(d==null?void 0:d.message)||`\u5173\u8054 L4 \u9875\u9762\u8BE6\u60C5\u63A5\u53E3\u8BF7\u6C42\u5931\u8D25\uFF1A${s.status}`);if((d==null?void 0:d.success)===!1)throw new Error((d==null?void 0:d.errorMessage)||(d==null?void 0:d.message)||(d==null?void 0:d.msg)||"\u5173\u8054 L4 \u9875\u9762\u8BE6\u60C5\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");const f=(d==null?void 0:d.data)||d;return Hn("fetch page detail success",{code:e,name:(f==null?void 0:f.name)||((v=f==null?void 0:f.pageMeta)==null?void 0:v.name),hasSchemaInfo:Boolean(f==null?void 0:f.schemaInfo),hasScriptInfo:Boolean(f==null?void 0:f.scriptInfo),hasCompileFile:Boolean(f==null?void 0:f.compileFile)}),f},t7=e=>typeof(e==null?void 0:e.resolveLinkedPage)=="function"?e.resolveLinkedPage:typeof window!="undefined"&&typeof window.__MDD_AI_BRIDGE_RESOLVE_L4_PAGE=="function"?window.__MDD_AI_BRIDGE_RESOLVE_L4_PAGE:t=>e7(t,e),n7=(e,t)=>{var f,v,y,b,w,E,F,k,C,T,U,J,W,K,L,S,O,Y,j;if(!t)return null;const r=Xa(t.schemaInfo||t.schemaJson||t.schema||"{}")||{},o=t.pageMeta||t.meta||{},i={...o,code:t.code||o.code||e.code,name:(f=t.name)!=null?f:o.name,region:(v=t.region)!=null?v:o.region,module:(y=t.module)!=null?y:o.module,moduleName:(b=t.moduleName)!=null?b:o.moduleName,status:(w=t.status)!=null?w:o.status,grade:(E=t.grade)!=null?E:o.grade,mddTemplateType:(F=t.mddTemplateType)!=null?F:o.mddTemplateType,buildType:(k=t.buildType)!=null?k:o.buildType,operateType:(C=t.operateType)!=null?C:o.operateType,gmtModified:(T=t.gmtModified)!=null?T:o.gmtModified,modifierAccount:(U=t.modifierAccount)!=null?U:o.modifierAccount,modifierName:(J=t.modifierName)!=null?J:o.modifierName},s=(S=(L=(K=(W=t.scriptInfo)==null?void 0:W.script)!=null?K:t.scriptInfo)!=null?L:t.script)!=null?S:"",m=(j=(Y=(O=t.scriptInfo)==null?void 0:O.style)!=null?Y:t.style)!=null?j:"",d=t.pageIR||Zf({schemaJson:r,script:s,style:m,pageMeta:i});return{code:i.code,pageMeta:i,schemaInfo:th(t.schemaInfo||r),scriptInfo:s,style:m,pageIR:d,extraSources:ps({...t,pageMeta:i,pageIR:d,style:m},`linkedPage.${i.code}`),linkedReference:e}},r7=async(e,t)=>{const r=Xa(e.schemaInfo)||{},o=t7(t);let i=null;try{Hn("fetch root page detail for raw scan",{code:e.code}),i=await o(e.code,{code:e.code,source:"root",depth:0,paths:["root.get-by-code"]})}catch(F){Hn("fetch root page detail failed, fallback to editor payload only",{code:e.code,reason:(F==null?void 0:F.message)||String(F)})}const s=$p({schemaJson:r,scriptInfo:e.scriptInfo,rootCode:e.code,extraSources:[...e.extraSources||[],...ps(i||{},`rootApi.${e.code}`)]});Hn("scan root page",{code:e.code,source:i?"editor payload + root get-by-code raw data":"editor payload only",directReferences:s.map(F=>({code:F.code,source:F.source,paths:F.paths}))});const m=[],d=new Map,f=new Set([e.code]),v=[],y=[];for(Op({queue:m,referenceMap:d,references:s,parentCode:e.code,depth:1,rootCode:e.code,visitedCodes:f});m.length>0;){const F=m.shift();if(!(F!=null&&F.code)||f.has(F.code))continue;f.add(F.code);const k=d.get(F.code)||F;try{Hn("resolve linked page",{code:F.code,parentCode:k.parentCode,depth:k.depth,paths:k.paths});const C=await o(F.code,k),T=n7(k,C);if(!T){y.push({...k,reason:"\u5173\u8054 L4 \u9875\u9762\u8FD4\u56DE\u4E3A\u7A7A"});continue}v.push(T);const U=Xa(T.schemaInfo)||{},J=$p({schemaJson:U,scriptInfo:T.scriptInfo,rootCode:e.code,extraSources:T.extraSources});Hn("scan child page",{code:T.code,depth:k.depth,childReferences:J.map(W=>({code:W.code,source:W.source,paths:W.paths}))}),Op({queue:m,referenceMap:d,references:J,parentCode:T.code,depth:(k.depth||1)+1,rootCode:e.code,visitedCodes:f})}catch(C){y.push({...k,reason:(C==null?void 0:C.message)||"\u5173\u8054 L4 \u9875\u9762\u52A0\u8F7D\u5931\u8D25"})}}const b=[...d.values()],w=b.reduce((F,k)=>Math.max(F,k.depth||1),0),E=v.map(F=>({...F,linkedReference:d.get(F.code)||F.linkedReference}));return Hn("scan complete",{code:e.code,directCount:s.length,totalCount:b.length,syncedCount:E.length,failedCount:y.length,references:b.map(F=>({code:F.code,source:F.source,depth:F.depth,paths:F.paths,parents:F.parents})),failed:y}),{...e,linkedPageReferences:b,linkedPageScan:{directCount:s.length,totalCount:b.length,maxDepth:w},linkedPages:E,failedLinkedPages:y}},a7=e=>String((e==null?void 0:e.reason)||"").includes(X8),o7=(e,t)=>({type:"push",dir:(e==null?void 0:e.dir)||t,linkedPages:(e==null?void 0:e.linkedPages)||{}}),l7=e=>{const t=((e==null?void 0:e.linkedPageDiffs)||[]).filter(o=>o.changed);return t.length?`\u68C0\u6D4B\u5230\u5173\u8054 L4 \u9875\u9762\u4E5F\u5B58\u5728\u672C\u5730\u4FEE\u6539\uFF1A${t.map(o=>o.code).join("\u3001")}\u3002\u5F53\u524D\u53EA\u540C\u6B65\u4E86\u5F53\u524D\u9875\u9762\uFF0C\u8BF7\u5206\u522B\u6253\u5F00\u8FD9\u4E9B L4 \u9875\u9762\u6267\u884C\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\u5E76\u4FDD\u5B58\u3002`:""};function u7(e){var Q,B,q,ee,oe,de,Be,ke,qe;const{schema:t,scriptInfo:r,pageMeta:o={},bridgeConfig:i,onApply:s}=e,m=l.default.useMemo(()=>T8(i),[i]),[d,f]=l.default.useState(m.baseURL||Ha),[v,y]=l.default.useState("\u672A\u8FDE\u63A5"),[b,w]=l.default.useState(""),[E,F]=l.default.useState(null),[k,C]=l.default.useState(""),[T,U]=l.default.useState(""),[J,W]=l.default.useState(null),[K,L]=l.default.useState(null),S=((Q=t==null?void 0:t.getAllJSON)==null?void 0:Q.call(t))||{},O=N8(S,o),Y=l.default.useCallback(()=>{var Xe;const Z=((Xe=t==null?void 0:t.getAllJSON)==null?void 0:Xe.call(t))||{},me={...o,code:O},fe=(r==null?void 0:r.script)||"",Ae=(r==null?void 0:r.style)||"",Me=Zf({schemaJson:Z,script:fe,style:Ae,pageMeta:me});return{code:O,pageMeta:me,schemaInfo:JSON.stringify(Z,null,2),scriptInfo:fe,style:Ae,pageIR:Me,extraSources:ps({pageMeta:me,pageIR:Me,style:Ae},"editorPayload")}},[O,o,t,r]),j=l.default.useMemo(()=>b||`${((E==null?void 0:E.workspaceRoot)||"~/.mdd-ai-workspace").replace(/\/$/,"")}/pages/${O}`,[E,O,b]),N=l.default.useMemo(()=>`\u8BF7\u5E2E\u6211\u4FEE\u6539\u8FD9\u4E2A MDD \u9875\u9762\uFF1A
61
+ }`;function cn(e){const{defaultValue:t,value:r,schema:o,onChange:i,selectTypes:s=["json","ajax"],generateFastJson:m,hasDelete:d=!1}=e,f=l.default.useState(()=>{if(o===void 0){const w=r||t||{type:s[0]};return new Ct(w)}else return o})[0],[v,{toggle:y}]=_i.useToggle(),[,b]=l.default.useState({});return l.default.useEffect(()=>{f.on("$updated",()=>{b({}),o===void 0&&i&&i(f.toJSON())})},[f]),f.get("type")||(s==null||s[0]),l.default.createElement("div",{className:"ajax-schema-form-container"},l.default.createElement("div",{style:{flex:1}},f.isAjax()?l.default.createElement("div",{className:"data-source-item",onClick:y},l.default.createElement("div",{className:"method"},`${f.get("method")||"-"}`),l.default.createElement("div",{className:"host"},`${f.get("host")||""}`),l.default.createElement("div",{className:"url",title:f.get("url")},`${f.get("url")||""}`)):null,f.isFlow()?l.default.createElement("div",{className:"data-source-item",onClick:y},l.default.createElement("div",{className:"method"},"Flow"),l.default.createElement("div",{className:"host"},`${f.get("params.processDefKey")||""}`),l.default.createElement("div",{className:"url",title:f.get("url")},`${f.get("url")||""}`)):null,f.isStatic()?l.default.createElement("div",{className:"data-source-item",onClick:y},l.default.createElement("div",{className:"method"},"\u9759\u6001(JSON)")):null,f.isEmpty()?l.default.createElement("div",{className:"data-source-item",onClick:y},l.default.createElement("div",{className:"method"},"\u65E0")):null),d&&l.default.createElement(h.Button,{style:{marginLeft:"24px"},warning:!0,onClick:()=>{f.update({type:""})}},l.default.createElement(h.Icon,{type:"ashbin"})),v?l.default.createElement(bT,{visible:!0,schema:f,onClose:y,selectTypes:s,generateFastJson:m}):null)}const pp=({codeRef:e,codeState:t,setCodeState:r,DefaultCode:o})=>l.default.createElement("text",{className:"handle-by-source-code",onClick:()=>{const i=()=>e.current=t,s=h.CnDialog.show({title:"response\u6E90\u7801\u5904\u7406",content:l.default.createElement(Lr,{defaultLanguage:"javascript",defaultValue:t||o,onChange:m=>{e.current=m}}),width:"60%",onOk:()=>{r(e.current||o),s.hide()},onCancel:i,onClose:i})}},"\u6E90\u7801\u5904\u7406");function bT({title:e="\u6570\u636E\u6E90\u914D\u7F6E",schema:t,visible:r,onClose:o,selectTypes:i,generateFastJson:s}){const m=pn(),d=l.default.useMemo(()=>t.clone(),[r]),[f,v]=l.default.useState(Math.random()),[y,b]=l.default.useState(Math.random()),[w,E]=l.default.useState(()=>JSON.stringify(d.get("content"),""," ")),F=l.default.useRef(JSON.stringify(d.get("content"))),[k,C]=l.default.useState(d.get("requestHandleCode")),T=l.default.useRef(d.get("requestHandleCode")),[U,J]=l.default.useState(d.get("responseHandleCode")),W=l.default.useRef(d.get("responseHandleCode")),[,K]=l.default.useState({});l.default.useEffect(()=>{d.on("$updated",S=>{K({})})},[d]);const L=d.getViewType();return l.default.createElement(h.Dialog,{footerActions:["cancel","ok"],title:e,v2:!0,visible:r,centered:!0,width:"80%",height:window.innerHeight*.9,onClose:o,onCancel:o,onOk:()=>{try{d.isStatic()&&d.set("content",JSON.parse(F.current)),k&&d.set("requestHandleCode",k),U&&d.set("responseHandleCode",U)}catch{h.Message.error("JSON \u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5");return}t.extends(d),o()}},l.default.createElement(h.Form,{size:"small",labelAlign:"top",onChange:(S,O)=>{const{name:Y,value:j}=O;Y&&Y!=="type"&&d.set(Y,j),Y==="params.processDefKey"&&b(Math.random())}},l.default.createElement(ln,{name:"type",required:!0,wrapperCol:un,labelCol:sn},l.default.createElement(hT,{value:L,onChange:S=>{d.changeType(S)}},i.indexOf("json")>-1?l.default.createElement(h.Radio,{value:"json"},"\u9759\u6001\u6570\u636E"):null,i.indexOf("ajax")>-1?l.default.createElement(h.Radio,{value:"ajax"},"\u8BF7\u6C42\u63A5\u53E3"):null,i.indexOf("ajax")>-1?l.default.createElement(h.Radio,{value:"flow"},"Flow"):null)),d.isAjax()?l.default.createElement(l.default.Fragment,null,l.default.createElement(ln,{fullWidth:!0,label:"\u8BF7\u6C42\u57DF\u540D",name:"host",wrapperCol:un,labelCol:sn,help:"\u8FD9\u91CC\u914D\u7F6E\u7684\u662F\u53D8\u91CF\u540D\uFF0C\u53D8\u91CF\u5177\u4F53\u503C\u8BF7\u5728\u9879\u76EE config \u76EE\u5F55\u6309\u73AF\u5883\u914D\u7F6E"},l.default.createElement(h.Select.AutoComplete,{dataSource:gT,defaultValue:d.get("host")})),l.default.createElement(ln,{fullWidth:!0,label:"\u8BF7\u6C42\u5730\u5740",name:"url",required:!0,wrapperCol:un,labelCol:sn},l.default.createElement(h.Select.AutoComplete,{dataSource:m.apiList,defaultValue:d.get("url"),onChange:S=>{const O=m.getApi(S);O?d.setAjaxRequest(S,O.method):d.set("url",S)}})),l.default.createElement(ln,{style:{width:"50%"},label:"\u8BF7\u6C42\u65B9\u5F0F",name:"method",required:!0,wrapperCol:un,labelCol:sn},l.default.createElement(h.Select,{value:d.get("method"),dataSource:vT})),l.default.createElement(ln,{label:l.default.createElement("div",null,"\u8BF7\u6C42\u53C2\u6570",l.default.createElement(pp,{codeRef:T,codeState:k,setCodeState:C,DefaultCode:xT}),l.default.createElement("text",{className:"handle-by-source-code-tip"},"\u5148\u4F9D\u636E\u8868\u683C\u586B\u5145\u5165\u53C2\u518D\u8FDB\u5165",l.default.createElement("b",null,"\u6E90\u7801\u5904\u7406")),l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:"",wrapperCol:un,labelCol:sn,style:{position:"relative"}},l.default.createElement("div",{className:"form-item-exart-abs"},"\u5FEB\u6377\u586B\u5145\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:sp,onChange:S=>{d.setParams(cp.get(S)),b(Math.random())}})),l.default.createElement(Un,{key:y,keyTitle:"key(\u53C2\u6570\u540D)",valueTitle:"value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",value:d.get("params"),onChange:S=>{d.set("params",S)}})),l.default.createElement(ln,{fullWidth:!0,label:l.default.createElement("div",null,"\u8FD4\u56DE\u6570\u636E\u683C\u5F0F\u5316",l.default.createElement(pp,{codeRef:W,codeState:U,setCodeState:J,DefaultCode:ET}),l.default.createElement("text",{className:"handle-by-source-code-tip"},"\u5148\u7ECF\u8FC7",l.default.createElement("b",null,"\u6E90\u7801\u5904\u7406"),"\u518D\u4F9D\u636E\u8868\u683C\u5BF9\u5E94\u5173\u7CFB\u5BF9\u5E94"),l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/3942628d-90ec-4b36-a0ed-3038a04bedcb",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:"",wrapperCol:un,labelCol:sn,style:{position:"relative"}},l.default.createElement("div",{className:"form-item-exart-abs"},"\u5E38\u7528\u683C\u5F0F\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:ip,onChange:S=>{d.setFormatResponseData(dp.get(S)),v(Math.random())}})),l.default.createElement(Un,{key:f,value:d.get("formatResponseData"),onChange:S=>{d.set("formatResponseData",S)}}))):null,d.isFlow()?l.default.createElement(l.default.Fragment,null,l.default.createElement(ln,{label:"Flow processDefKey",name:"params.processDefKey",required:!0,wrapperCol:un,labelCol:sn},l.default.createElement(h.CnAsyncSelect,{style:{width:200},showSearch:!0,filterLocal:!1,value:d.get("params.processDefKey"),requestConfig:{url:"/api/flow/desc/pagingList",searchKey:"code"}}),l.default.createElement("a",{href:"/flow/index",style:{marginLeft:10},target:"_blank"},"\u521B\u5EFA Flow")),l.default.createElement(ln,{label:l.default.createElement("div",null,"\u8BF7\u6C42\u53C2\u6570",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:"",wrapperCol:un,labelCol:sn,style:{position:"relative"}},l.default.createElement("div",{className:"form-item-exart-abs"},"\u5FEB\u6377\u586B\u5145\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:sp,onChange:S=>{d.setParams(cp.get(S)),b(Math.random())}})),l.default.createElement(Un,{key:y,keyTitle:"key(\u53C2\u6570\u540D)",valueTitle:"value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",value:d.get("params"),onChange:S=>{d.set("params",S)}})),l.default.createElement(ln,{fullWidth:!0,label:l.default.createElement("div",null,"\u8FD4\u56DE\u6570\u636E\u683C\u5F0F\u5316",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/3942628d-90ec-4b36-a0ed-3038a04bedcb",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:"",wrapperCol:un,labelCol:sn,style:{position:"relative"}},l.default.createElement("div",{className:"form-item-exart-abs"},"\u5E38\u7528\u683C\u5F0F\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:ip,onChange:S=>{d.setFormatResponseData(dp.get(S)),v(Math.random())}})),l.default.createElement(Un,{key:f,value:d.get("formatResponseData"),onChange:S=>{d.set("formatResponseData",S)}}))):null,d.isStatic()?l.default.createElement(ln,{label:"\u8BF7\u8F93\u5165\u6807\u51C6 JSON \u6570\u636E",wrapperCol:un,labelCol:sn,style:{position:"relative"}},s?l.default.createElement("div",{className:"form-item-exart-abs"},"\u5FEB\u6377\u586B\u5145\uFF1A",l.default.createElement(h.Select,{size:"small",style:{width:200},dataSource:yT,onChange:S=>{const O=s(S);E(O),F.current=O}})):null,l.default.createElement(Lr,{value:w,onChange:S=>{F.current=S}})):null))}const{connect:CT,mapReadPretty:FT,mapProps:ST}=h.formilyReact,Rf=CT(cn,ST((e,t)=>({hasExtra:!0,...e}),Jn,Gn),FT(cn)),{connect:DT,mapReadPretty:AT,mapProps:wT}=h.formilyReact,ss=DT(Un,wT((e,t)=>({hasExtra:!0,...e}),Jn,Gn),AT(Un)),mp="CUSTOM",TT="NOW",fp=[{label:"\u65E0",value:"EMPTY"},{label:"\u5F53\u524D\u65F6\u95F4(\u4ECA\u5929)",value:"NOW"},{label:"\u524D\u4E00\u5468",value:"FORWARD_1_WEEK"},{label:"\u524D\u4E00\u6708",value:"FORWARD_1_MONTH"},{label:"\u524D\u4E09\u6708",value:"FORWARD_3_MONTH"},{label:"\u524D\u4E00\u5E74",value:"FORWARD_1_YEAR"},{label:"\u540E\u4E00\u5468",value:"BACKWARD_1_WEEK"},{label:"\u540E\u4E00\u6708",value:"BACKWARD_1_MONTH"},{label:"\u540E\u4E09\u6708",value:"BACKWARD_3_MONTH"},{label:"\u540E\u4E00\u5E74",value:"BACKWARD_1_YEAR"},{label:"\u81EA\u5B9A\u4E49",value:"CUSTOM"}];function hp(e){const{value:t,onChange:r=()=>{},isRange:o}=e,{type:i=TT,value:s=""}=t||{},[m,d]=M.useState(()=>i===mp),f=y=>{d(y===mp);let b={type:y,value:s};y||(b=o?[]:void 0),r(b)},v=y=>{r({type:i,value:y})};return l.default.createElement(h.Box,{spacing:10,direction:"row",align:"center"},l.default.createElement(h.Select,{size:"small",defaultValue:i,dataSource:fp,placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F\u7C7B\u578B",onChange:f,style:{width:200}}),m&&l.default.createElement(h.Input,{size:"small",dataSource:fp,defaultValue:s,placeholder:"\u8BF7\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u5757Key",onChange:v}))}const{connect:IT,mapReadPretty:_T,mapProps:$T}=h.formilyReact,Bf=IT(hp,$T((e,t)=>({...e}),Jn,Gn),_T(hp));function Si(e){const{value:t="",onChange:r=()=>{},_type:o}=e,i=RT(t),s=o==="select";return l.default.createElement(h.Box,{spacing:10,direction:"row",align:"center"},l.default.createElement(h.Select,{size:"small",dataSource:s?$f:oo,value:i.prev,style:{width:"80%"},onChange:m=>{r(BT(m,i.last))}}),OT(i.prev)?l.default.createElement(h.Select.AutoComplete,{dataSource:[],size:"small",style:{width:"20%"},value:i.last,onChange:m=>r(jr(i.prev,m))}):l.default.createElement(h.Input,{size:"small",style:{width:"20%",minWidth:120},value:i.last,hasClear:!0,onChange:m=>r(jr(i.prev,m))}))}function OT(e){const t=$f.find(r=>r.value===e);return t&&t.isOptional}function gp(e,t){const r=e.replace(t,"");return{prev:t,last:r.replace(/^./,"")}}function RT(e){let t=Of(e);return typeof e=="string"&&e.indexOf(zr)!==-1?t={prev:e,last:""}:typeof e=="string"&&e.indexOf(Ja)!==-1?t=gp(e,Ja):typeof e=="string"&&e.indexOf(Ga)!==-1&&(t=gp(e,Ga)),t}function BT(e,t){return e===zr?zr:jr(e,t)}const{connect:kT,mapReadPretty:MT,mapProps:PT}=h.formilyReact,kf=kT(Si,PT((e,t)=>({...e}),Jn,Gn),MT(Si)),NT=({moduleDataSource:e={}})=>({form:{labelCol:4,wrapperCol:20},schema:{type:"object",properties:{action:{type:"object","x-validator":[],name:"action","x-designable-id":"hka9f1m28r0","x-index":0,properties:{type:{type:"string | number",title:"\u64CD\u4F5C\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup",enum:[{children:[],label:"\u63A5\u53E3\u8BF7\u6C42",value:"ajax"},{children:[],label:"url\u8DF3\u8F6C",value:"url"},{children:[],label:"\u6253\u5F00\u5F39\u7A97",value:"dialog"},{children:[],label:"\u6253\u5F00\u62BD\u5C49",value:"drawer"},{children:[],label:"onePage \u6253\u5F00\u5206\u680F",value:"onePage"},{children:[],label:"\u81EA\u5B9A\u4E49",value:"custom"},{children:[],label:"\u5185\u7F6E\u6A21\u5757",value:"defaultModule"}],"x-validator":[],"x-component-props":{optionType:"button",buttonStyle:"solid"},"x-decorator-props":{},name:"type","x-designable-id":"t4h8awuyfv7",default:"ajax"},dataSource:{type:"string",title:"\u63A5\u53E3\u914D\u7F6E","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax"]},"x-decorator-props":{},name:"dataSource","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"t0uv4o8e9ds"},blank:{type:"boolean",title:"\u662F\u5426\u65B0\u7A97\u53E3\u6253\u5F00","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{size:""},"x-decorator-props":{},name:"blank","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'url'}}"}}},"x-designable-id":"emb21kitjil"},value:{title:"\u9875\u9762\u8DEF\u5F84","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"value","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'url'}}"}}},"x-designable-id":"9ifgulzttsh"},cols:{title:"\u5360\u5217\u5BBD","x-decorator":"CnFormItem","x-component":"NumberPicker","x-component-props":{step:1,min:1,max:23},"x-decorator-props":{tip:"\u6700\u5C0F\u4E3A 1\uFF0C\u6700\u5927\u4E3A 23\uFF0C\u9ED8\u8BA4 \u4E3A6\uFF0C\u4E3B\u9875\u9762\u5360\u5217\u5BBD \u4F1A\u81EA\u52A8\u51CF\u53BB\u5F53\u524D cols"},name:"cols",default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'onePage'}}"}}},"x-designable-id":"9efgulzttsh"},selectValue:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"selectValue",enum:(e==null?void 0:e.l4ModuleOptions)||[],default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'custom'}}"}}},"x-designable-id":"9efgulzttsh"},moduleValue:{title:"\u6A21\u5757\u540D\u79F0","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"moduleValue",enum:[{label:"\u5BFC\u5165",value:"mdd_import"},{label:"\u5BFC\u5165(\u5E26\u8F6E\u8BAD\u8FDB\u5EA6)",value:"mdd_import_plus"},{label:"\u5BFC\u51FA",value:"mdd_export"},{label:"\u53EF\u9009\u5217\u5BFC\u51FA",value:"mdd_export_plus"},{label:"\u590D\u5236\u8868\u683C\u6570\u636E",value:"mdd_copy"}],default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule'}}"}}},"x-designable-id":"9ef4545h"},templateUrl:{type:"string",title:"\u4E0B\u8F7D\u6A21\u677F\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"templateUrl",default:{type:"ajax",host:"",method:"GET",url:"/eiport/api/v1/scene/query-by-code",watch:[],params:{sceneCode:"\u8FD9\u91CC\u9700\u8981\u6362\u6210\u81EA\u5DF1\u7684\u4E1A\u52A1code"},formatResponseData:{url:"$RET.data.templateFileAddress"}},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus')}}"}}},"x-designable-id":"t0u12221ds"},ossSignService:{type:"string",title:"\u83B7\u53D6\u7B7E\u540D\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u4F8B\u5982: /eiport/api/v1/task/sign?sceneCode=dwms-count-paper-count-result-export"},"x-decorator-props":{},default:"/eiport/api/v1/task/sign?sceneCode={\u8FD9\u91CC\u6362\u6210\u81EA\u5DF1\u7684\u4E1A\u52A1code}",name:"ossSignService","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus')}}"}}},"x-designable-id":"t0u11111ds"},importStatusService:{type:"string",title:"\u8F6E\u8BAD\u5BFC\u5165\u72B6\u6001\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax","flow"],placeholder:"\u4F8B\u5982: POST /eiport/api/v1/task/query-by-id"},"x-decorator-props":{},name:"importStatusService",default:{type:"ajax",host:"",method:"POST",url:"/eiport/api/v1/task/query-by-id",watch:[],params:{id:"$Import_Plus_Taks_Id.id",taskType:"0"},formatResponseData:{data:"$RET.data"},content:{},summary:"\u8F6E\u8BAD\u83B7\u53D6\u5BFC\u5165\u72B6\u6001",label:"\u8F6E\u8BAD\u83B7\u53D6\u5BFC\u5165\u72B6\u6001",value:"/eiport/api/v1/task/query-by-id"},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && $deps.moduleValue === 'mdd_import_plus'}}"}}},"x-designable-id":"t0u122221111ds"},getFieldsService:{type:"string",title:"\u83B7\u53D6\u6A21\u5757\u5B57\u6BB5\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u83B7\u53D6\u53EF\u9009\u5B57\u6BB5\u5217\u8868\u63A5\u53E3\uFF0Ceg: /common/export/fields?modelCode=xxxxx"},name:"getFieldsService","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ( $deps.moduleValue === 'mdd_export_plus' )}}"}}},"x-designable-id":"9ef452244245h"},service:{type:"string",title:"\u6570\u636E\u8BF7\u6C42\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax"]},"x-decorator-props":{tip:"\u5BFC\u5165 \u6216\u8005 \u5BFC\u51FA\u63A5\u53E3\uFF0C\u652F\u6301\u5F02\u6B65/\u540C\u6B65, taskType: 0\u4E3A\u5BFC\u5165\uFF1B1 \u4E3A\u5BFC\u51FA"},name:"service",default:{type:"ajax",host:"",method:"POST",url:"/eiport/api/v1/task/create",watch:[],params:{sceneCode:"dwms-count-paper-count-result-export",taskType:"0"},formatResponseData:{}},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus' || $deps.moduleValue === 'mdd_export' || $deps.moduleValue === 'mdd_export_plus' )}}"}}},"x-designable-id":"9ef4545h"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'url' || $deps.type === 'custom' || $deps.type === 'updateOtherColumns' }}"}}}},isParentRefresh:{type:"boolean",title:"\u662F\u5426\u7236\u7EA7\u5217\u8868\u5237\u65B0","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"isParentRefresh",default:!0,"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"}}},"x-designable-id":"g63q49ybbc2"},title:{type:"string",title:"\u5BB9\u5668\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:'\u5BB9\u5668\u6807\u9898\uFF0C\u652F\u6301\u6A21\u677F\u8868\u8FBE\u5F0F. eg: "\u6D4B\u8BD5\u6807\u9898 - " + $TABLE.RECORD_DATA.creator'},name:"title","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"d3qx5xvfff4"},closeMode:{title:"\u5173\u95ED\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple"},"x-decorator-props":{},name:"closeMode",enum:[{children:[],label:"\u5173\u95ED\u6309\u94AE",value:"close"},{children:[],label:"\u70B9\u51FBmask\u533A\u57DF",value:"mask"},{label:"\u952E\u76D8esc\u6309\u952E",value:"esc"}],default:"close","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"jtknf7sgpow"},parentRefreshWhenClose:{type:"boolean",title:"\u5173\u95ED\u65F6\u5237\u65B0\u7236\u7EA7\u5217\u8868","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u4EC5\u5728 \u5173\u95ED onePage \u5206\u680F\u65F6\u3001\u6216 \u901A\u8FC7\u3010\u5173\u95ED\u6309\u94AE X\u3011\u3010\u70B9\u51FBmask\u533A\u57DF\u3011\u3010\u952E\u76D8esc\u6309\u952E\u3011\u5173\u95ED\u5F39\u7A97\u65F6 \u5237\u65B0\u7236\u7EA7\u5217\u8868"},name:"parentRefreshWhenClose","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"}}}},size:{type:"string",title:"\u5F39\u7A97\u5C3A\u5BF8","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"size",default:"medium",enum:[{label:"\u5C0F\u53F7",value:"small"},{label:"\u4E2D\u53F7",value:"medium"},{label:"\u5927\u53F7",value:"large"},{label:"\u81EA\u52A8\u9002\u914D",value:"autoLarge"}],"x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog'}}"}}},"x-designable-id":"32ou555h9f3ze7"},width:{type:"string",title:"\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"width",default:"50%","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer'}}"}}},"x-designable-id":"32ouh9f3ze7"},height:{type:"string",title:"\u9AD8\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"height","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"eikfmax2d13"},secondConfirm:{type:"boolean",title:"\u662F\u5426\u4E8C\u6B21\u786E\u8BA4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"secondConfirm","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgussstsh"},secondConfirmTitle:{type:"boolean",title:"\u4E8C\u6B21\u786E\u8BA4\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u6A21\u677F eg: \u63D0\u793A${$TABLE.RECORD_DATA.id} (\u5F53\u524D\u884C\u5BF9\u8C61\u7684id\u53D8\u91CF); https://yuque.antfin.com/docs/share/b0464a1d-77a3-4884-a981-7857a71174aa#H6z5E"},name:"secondConfirmTitle","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"},{property:"value",type:"boolean",source:"action.secondConfirm",name:"secondConfirm"}],fulfill:{state:{visible:"{{$deps.type === 'ajax' && $deps.secondConfirm === true}}"}}},"x-designable-id":"9if123estsh"},secondConfirmContent:{type:"boolean",title:"\u4E8C\u6B21\u786E\u8BA4\u63D0\u793A\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u6A21\u677F eg: \u63D0\u793A${$TABLE.RECORD_DATA.id} (\u5F53\u524D\u884C\u5BF9\u8C61\u7684id\u53D8\u91CF)"},name:"secondConfirmContent","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"},{property:"value",type:"boolean",source:"action.secondConfirm",name:"secondConfirm"}],fulfill:{state:{visible:"{{$deps.type === 'ajax' && $deps.secondConfirm === true}}"}}},"x-designable-id":"9if44453estsh"},successMessage:{type:"string",title:"\u81EA\u5B9A\u4E49\u6210\u529F\u6587\u6848","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"successMessage","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgjasdussstsh"},errorMessage:{type:"string",title:"\u81EA\u5B9A\u4E49\u5931\u8D25\u6587\u6848","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"errorMessage","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgja09sdussstsh"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{tip:'eg: $CURRENT_DATA.status==="success", $CURRENT_DATA\u662F\u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61(\u6BD4\u5982\u8868\u683C\u7684\u884C\u5BF9\u8C61), \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"shouldRender","x-designable-id":"9ifgulsstsh3333"},isDisabled:{title:"\u662F\u5426\u7981\u7528","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u7981\u7528"},"x-decorator-props":{tip:'eg: $CURRENT_DATA.status==="success", $CURRENT_DATA\u662F\u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61(\u6BD4\u5982\u8868\u683C\u7684\u884C\u5BF9\u8C61), \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"isDisabled","x-designable-id":"9ifgulsstsh3335553"},customType:{title:"\u81EA\u5B9A\u4E49\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{mode:"single"},"x-decorator-props":{},name:"customType",enum:[{children:[],label:"\u81EA\u5B9A\u4E49\u6E32\u67D3",value:"RENDER"},{children:[],label:"\u81EA\u5B9A\u4E49\u52A8\u4F5C",value:"ACTION"}],default:"ACTION","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'custom'}}"}}},"x-designable-id":"jtknf7sgpow"},delayLoadingMessageDuration:{type:"string",title:"loading\u63D0\u793A\u6700\u957F\u65F6\u957F","x-decorator":"CnFormItem","x-component":"NumberPicker","x-validator":[],"x-component-props":{innerAfter:"\u6BEB\u79D2",step:1e3,min:1e3},"x-decorator-props":{tip:"\u4EC5\u5F53 \u8BE5\u63A5\u53E3 \u54CD\u5E94\u65F6\u95F4 \u8FC7\u957F(\u4F8B\u5982 \u8D85\u8FC710\u79D2)\u65F6\u4F7F\u7528\uFF0C\u5176\u4ED6\u60C5\u51B5\u4E0D\u63A8\u8350\u4F7F\u7528\u3002key\uFF1AdelayLoadingMessageDuration"},name:"delayLoadingMessageDuration","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgussstsh"}}},btnType:{title:"\u6309\u94AE\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"btnType",enum:[{label:"\u666E\u901A\u6309\u94AE",value:"normal"},{label:"\u4E3B\u6309\u94AE",value:"primary"},{label:"\u6B21\u6309\u94AE",value:"secondary"}],default:"normal","x-designable-id":"jtknf7sgpow22221"},iconClass:{title:"\u6309\u94AE\u56FE\u6807","x-decorator":"CnFormItem","x-component":"CnInput","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u56FE\u6807code"},"x-decorator-props":{tip:"\u8BF7\u5230\u56FE\u6807\u5E93\u9009\u62E9\u56FE\u6807code (\u56FE\u6807\u5E93\u5730\u5740: https://cone.cainiao-inc.com/dsm/common/material/pc/CnIcon)"},name:"iconClass","x-designable-id":"jtknf723334545sgpow22221"},powerId:{title:"\u6743\u9650\u7F16\u7801","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u7F16\u7801\uFF0C\u4E0D\u8BBE\u7F6E\u8868\u793A\u4E00\u76F4\u663E\u793A"},"x-decorator-props":{},name:"powerId","x-designable-id":"jtknqweqe2221"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u989D\u5916\u63D0\u793A\u4FE1\u606F\uFF0C\u76EE\u524D\u4EC5\u90E8\u5206\u6309\u94AE\u652F\u6301"},name:"tooltip","x-designable-id":"sxbt443332zmzk"}},"x-designable-id":"6mjeu53tsgt"}}),LT=(e,t)=>{const{action:r}=e||{},{type:o,dataSource:i,selectValue:s,shouldRender:m,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,isDisabled:y,successMessage:b,errorMessage:w,delayLoadingMessageDuration:E,...F}=r||{};return o==="ajax"?i&&!t?e.action={type:o,...F,shouldRender:m,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,isDisabled:y,successMessage:b,errorMessage:w,delayLoadingMessageDuration:E,...i}:e.action={type:o,dataSource:{type:o,...F},shouldRender:m,isDisabled:y,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,successMessage:b,delayLoadingMessageDuration:E,errorMessage:w,...F}:["dialog","drawer","custom"].includes(o)&&(t?t&&(e.action={...e.action,selectValue:e.action.value}):(e.action={...e.action,value:s},delete e.action.selectValue)),{...e}};var jT={dataAdaptor:LT,formilySchema:NT},YT={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{type:{type:"string | number",title:"\u64CD\u4F5C\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup",enum:[{children:[],label:"\u8BF7\u6C42\u540E\u7AEF",value:0},{children:[],label:"\u5F39\u7A97\u8868\u5355",value:1}],"x-validator":[],"x-component-props":{optionType:"button",buttonStyle:"solid"},"x-decorator-props":{},name:"type","x-designable-id":"sis9fiyypk4","x-index":0},method:{type:"string",title:"\u94FE\u63A5","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"method","x-designable-id":"9gxchnh7fyp","x-index":1}},"x-designable-id":"01oidyjuxnb"}},zT=({moduleDataSource:e={}})=>({form:{labelCol:4,wrapperCol:20},schema:{type:"object",properties:{action:{type:"object","x-validator":[],name:"action","x-designable-id":"hka9f1m28r0","x-index":0,properties:{value:{title:"\u9875\u9762\u8DEF\u5F84","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u53EA\u5141\u8BB8\u662FFTP\u9875\u9762",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},enum:(e==null?void 0:e.l4ModuleOptions)||[],default:"",name:"value","x-designable-id":"9ifgulzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy"},title:{type:"string",title:"\u5BB9\u5668\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"title","x-designable-id":"d3qx5xvfff4"},closeMode:{title:"\u5173\u95ED\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple"},"x-decorator-props":{},name:"closeMode",enum:[{children:[],label:"\u5173\u95ED\u6309\u94AE",value:"close"},{children:[],label:"\u70B9\u51FBmask\u533A\u57DF",value:"mask"},{label:"\u952E\u76D8esc\u6309\u952E",value:"esc"}],default:"close","x-designable-id":"jtknf7sgpow"},width:{type:"string",title:"\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"width","x-designable-id":"32ouh9f3ze7"}}},mode:{title:"\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},enum:[{children:[],label:"\u5355\u9009",value:"single"},{children:[],label:"\u591A\u9009",value:"multiple"}],default:"multiple","x-decorator-props":{},name:"mode","x-designable-id":"jtk2222nqweqe2221"},allowsDuplicates:{title:"\u662F\u5426\u5141\u8BB8\u91CD\u590D","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},default:!0,"x-decorator-props":{},name:"allowsDuplicates","x-designable-id":"jtk1112222nqweqe2221"},unique:{title:"\u91CD\u590D\u503C\u5224\u65ADKEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},default:!1,"x-decorator-props":{tip:"\u652F\u6301\u591A\u5C42\u7EA7\uFF0C\u4F8B\u5982: updater.0"},name:"unique",default:"id","x-designable-id":"jtk111555522nqweqe2221"},btnType:{title:"\u6309\u94AE\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"btnType",enum:[{label:"\u666E\u901A\u6309\u94AE",value:"normal"},{label:"\u4E3B\u6309\u94AE",value:"primary"},{label:"\u6B21\u6309\u94AE",value:"secondary"}],default:"normal","x-designable-id":"jtknf7sg222pow22221"},powerId:{title:"\u6743\u9650\u7F16\u7801","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u7F16\u7801\uFF0C\u4E0D\u8BBE\u7F6E\u8868\u793A\u4E00\u76F4\u663E\u793A"},"x-decorator-props":{},name:"powerId","x-designable-id":"jtknqweqe2221"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u989D\u5916\u63D0\u793A\u4FE1\u606F\uFF0C\u76EE\u524D\u4EC5\u90E8\u5206\u6309\u94AE\u652F\u6301"},name:"tooltip","x-designable-id":"sxbt443332zmzk"}},"x-designable-id":"6mjeu53tsgt"}});const HT=({moduleDataSource:e={}})=>({form:{labelCol:4,wrapperCol:20},schema:{type:"object",properties:{action:{type:"object","x-validator":[],name:"action","x-designable-id":"hka9f1m28r0","x-index":0,properties:{type:{type:"string | number",title:"\u64CD\u4F5C\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup",enum:[{children:[],label:"\u6253\u5F00\u62BD\u5C49",value:"drawer"},{children:[],label:"\u5185\u7F6E\u6A21\u5757",value:"defaultModule"}],"x-validator":[],"x-component-props":{optionType:"button",buttonStyle:"solid"},"x-decorator-props":{},name:"type","x-designable-id":"t4h8awuyfv7",default:"ajax"},dataSource:{type:"string",title:"\u63A5\u53E3\u914D\u7F6E","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax"]},"x-decorator-props":{},name:"dataSource","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"t0uv4o8e9ds"},blank:{type:"boolean",title:"\u662F\u5426\u65B0\u7A97\u53E3\u6253\u5F00","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{size:""},"x-decorator-props":{},name:"blank","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'url'}}"}}},"x-designable-id":"emb21kitjil"},value:{title:"\u9875\u9762\u8DEF\u5F84","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"value","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'url'}}"}}},"x-designable-id":"9ifgulzttsh"},cols:{title:"\u5360\u5217\u5BBD","x-decorator":"CnFormItem","x-component":"NumberPicker","x-component-props":{step:1,min:1,max:23},"x-decorator-props":{tip:"\u6700\u5C0F\u4E3A 1\uFF0C\u6700\u5927\u4E3A 23\uFF0C\u9ED8\u8BA4 \u4E3A6\uFF0C\u4E3B\u9875\u9762\u5360\u5217\u5BBD \u4F1A\u81EA\u52A8\u51CF\u53BB\u5F53\u524D cols"},name:"cols",default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'onePage'}}"}}},"x-designable-id":"9efgulzttsh"},selectValue:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"selectValue",enum:(e==null?void 0:e.l4ModuleOptions)||[],default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'custom'}}"}}},"x-designable-id":"9efgulzttsh"},moduleValue:{title:"\u6A21\u5757\u540D\u79F0","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"moduleValue",enum:[{label:"\u5BFC\u5165",value:"mdd_import"},{label:"\u5BFC\u5165(\u5E26\u8F6E\u8BAD\u8FDB\u5EA6)",value:"mdd_import_plus"},{label:"\u5BFC\u51FA",value:"mdd_export"},{label:"\u53EF\u9009\u5217\u5BFC\u51FA",value:"mdd_export_plus"},{label:"\u590D\u5236\u8868\u683C\u6570\u636E",value:"mdd_copy"}],default:"","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule'}}"}}},"x-designable-id":"9ef4545h"},templateUrl:{type:"string",title:"\u4E0B\u8F7D\u6A21\u677F\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"templateUrl",default:{type:"ajax",host:"",method:"GET",url:"/eiport/api/v1/scene/query-by-code",watch:[],params:{sceneCode:"\u8FD9\u91CC\u9700\u8981\u6362\u6210\u81EA\u5DF1\u7684\u4E1A\u52A1code"},formatResponseData:{url:"$RET.data.templateFileAddress"}},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus')}}"}}},"x-designable-id":"t0u12221ds"},ossSignService:{type:"string",title:"\u83B7\u53D6\u7B7E\u540D\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u4F8B\u5982: /eiport/api/v1/task/sign?sceneCode=dwms-count-paper-count-result-export"},"x-decorator-props":{},default:"/eiport/api/v1/task/sign?sceneCode={\u8FD9\u91CC\u6362\u6210\u81EA\u5DF1\u7684\u4E1A\u52A1code}",name:"ossSignService","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus')}}"}}},"x-designable-id":"t0u11111ds"},importStatusService:{type:"string",title:"\u8F6E\u8BAD\u5BFC\u5165\u72B6\u6001\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax","flow"],placeholder:"\u4F8B\u5982: POST /eiport/api/v1/task/query-by-id"},"x-decorator-props":{},name:"importStatusService",default:{type:"ajax",host:"",method:"POST",url:"/eiport/api/v1/task/query-by-id",watch:[],params:{id:"$Import_Plus_Taks_Id.id",taskType:"0"},formatResponseData:{data:"$RET.data"},content:{},summary:"\u8F6E\u8BAD\u83B7\u53D6\u5BFC\u5165\u72B6\u6001",label:"\u8F6E\u8BAD\u83B7\u53D6\u5BFC\u5165\u72B6\u6001",value:"/eiport/api/v1/task/query-by-id"},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && $deps.moduleValue === 'mdd_import_plus'}}"}}},"x-designable-id":"t0u122221111ds"},getFieldsService:{type:"string",title:"\u83B7\u53D6\u6A21\u5757\u5B57\u6BB5\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u83B7\u53D6\u53EF\u9009\u5B57\u6BB5\u5217\u8868\u63A5\u53E3\uFF0Ceg: /common/export/fields?modelCode=xxxxx"},name:"getFieldsService","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ( $deps.moduleValue === 'mdd_export_plus' )}}"}}},"x-designable-id":"9ef452244245h"},service:{type:"string",title:"\u6570\u636E\u8BF7\u6C42\u63A5\u53E3","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{selectTypes:["ajax"]},"x-decorator-props":{tip:"\u5BFC\u5165 \u6216\u8005 \u5BFC\u51FA\u63A5\u53E3\uFF0C\u652F\u6301\u5F02\u6B65/\u540C\u6B65, taskType: 0\u4E3A\u5BFC\u5165\uFF1B1 \u4E3A\u5BFC\u51FA"},name:"service",default:{type:"ajax",host:"",method:"POST",url:"/eiport/api/v1/task/create",watch:[],params:{sceneCode:"dwms-count-paper-count-result-export",taskType:"0"},formatResponseData:{}},"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"},{property:"value",type:"any",source:"action.moduleValue",name:"moduleValue"}],fulfill:{state:{visible:"{{$deps.type === 'defaultModule' && ($deps.moduleValue === 'mdd_import' || $deps.moduleValue === 'mdd_import_plus' || $deps.moduleValue === 'mdd_export' || $deps.moduleValue === 'mdd_export_plus' )}}"}}},"x-designable-id":"9ef4545h"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'url' || $deps.type === 'custom' || $deps.type === 'updateOtherColumns' }}"}}}},isParentRefresh:{type:"boolean",title:"\u662F\u5426\u7236\u7EA7\u5217\u8868\u5237\u65B0","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"isParentRefresh",default:!0,"x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"}}},"x-designable-id":"g63q49ybbc2"},mode:{title:"\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},enum:[{children:[],label:"\u5355\u9009",value:"single"},{children:[],label:"\u591A\u9009",value:"multiple"}],default:"multiple","x-decorator-props":{},name:"mode","x-designable-id":"jtk2222nqweqe2221","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer' }}"}}}},allowsDuplicates:{title:"\u662F\u5426\u5141\u8BB8\u91CD\u590D","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},default:!0,"x-decorator-props":{},name:"allowsDuplicates","x-designable-id":"jtk1112222nqweqe2221","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer' }}"}}}},unique:{title:"\u91CD\u590D\u503C\u5224\u65ADKEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u591A\u5C42\u7EA7\uFF0C\u4F8B\u5982: updater.0"},name:"unique",default:"id","x-designable-id":"jtk111555522nqweqe2221","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer' }}"}}}},"btn-type":{title:"\u6309\u94AE\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},name:"btn-type",default:"batch-add","x-display":"hidden","x-designable-id":"jtk111555522nqweqe2221","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{value:"{{$deps.type === 'drawer' ? 'batch-add' : 'import'}}"}}}},title:{type:"string",title:"\u5BB9\u5668\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:'\u5BB9\u5668\u6807\u9898\uFF0C\u652F\u6301\u6A21\u677F\u8868\u8FBE\u5F0F. eg: "\u6D4B\u8BD5\u6807\u9898 - " + $TABLE.RECORD_DATA.creator'},name:"title","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"d3qx5xvfff4"},closeMode:{title:"\u5173\u95ED\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple"},"x-decorator-props":{},name:"closeMode",enum:[{children:[],label:"\u5173\u95ED\u6309\u94AE",value:"close"},{children:[],label:"\u70B9\u51FBmask\u533A\u57DF",value:"mask"},{label:"\u952E\u76D8esc\u6309\u952E",value:"esc"}],default:"close","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"jtknf7sgpow"},parentRefreshWhenClose:{type:"boolean",title:"\u5173\u95ED\u65F6\u5237\u65B0\u7236\u7EA7\u5217\u8868","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u4EC5\u5728 \u5173\u95ED onePage \u5206\u680F\u65F6\u3001\u6216 \u901A\u8FC7\u3010\u5173\u95ED\u6309\u94AE X\u3011\u3010\u70B9\u51FBmask\u533A\u57DF\u3011\u3010\u952E\u76D8esc\u6309\u952E\u3011\u5173\u95ED\u5F39\u7A97\u65F6 \u5237\u65B0\u7236\u7EA7\u5217\u8868"},name:"parentRefreshWhenClose","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"}}}},size:{type:"string",title:"\u5F39\u7A97\u5C3A\u5BF8","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"size",default:"medium",enum:[{label:"\u5C0F\u53F7",value:"small"},{label:"\u4E2D\u53F7",value:"medium"},{label:"\u5927\u53F7",value:"large"},{label:"\u81EA\u52A8\u9002\u914D",value:"autoLarge"}],"x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog'}}"}}},"x-designable-id":"32ou555h9f3ze7"},width:{type:"string",title:"\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"width",default:"50%","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{ $deps.type === 'drawer'}}"}}},"x-designable-id":"32ouh9f3ze7"},height:{type:"string",title:"\u9AD8\u5EA6","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{hasClear:!0},"x-decorator-props":{},name:"height","x-reactions":{dependencies:[{property:"value",type:"any",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"}}},"x-designable-id":"eikfmax2d13"},secondConfirm:{type:"boolean",title:"\u662F\u5426\u4E8C\u6B21\u786E\u8BA4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"secondConfirm","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgussstsh"},secondConfirmTitle:{type:"boolean",title:"\u4E8C\u6B21\u786E\u8BA4\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u6A21\u677F eg: \u63D0\u793A${$TABLE.RECORD_DATA.id} (\u5F53\u524D\u884C\u5BF9\u8C61\u7684id\u53D8\u91CF); https://yuque.antfin.com/docs/share/b0464a1d-77a3-4884-a981-7857a71174aa#H6z5E"},name:"secondConfirmTitle","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"},{property:"value",type:"boolean",source:"action.secondConfirm",name:"secondConfirm"}],fulfill:{state:{visible:"{{$deps.type === 'ajax' && $deps.secondConfirm === true}}"}}},"x-designable-id":"9if123estsh"},secondConfirmContent:{type:"boolean",title:"\u4E8C\u6B21\u786E\u8BA4\u63D0\u793A\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u652F\u6301\u6A21\u677F eg: \u63D0\u793A${$TABLE.RECORD_DATA.id} (\u5F53\u524D\u884C\u5BF9\u8C61\u7684id\u53D8\u91CF)"},name:"secondConfirmContent","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"},{property:"value",type:"boolean",source:"action.secondConfirm",name:"secondConfirm"}],fulfill:{state:{visible:"{{$deps.type === 'ajax' && $deps.secondConfirm === true}}"}}},"x-designable-id":"9if44453estsh"},successMessage:{type:"string",title:"\u81EA\u5B9A\u4E49\u6210\u529F\u6587\u6848","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"successMessage","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgjasdussstsh"},errorMessage:{type:"string",title:"\u81EA\u5B9A\u4E49\u5931\u8D25\u6587\u6848","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"errorMessage","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgja09sdussstsh"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{tip:'eg: $CURRENT_DATA.status==="success", $CURRENT_DATA\u662F\u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61(\u6BD4\u5982\u8868\u683C\u7684\u884C\u5BF9\u8C61), \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"shouldRender","x-designable-id":"9ifgulsstsh3333"},isDisabled:{title:"\u662F\u5426\u7981\u7528","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u7981\u7528"},"x-decorator-props":{tip:'eg: $CURRENT_DATA.status==="success", $CURRENT_DATA\u662F\u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61(\u6BD4\u5982\u8868\u683C\u7684\u884C\u5BF9\u8C61), \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"isDisabled","x-designable-id":"9ifgulsstsh3335553"},customType:{title:"\u81EA\u5B9A\u4E49\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{mode:"single"},"x-decorator-props":{},name:"customType",enum:[{children:[],label:"\u81EA\u5B9A\u4E49\u6E32\u67D3",value:"RENDER"},{children:[],label:"\u81EA\u5B9A\u4E49\u52A8\u4F5C",value:"ACTION"}],default:"ACTION","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'custom'}}"}}},"x-designable-id":"jtknf7sgpow"},delayLoadingMessageDuration:{type:"string",title:"loading\u63D0\u793A\u6700\u957F\u65F6\u957F","x-decorator":"CnFormItem","x-component":"NumberPicker","x-validator":[],"x-component-props":{innerAfter:"\u6BEB\u79D2",step:1e3,min:1e3},"x-decorator-props":{tip:"\u4EC5\u5F53 \u8BE5\u63A5\u53E3 \u54CD\u5E94\u65F6\u95F4 \u8FC7\u957F(\u4F8B\u5982 \u8D85\u8FC710\u79D2)\u65F6\u4F7F\u7528\uFF0C\u5176\u4ED6\u60C5\u51B5\u4E0D\u63A8\u8350\u4F7F\u7528\u3002key\uFF1AdelayLoadingMessageDuration"},name:"delayLoadingMessageDuration","x-reactions":{dependencies:[{property:"value",type:"string | number",source:"action.type",name:"type"}],fulfill:{state:{visible:"{{$deps.type === 'ajax'}}"}}},"x-designable-id":"9ifgussstsh"}}},btnType:{title:"\u6309\u94AE\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"btnType",enum:[{label:"\u666E\u901A\u6309\u94AE",value:"normal"},{label:"\u4E3B\u6309\u94AE",value:"primary"},{label:"\u6B21\u6309\u94AE",value:"secondary"}],default:"normal","x-designable-id":"jtknf7sgpow22221"},iconClass:{title:"\u6309\u94AE\u56FE\u6807","x-decorator":"CnFormItem","x-component":"CnInput","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u56FE\u6807code"},"x-decorator-props":{tip:"\u8BF7\u5230\u56FE\u6807\u5E93\u9009\u62E9\u56FE\u6807code (\u56FE\u6807\u5E93\u5730\u5740: https://cone.cainiao-inc.com/dsm/common/material/pc/CnIcon)"},name:"iconClass","x-designable-id":"jtknf723334545sgpow22221"},powerId:{title:"\u6743\u9650\u7F16\u7801","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u7F16\u7801\uFF0C\u4E0D\u8BBE\u7F6E\u8868\u793A\u4E00\u76F4\u663E\u793A"},"x-decorator-props":{},name:"powerId","x-designable-id":"jtknqweqe2221"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u989D\u5916\u63D0\u793A\u4FE1\u606F\uFF0C\u76EE\u524D\u4EC5\u90E8\u5206\u6309\u94AE\u652F\u6301"},name:"tooltip","x-designable-id":"sxbt443332zmzk"}},"x-designable-id":"6mjeu53tsgt"}}),VT=(e,t)=>{const{action:r}=e||{},{type:o,dataSource:i,selectValue:s,shouldRender:m,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,isDisabled:y,successMessage:b,errorMessage:w,delayLoadingMessageDuration:E,...F}=r||{};return o==="ajax"?i&&!t?e.action={type:o,...F,shouldRender:m,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,isDisabled:y,successMessage:b,errorMessage:w,delayLoadingMessageDuration:E,...i}:e.action={type:o,dataSource:{type:o,...F},shouldRender:m,isDisabled:y,secondConfirm:d,secondConfirmTitle:f,secondConfirmContent:v,successMessage:b,delayLoadingMessageDuration:E,errorMessage:w,...F}:["dialog","drawer","custom"].includes(o)&&(t?t&&(e.action={...e.action,selectValue:e.action.value}):(e.action={...e.action,value:s},delete e.action.selectValue)),{...e}};var UT={dataAdaptor:VT,formilySchema:HT},qT={button:jT,multiButton:YT,"batch-add":zT,editButton:UT},WT={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{primaryKey:{type:"string",title:"\u4E3B\u952E","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u4E3B\u952E"},"x-decorator-props":{},name:"primaryKey",required:!1,"x-designable-id":"zdrjdigckvw","x-index":0}},"x-designable-id":"c1f6xiczrp8"}},at=({listSchema:e=[]})=>{var r;const t=(e==null?void 0:e.map(o=>({...o,value:o.name||o.label})))||[];return{width:{type:"number",title:"\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[{triggerType:"onBlur",format:"number",message:"\u4EC5\u652F\u6301\u6570\u5B57"}],"x-component-props":{precision:5,onCorrect:()=>{}},"x-decorator-props":{},name:"width","x-designable-id":"qii5r2m5svg"},serverI18nKey:{type:"string",title:"\u56FD\u9645\u5316KEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"},name:"serverI18nKey","x-designable-id":"sxbti2p222233122mzk"},serverDataHandleType:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{useDetailValue:!0,hasClear:!0},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\uFF0C\u4E0D\u5904\u7406\uFF0C\u53EF\u4EE5\u9009\u62E9json\uFF0C \u8868\u793A\u5B57\u7B26\u4E32 \u548C json \u4E92\u8F6C"},name:"serverDataHandleType",enum:((r=window==null?void 0:window.__MDD_ModuleDataSource)==null?void 0:r.l4DataHandleOptions)||[{label:"JSON\u5904\u7406",value:"json"}],"x-designable-id":"sxbtip2222311236622mzk"},serverDataHandleParams:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570\uFF0C\u4E0D\u540C\u7684\u5904\u7406\u7C7B\u578B\uFF0C\u53C2\u6570\u4E0D\u540C,eg: arg1,arg2"},name:"serverDataHandleParams","x-designable-id":"sxasd223122mzk","x-reactions":{dependencies:[".serverDataHandleType"],when:"{{$deps[0]}}",fulfill:{state:{value:'{{$deps[0]?.params || ""}}'}}}},lock:{title:"\u662F\u5426\u9501\u5217","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"lock",default:"",enum:[{label:"\u4E0D\u9501\u5217",value:""},{label:"\u5DE6\u4FA7\u9501\u5217",value:"left"},{label:"\u53F3\u4FA7\u9501\u5217",value:"right"}],"x-designable-id":"sudwfycwir1"},sortable:{title:"\u662F\u5426\u53EF\u6392\u5E8F","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u6682\u65F6\u53EA\u80FD\u5728FTP\u6A21\u677F\u4E2D\u4F7F\u7528\u3002\u9ED8\u8BA4\u662F\u524D\u7AEF\u672C\u5730\u6392\u5E8F\uFF0C\u5728\u5185\u5BB9\u533A\u914D\u7F6E\u6700\u4E0B\u9762\u53EF\u4EE5\u5F00\u542F\u8FDC\u7A0B\u6392\u5E8F"},name:"sortable",default:!1,"x-designable-id":"sudwfyc3211"},filter:{title:"\u662F\u5426\u53EF\u5217\u5934\u7B5B\u9009","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u7EAF\u524D\u7AEF\u6392\u5E8F\uFF0C \u9700\u8981\u914D\u5408\u5185\u5BB9\u533A\u5F00\u542F\u6392\u5E8F\u529F\u80FD\uFF0C \u6216\u8005\u5168\u5C40\u5F00\u542F\u6392\u5E8F\u529F\u80FD"},name:"filter",default:!0,"x-designable-id":"sudwf33333yc3211"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{tip:'\u6682\u65F6\u53EA\u80FD\u5728\u8BE6\u60C5\u5361\u7247\u4E2D\u4F7F\u7528\u3002eg: value==="success", value\u4E3A\u5F53\u524D\u5361\u7247item\u7684value, \u5176\u4ED6\u4E0A\u4E0B\u6587\u4F9D\u7136\u53EF\u4EE5\u4F7F\u7528'},name:"shouldRender","x-designable-id":"9ifgu123sh3333"},align:{title:"\u6587\u672C\u5BF9\u9F50\u65B9\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"table\u5355\u5143\u683C\u4E2D\u7684\u6587\u672C\u6216\u5185\u5BB9\u7684 \u5BF9\u5176\u65B9\u5411 eg: left\u3001right\u3001center"},enum:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:"align","x-designable-id":"9ifgu13123333"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u989D\u5916\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbti21112zmzk"},parentHeaderColumn:{type:"string",title:"\u8868\u5934\u5206\u7EC4\u7236\u7EA7\u5217","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{tip:"\u8BBE\u7F6E\u7236\u7EA7\u540E\uFF0C\u5F53\u524D\u5217\u8868\u5934\u4F1A\u663E\u793A\u5728\u7236\u7EA7\u5217\u7684\u4E0B\u9762"},enum:t,name:"parentHeaderColumn","x-designable-id":"sxbti11221112zmzk"}}};const lo={shouldCopyClipboard:{title:"\u53EF\u590D\u5236","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u662F\u5426\u53EF\u4EE5\u590D\u5236\u5230\u526A\u5207\u677F"},default:!1,name:"shouldCopyClipboard","x-designable-id":"sxbti22331112zmzk"}};var KT=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),...lo},"x-designable-id":"j744a1rk494"}}),JT=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),tpl:{type:"string",title:"\u6A21\u677F\u8868\u8FBE\u5F0F","x-decorator":"CnFormItem","x-component":"Input","x-validator":[{triggerType:"onBlur",message:""}],"x-component-props":{},"x-decorator-props":{inset:!1,tip:'\u793A\u4F8B\uFF1A${value ? "\u662F" : "\u5426"}'},"x-designable-id":"di5at2neb8u","x-index":0},...lo},"x-designable-id":"kv084cg1qw7"}}),GT=e=>({form:{labelCol:4,wrapperCol:18},schema:{type:"object",properties:{...at(e),dataSource:{type:"array",title:"\u6807\u7B7E\u9879","x-decorator":"CnFormItem","x-component":"CnArrayTable","x-validator":[],"x-component-props":{},"x-decorator-props":{},"x-designable-id":"2llnlw0zknr","x-index":0,name:"dataSource",items:{type:"object","x-designable-id":"092v9dqg2an",properties:{label:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u663E\u793A\u540D"},name:"label","x-designable-id":"6t89030495o","x-index":0,properties:{label:{type:"string","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8F93\u5165\u663E\u793A\u5185\u5BB9"},"x-decorator-props":{},name:"label","x-designable-id":"lhgnd2hni2c","x-index":0}}},value:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u679A\u4E3E\u503C"},name:"value","x-designable-id":"dbpmpr1s8l0","x-index":1,properties:{value:{type:"string","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8F93\u5165\u663E\u793A\u5BF9\u5E94\u7684\u503C"},"x-decorator-props":{},name:"value","x-designable-id":"eza9h5nd811","x-index":0}}},type:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u989C\u8272"},name:"type","x-designable-id":"c56rfuaez26","x-index":2,properties:{type:{"x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u9009\u62E9\u989C\u8272",size:"small"},"x-decorator-props":{},name:"type",enum:[{children:[],label:"\u6D45\u7EFF",value:"#D6FCF5"},{children:[],label:"\u6D45\u84DD",value:"#A3D9FB"},{children:[],label:"\u6D45\u7EA2",value:"#ffeeec"},{children:[],label:"\u6D45\u9EC4",value:"#FEF0D6"},{children:[],label:"\u6D45\u7070",value:"#E9EDF8"},{children:[],label:"\u84DD\u8272",value:"blue"},{children:[],label:"\u7EFF\u8272",value:"green"},{children:[],label:"\u6A59\u8272",value:"orange"},{children:[],label:"\u7EA2\u8272",value:"red"},{children:[],label:"\u7EFF\u677E\u77F3",value:"turquoise"},{children:[],label:"\u9EC4\u8272",value:"yellow"},{children:[],label:"\u9ED8\u8BA4",value:"default"}],"x-designable-id":"i43112h1uge","x-index":0}}},hqnameqwa3b:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u64CD\u4F5C",width:90},"x-designable-id":"hqnameqwa3b","x-index":3,properties:{b7kptwyd6np:{type:"void","x-component":"CnArrayTableRemove","x-designable-id":"b7kptwyd6np","x-index":0},pj1bx0ttexd:{type:"void","x-component":"CnArrayTableMoveDown","x-designable-id":"pj1bx0ttexd","x-index":1},i1og9fm20lb:{type:"void","x-component":"CnArrayTableMoveUp","x-designable-id":"i1og9fm20lb","x-index":2}}}}},properties:{tb7rhj3oln3:{type:"void",title:"Addition","x-component":"CnArrayTableAddition","x-component-props":{title:"\u6DFB\u52A0",method:"push"},"x-designable-id":"tb7rhj3oln3","x-index":0}}}},"x-designable-id":"kv084cg1qw7"}}),QT=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),format:{type:"string",title:"\u65E5\u671F\u663E\u793A\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"}},"x-decorator-props":{},default:"YYYY-MM-DD",name:"format",enum:[{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"}],"x-designable-id":"sxb8qjazmzk","x-index":0},...lo,"x-designable-id":"loa7444d8t3"}}}),XT=e=>{const{moduleDataSource:t={}}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),customType:{title:"\u81EA\u5B9A\u4E49\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{mode:"single"},"x-decorator-props":{},name:"customType",enum:[{children:[],label:"\u81EA\u5B9A\u4E49\u6E32\u67D3",value:"RENDER"},{children:[],label:"\u81EA\u5B9A\u4E49\u52A8\u4F5C",value:"ACTION"}],default:"ACTION","x-designable-id":"jtknf7sgpow"},value:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"value",enum:(t==null?void 0:t.l4ModuleOptions)||[],default:"","x-designable-id":"9efgulzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy"},"x-designable-id":"loa5555d8t3"}}}},ZT=e=>({form:{labelCol:4,wrapperCol:18},schema:{type:"object",properties:{...at(e),dataSource:{type:"array",title:"\u679A\u4E3E\u9879","x-decorator":"CnFormItem","x-component":"CnArrayTable","x-validator":[],"x-component-props":{},"x-decorator-props":{},"x-designable-id":"2llnlw0zknr","x-index":0,name:"dataSource",items:{type:"object","x-designable-id":"092v9dqg2an",properties:{label:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u663E\u793A\u540D"},name:"label","x-designable-id":"6t89030495o","x-index":0,properties:{label:{type:"string","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8F93\u5165\u663E\u793A\u5185\u5BB9"},"x-decorator-props":{},name:"label","x-designable-id":"lhgnd2hni2c","x-index":0}}},value:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u679A\u4E3E\u503C"},name:"value","x-designable-id":"dbpmpr1s8l0","x-index":1,properties:{value:{type:"string","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8F93\u5165\u663E\u793A\u5BF9\u5E94\u7684\u503C"},"x-decorator-props":{},name:"value","x-designable-id":"eza9h5nd811","x-index":0}}},hqnameqwa3b:{type:"void","x-component":"CnArrayTableColumn","x-component-props":{title:"\u64CD\u4F5C",width:90},"x-designable-id":"hqnameqwa3b","x-index":3,properties:{b7kptwyd6np:{type:"void","x-component":"CnArrayTableRemove","x-designable-id":"b7kptwyd6np","x-index":0},pj1bx0ttexd:{type:"void","x-component":"CnArrayTableMoveDown","x-designable-id":"pj1bx0ttexd","x-index":1},i1og9fm20lb:{type:"void","x-component":"CnArrayTableMoveUp","x-designable-id":"i1og9fm20lb","x-index":2}}}}},properties:{tb7rhj3oln3:{type:"void",title:"Addition","x-component":"CnArrayTableAddition","x-component-props":{title:"\u6DFB\u52A0",method:"push"},"x-designable-id":"tb7rhj3oln3","x-index":0}}}},"x-designable-id":"kv084cg1qw7"}}),eI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),format:{title:"\u6570\u503C\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",placeholder:"\u652F\u6301\u624B\u52A8\u8F93\u5165numeraljs\u683C\u5F0F\u5316\u5B57\u7B26\u4E32"},"x-decorator-props":{tip:"\u652F\u6301numeraljs\u6240\u6709\u683C\u5F0F\u5316\u914D\u7F6E,\u53C2\u8003: http://numeraljs.com/#format"},name:"format",enum:[{label:"\u65E0",value:"decimal"},{label:"\u8D27\u5E01\u683C\u5F0F",value:"currency"},{label:"\u767E\u5206\u6BD4",value:"percent"}],"x-designable-id":"v15ikv970as"},...lo},"x-designable-id":"kv084cg1qw7"}}),tI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"j741121rk494"}}),nI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),showNum:{type:"number",title:"\u663E\u793A\u5728\u8868\u683C\u5217\u7684\u6761\u6570","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[{triggerType:"onBlur",format:"number",message:"\u4EC5\u652F\u6301\u6570\u5B57"}],"x-component-props":{min:1},"x-decorator-props":{},default:1,name:"showNum","x-designable-id":"qii5r222m5svg"},copyToClipboard:{type:"boolean",title:"\u662F\u5426\u53EF\u590D\u5236","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!0,name:"copyToClipboard","x-designable-id":"qii1232m5svg"},moreText:{type:"string",title:'\u81EA\u5B9A\u4E49"\u66F4\u591A"\u6587\u6848',"x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"\u66F4\u591A",name:"moreText","x-designable-id":"qii1233332m5svg"},valueRenderKey:{type:"string",title:"\u663E\u793A\u5B57\u6BB5(\u5B57\u7B26\u4E32\u6570\u7EC4\u65E0\u9700\u8BBE\u7F6E)","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"valueRenderKey","x-designable-id":"qii12345532m5svg"}},"x-designable-id":"j74114234494"}}),rI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),align:{title:"\u6D6E\u5C42\u65B9\u5411","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"align",default:"t",enum:[{label:"\u4E0A",value:"t"},{label:"\u5DE6",value:"l"},{label:"\u53F3",value:"r"},{label:"\u4E0B",value:"b"}],"x-designable-id":"v15i22270as"},...lo,"x-designable-id":"asda74434d8t3"}}}),aI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e),isFile:{type:"boolean",title:"\u662F\u5426\u662F\u9644\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u662F\u5219\u663E\u793A\u9644\u4EF6\u7C7B\u578B\uFF0C\u5426\u5219\u663E\u793A\u56FE\u7247\u7C7B\u578B"},default:!1,name:"isImage","x-designable-id":"sxb85123k22323"},shape:{type:"string",title:"\u5F62\u72B6","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"mini",name:"shape",enum:[{label:"\u7D27\u51D1",value:"mini"},{label:"\u5E38\u89C4",value:"normal"}],"x-designable-id":"sxb85123222k22323"},imageWidth:{type:"string",title:"\u7F29\u7565\u56FE\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{precision:5,onCorrect:()=>{}},"x-decorator-props":{},default:30,name:"imageWidth","x-designable-id":"sxb85123k"},imageHeight:{type:"string",title:"\u7F29\u7565\u56FE\u5BBD\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{precision:5,onCorrect:()=>{}},"x-decorator-props":{},default:30,name:"imageHeight","x-designable-id":"sxb8123mzk"},errorUrl:{type:"string",title:"\u52A0\u8F7D\u51FA\u9519\u5360\u4F4D\u56FE","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"",name:"errorUrl","x-designable-id":"sxb85235mzk"},hasDownload:{type:"string",title:"\u80FD\u5426\u4E0B\u8F7D","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!0,name:"hasDownload","x-designable-id":"sxb1235235mzk"},"x-designable-id":"loa73568t3"}}}),oI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),lI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),uI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),iI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),sI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg1qw7"}}),cI=e=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...at(e)},"x-designable-id":"kv084cg3331qw7"}}),pt=()=>{var e;return{shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{},name:"shouldRender"},hasClear:{type:"boolean",title:"\u6709\u6E05\u9664\u6309\u94AE","x-decorator":"CnFormItem","x-component":"Switch",name:"hasClear","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k3272222"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbtip2222mzk"},serverI18nKey:{type:"string",title:"\u56FD\u9645\u5316KEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"},name:"serverI18nKey","x-designable-id":"sxbtip22223122mzk"},serverDataHandleType:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{useDetailValue:!0,hasClear:!0},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\uFF0C\u4E0D\u5904\u7406\uFF0C\u53EF\u4EE5\u9009\u62E9json\uFF0C \u8868\u793A\u5B57\u7B26\u4E32 \u548C json \u4E92\u8F6C"},name:"serverDataHandleType",enum:((e=window==null?void 0:window.__MDD_ModuleDataSource)==null?void 0:e.l4DataHandleOptions)||[{label:"JSON\u5904\u7406",value:"json"}],"x-designable-id":"sxbtip2222311236622mzk"},serverDataHandleParams:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570\uFF0C\u4E0D\u540C\u7684\u5904\u7406\u7C7B\u578B\uFF0C\u53C2\u6570\u4E0D\u540C,eg: arg1,arg2"},name:"serverDataHandleParams","x-designable-id":"sxasd223122mzk","x-reactions":{dependencies:[".serverDataHandleType"],when:"{{$deps[0]}}",fulfill:{state:{value:'{{$deps[0]?.params || ""}}'}}}}}},Mf=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{messageType:{type:"string",title:"\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"success",name:"messageType",enum:[{label:"loading",value:"loading"},{label:"warning",value:"warning"},{label:"error",value:"error"},{label:"success",value:"success"},{label:"help",value:"help"},{label:"notice",value:"notice"}]},title:{type:"string",title:"\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u53EF\u4EE5\u662F \u51FD\u6570\u540D\uFF0C\u5982 _customRenderMessageTitle\uFF0C\u5199\u6CD5\u7C7B\u4F3C\u4E8E \u81EA\u5B9A\u4E49\u6E32\u67D3\u7684\u51FD\u6570\u5199\u6CD5\uFF1B\u5426\u5219\u76F4\u63A5\u4F5C\u4E3A\u5B57\u7B26\u4E32\u8D4B\u7ED9 message.title"},default:"",name:"title"},messageChildren:{type:"string",title:"\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u53EF\u4EE5\u662F \u51FD\u6570\u540D\uFF0C\u5982 _customRenderMessageChildren\uFF0C\u5199\u6CD5\u7C7B\u4F3C\u4E8E \u81EA\u5B9A\u4E49\u6E32\u67D3\u7684\u51FD\u6570\u5199\u6CD5\uFF1B\u5426\u5219\u76F4\u63A5\u4F5C\u4E3A\u5B57\u7B26\u4E32\u8D4B\u7ED9 message.children"},default:"",name:"messageChildren"},iconType:{type:"string",title:"\u56FE\u6807\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u4F1A\u8986\u76D6\u5185\u90E8\u8BBE\u7F6E\u7684IconType\uFF0C\u4E00\u822C\u60C5\u51B5\u4E0B\u4E0D\u5EFA\u8BAE\u4F7F\u7528\uFF0Cfalse\u8868\u793A\u4E0D\u663E\u793A\u56FE\u6807\u3002\u586B\u5199\u5185\u5BB9\u53C2\u8003\uFF1Ahttps://dsm.cone.cainiao-inc.com/components/cnui/CnIcon?device=pc\uFF0C\u5982\uFF1Acomplete-r-fill"},default:"",name:"iconType"}},"x-designable-id":"loa7444w8t3"}}),dI={text:KT,tpl:JT,tag:GT,"single-enum":ZT,date:QT,custom:XT,num:eI,clipboard:tI,list:nI,"tooltip-text":rI,images:aI,message:(...e)=>{const t=Mf(...e);return t.schema.properties={colSpan:{type:"number",title:"\u8DE8\u5217\u8BBE\u7F6E","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{tip:"\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E09\u5217"},default:3,"x-designable-id":"r52k327v2zu"},...t.schema.properties},t},"cn-tag":oI,"cn-number":lI,"cn-bank":uI,"cn-image-text":iI,"cn-progress":sI,"cn-graphics-percent":cI},pI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{paging:{type:"boolean",title:"\u5F00\u542F\u5206\u9875","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"paging",default:!0,"x-designable-id":"v80d32s7cnp"},disableGlobalConfig:{type:"boolean",title:"\u7981\u7528\u5168\u5C40\u914D\u7F6E","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u5F00\u542F\u7981\u7528\u5168\u5C40\u914D\u7F6E\u540E\uFF0C\u624D\u80FD\u8BBE\u7F6E\u9ED8\u8BA4\u6BCF\u9875\u6761\u6570"},name:"disableGlobalConfig",default:!1,"x-designable-id":"v80d22232s7cnp"},defaultPageSize:{type:"number",title:"\u6BCF\u9875\u6570\u91CF","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u6BCF\u9875\u6570\u91CF"},"x-decorator-props":{tip:""},default:"20","x-designable-id":"ecc63shkjtk",description:"",name:"defaultPageSize","x-reactions":{dependencies:[{property:"value",type:"any",source:"paging",name:"paging"},{property:"value",type:"any",source:"disableGlobalConfig",name:"disableGlobalConfig"}],fulfill:{state:{hidden:"{{$deps.paging === false || $deps.disableGlobalConfig === false}}"}}}},pageSizeList:{type:"string",title:"\u5206\u9875\u53EF\u9009\u5927\u5C0F","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u5206\u9875\u6570\u503C\uFF0C\u9017\u53F7\u9694\u5F00\uFF0C eg: 10,20,30,50"},default:"","x-decorator-props":{},name:"pageSizeList","x-designable-id":"v80d22232s7cnp222","x-reactions":{dependencies:[{property:"value",type:"any",source:"paging",name:"paging"}],fulfill:{state:{hidden:"{{$deps.paging === false }}"}}}}},"x-designable-id":"c1f6xiczrp8"}};const mn=()=>({width:at.width,lock:at.lock}),mI={required:{type:"boolean",title:"\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"r52kt27v9zu"},serverI18nKey:{type:"string",title:"\u56FD\u9645\u5316KEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"},name:"serverI18nKey","x-designable-id":"sxbti3122mzk"},serverDataHandleType:{type:"string",title:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\uFF0C\u4E0D\u5904\u7406\u3002\u53EF\u4EE5\u9009\u62E9json\uFF0C \u8868\u793A\u5B57\u7B26\u4E32 \u548C json \u4E92\u8F6C"},name:"serverDataHandleType",enum:[{label:"JSON\u5904\u7406",value:"json"}],"x-designable-id":"sxbtip2222311236622mzk"},validator:{type:"string",title:"\u6B63\u5219\u6821\u9A8C","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6B63\u5219\u6821\u9A8C\u8868\u8FBE\u5F0F",size:"small"},"x-decorator-props":{},name:"validator",enum:[{label:"\u90AE\u7BB1",value:"^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$"},{label:"\u6570\u5B57",value:"^[+-]?\\d+(\\.\\d+)?$"},{label:"\u6574\u6570",value:"^[+-]?\\d+$"},{label:"QQ",value:"^(\\+?[1-9]\\d*|0)$"},{label:"\u624B\u673A\u53F7",value:"^\\d{3}-\\d{8}$|^\\d{4}-\\d{7}$|^\\d{11}$"},{label:"\u8EAB\u4EFD\u8BC1\u53F7",value:"^\\d{15}$|^\\d{17}(\\d|x|X)$"},{label:"\u91D1\u989D",value:"^([\\u0024\\u00A2\\u00A3\\u00A4\\u20AC\\u00A5\\u20B1\\u20B9\\uFFE5]\\s*)(\\d+,?)+\\.?\\d*\\s*$"},{label:"\u4E2D\u6587",value:"^[\\u4e00-\\u9fa5]+$"},{label:"\u65E5\u671F",value:"^[0-9]+[./-][0-9]+[./-][0-9]+\\s*(?:[0-9]+\\s*:\\s*[0-9]+\\s*:\\s*[0-9]+)?$"}],"x-designable-id":"df97o0zfqde"}},An={...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u8F93\u5165",name:"placeholder","x-designable-id":"f8sf3ednwf4"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"3hvt8e2efyl"},...mI},fI={...An,maxLength:{type:"number",title:"\u6700\u957F\u957F\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"maxLength","x-designable-id":"xe60ju8pq9g"},minLength:{type:"number",title:"\u6700\u77ED\u957F\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"minLength","x-designable-id":"yam9t8o7oh9"},trim:{type:"boolean",title:"\u6E05\u7A7A\u524D\u540E\u7A7A\u683C","x-decorator":"CnFormItem","x-component":"Switch",name:"trim","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k3272222"}};var hI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...fI}}},"x-designable-id":"edit-table-j744a1rk494"}},gI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),customType:{title:"\u81EA\u5B9A\u4E49\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{mode:"single"},"x-decorator-props":{},name:"customType",enum:[{children:[],label:"\u81EA\u5B9A\u4E49\u6E32\u67D3",value:"RENDER"}],default:"RENDER","x-designable-id":"jtknf7sgpow"},value:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{showSearch:!0,hasClear:!0},"x-decorator-props":{},name:"value",enum:[{children:[],label:"\u793A\u4F8B\u5185\u5BB9",value:"/pages/demo"}],default:"","x-designable-id":"9efgulzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv4o8e9uy"},"x-designable-id":"loa5555d8t3"}}};const vI={...An,inputProps:{type:"object",properties:{hasClear:{type:"boolean",title:"\u6709\u6E05\u9664\u6309\u94AE","x-decorator":"CnFormItem","x-component":"Switch",name:"hasClear","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k22233322"}}}};var yI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...vI}}},"x-designable-id":"edit-table-j744a1rk494"}};const xI={...An,max:{type:"number",title:"\u6700\u5927\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"max","x-designable-id":"uqm7q06jq7h"},min:{type:"number",title:"\u6700\u5C0F\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"min","x-designable-id":"mvrqq9snczf"},step:{type:"number",title:"\u6B65\u957F","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"step","x-designable-id":"mvrqq222"},precision:{type:"number",title:"\u4FDD\u7559\u51E0\u4F4D\u5C0F\u6570\u70B9","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],default:0,"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"precision","x-designable-id":"m111222nczf"}};var EI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...xI}}},"x-designable-id":"edit-table-j744a1rk494"}};const bI={...An,mode:{type:"string | number",title:"\u9009\u62E9\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"single",enum:[{label:"\u5355\u9009",value:"single"},{label:"\u591A\u9009",value:"multiple"}],"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},default:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},showSearch:{type:"boolean",title:"\u5F00\u542F\u8FDC\u7A0B\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showSearch","x-designable-id":"5icqqwaac9k"},searchKey:{title:"\u641C\u7D22Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u63A5\u53E3\u8BF7\u6C42\u7684key\uFF0C\u9ED8\u8BA4\u662Fkeyword"},name:"searchKey",default:"keyword","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"decoratorProps.showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true }}"}}},"x-designable-id":"5111aac9k"},backfillingSource:{type:"string",title:"\u56DE\u586B\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],default:"","x-component-props":{},"x-decorator-props":{tip:"\u76EE\u7684\u662F\u56DE\u586B\u5206\u9875\u4E0B\u62C9\u65F6\u6570\u636E\u56DE\u586B\u95EE\u9898\u3002\u4F1A\u5C06\u5F53\u524D\u503C\u4F20\u7ED9\u540E\u7AEF\uFF0C\u540E\u7AEF\u8FD4\u56DE\u7684opts\u6570\u636E\u4F1A\u548C\u539F\u59CB\u4E0B\u62C9\u6570\u636E\u6E90\u5408\u5E76\uFF0C\u5177\u4F53\u5B9E\u73B0\u53C2\u8003: https://alidocs.dingtalk.com/i/nodes/oP0MALyR8kzGnoOwF5Ka1dxwJ3bzYmDO"},name:"backfillingSource","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"decoratorProps.showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true}}"}}},"x-designable-id":"t0uv4o22222332328e9ds"},valueRenderCode:{title:"\u56DE\u586B\u663E\u793AKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u7528\u4E8E\u56DE\u586B\u503C\u65F6\uFF0C\u6307\u5B9A\u53E6\u4E00\u5B57\u6BB5\u503C\u8FDB\u884C\u9875\u9762\u663E\u793A"},name:"valueRenderCode",default:"","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"decoratorProps.showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true }}"}}}},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"},useDetailValue:{type:"string",title:"\u503C\u4E3A\u5BF9\u8C61","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"useDetailValue",default:!1,"x-designable-id":"bt66222xl3px"}};var CI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...bI}}},"x-designable-id":"edit-table-j744a1rk494"}};const FI={...An,format:{type:"string",title:"\u65E5\u671F\u663E\u793A\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"format",default:"YYYY/MM/DD",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"}],"x-designable-id":"sxb8qjzzmzk"},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"outputFormat",default:"timestamp",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"\u65F6\u95F4\u6233",value:"timestamp"}],"x-designable-id":"sxb8qjzzmz1"},showTime:{type:"boolean",title:"\u662F\u5426\u663E\u793A\u65F6\u95F4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showTime","x-designable-id":"atio0qbel1n"},dateRange:{type:"string[]",title:"\u53EF\u9009\u65E5\u671F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{style:{width:"200px"}},"x-decorator-props":{},name:"dateRange",enum:[{label:"\u5168\u90E8\u53EF\u9009",value:"ALL_SELECTED"},{label:"\u4ECA\u65E5\u4E4B\u524D\u4E0D\u53EF\u9009",value:"BEFORE_NOW_DISABLED"},{label:"\u4ECA\u65E5\u4E4B\u540E\u4E0D\u53EF\u9009",value:"AFTER_NOW_DISABLED"},{label:"\u524D\u4E00\u5468\u53EF\u9009",value:"FORWARD_1_WEEK"},{label:"\u524D\u4E00\u4E2A\u6708\u53EF\u9009",value:"FORWARD_1_MONTH"},{label:"\u524D\u4E09\u4E2A\u6708\u53EF\u9009",value:"FORWARD_3_MONTH"},{label:"\u524D\u4E00\u5E74\u53EF\u9009",value:"FORWARD_1_YEAR"},{label:"\u540E\u4E00\u5468\u53EF\u9009",value:"BACKWARD_1_WEEK"},{label:"\u540E\u4E00\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_1_MONTH"},{label:"\u540E\u4E09\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_3_MONTH"},{label:"\u540E\u4E00\u5E74\u53EF\u9009",value:"BACKWARD_1_YEAR"}],"x-designable-id":"fkh6rbtovz6"}};var SI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirv2xpflgk",properties:{...FI}}},"x-designable-id":"edit-table-j744a21rk494"}};const DI={...An,format:{title:"\u65F6\u95F4\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{},name:"format",default:"HH:mm:ss",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"}],"x-designable-id":"v15ikv970as","x-index":0},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{tip:"\u8F93\u51FA\u683C\u5F0F\u53EA\u80FD\u662F\u7A7A \u6216\u8005 \u548C\u663E\u793A\u683C\u5F0F\u5316\u4E00\u81F4\uFF0C\u5426\u5219\u6E32\u67D3\u9519\u8BEF"},name:"outputFormat",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"},{label:"\u65F6\u95F4\u6233(\u6E05\u7A7A\u5373\u53EF)",value:""}],"x-designable-id":"sxb8qj22zzmz1"},disabledHours:{title:"\u4E0D\u53EF\u9009\u5C0F\u65F6","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple",hasSelectAll:!1,tagInline:!0,style:{width:"200px"}},"x-decorator-props":{},enum:[{children:[],label:"1",value:1},{children:[],label:"2",value:2},{children:[],label:"3",value:3},{children:[],label:"4",value:4},{children:[],label:"5",value:5},{children:[],label:"6",value:6},{children:[],label:"7",value:7},{children:[],label:"8",value:8},{children:[],label:"9",value:9},{children:[],label:"10",value:10},{children:[],label:"11",value:11},{children:[],label:"12",value:12}],name:"disabledHours","x-designable-id":"und4tb07kwb","x-index":2},defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"CnTimePickerPro","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy","x-index":3},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u9009\u62E9",name:"placeholder","x-designable-id":"bt66ecxl3px","x-index":4},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jdsx3d3zrua","x-index":5}};var AI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirv22xpflgk",properties:{...DI}}},"x-designable-id":"edit-table-j744a221rk494"}};const wI={...An,defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9"},default:"\u8BF7\u9009\u62E9",name:"placeholder","x-decorator-props":{},"x-designable-id":"fgzs02l3sg2"},mode:{type:"string",title:"\u6570\u636E\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"api",enum:[{label:"API",value:"api"},{label:"CDN",value:"cdn"}],"x-validator":[],"x-component-props":{mode:"api"},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},baseUrl:{type:"string",title:"\u8BF7\u6C42\u57DF\u540D","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"baseUrl",default:"/base/api/v1","x-designable-id":"44dxrx59k4y","x-reactions":{dependencies:[{property:"value",type:"string",source:"decoratorProps.mode",name:"mode"}],fulfill:{state:{visible:'{{$deps.mode === "api"}}'}}},required:!0},cdnUrl:{type:"string",title:"cdn\u5730\u5740",default:"https://division-data.alicdn.com/simple/addr_1_4_all.js","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{cdnUrl:"https://division-data.alicdn.com/simple/addr_1_4_all.js"},"x-decorator-props":{},name:"cdnUrl","x-designable-id":"44dxrx59k1y","x-reactions":{dependencies:[{property:"value",type:"string",source:"decoratorProps.mode",name:"mode"}],fulfill:{state:{visible:'{{$deps.mode === "cdn"}}'}}},required:!0},multiple:{type:"boolean",title:"\u591A\u9009","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{multiple:!1},"x-decorator-props":{},default:!1,name:"multiple","x-designable-id":"bnxhtei07c4"},maxLevel:{type:"number",title:"\u6700\u5927\u5C42\u7EA7","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{maxLevel:4,max:5},"x-decorator-props":{},default:3,name:"maxLevel","x-designable-id":"5rff5nscn5n"},showSearch:{type:"boolean",title:"\u5F00\u542F\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!0,name:"showSearch","x-designable-id":"bnxhtei22207c1"},changeOnSelect:{type:"boolean",title:"\u9009\u62E9\u5373\u6539\u53D8","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{changeOnSelect:!1},"x-decorator-props":{},default:!1,name:"changeOnSelect","x-designable-id":"bnxhtei07c1"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"ff3dus7pijt"},showTopLevel:{type:"boolean",title:"\u662F\u5426\u5148\u9009\u62E9\u56FD\u5BB6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!1,name:"showTopLevel","x-designable-id":"bnxht222111ei07c4"},iso:{type:"string",title:"\u9ED8\u8BA4\u56FD\u5BB6ISO","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u56FD\u5BB6\u7F16\u7801"},default:"CN",name:"iso","x-decorator-props":{tip:"\u9ED8\u8BA4\u4E2D\u56FDCN\u3002\u8BBE\u7F6E\u7A7A && \u5F00\u542F\u5148\u9009\u62E9\u56FD\u5BB6 \u8868\u793A\u9009\u62E9\u56FD\u5BB6\u3002 ISO\u5B57\u5178\u67E5\u770B: https://aliyuque.antfin.com/cndzk/fex/xc1vnw?"},"x-designable-id":"fgzssslls02l3sg2"}};var TI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvx2pflgk",properties:{...wI}}},"x-designable-id":"yk7opli2cp8"}};const II={...An,mode:{type:"string | number",title:"\u9009\u62E9\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"single",enum:[{label:"\u5355\u9009",value:"single"},{label:"\u591A\u9009",value:"multiple"}],"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{},default:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"},changeOnSelect:{type:"string",title:"\u9009\u62E9\u5373\u6539\u53D8","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"changeOnSelect",default:!1,"x-designable-id":"bt66221112xl3px"}};var _I={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...II}}},"x-designable-id":"edit-table-j744a1rk494"}};const $I={...An,service:{type:"string",title:"\u83B7\u53D6OSS\u51ED\u8BC1\u63A5\u53E3\u5730\u5740","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165,eg: https://example/getOssUploadParams"},"x-decorator-props":{tip:"\u63A5\u53E3\u89C4\u8303\u8BE6\u89C1: https://yuque.antfin.com/cn-ui/cn-ui-data-structure/cn-upload"},name:"service","x-designable-id":"hso2ft3bll3"},shape:{type:"string",title:"\u4E0A\u4F20\u6837\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"shape",default:"normal",enum:[{label:"\u666E\u901A\u4E0A\u4F20",value:"normal"},{label:"\u7B80\u6D01\u4E0A\u4F20",value:"mini"},{label:"\u62D6\u62FD\u4E0A\u4F20",value:"dragger"}],"x-designable-id":"sxb8qjzzmzk"},showUploadList:{type:"boolean",title:"\u662F\u5426\u6709\u6587\u4EF6\u5217\u8868","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showUploadList",default:!0,"x-designable-id":"1oxz0inalmf"},showPreview:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u6587\u4EF6\u9884\u89C8ICON","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!1,"x-component-props":{},"x-decorator-props":{},name:"showPreview","x-designable-id":"hgrh67bvlwc"},showRemove:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u5220\u9664\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},name:"showRemove","x-designable-id":"vbylh6fa2mb"},showDownload:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u4E0B\u8F7D\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},name:"showDownload","x-designable-id":"5tb55oy67tw"},multiple:{type:"boolean",title:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"multiple","x-designable-id":"jyl8akeqpkr"},accept:{type:"string",title:"\u63A5\u53D7\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8BE6\u89C1https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept"},name:"accept",description:"","x-designable-id":"wdi2j6qqy17"},limit:{type:"number",title:"\u4E0A\u4F20\u6587\u4EF6\u6570\u91CF\u9650\u5236","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"limit","x-designable-id":"auj6iuyrk8v"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbtip2222mzk"}};var OI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...mn(),decoratorProps:{type:"object","x-validator":[],name:"decoratorProps",title:"\u7F16\u8F91\u5668\u5C5E\u6027","x-designable-id":"xoirvxpflgk",properties:{...$I}}},"x-designable-id":"loa7444w8t3"}},RI={"edit-custom":gI,"edit-input":hI,"edit-batch-input":yI,"edit-number-picker":EI,"edit-select":CI,"edit-date-picker":SI,"edit-time-picker":AI,"edit-address-select":TI,"edit-cascader-select":_I,upload:OI},BI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{path:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{showSearch:!0,hasClear:!0},"x-decorator-props":{},name:"path",enum:[{children:[],label:"\u793A\u4F8B\u5185\u5BB9",value:"/pages/demo"}],default:"","x-designable-id":"9efgu222lzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv422o8e9uy"}},"x-designable-id":"c1f6x222iczrp8"}},kI={primaryKey:WT,...dI,pagination:pI,...RI,moduleImport:BI},vp={colSpan:{type:"number",title:"\u8DE8\u5217\u8BBE\u7F6E","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{tip:"\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E00\u884C\u4E00\u5217"},default:1,"x-designable-id":"r52k327v2zu"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"},"x-decorator-props":{},name:"shouldRender"}},Pf={required:{type:"boolean",title:"\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"r52kt27v9zu"},pattern:{type:"string",title:"\u6B63\u5219\u6821\u9A8C","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6B63\u5219\u6821\u9A8C\u8868\u8FBE\u5F0F",size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"pattern",enum:[{label:"\u90AE\u7BB1",value:"^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$"},{label:"\u6570\u5B57",value:"^[+-]?\\d+(\\.\\d+)?$"},{label:"\u6574\u6570",value:"^[+-]?\\d+$"},{label:"QQ",value:"^(\\+?[1-9]\\d*|0)$"},{label:"\u624B\u673A\u53F7",value:"^\\d{3}-\\d{8}$|^\\d{4}-\\d{7}$|^\\d{11}$"},{label:"\u8EAB\u4EFD\u8BC1\u53F7",value:"^\\d{15}$|^\\d{17}(\\d|x|X)$"},{label:"\u91D1\u989D",value:"^([\\u0024\\u00A2\\u00A3\\u00A4\\u20AC\\u00A5\\u20B1\\u20B9\\uFFE5]\\s*)(\\d+,?)+\\.?\\d*\\s*$"},{label:"\u4E2D\u6587",value:"^[\\u4e00-\\u9fa5]+$"},{label:"\u65E5\u671F",value:"^[0-9]+[./-][0-9]+[./-][0-9]+\\s*(?:[0-9]+\\s*:\\s*[0-9]+\\s*:\\s*[0-9]+)?$"}],"x-designable-id":"df97o0zfqde"}},ei=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3","x-index":0},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u8F93\u5165",name:"placeholder","x-designable-id":"f8sf3ednwf4","x-index":1},maxLength:{type:"number",title:"\u6700\u957F\u957F\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"maxLength","x-designable-id":"xe60ju8pq9g","x-index":2},minLength:{type:"number",title:"\u6700\u77ED\u957F\u5EA6","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"minLength","x-designable-id":"yam9t8o7oh9","x-index":3},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"3hvt8e2efyl","x-index":4},trim:{type:"boolean",title:"\u6E05\u7A7A\u524D\u540E\u7A7A\u683C","x-decorator":"CnFormItem","x-component":"Switch",name:"trim","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k3272222"},...Pf},"x-designable-id":"loa7444w8t3"}});const{hasClear:B7,...MI}=pt;var PI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...MI,valueType:{type:"string",title:"\u8FD4\u56DE\u503C\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"CnRadioGroup","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:'string: \u8FD4\u56DE "a,b,c" \u683C\u5F0F; list: \u8FD4\u56DE ["a","b","c"] \u683C\u5F0F'},default:"string",enum:[{label:"string",value:"string"},{label:"list",value:"list"}],name:"valueType","x-designable-id":"valueType001"},defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u8F93\u5165",name:"placeholder","x-designable-id":"f8sf3ednwf4"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"3hvt8e2efyl"},inputProps:{type:"object",properties:{hasClear:{type:"boolean",title:"\u6709\u6E05\u9664\u6309\u94AE","x-decorator":"CnFormItem","x-component":"Switch",name:"hasClear","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},"x-designable-id":"r52k3272222"}}},...Pf},"x-designable-id":"loa7444w8t3"}};const NI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",_type:"select"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"5ic30uaac9k"},mode:{type:"string | number",title:"\u9009\u62E9\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"single",enum:[{label:"\u5355\u9009",value:"single"},{label:"\u591A\u9009",value:"multiple"}],"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],default:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]},"x-component-props":{},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},showSearch:{type:"boolean",title:"\u5F00\u542F\u8FDC\u7A0B\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showSearch","x-designable-id":"5icqqwaac9k"},searchKey:{title:"\u641C\u7D22Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u63A5\u53E3\u8BF7\u6C42\u7684key\uFF0C\u9ED8\u8BA4\u662Fkeyword"},name:"searchKey",default:"keyword","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true}}"}}},"x-designable-id":"5111aac9k"},backfillingSource:{type:"string",title:"\u56DE\u586B\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],default:"","x-component-props":{},"x-decorator-props":{tip:"\u76EE\u7684\u662F\u56DE\u586B\u5206\u9875\u4E0B\u62C9\u65F6\u6570\u636E\u56DE\u586B\u95EE\u9898\u3002\u4F1A\u5C06\u5F53\u524D\u503C\u4F20\u7ED9\u540E\u7AEF\uFF0C\u540E\u7AEF\u8FD4\u56DE\u7684opts\u6570\u636E\u4F1A\u548C\u539F\u59CB\u4E0B\u62C9\u6570\u636E\u6E90\u5408\u5E76\uFF0C\u5177\u4F53\u5B9E\u73B0\u53C2\u8003: https://alidocs.dingtalk.com/i/nodes/oP0MALyR8kzGnoOwF5Ka1dxwJ3bzYmDO"},name:"backfillingSource","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true}}"}}},"x-designable-id":"t0uv4o2222233238e9ds"},valueRenderCode:{title:"\u56DE\u586B\u663E\u793AKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u7528\u4E8E\u56DE\u586B\u503C\u65F6\uFF0C\u6307\u5B9A\u53E6\u4E00\u5B57\u6BB5\u503C\u8FDB\u884C\u9875\u9762\u663E\u793A"},name:"valueRenderCode",default:"","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"showSearch",name:"showSearch"}],fulfill:{state:{visible:"{{$deps.showSearch === true}}"}}}},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"placeholder",default:"\u8BF7\u9009\u62E9",description:"\u683C\u5F0F: \u5F00\u59CB\u65E5\u671F,\u7ED3\u675F\u65E5\u671F\u3002\u4E2D\u95F4\u4EE5\u82F1\u6587\u9017\u53F7\u9694\u5F00","x-designable-id":"bt66ecxl3px"},useDetailValue:{type:"string",title:"\u503C\u4E3A\u5BF9\u8C61","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"useDetailValue",default:!1,"x-designable-id":"bt66222xl3px"}},"x-designable-id":"u5ih0wihqbh"}},LI=(e,t)=>{const{mode:r,defaultValue:o}=e||{},i=r==="multiple";if(!i)return Array.isArray(o)&&(e.defaultValue=o.length!==0?o.join(","):""),e;const s=typeof o=="string"&&((o==null?void 0:o.startsWith(zr))||(o==null?void 0:o.startsWith(Ja))||(o==null?void 0:o.startsWith(Ga)));return i&&!t&&typeof o=="string"&&!s?e.defaultValue=e.defaultValue?e.defaultValue.split(","):[]:t&&Array.isArray(o)&&i&&(e.defaultValue=o.length!==0?o.join(","):""),e};var jI={dataAdaptor:LI,formilySchema:NI},YI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"5ic30uaac9k"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{defaultValue:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]}},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"}},"x-designable-id":"u5ih0wihqbh"}}),zI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"number",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},default:"\u8BF7\u8F93\u5165","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},max:{type:"number",title:"\u6700\u5927\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"max","x-designable-id":"uqm7q06jq7h"},min:{type:"number",title:"\u6700\u5C0F\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"min","x-designable-id":"mvrqq9snczf"},step:{type:"number",title:"\u6B65\u957F","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"step","x-designable-id":"mvrqq222"},precision:{type:"number",title:"\u4FDD\u7559\u51E0\u4F4D\u5C0F\u6570\u70B9","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],default:0,"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"precision","x-designable-id":"m111222nczf"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m"}},"x-designable-id":"loa7444w8t3"}}),HI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"number",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},default:"\u8BF7\u8F93\u5165","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},max:{type:"number",title:"\u6700\u5927\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"max","x-designable-id":"uqm7q06jq7h"},min:{type:"number",title:"\u6700\u5C0F\u503C","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"min","x-designable-id":"mvrqq9snczf"},step:{type:"number",title:"\u6B65\u957F","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",precision:5,onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"step","x-designable-id":"mvrqq222"},precision:{type:"number",title:"\u4FDD\u7559\u51E0\u4F4D\u5C0F\u6570\u70B9","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],default:0,"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",onCorrect:()=>{},style:{width:"200px"}},"x-decorator-props":{},name:"precision","x-designable-id":"m111222nczf"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m"}},"x-designable-id":"loa7444w8t3"}}),VI=()=>({form:{labelCol:6,wrapperCol:16,pattern:"editable"},schema:{type:"object",properties:{...pt(),format:{title:"\u65F6\u95F4\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{},name:"format",default:"HH:mm:ss",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"}],"x-designable-id":"v15ikv970as","x-index":0},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{tip:"\u8F93\u51FA\u683C\u5F0F\u53EA\u80FD\u662F\u7A7A \u6216\u8005 \u548C\u663E\u793A\u683C\u5F0F\u5316\u4E00\u81F4\uFF0C\u5426\u5219\u6E32\u67D3\u9519\u8BEF"},name:"outputFormat",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"},{label:"\u65F6\u95F4\u6233(\u6E05\u7A7A\u5373\u53EF)",value:""}],"x-designable-id":"sxb8qj22zzmz1"},disabledHours:{title:"\u4E0D\u53EF\u9009\u5C0F\u65F6","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple",hasSelectAll:!1,tagInline:!0,style:{width:"200px"}},"x-decorator-props":{},enum:[{children:[],label:"1",value:1},{children:[],label:"2",value:2},{children:[],label:"3",value:3},{children:[],label:"4",value:4},{children:[],label:"5",value:5},{children:[],label:"6",value:6},{children:[],label:"7",value:7},{children:[],label:"8",value:8},{children:[],label:"9",value:9},{children:[],label:"10",value:10},{children:[],label:"11",value:11},{children:[],label:"12",value:12}],name:"disabledHours","x-designable-id":"und4tb07kwb","x-index":2},defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"CnTimePickerPro","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy","x-index":3},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u9009\u62E9",name:"placeholder","x-designable-id":"bt66ecxl3px","x-index":4},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jdsx3d3zrua","x-index":5}},"x-designable-id":"loa7444w8t3"}}),UI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"object",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueDate","x-validator":[],"x-component-props":{isRange:!1},"x-decorator-props":{},name:"defaultValue",default:{type:"NOW"},"x-designable-id":"t0uv4o819uy"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},default:"\u8BF7\u9009\u62E9","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},format:{type:"string",title:"\u65E5\u671F\u663E\u793A\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"format",default:"YYYY/MM/DD",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"}],"x-designable-id":"sxb8qjzzmzk"},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"outputFormat",default:"timestamp",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"},{label:"\u65F6\u95F4\u6233",value:"timestamp"}],"x-designable-id":"sxb8qjzzmz1"},showTime:{type:"boolean",title:"\u662F\u5426\u663E\u793A\u65F6\u95F4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showTime","x-designable-id":"atio0qbel1n"},dateRange:{type:"string[]",title:"\u53EF\u9009\u65E5\u671F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",placeholder:"\u652F\u6301\u9009\u62E9\u548C\u81EA\u5B9A\u4E49\u6A21\u5757\u8F93\u5165"},"x-decorator-props":{},name:"dateRange",enum:[{label:"\u5168\u90E8\u53EF\u9009",value:"ALL_SELECTED"},{label:"\u4ECA\u65E5\u4E4B\u524D\u4E0D\u53EF\u9009",value:"BEFORE_NOW_DISABLED"},{label:"\u4ECA\u65E5\u4E4B\u540E\u4E0D\u53EF\u9009",value:"AFTER_NOW_DISABLED"},{label:"\u524D\u4E00\u5468\u53EF\u9009",value:"FORWARD_1_WEEK"},{label:"\u524D\u4E00\u4E2A\u6708\u53EF\u9009",value:"FORWARD_1_MONTH"},{label:"\u524D\u4E09\u4E2A\u6708\u53EF\u9009",value:"FORWARD_3_MONTH"},{label:"\u524D\u4E00\u5E74\u53EF\u9009",value:"FORWARD_1_YEAR"},{label:"\u540E\u4E00\u5468\u53EF\u9009",value:"BACKWARD_1_WEEK"},{label:"\u540E\u4E00\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_1_MONTH"},{label:"\u540E\u4E09\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_3_MONTH"},{label:"\u540E\u4E00\u5E74\u53EF\u9009",value:"BACKWARD_1_YEAR"}],"x-designable-id":"fkh6rbtovz6"},mode:{type:"string[]",title:"\u65E5\u671F\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode",default:"date",enum:[{label:"\u65E5\u671F",value:"date"},{label:"\u6708",value:"month"},{label:"\u5468",value:"week"},{label:"\u5B63\u5EA6",value:"quarter"},{label:"\u5E74",value:"year"}],"x-designable-id":"fkh6r234ovz6"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"gqfh1tekdw4"}},"x-designable-id":"loa7444w8t3"}}),qI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy","x-index":0},checkedChildren:{type:"string",title:"\u6253\u5F00\u65F6\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"checkedChildren","x-designable-id":"bt66ecxl3px","x-index":1},unCheckedChildren:{type:"string",title:"\u5173\u95ED\u65F6\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"unCheckedChildren","x-designable-id":"dfwy2zwgm0j","x-index":2},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m","x-index":3}},"x-designable-id":"loa7444w8t3"}}),WI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"5ic30uaac9k"},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],"x-component-props":{defaultValue:{type:"json",content:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]}},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},optionLabelKey:{title:"\u9009\u9879\u6807\u9898Key","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"label","x-designable-id":"511333ac9k"},optionValueKey:{title:"\u9009\u9879\u503CKey","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"optionLabelKey",default:"value","x-designable-id":"5112229k"}},"x-designable-id":"u5ih0wihqbh"}});const KI={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue",description:"","x-designable-id":"t0uv4o8e9uy"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9"},default:"\u8BF7\u9009\u62E9","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},multiple:{type:"boolean",title:"\u662F\u5426\u591A\u9009","x-decorator":"CnFormItem","x-component":"Switch",default:!1,"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"multiple","x-designable-id":"y5mtbwr162t"},canOnlyCheckLeaf:{type:"boolean",title:"\u591A\u9009\u65F6\u53EA\u80FD\u9009\u4E2D\u53F6\u5B50\u8282\u70B9","x-decorator":"CnFormItem","x-component":"Switch",default:!1,"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"canOnlyCheckLeaf","x-designable-id":"y5mtbw2222222r162t","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"multiple",name:"multiple"}],fulfill:{state:{visible:"{{$deps.multiple === true}}"}}}},changeOnSelect:{type:"boolean",title:"\u9009\u62E9\u53CA\u6539\u53D8","x-decorator":"CnFormItem","x-component":"Switch",default:!1,"x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"changeOnSelect","x-designable-id":"y5mtbw2222233322r162t","x-reactions":{dependencies:[{property:"value",type:"boolean",source:"multiple",name:"multiple"}],fulfill:{state:{visible:"{{$deps.multiple === false}}"}}}},source:{type:"string",title:"\u6570\u636E\u6E90","x-decorator":"CnFormItem","x-component":"FormilyAjaxSchemaForm","x-validator":[],default:{type:"json",content:[{label:"\u9009\u98791",value:"1",children:[{label:"\u5B50\u9009\u9879",value:"3"}]},{label:"\u9009\u98792",value:"2"}]},"x-component-props":{},"x-decorator-props":{},name:"dataSource","x-designable-id":"t0uv4o8e9ds"},showSearch:{type:"boolean",title:"\u5F00\u542F\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showSearch",default:!0,"x-designable-id":"5icqqwaac9k"}},"x-designable-id":"loa7444w8t3"}},JI=(e,t)=>{const{multiple:r,defaultValue:o}=e||{},i=r===!0;if(!i)return Array.isArray(o)&&(e.defaultValue=o.length!==0?o.join(","):""),e;const s=typeof o=="string"&&((o==null?void 0:o.startsWith(zr))||(o==null?void 0:o.startsWith(Ja))||(o==null?void 0:o.startsWith(Ga)));return i&&!t&&typeof o=="string"&&!s?e.defaultValue=e.defaultValue?e.defaultValue.split(","):[]:t&&Array.isArray(o)&&i&&(e.defaultValue=o.length!==0?o.join(","):""),e};var GI={dataAdaptor:JI,formilySchema:KI},QI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"object",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueDate","x-validator":[],"x-component-props":{isRange:!1},"x-decorator-props":{},name:"defaultValue",default:{type:"NOW"},"x-designable-id":"t0uv4o819uy","x-index":0},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"placeholder",default:"\u8BF7\u9009\u62E9","x-designable-id":"bt66ecxl3px","x-index":1},format:{type:"string",title:"\u65E5\u671F\u663E\u793A\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"format",default:"YYYY/MM/DD",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"}],"x-designable-id":"sxb8qjzzmzk","x-index":2},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{tip:"\u62C6\u5206\u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9\u4E3A\u591A\u4E2A\u5165\u53C2\u8BF7\u53C2\u8003: https://yuque.antfin.com/docs/share/64ec82c7-13bf-4f71-a899-09915bb20c1c?# "},name:"outputFormat",default:"timestamp",enum:[{label:"YYYY/MM",value:"YYYY/MM"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:"YYYY/MM/DD HH:mm",value:"YYYY/MM/DD HH:mm"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:"YYYY-MM",value:"YYYY-MM"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"DD/MM/YYYY",value:"DD/MM/YYYY"},{label:"DD/MM/YYYY HH:mm",value:"DD/MM/YYYY HH:mm"},{label:"DD/MM/YYYY HH:mm:ss",value:"DD/MM/YYYY HH:mm:ss"},{label:"\u65F6\u95F4\u6233",value:"timestamp"}],"x-designable-id":"sxb8qjzzmzk","x-index":3},showTime:{type:"boolean",title:"\u662F\u5426\u663E\u793A\u65F6\u95F4","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showTime","x-designable-id":"jr6tnw52im1","x-index":4},dateRange:{type:"string[]",title:"\u53EF\u9009\u65E5\u671F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",placeholder:"\u652F\u6301\u9009\u62E9\u548C\u81EA\u5B9A\u4E49\u6A21\u5757\u8F93\u5165"},"x-decorator-props":{},name:"dateRange",enum:[{label:"\u5168\u90E8\u53EF\u9009",value:"ALL_SELECTED"},{label:"\u4ECA\u65E5\u4E4B\u524D\u4E0D\u53EF\u9009",value:"BEFORE_NOW_DISABLED"},{label:"\u4ECA\u65E5\u4E4B\u540E\u4E0D\u53EF\u9009",value:"AFTER_NOW_DISABLED"},{label:"\u524D\u4E00\u5468\u53EF\u9009",value:"FORWARD_1_WEEK"},{label:"\u524D\u4E00\u4E2A\u6708\u53EF\u9009",value:"FORWARD_1_MONTH"},{label:"\u524D\u4E09\u4E2A\u6708\u53EF\u9009",value:"FORWARD_3_MONTH"},{label:"\u524D\u4E00\u5E74\u53EF\u9009",value:"FORWARD_1_YEAR"},{label:"\u540E\u4E00\u5468\u53EF\u9009",value:"BACKWARD_1_WEEK"},{label:"\u540E\u4E00\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_1_MONTH"},{label:"\u540E\u4E09\u4E2A\u6708\u53EF\u9009",value:"BACKWARD_3_MONTH"},{label:"\u540E\u4E00\u5E74\u53EF\u9009",value:"BACKWARD_1_YEAR"},{label:"\u4E00\u5468\u533A\u95F4\u53EF\u9009",value:"BETWEEN_1_WEEK"},{label:"\u4E00\u4E2A\u6708\u533A\u95F4\u53EF\u9009",value:"BETWEEN_1_MONTH"},{label:"\u4E00\u5E74\u533A\u95F4\u53EF\u9009",value:"BETWEEN_1_YEAR"}],"x-designable-id":"fkh6rbtovz6","x-index":5},mode:{type:"string[]",title:"\u65E5\u671F\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"mode",default:"date",enum:[{label:"\u65E5\u671F",value:"date"},{label:"\u6708",value:"month"},{label:"\u5468",value:"week"},{label:"\u5B63\u5EA6",value:"quarter"},{label:"\u5E74",value:"year"}],"x-designable-id":"fkh6r234ovz6"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"gqfh1tekdw4","x-index":6},colSpan:{type:"number",title:"\u8DE8\u5217\u8BBE\u7F6E","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{tip:"\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E00\u884C\u4E00\u5217"},default:2,"x-designable-id":"r52k327v2zu3333311"}},"x-designable-id":"loa7444w8t3"}}),XI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyTR","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy","x-index":0},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"placeholder",default:"\u8BF7\u9009\u62E9",description:"\u683C\u5F0F: \u5F00\u59CB\u65F6\u95F4,\u7ED3\u675F\u65F6\u95F4\u3002\u4E2D\u95F4\u4EE5\u82F1\u6587\u9017\u53F7\u9694\u5F00","x-designable-id":"bt66ecxl3px","x-index":1},format:{type:"string",title:"\u65F6\u95F4\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},default:"HH:mm:ss",name:"format",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"}],"x-designable-id":"sxb8qjzzmzk","x-index":2},outputFormat:{type:"string",title:"\u8F93\u51FA\u683C\u5F0F","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small",hasClear:!0},"x-decorator-props":{tip:"\u8F93\u51FA\u683C\u5F0F\u53EA\u80FD\u662F\u7A7A \u6216\u8005 \u548C\u663E\u793A\u683C\u5F0F\u5316\u4E00\u81F4\uFF0C\u5426\u5219\u6E32\u67D3\u9519\u8BEF"},name:"outputFormat",enum:[{label:"HH",value:"HH"},{label:"mm:ss",value:"mm:ss"},{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"},{label:"\u65F6\u95F4\u6233(\u6E05\u7A7A\u5373\u53EF)",value:""}],"x-designable-id":"sxb8q33j22zzmz1"},disabledHours:{title:"\u4E0D\u53EF\u9009\u5C0F\u65F6","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{mode:"multiple",hasSelectAll:!1,tagInline:!0,style:{width:"200px"}},"x-decorator-props":{},enum:[{children:[],label:"1",value:1},{children:[],label:"2",value:2},{children:[],label:"3",value:3},{children:[],label:"4",value:4},{children:[],label:"5",value:5},{children:[],label:"6",value:6},{children:[],label:"7",value:7},{children:[],label:"8",value:8},{children:[],label:"9",value:9},{children:[],label:"10",value:10},{children:[],label:"11",value:11},{children:[],label:"12",value:12}],name:"disabledHours","x-designable-id":"und4tb07kwb","x-index":3},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jdsx3d3zrua","x-index":5}},"x-designable-id":"loa7444w8t3"}}),ZI=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9"},default:"\u8BF7\u9009\u62E9",name:"placeholder","x-decorator-props":{},"x-designable-id":"fgzs02l3sg2"},mode:{type:"string",title:"\u6570\u636E\u6A21\u5F0F","x-decorator":"CnFormItem","x-component":"CnRadioGroup",default:"api",enum:[{label:"API",value:"api"},{label:"CDN",value:"cdn"}],"x-validator":[],"x-component-props":{mode:"api"},"x-decorator-props":{},name:"mode","x-designable-id":"y5mtbwr162t"},baseUrl:{type:"string",title:"\u8BF7\u6C42\u57DF\u540D","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"baseUrl",default:"/base/api/v1","x-designable-id":"44dxrx59k4y","x-reactions":{dependencies:[{property:"value",type:"string",source:"mode",name:"mode"}],fulfill:{state:{visible:'{{$deps.mode === "api"}}'}}},required:!0},cdnUrl:{type:"string",title:"cdn\u5730\u5740",default:"https://division-data.alicdn.com/simple/addr_1_4_all.js","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{cdnUrl:"https://division-data.alicdn.com/simple/addr_1_4_all.js"},"x-decorator-props":{},name:"cdnUrl","x-designable-id":"44dxrx59k1y","x-reactions":{dependencies:[{property:"value",type:"string",source:"mode",name:"mode"}],fulfill:{state:{visible:'{{$deps.mode === "cdn"}}'}}},required:!0},multiple:{type:"boolean",title:"\u591A\u9009","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{multiple:!1},"x-decorator-props":{},default:!1,name:"multiple","x-designable-id":"bnxhtei07c4"},showTopLevel:{type:"boolean",title:"\u662F\u5426\u5148\u9009\u62E9\u56FD\u5BB6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!1,name:"showTopLevel","x-designable-id":"bnxht222111ei07c4"},iso:{type:"string",title:"\u9ED8\u8BA4\u56FD\u5BB6ISO","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u56FD\u5BB6\u7F16\u7801"},default:"CN",name:"iso","x-decorator-props":{tip:"\u9ED8\u8BA4\u4E2D\u56FDCN\u3002\u8BBE\u7F6E\u7A7A && \u5F00\u542F\u5148\u9009\u62E9\u56FD\u5BB6 \u8868\u793A\u9009\u62E9\u56FD\u5BB6\u3002 ISO\u5B57\u5178\u67E5\u770B: https://aliyuque.antfin.com/cndzk/fex/xc1vnw?"},"x-designable-id":"fgzssslls02l3sg2"},maxLevel:{type:"number",title:"\u6700\u5927\u5C42\u7EA7","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{maxLevel:4,max:5},"x-decorator-props":{},default:3,name:"maxLevel","x-designable-id":"5rff5nscn5n"},showSearch:{type:"boolean",title:"\u5F00\u542F\u641C\u7D22","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:!0,name:"showSearch","x-designable-id":"bnxhtei22207c1"},changeOnSelect:{type:"boolean",title:"\u9009\u62E9\u5373\u6539\u53D8","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{changeOnSelect:!1},"x-decorator-props":{},default:!1,name:"changeOnSelect","x-designable-id":"bnxhtei07c1"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"ff3dus7pijt"}},"x-designable-id":"yk7opli2cp8"}}),e4=({moduleDataSource:e={}})=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2223bll3"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:"\u8BF7\u8F93\u5165",name:"placeholder","x-designable-id":"f8sf666"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"3hv88e2efyl"},path:{title:"\u6A21\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"path",enum:(e==null?void 0:e.l4ModuleOptions)||[],default:"","x-designable-id":"9efgu22662lzttsh"},params:{type:"string",title:"\u53C2\u6570","x-decorator":"CnFormItem","x-component":"FormilyTableFormProxy","x-validator":[],"x-component-props":{showFastList:!0},"x-decorator-props":{},name:"params","x-designable-id":"t0uv42662o8e9uy"}},"x-designable-id":"loa748844w8t3"}});const Nf={input:ei,batchInput:PI,"input-textarea":d4(ei,{rows:{type:"number",title:"\u884C\u6570","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-component-props":{placeholder:"\u8BF7\u8F93\u5165",min:1,step:1,style:{width:"200px"}},name:"rows"}}),"input-password":ei,"number-picker":zI,"number-range-picker":HI,select:jI,"time-picker2":VI,"date-picker2":UI,switch:qI,radio:YI,"check-box":WI,"cascader-select":GI,"date-range-picker":QI,"time-range-picker":XI,"address-select":ZI,"import-component":e4},yp=Al(Nf),t4=Object.keys(yp).reduce((e,t)=>{var o,i,s;const r=yp[t];return(o=r==null?void 0:r.schema)!=null&&o.properties&&(r.schema.properties={...vp,...r.schema.properties}),(s=(i=r==null?void 0:r.formilySchema)==null?void 0:i.schema)!=null&&s.properties&&(r.formilySchema.schema.properties={...vp,...r.formilySchema.schema.properties}),{...e,[t]:r}},{});var n4=e=>{const{blocksDataSource:t=[]}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{blockPath:{title:"\u533A\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"blockPath",enum:(t==null?void 0:t.filter(r=>r.mddTemplateType==="blocks-table"))||[],default:"","x-designable-id":"9efgulzttsh"},parentDataIndex:{type:"string",title:"\u7236\u7EA7 dataIndex","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u6E32\u67D3\u533A\u5757\u7684\u6BCF\u4E2A\u5217\u65F6\uFF0C\u6307\u5B9A\u7236\u7EA7\u53D6\u503C\u7684key\u3002\u4F18\u5148\u7EA7 \u5927\u4E8E \u5F53\u524D\u5217\u914D\u7F6E\u7684dataIndex\u3002\u82E5\u5747\u4E3A\u914D\u7F6E \u5219\u9ED8\u8BA4\u5E73\u94FA\u3002\u4F8B\u5982\uFF1A\u533A\u5757\u5217\u4E2D\u7B2C\u4E00\u5217 \u7684 dataIndex \u4E3A name\uFF0CparentDataIndex \u4E3A ownerDto\uFF0C\u5219\u8BE5\u5217\u6E32\u67D3\u65F6\u7684\u5B9E\u9645 dataIndex \u4E3A ownerDto.name"},name:"parentDataIndex","x-designable-id":"sxbti2p222233122mzk"},shouldRender:{title:"\u6761\u4EF6\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u6839\u636E\u6761\u4EF6\u5224\u65AD \u6574\u4E2A\u533A\u5757 \u662F\u5426\u6E32\u67D3"},name:"shouldRender"},"x-designable-id":"loa5555d8t3"}}}},r4=e=>{const{blocksDataSource:t=[]}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{blockPath:{title:"\u533A\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"blockPath",enum:(t==null?void 0:t.filter(r=>r.mddTemplateType==="blocks-filter"))||[],default:"","x-designable-id":"9efgulzttsh"},"x-designable-id":"loa5555d8t3"}}}},a4=e=>{const{blocksDataSource:t=[]}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{blockPath:{title:"\u533A\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"blockPath",enum:(t==null?void 0:t.filter(r=>r.mddTemplateType==="blocks-form"))||[],default:"","x-designable-id":"9efgulzttsh"},"x-designable-id":"loa5555d8t3"}}}},o4=e=>{const{blocksDataSource:t=[]}=e||{};return{form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{blockPath:{title:"\u533A\u5757\u5730\u5740","x-decorator":"CnFormItem","x-component":"FormilySelect.AutoComplete","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",hasClear:!0,size:"small",style:{width:"100%"}},"x-decorator-props":{},name:"blockPath",enum:(t==null?void 0:t.filter(r=>r.mddTemplateType==="blocks-edit-table"))||[],default:"","x-designable-id":"9efgulzttsh"},"x-designable-id":"loa5555d8t3"}}}},l4={"blocks-table":n4,"blocks-filter":r4,"blocks-form":a4,"blocks-edit-table":o4},xp={f_gridSpan:{type:"number",title:"\u8DE8\u5217\u8BBE\u7F6E","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{tip:"\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E00\u884C\u4E00\u5217"},default:1,"x-designable-id":"r52k327v2zu"},f_pattern:{type:"string",title:"UI\u5F62\u6001","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{},"x-decorator-props":{},default:"",name:"f_pattern",enum:[{label:"\u7EE7\u627F",value:""},{label:"\u53EF\u7F16\u8F91",value:"editable"},{label:"\u9605\u8BFB",value:"readPretty"},{label:"\u7981\u7528",value:"disabled"},{label:"\u53EA\u8BFB",value:"readOnly"}],"x-designable-id":"sxb8fjzzmzk"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbtips2zmzk"},leftRender:{type:"string",title:"\u5DE6\u4FA7\u81EA\u5B9A\u4E49\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u5DE6\u4FA7\u81EA\u5B9A\u4E49\u6E32\u67D3"},name:"leftRender","x-designable-id":"sxbtips2zmzk"},rightRender:{type:"string",title:"\u53F3\u4FA7\u81EA\u5B9A\u4E49\u6E32\u67D3","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u53F3\u4FA7\u81EA\u5B9A\u4E49\u6E32\u67D3"},name:"rightRender","x-designable-id":"sxbtips2zmzk"}},u4={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{icon:{type:"string",title:"\u56FE\u6807","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"icon","x-designable-id":"hso2ft3bll3"},cardTitleExtra:{type:"string",title:"\u5361\u7247\u6807\u9898\u989D\u5916\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-component-props":{placeholder:"\u4EE5\u81EA\u5B9A\u4E49\u6E32\u67D3\u6A21\u5F0F\u5B9A\u4E49"},"x-decorator-props":{tip:"\u4EE5\u81EA\u5B9A\u4E49\u6E32\u67D3\u6A21\u5F0F \u5B9A\u4E49"},name:"cardTitleExtra"},transparent:{type:"string",title:"\u80CC\u666F\u900F\u660E","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:!1,name:"transparent","x-designable-id":"f8sf3ednwf4"}},"x-designable-id":"loa7444w8t3"}},i4={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{icon:{type:"string",title:"\u6807\u9898","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"icon","x-designable-id":"hso2ft3bll3"},cardTitleExtra:{type:"string",title:"\u5361\u7247\u6807\u9898\u989D\u5916\u5185\u5BB9","x-decorator":"CnFormItem","x-component":"Input","x-component-props":{placeholder:"\u4EE5\u81EA\u5B9A\u4E49\u6E32\u67D3\u6A21\u5F0F\u5B9A\u4E49"},"x-decorator-props":{tip:"\u4EE5\u81EA\u5B9A\u4E49\u6E32\u67D3\u6A21\u5F0F \u5B9A\u4E49"},name:"cardTitleExtra"},transparent:{type:"string",title:"\u80CC\u666F\u900F\u660E","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},default:!1,name:"transparent","x-designable-id":"f8sf3ednwf4"}},"x-designable-id":"loa7444w8t3"}},s4=()=>({form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{...pt(),defaultValue:{type:"number",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},name:"defaultValue","x-designable-id":"t0uv4o8e9uy"},placeholder:{type:"string",title:"\u8F93\u5165\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},default:"\u8BF7\u8F93\u5165","x-decorator-props":{},name:"placeholder","x-designable-id":"bt66ecxl3px"},defaultCountryCode:{type:"string",title:"\u9ED8\u8BA4\u56FD\u5BB6\u533A\u53F7","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],default:"86","x-component-props":{placeholder:"\u8BF7\u8F93\u5165",style:{width:"200px"}},"x-decorator-props":{},"x-designable-id":"jl0fyw111xdg12353m"},required:{type:"boolean",title:"\u662F\u5426\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"jl0fywxdg3m"}},"x-designable-id":"loa7444w8t3"}}),c4={form:{labelCol:6,wrapperCol:16},schema:{type:"object",properties:{required:{type:"boolean",title:"\u5FC5\u586B","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"required","x-designable-id":"r52kt27v9zu"},serverI18nKey:{type:"string",title:"\u56FD\u9645\u5316KEY","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"},name:"serverI18nKey","x-designable-id":"sxbtip222233122mzk"},defaultValue:{type:"string",title:"\u9ED8\u8BA4\u503C","x-decorator":"CnFormItem","x-component":"FormilyDynamicValueBase","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165"},"x-decorator-props":{},name:"defaultValue","x-designable-id":"hso2ft3bll3"},service:{type:"string",title:"\u83B7\u53D6OSS\u51ED\u8BC1\u63A5\u53E3\u5730\u5740","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{placeholder:"\u8BF7\u8F93\u5165,eg: https://example/getOssUploadParams"},"x-decorator-props":{tip:"\u63A5\u53E3\u89C4\u8303\u8BE6\u89C1: https://yuque.antfin.com/cn-ui/cn-ui-data-structure/cn-upload"},name:"service","x-designable-id":"hso2ft3bll3"},shape:{type:"string",title:"\u4E0A\u4F20\u6837\u5F0F","x-decorator":"CnFormItem","x-component":"Select","x-validator":[],"x-component-props":{style:{width:"200px"},size:"small"},"x-decorator-props":{},name:"shape",default:"normal",enum:[{label:"\u666E\u901A\u4E0A\u4F20",value:"normal"},{label:"\u7B80\u6D01\u4E0A\u4F20",value:"mini"},{label:"\u62D6\u62FD\u4E0A\u4F20",value:"dragger"}],"x-designable-id":"sxb8qjzzmzk"},showUploadList:{type:"boolean",title:"\u662F\u5426\u6709\u6587\u4EF6\u5217\u8868","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"showUploadList",default:!0,"x-designable-id":"1oxz0inalmf"},showPreview:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u6587\u4EF6\u9884\u89C8ICON","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!1,"x-component-props":{},"x-decorator-props":{},name:"showPreview","x-designable-id":"hgrh67bvlwc"},showRemove:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u5220\u9664\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},name:"showRemove","x-designable-id":"vbylh6fa2mb"},showDownload:{type:"boolean",title:"\u662F\u5426\u5C55\u793A\u4E0B\u8F7D\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],default:!0,"x-component-props":{},"x-decorator-props":{},name:"showDownload","x-designable-id":"5tb55oy67tw"},multiple:{type:"boolean",title:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"multiple","x-designable-id":"jyl8akeqpkr"},accept:{type:"string",title:"\u63A5\u53D7\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8BE6\u89C1https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept"},name:"accept",description:"","x-designable-id":"wdi2j6qqy17"},limit:{type:"number",title:"\u4E0A\u4F20\u6587\u4EF6\u6570\u91CF\u9650\u5236","x-decorator":"CnFormItem","x-component":"CnNumberPicker","x-validator":[],"x-component-props":{},"x-decorator-props":{},name:"limit","x-designable-id":"auj6iuyrk8v"},tooltip:{type:"string",title:"\u63D0\u793A","x-decorator":"CnFormItem","x-component":"Input","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"},name:"tooltip","x-designable-id":"sxbtip2222mzk"}},"x-designable-id":"loa7444w8t3"}};const Ep={...Al(Nf),"global-phone-picker":s4,message:Mf,upload:c4},cs=Object.keys(Ep).reduce((e,t)=>{const r=Ep[t];return typeof r=="function"?{...e,[t]:(...o)=>{const i=r(...o);return bp(i),i}}:(bp(r),{...e,[t]:r})},{});function bp(e){var t,r,o;(t=e==null?void 0:e.schema)!=null&&t.properties&&(e.schema.properties={...xp,...e.schema.properties}),(o=(r=e==null?void 0:e.formilySchema)==null?void 0:r.schema)!=null&&o.properties&&(e.formilySchema.schema.properties={...xp,...e.formilySchema.schema.properties})}cs.cncard=u4;cs["cncard-sub"]=i4;var Di={...t4,...qT,...kI,...l4};function d4(e,t){const r=JSON.parse(JSON.stringify(e()));return Object.entries(t).forEach(([o,i])=>{r.schema.properties[o]=i}),()=>r}function p4(){const[e,t]=M.useState({});return{dataMap:e,setDataMap:t,getModule:s=>e[s],setModule:(s,m)=>{e[s]=m,t({...e})},setModules:s=>{t({...Object.assign(e,s)})}}}var uo=us(p4);const m4="_mddTableForm_tl8oe_1",f4="_tableFormTitle_tl8oe_14",h4="_tableFormContent_tl8oe_20",g4="_tableFormBottom_tl8oe_34",v4="_itemTitle_tl8oe_41",y4="_itemComponent_tl8oe_70",x4="_itemLabel_tl8oe_76",E4="_collapseContent_tl8oe_81",b4="_itemClose_tl8oe_85";var Yt={mddTableForm:m4,tableFormTitle:f4,tableFormContent:h4,tableFormBottom:g4,itemTitle:v4,"drop-over-downward":"_drop-over-downward_tl8oe_62","drop-over-upward":"_drop-over-upward_tl8oe_66",itemComponent:y4,itemLabel:x4,collapseContent:E4,itemClose:b4};const Cp="PanelTitle",{Panel:C4}=h.Collapse,{Tooltip:F4}=h.Balloon,S4=e=>{e.stopPropagation()},D4=e=>{const t=M.useRef(null),{data:r,onSortUpdate:o,index:i,draggable:s,onRemove:m,onChange:d,componentOptions:f,titleType:v=["label","name","type"],penetrateType:y,swaggerFieldDataSource:b,customRender:w}=e,[E,F]=M.useState(r),{label:k,name:C,type:T,groupKey:U}=E||{};M.useEffect(()=>{F(r)},[k,C,T,U,r]);const[{isOver:J},W]=ts({accept:Cp,collect(N){return{isOver:N.isOver()}},drop(N){const G=N.index;s&&o(G,i)}}),[{isDragging:K,sourceItem:L},S]=es({type:Cp,item:()=>({index:i}),collect:N=>({isDragging:N.isDragging(),sourceItem:N.getItem()})}),O=K?0:1;s&&S(W(t));const Y=(N,G)=>{if(E[N]=G,y&&N==="type"){const ie=Oe[G];ie&&(E[G]=ie);const re=BF[T];if(re)for(const _ of re)!["name"].includes(_)&&delete E[_]}F({...E}),d(E,N)},j=qi.bind(Yt)({itemTitle:"itemTitle","drop-over-upward":J&&i<L.index,"drop-over-downward":J&&i>L.index});return l.default.createElement("div",{ref:t,className:j,style:{cursor:s?"move":"default",opacity:O},onClick:N=>s&&N.stopPropagation()},w==null?void 0:w(e),v.includes("label")&&l.default.createElement(h.Input,{size:"small",value:k,onChange:N=>Y("label",N),onKeyDown:S4,placeholder:"\u8F93\u5165\u5C55\u793A\u540D\u79F0"}),v.includes("type")&&l.default.createElement("div",{className:Yt.itemComponent},l.default.createElement("label",{className:Yt.itemLabel},"\u7EC4\u4EF6: "),l.default.createElement(h.Select,{size:"small",autoWidth:!1,value:T,onChange:N=>Y("type",N)},f&&f.map(N=>l.default.createElement(h.Select.Option,{key:N.value,value:N.value},N.label)))),v.includes("name")&&l.default.createElement(h.Select.AutoComplete,{style:{width:"200px"},size:"small",dataSource:b,value:C,onChange:N=>Y("name",N),placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u53D8\u91CF\u540D"}),v.includes("groupKey")&&l.default.createElement("div",{className:Yt.itemComponent},l.default.createElement("label",{className:Yt.itemLabel},"\u5206\u7EC4: "),l.default.createElement(h.Input,{size:"small",value:U,onChange:N=>Y("groupKey",N),placeholder:"\u5206\u7EC4\u6807\u8BC6\uFF0C\u53EF\u4EE5\u662F\u4E2D\u6587\u3002\u76F8\u540C\u7684\u6807\u8BC6\u4F1A\u5408\u5E76\u6210\u529F\u80FD\u7EC4, \u6BD4\u5982\u591A\u4E2A\u6309\u94AE\u5408\u5E76\u6210\u6309\u94AE\u7EC4"})),l.default.createElement(h.Icon,{type:"close",size:"small",className:Yt.itemClose,onClick:m}))},A4=e=>{var L,S;const{values:t,effects:r,onChange:o,schema:i,index:s,extraFieldSchema:m,updateForceFLag:d,listSchema:f}=e,{type:v,label:y,name:b}=t,{formilySchema:w,dataAdaptor:E}=i||{},[F,k]=M.useState(za()),{dataMap:C,getModule:T}=uo(),U=T("$ModuleDataSource"),J=T("$BlocksDataSource");l.default.useEffect(Na(()=>{k(za())},500),[`${(L=e==null?void 0:e.values)==null?void 0:L.label}_${(S=e==null?void 0:e.values)==null?void 0:S.name}`]);const W=M.useMemo(()=>{const O=T4(w||i,{moduleDataSource:U,listSchema:f,blocksDataSource:J});return I4(O,m)},[w,i,m,U,F,f]),K=M.useMemo(()=>({values:E?E(t,!0):t,schema:W,effects:r,updateForceFLag:d,onChange:({record:Y})=>{const j=E?E(Y,!1):Y;o({record:j})},customComponents:{FormilyDS:xf,FormilyTR:bf,FormilyAddress:Cf,FormilyPS:Ef,FormilySelect:is,FormilyAjaxSchemaForm:Rf,FormilyTableFormProxy:ss,FormilyDynamicValueDate:Bf,FormilyDynamicValueBase:kf}}),[v,d,W]);return l.default.createElement("div",{className:Yt.collapseContent},l.default.createElement(_f,{...K,hiddenSubmit:!0}))};function w4(e,t){const{title:r="\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",tip:o="",actionContent:i=null,data:s=[],onChange:m=()=>{},onSort:d=z=>{},onAdd:f,onRemove:v,draggable:y=!0,titleType:b,penetrateType:w,effects:E={},swaggerFieldDataSource:F=[],extraFieldSchema:k,titleRender:C,hideAddButton:T}=e,[U,J]=M.useState(0),[W,K]=M.useState({}),L=M.useRef(s),S=M.useRef([]),O=M.useMemo(()=>w===io.FORM?{...Di,...cs}:Di,[]),Y=()=>{J(Math.random())},j=z=>{const D=S.current;S.current=z.map((R,Q)=>D[Q]||za())},N=z=>(S.current[z]||(S.current[z]=za()),S.current[z]),G=z=>{L.current=Array.isArray(z)?z:[],j(L.current),Y()};M.useEffect(()=>{L.current=Array.isArray(s)?s:[],j(L.current),Y()},[s]),M.useImperativeHandle(t,()=>({updateData:G}),[]);const ie=z=>{S.current.splice(z,1),v(z),Y()},re=()=>{f(),Y()},_=M.useCallback((z,D)=>{const R=Math.min(z,D),Q=Math.max(z,D);L.current.splice(D,0,L.current.splice(z,1)[0]);const B=S.current.splice(z,1)[0]||za();S.current.splice(D,0,B),d(L.current),Y();for(let q=R;q<=Q;q++)W[q]=Math.random();K({...W})},[L.current,d]),$=z=>{m(z),Y()};return l.default.createElement("div",{className:Yt.mddTableForm},l.default.createElement("div",{className:Yt.tableFormTitle},l.default.createElement("div",null,typeof r=="function"?r():r,o&&l.default.createElement(F4,{trigger:l.default.createElement(h.Icon,{type:"help",size:"small"}),align:"t"},o)),i&&l.default.createElement("div",{className:Yt.tableFormAction},i)),l.default.createElement("div",{className:Yt.tableFormContent},l.default.createElement(Ol,null,l.default.createElement(h.Collapse,{accordion:!0},L.current.map((z,D)=>l.default.createElement(C4,{key:N(D),title:l.default.createElement(D4,{index:D,draggable:y,onChange:(R,Q)=>{const{type:B,name:q,label:ee,groupKey:oe,...de}=L.current[D],Be={...R,...de};$({index:D,record:Be})},swaggerFieldDataSource:F,onRemove:()=>ie(D),data:z,onSortUpdate:_,penetrateType:w,titleType:b,componentOptions:e.componentOptions,customRender:C})},l.default.createElement(A4,{updateForceFLag:W[D],values:z,index:D,schema:O[z.type],extraFieldSchema:k,effects:E,listSchema:L.current,onChange:({record:R})=>{const{type:Q,name:B,label:q,groupKey:ee,...oe}=L.current[D],de={...R,label:q,name:B,groupKey:ee};w&&(de[Q]=oe[Q]),$({index:D,record:de})}})))))),!T&&l.default.createElement("div",{className:Yt.tableFormBottom},l.default.createElement(h.Button,{onClick:re,style:{padding:"0 48px"}},"\u6DFB\u52A0\u9879")))}function T4(e,t={}){return typeof e=="function"?e(t):e}function I4(e,t){var r;if(((r=e==null?void 0:e.schema)==null?void 0:r.properties)&&t){const o=Al(e);return o.schema.properties={...e.schema.properties,...t},o}return e}function za(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e=="x"?t:t&3|8;return r.toString(16)})}const io={FILTER:"filter",FORM:"form"};var dt=M.forwardRef(w4);const _4="_mddForm_1e2nn_1",$4="_FormTitle_1e2nn_20",O4="_FormTitleHelp_1e2nn_24",R4="_FormContent_1e2nn_30",B4="_content_1e2nn_35";var Pa={mddForm:_4,FormTitle:$4,FormTitleHelp:O4,FormContent:R4,content:B4};const k4=e=>{const{values:t,index:r,effects:o,onChange:i,schema:s}=e,m=M.useMemo(()=>({values:t,schema:s,effects:o,index:r,onChange:i,customComponents:{FormilyDS:xf,FormilyTR:bf,FormilyAddress:Cf,FormilyPS:Ef,FormilySelect:is,FormilyAjaxSchemaForm:Rf,FormilyTableFormProxy:ss,FormilyDynamicValueDate:Bf,FormilyDynamicValueBase:kf}}),[s]);return l.default.createElement("div",{className:Pa.content},l.default.createElement(_f,{...m,hiddenSubmit:!0}))};function Wn(e){const{title:t="\u914D\u7F6E\u5206\u9875",help:r,data:o={},type:i,onChange:s=()=>{},effects:m={},children:d,style:f,contentStyle:v}=e;return l.default.createElement("div",{className:Pa.mddForm,style:f},l.default.createElement("div",{className:Pa.FormTitle},t),r&&l.default.createElement("div",{className:Pa.FormTitleHelp},r),l.default.createElement("div",{className:Pa.FormContent,style:v},d||l.default.createElement(k4,{values:o,schema:Di[i],effects:m,onChange:({index:y,record:b})=>s({index:y,record:b})})))}const ds=[{value:"cncard",label:"\u5361\u7247"},{value:"cncard-sub",label:"\u5B50\u5361\u7247"},{value:"input",label:"\u8F93\u5165\u6846"},{value:"batchInput",label:"\u6279\u91CF\u8F93\u5165\u6846"},{value:"input-textarea",label:"\u6587\u672C\u6846"},{value:"number-picker",label:"\u6570\u5B57\u6846"},{value:"number-range-picker",label:"\u6570\u5B57\u533A\u95F4\u6846"},{value:"select",label:"\u4E0B\u62C9\u6846"},{value:"cascader-select",label:"\u7EA7\u8054\u4E0B\u62C9\u6846"},{value:"time-picker2",label:"\u65F6\u95F4\u9009\u62E9"},{value:"date-picker2",label:"\u65E5\u671F\u9009\u62E9"},{value:"switch",label:"\u5F00\u5173"},{value:"radio",label:"\u5355\u9009"},{value:"check-box",label:"\u591A\u9009"},{value:"date-range-picker",label:"\u65E5\u671F\u8303\u56F4"},{value:"time-range-picker",label:"\u65F6\u95F4\u8303\u56F4"},{value:"address-select",label:"\u5730\u5740\u9009\u62E9"},{value:"upload",label:"OSS\u4E0A\u4F20"},{value:"import-component",label:"\u81EA\u5B9A\u4E49\u6A21\u5757"}],so=[...ds];so.splice(3,0,{value:"input-password",label:"\u5BC6\u7801\u8F93\u5165\u6846"});so.splice(3,0,{value:"message",label:"\u4FE1\u606F\u63D0\u793A"});so.splice(3,0,{value:"global-phone-picker",label:"\u56FD\u9645\u7535\u8BDD\u8F93\u5165\u6846"});const Lf=[{value:"text",label:"\u6587\u672C"},{value:"tooltip-text",label:"\u8D85\u957F\u6587\u672C"},{value:"num",label:"\u6570\u503C"},{value:"tag",label:"\u6807\u7B7E"},{value:"single-enum",label:"\u679A\u4E3E"},{value:"date",label:"\u65F6\u95F4\u5C55\u793A"},{value:"tpl",label:"\u6A21\u677F\u8868\u8FBE\u5F0F"},{value:"clipboard",label:"\u53EF\u590D\u5236\u5230\u526A\u5207\u677F"},{value:"list",label:"\u7B80\u5355\u5217\u8868"},{value:"images",label:"\u9644\u4EF6/\u56FE\u7247"},{value:"custom",label:"\u81EA\u5B9A\u4E49"}],Ml=[...Lf,{value:"cn-tag",label:"\u6807\u7B7EV2"},{value:"cn-number",label:"\u7B80\u5355\u6570\u503C"},{value:"cn-graphics-percent",label:"\u8FDB\u5EA6\u6761"},{value:"cn-image-text",label:"\u56FE\u7247\u6587\u672C"},{value:"cn-bank",label:"\u94F6\u884C\u5361\u53F7"},{value:"blocks-table",label:"\u5217\u8868\u533A\u5757"}],jf=[{value:"text",label:"\u6587\u672C"},{value:"edit-input",label:"\u8F93\u5165\u6846"},{value:"edit-batch-input",label:"\u6279\u91CF\u8F93\u5165\u6846"},{value:"edit-number-picker",label:"\u6570\u503C\u8F93\u5165\u6846"},{value:"edit-select",label:"\u4E0B\u62C9\u9009\u62E9\u6846"},{value:"edit-date-picker",label:"\u65E5\u671F\u9009\u62E9"},{value:"edit-time-picker",label:"\u65F6\u95F4\u9009\u62E9"},{value:"edit-address-select",label:"\u5730\u5740\u9009\u62E9"},{value:"edit-cascader-select",label:"\u7EA7\u8054\u9009\u62E9\u5668"},{value:"upload",label:"OSS\u4E0A\u4F20"},{value:"blocks-table",label:"\u5217\u8868\u533A\u5757"},{value:"blocks-edit-table",label:"\u53EF\u7F16\u8F91\u8868\u683C\u533A\u5757"},{value:"edit-custom",label:"\u81EA\u5B9A\u4E49"}],M4=[{label:"\u4E0A\u65B9(\u63A8\u8350)",value:"top"},{label:"\u5DE6\u8FB9",value:"left"}],P4={type:"input",label:"\u8F93\u5165\u6846",name:"",input:Oe.input},Ai=[{label:"\u4E0D\u5F00\u542F",value:""},{label:"\u5F00\u542F\u5BA2\u6237\u7AEF\u7F13\u5B58",value:"local"},{label:"\u5F00\u542F\u670D\u52A1\u7AEF\u7F13\u5B58",value:"server"}],N4=[{label:"\u81EA\u9002\u5E94",value:0},{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",value:5},{label:"6",value:6},{label:"7",value:7},{label:"8",value:8}];function Yf({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{const y=(b,w)=>{!w&&i({})};return e.on("$updated",y),()=>{e.off("$updated",y)}},[e]);const s=e.get("fields"),m=()=>{var y;(y=r.current)==null||y.updateData(e.get("fields"))},d=()=>{e.add(P4,!0),m()},f=y=>{e.remove(y,!0),m()},v=({index:y,record:b})=>{for(const w in Oe)b.type!==w&&!["name"].includes(w)&&delete b[w];e.update(y,b,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s,penetrateType:io.FILTER,componentOptions:[...ds,{value:"blocks-filter",label:"\u7B5B\u9009\u9879\u533A\u5757"}],title:"\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",onAdd:d,onRemove:f,onChange:v,swaggerFieldDataSource:t,onSort:y=>{e.setFieldsAll(y,!0)}}),l.default.createElement(Wn,{title:"\u57FA\u7840\u6837\u5F0F\u914D\u7F6E"},l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(y,b)=>{e.set(b.name,b.value)}},l.default.createElement(h.Form.Item,{label:"\u9ED8\u8BA4\u5C55\u5F00:",name:"defaultExpand",help:"\u4EC5\u5728 \u65B0\u7248\u5E03\u5C40\u4E2D\u751F\u6548"},l.default.createElement(h.Switch,{defaultChecked:e.get("defaultExpand")})),l.default.createElement(h.Form.Item,{label:"\u6587\u672C\u4F4D\u7F6E:",name:"labelAlign"},l.default.createElement(h.Select,{dataSource:M4,defaultValue:e.get("labelAlign")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u6700\u5927\u884C\u6570:",name:"maxVisibleRow"},l.default.createElement(h.NumberPicker,{defaultValue:e.get("maxVisibleRow")})),l.default.createElement(h.Form.Item,{label:"\u6BCF\u884C\u663E\u793A\u5217\u6570:",name:"col"},l.default.createElement(h.Select,{defaultValue:e.get("col"),dataSource:N4})),l.default.createElement(h.Form.Item,{label:"label\u5BBD\u5EA6:",name:"labelSpan",help:"\u5BBD\u5EA6\u4E3A 20 * {\u56FA\u5B9Alabel\u5BBD\u5EA6\u503C}\uFF0C\u6587\u672C\u4F4D\u7F6E\u5DE6\u8FB9\u7684\u65F6\u5019\u6709\u6548"},l.default.createElement(h.NumberPicker,{defaultValue:e.get("labelSpan"),min:0,max:24})),l.default.createElement(h.Form.Item,{label:"\u7F13\u5B58key:",name:"storageKey",help:"\u81EA\u5DF1\u5B9A\u4E49\u9009\u9879\u4E2D\uFF0C\u672C\u5730\u7F13\u5B58\u7684key\u952E\uFF0C\u4FDD\u8BC1\u5168\u5C40\u552F\u4E00\u5373\u53EF"},l.default.createElement(h.Input,{defaultValue:e.get("storageKey")})),l.default.createElement(h.Form.Item,{label:"\u7F13\u5B58\u65B9\u5F0F:",name:"enableSaveSelected",help:l.default.createElement("span",null,"\u67E5\u8BE2\u6761\u4EF6\u7684\u7F13\u5B58\u65B9\u5F0F\uFF1A\u4E0D\u542F\u52A8\u3001\u672C\u5730localStorage\u7F13\u5B58 \u548C \u670D\u52A1\u7AEF\u63A5\u53E3\u7F13\u5B58, \u53C2\u8003:"," ",l.default.createElement("a",{href:"https://alidocs.dingtalk.com/i/nodes/Obva6QBXJwxNZoMOC34Bmylx8n4qY5Pr"},"\u6587\u6863"))},l.default.createElement(h.Select,{style:{width:"300px"},dataSource:Ai,defaultValue:L4(e.get("enableSaveSelected"))})))))}function L4(e){return typeof e=="boolean"?e===!0?Ai[1].value:Ai[0].value:e}function zf({schema:e,moduleMap:t}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{const b=(w,E)=>{!E&&i({})};return e.on("$updated",b),()=>{e.off("$updated",b)}},[e]);const s=e.getData(),m=()=>{var b;(b=r.current)==null||b.updateData(e.getData())},d=()=>{e.add({type:"button",actionType:"url",label:"\u64CD\u4F5C",name:""},!0),m()},f=b=>{e.remove(b,!0),m()},v=({index:b,record:w})=>{e.update(b,w,!0)},y=t==null?void 0:t.get("$QuickAction");return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s,title:"\u914D\u7F6E\u5168\u5C40\u64CD\u4F5C",actionContent:typeof y=="function"?y({schema:e,refresh:m}):null,titleType:["label","groupKey"],onAdd:d,onRemove:f,onChange:v,onSort:b=>{e.updateAll(b,!0)}}))}function j4({schema:e,swaggerFields:t=[]}){var z;const r=l.default.useRef(),o=l.default.useRef(),i=l.default.useRef(),s=l.default.useRef(),[m,d]=M.useState({}),[f,v]=M.useState(!!((z=e.get("rowDetailModule"))!=null&&z.path));M.useEffect(()=>{const D=(R,Q)=>{!Q&&d({})};return e.on("$updated",D),Y4(e),()=>{e.off("$updated",D)}},[e]);const y=e.get("primaryKey"),b=e.get("bulkActions"),w=e.get("columns"),E=e.get("actionColumns"),F=e.get("rowDoubleClick"),k=e.get("pagination"),C=e.get("tree"),T=e.get("showIndex"),U=e.get("hideCommonToolbar"),J=e.get("actionMaxCharNum"),W=e.get("actionWidth"),K=e.get("showSelect"),L=e.get("rowDetailModule"),S=e.get("remoteSort"),O=e.get("treeLinkageCheck"),Y=e.getLoadChildrenDataApiPanel(),j=D=>{var R,Q,B,q;switch(D){case"bulkActions":e.add({type:"button",action:{type:"url",params:{ids:"$TABLE.SELECTED_KEY_DATA"}},label:"\u64CD\u4F5C",name:""},"bulkActions",!0),(R=o.current)==null||R.updateData(e.get("bulkActions"));break;case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),(Q=r.current)==null||Q.updateData(e.get("columns"));break;case"actionColumns":e.add({type:"button",action:{type:"url",params:{record:"$TABLE.RECORD_DATA"}},label:"\u64CD\u4F5C",name:""},"actionColumns",!0),(B=i.current)==null||B.updateData(e.get("actionColumns"));break;case"rowDoubleClick":e.add({type:"button",action:{type:"url",params:{record:"$TABLE.RECORD_DATA"}}},"rowDoubleClick",!0),(q=s.current)==null||q.updateData(e.get("rowDoubleClick"));break}},N=(D,R)=>{var Q,B,q,ee;e.remove(D,R,!0),R==="bulkActions"?(Q=o.current)==null||Q.updateData(e.get("bulkActions")):R==="columns"?(B=r.current)==null||B.updateData(e.get("columns")):R==="actionColumns"?(q=i.current)==null||q.updateData(e.get("actionColumns")):R==="rowDoubleClick"&&((ee=s.current)==null||ee.updateData(e.get("rowDoubleClick")))},G=({index:D,record:R},Q)=>{e.update(D,R,Q,!0)},ie=D=>{e.update("",D?Number(D):"","actionMaxCharNum")},re=D=>{e.update("",D?Number(D):"","actionWidth")},_=(D,R)=>{e.update("",R,D)},$=D=>{v(D),D||(G({},"rowDetailModule"),_("rowDetailDefaultOpenAll",!1))};return l.default.createElement("div",null,l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u4E3B\u952E\uFF1A"),l.default.createElement(h.Input,{value:y,size:"small",onChange:D=>_("primaryKey",D)})),l.default.createElement(dt,{ref:o,data:b,title:"\u914D\u7F6E\u6279\u91CF\u64CD\u4F5C",titleType:["label","groupKey"],onAdd:()=>j("bulkActions"),onRemove:D=>N(D,"bulkActions"),onChange:({index:D,record:R})=>G({index:D,record:R},"bulkActions"),onSort:D=>{e.setItemAll(D,"bulkActions",!0)}}),l.default.createElement(dt,{ref:r,data:w,title:"\u914D\u7F6E\u8868\u683C\u5217",componentOptions:Ml,onAdd:()=>j("columns"),onRemove:D=>N(D,"columns"),onChange:({index:D,record:R})=>G({index:D,record:R},"columns"),swaggerFieldDataSource:t,onSort:D=>{e.setItemAll(D,"columns",!0)}}),l.default.createElement(dt,{ref:i,data:E,title:"\u914D\u7F6E\u64CD\u4F5C\u5217",titleType:["label"],onAdd:()=>j("actionColumns"),onRemove:D=>N(D,"actionColumns"),onChange:({index:D,record:R})=>G({index:D,record:R},"actionColumns"),onSort:D=>{e.setItemAll(D,"actionColumns",!0)}}),l.default.createElement(dt,{ref:s,data:F,title:()=>{var D;return l.default.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},"\u914D\u7F6E\u884C\u53CC\u51FB\u4E8B\u4EF6",l.default.createElement(h.CnSwitch,{size:"small",checked:((D=e.get("rowDoubleClick"))==null?void 0:D.length)>0,onChange:R=>{R?j("rowDoubleClick"):N(0,"rowDoubleClick")}}),l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.Icon,{type:"prompt"})},"\u884C\u53CC\u51FB\u4E8B\u4EF6 \u548C \u64CD\u4F5C\u5217\u6309\u94AE \u914D\u7F6E\u4FDD\u6301\u4E00\u81F4\uFF0C\u4E0B\u9762 \u5173\u4E8E\u6309\u94AE\u7684\u914D\u7F6E \u5747\u4F1A\u5931\u6548\uFF0C\u8BF7\u53EA\u5173\u6CE8 \u53CC\u51FB \u8981\u6267\u884C\u7684\u4E8B\u4EF6\u672C\u8EAB"))},titleType:[],draggable:!1,titleRender:()=>"\u884C\u53CC\u51FB \u4E8B\u4EF6\u914D\u7F6E",onRemove:()=>{},onChange:({index:D,record:R})=>G({index:D,record:R},"rowDoubleClick")}),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u64CD\u4F5C\u5217\u6309\u94AE\u6700\u957F\u5B57\u7B26\u6570\uFF1A"),l.default.createElement(h.NumberPicker,{value:J,size:"small",onChange:ie,min:1,max:10}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8D85\u957F\u90E8\u5206\u4F1A\u663E\u793A\u4E3A\u201C...\u201D[\u6CE8\u610F\uFF1A\u9700\u5168\u5C40\u5F00\u542F\u914D\u7F6E\u540E \u6B64\u9879\u751F\u6548\uFF1B\u5728\u4F4E\u7248\u672C CN-UI \u4E0A\u4E0D\u751F\u6548\uFF0C\u5982 \u5B9E\u65BD\u5DE5\u4F5C\u53F0\uFF1B\u53EF\u80FD\u4F1A\u5BF9\u4E00\u7801\u591A\u7AEF\u6548\u679C\u9020\u6210\u5F71\u54CD\uFF0C\u614E\u7528]")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u64CD\u4F5C\u5217\u5BBD\u5EA6\uFF1A"),l.default.createElement(h.Input,{value:W,size:"small",onChange:re}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u9ED8\u8BA4\u4E0D\u8BBE\u7F6E\u662F\u81EA\u52A8\u8BA1\u7B97\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u6307\u5B9A\u5BBD\u5EA6")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u6700\u5927\u9AD8\u5EA6\uFF1A"),l.default.createElement(h.NumberPicker,{value:e.get("maxHeight"),size:"small",onChange:D=>_("maxHeight",D),min:0}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)")),l.default.createElement(Wn,{contentStyle:{padding:"10px"},data:k,type:"pagination",title:"\u914D\u7F6E\u5206\u9875",onChange:({index:D,record:R})=>G({index:D,record:R},"pagination")}),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u5F00\u542F\u81EA\u5B9A\u4E49\u884C\u8BE6\u60C5\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:f,size:"small",onChange:$}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u975E\u6811\u5F62\u7684\u7236\u5B50\u5173\u7CFB\uFF0C\u53EF\u4EE5\u4F7F\u7528\u8BE5\u914D\u7F6E\uFF0C\u53EF\u4EE5\u5185\u5D4C\u81EA\u5B9A\u4E49\u5B50\u6A21\u5757, \u5185\u7F6E\u6A21\u5757\u63A5\u6536\u989D\u5916\u4E24\u4E2A\u53C2\u6570:row, rowIndex")),f&&l.default.createElement(Wn,{contentStyle:{padding:"10px"},data:L,type:"moduleImport",title:"\u914D\u7F6E\u884C\u8BE6\u60C5",onChange:({index:D,record:R})=>G({index:D,record:R},"rowDetailModule")}),f&&l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u884C\u8BE6\u60C5\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u5168\u90E8\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("rowDetailDefaultOpenAll"),size:"small",onChange:D=>_("rowDetailDefaultOpenAll",D)})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u6811\u5F62\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:C,size:"small",onChange:D=>_("tree",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u6811\u5F62\u7ED3\u6784\u9ED8\u8BA4\u5B50\u8282\u70B9KEY\u4E3Achildren , \u5F00\u542F\u540E\u4E5F\u53EF\u901A\u8FC7\u4E0B\u9762\u7684\u61D2\u52A0\u8F7D\u8BBE\u7F6E\u6539\u6210\u61D2\u52A0\u8F7D\u6A21\u5F0F\uFF0C\u4E0D\u914D\u7F6E\u5219\u9700\u8981\u4E00\u6B21\u6027\u8FD4\u56DE\u6811\u5F62\u6570\u636E")),C&&l.default.createElement("div",{style:{marginLeft:"20px",marginBottom:8,display:"flex"}},l.default.createElement("label",null,"\u7236\u5B50\u8282\u70B9\u7EA7\u8054\u52FE\u9009\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:O,size:"small",onChange:D=>_("treeLinkageCheck",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," ","\u7236\u8282\u70B9\u52FE\u9009\u9ED8\u8BA4\u4F1A\u52FE\u9009\u6240\u6709\u5B50\u8282\u70B9,\u5B50\u8282\u70B9\u52FE\u9009\u9ED8\u8BA4\u4F1A\u52FE\u4E0A\u7236\u8282\u70B9\u3010\u5FC5\u987B\u914D\u7F6E\u552F\u4E00\u4E3B\u952E\uFF0C\u4E0D\u652F\u6301\u5F02\u6B65\u6570\u636E\u3011")),C&&l.default.createElement("div",{style:{marginLeft:"20px",marginBottom:8,display:"flex"}},l.default.createElement("label",null,"\u5B50\u8282\u70B9\u61D2\u52A0\u8F7D\u914D\u7F6E\uFF1A"),l.default.createElement("div",null,l.default.createElement(cn,{schema:Y,isSelectType:!1}),l.default.createElement("span",{className:"mdd-tip",style:{padding:0}},l.default.createElement(h.Icon,{type:"prompt"})," \u5B50\u8282\u70B9\u901A\u8FC7ajax\u8BF7\u6C42\u52A0\u8F7D\uFF0CdataSource\u9700\u8981\u8FD4\u56DE hasChildren:true \u624D\u4F1A\u6709\u5B50\u8282\u70B9\u5C55\u5F00\u7BAD\u5934"))),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u663E\u793A\u5E8F\u53F7\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:T,size:"small",onChange:D=>_("showIndex",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7"," ")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:U,size:"small",onChange:D=>_("hideCommonToolbar",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u662F\u5426\u9690\u85CFtable\u9876\u90E8\u64CD\u4F5C\u533A\u7684\u901A\u7528\u64CD\u4F5C\u6309\u94AE\uFF0C\u6BD4\u5982\u5168\u5C4F\u3001\u6591\u9A6C\u7EBF\u3001\u5217\u8BBE\u7F6E\u3001\u5C3A\u5BF8\u7B49")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u53EF\u9009\u62E9\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:K,size:"small",onChange:D=>_("showSelect",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u9ED8\u8BA4\u662F\u6279\u91CF\u64CD\u4F5C\u6309\u94AE\u63A7\u5236\uFF0C \u4E5F\u53EF\u4EE5\u5728\u6CA1\u6709\u6279\u91CF\u64CD\u4F5C\u6309\u94AE\u65F6\uFF0C\u663E\u793A\u52FE\u9009\u529F\u80FD")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u8FDC\u7A0B\u6392\u5E8F\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:S,size:"small",onChange:D=>_("remoteSort",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8FDC\u7A0B\u6392\u5E8F\u9700\u8981\u5728\u6570\u636E\u6E90\u4E2D\u914D\u7F6E\u8BF7\u6C42\u53C2\u6570\uFF0C\u652F\u6301\u5355\u5B57\u6BB5\u6392\u5E8F\u548C\u591A\u5B57\u6BB5\u6392\u5E8F\uFF0C\u53C2\u8003",l.default.createElement("a",{href:"https://alidocs.dingtalk.com/i/nodes/ZK0RbznqyYaWdyw4p2pPV953mBE4AdDw",target:"_blank",rel:"noreferrer"},"\u6587\u6863"))),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u5217\u5934\u7B5B\u9009\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("filter"),size:"small",onChange:D=>_("filter",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u7B5B\u9009")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u591A\u7EF4\u6307\u6807\u6392\u5E8F\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("customSort"),size:"small",onChange:D=>{_("customSort",D),!D&&_("customSortStorage","")}}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u6392\u5E8F"),e.get("customSort")&&l.default.createElement(h.Input,{style:{marginLeft:8},value:e.get("customSortStorage"),size:"small",placeholder:"\u8DDF\u968F\u9875\u9762\u7F13\u5B58",onChange:D=>{_("customSortStorage",D)}})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u5217\u5934\u590D\u5236\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("copy"),size:"small",onChange:D=>_("copy",D)})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u865A\u62DF\u6EDA\u52A8\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("useVirtual"),size:"small",onChange:D=>_("useVirtual",D)})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u81EA\u52A8\u5217\u5BBD\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("columnsAutoWidth"),size:"small",onChange:D=>_("columnsAutoWidth",D)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u5982\u679C\u6709\u6027\u80FD\u95EE\u9898\u53EF\u4EE5\u5173\u95ED\u8BE5\u5C5E\u6027\uFF0C\u540C\u65F6\u624B\u52A8\u8BBE\u7F6E\u5217\u5BBD")))}function Y4(e){e.get("rowDetail")&&e.set("rowDetail",void 0)}var wi={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(S){return typeof S=="object"&&!("toString"in S)?Object.prototype.toString.call(S).slice(8,-1):S}var o=typeof process=="object"&&!0;function i(S,O){if(!S)throw o?new Error("Invariant failed"):new Error(O())}t.invariant=i;var s=Object.prototype.hasOwnProperty,m=Array.prototype.splice,d=Object.prototype.toString;function f(S){return d.call(S).slice(8,-1)}var v=Object.assign||function(S,O){return y(O).forEach(function(Y){s.call(O,Y)&&(S[Y]=O[Y])}),S},y=typeof Object.getOwnPropertySymbols=="function"?function(S){return Object.keys(S).concat(Object.getOwnPropertySymbols(S))}:function(S){return Object.keys(S)};function b(S){return Array.isArray(S)?v(S.constructor(S.length),S):f(S)==="Map"?new Map(S):f(S)==="Set"?new Set(S):S&&typeof S=="object"?v(Object.create(Object.getPrototypeOf(S)),S):S}var w=function(){function S(){this.commands=v({},E),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(O,Y){return O===Y},this.update.newContext=function(){return new S().update}}return Object.defineProperty(S.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(O){this.update.isEquals=O},enumerable:!0,configurable:!0}),S.prototype.extend=function(O,Y){this.commands[O]=Y},S.prototype.update=function(O,Y){var j=this,N=typeof Y=="function"?{$apply:Y}:Y;Array.isArray(O)&&Array.isArray(N)||i(!Array.isArray(N),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),i(typeof N=="object"&&N!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(j.commands).join(", ")+".")});var G=O;return y(N).forEach(function(ie){if(s.call(j.commands,ie)){var re=O===G;G=j.commands[ie](N[ie],G,N,O),re&&j.isEquals(G,O)&&(G=O)}else{var _=f(O)==="Map"?j.update(O.get(ie),N[ie]):j.update(O[ie],N[ie]),$=f(G)==="Map"?G.get(ie):G[ie];(!j.isEquals(_,$)||typeof _=="undefined"&&!s.call(O,ie))&&(G===O&&(G=b(O)),f(G)==="Map"?G.set(ie,_):G[ie]=_)}}),G},S}();t.Context=w;var E={$push:function(S,O,Y){return k(O,Y,"$push"),S.length?O.concat(S):O},$unshift:function(S,O,Y){return k(O,Y,"$unshift"),S.length?S.concat(O):O},$splice:function(S,O,Y,j){return T(O,Y),S.forEach(function(N){U(N),O===j&&N.length&&(O=b(j)),m.apply(O,N)}),O},$set:function(S,O,Y){return W(Y),S},$toggle:function(S,O){C(S,"$toggle");var Y=S.length?b(O):O;return S.forEach(function(j){Y[j]=!O[j]}),Y},$unset:function(S,O,Y,j){return C(S,"$unset"),S.forEach(function(N){Object.hasOwnProperty.call(O,N)&&(O===j&&(O=b(j)),delete O[N])}),O},$add:function(S,O,Y,j){return L(O,"$add"),C(S,"$add"),f(O)==="Map"?S.forEach(function(N){var G=N[0],ie=N[1];O===j&&O.get(G)!==ie&&(O=b(j)),O.set(G,ie)}):S.forEach(function(N){O===j&&!O.has(N)&&(O=b(j)),O.add(N)}),O},$remove:function(S,O,Y,j){return L(O,"$remove"),C(S,"$remove"),S.forEach(function(N){O===j&&O.has(N)&&(O=b(j)),O.delete(N)}),O},$merge:function(S,O,Y,j){return K(O,S),y(S).forEach(function(N){S[N]!==O[N]&&(O===j&&(O=b(j)),O[N]=S[N])}),O},$apply:function(S,O){return J(S),S(O)}},F=new w;t.isEquals=F.update.isEquals,t.extend=F.extend,t.default=F.update,t.default.default=e.exports=v(t.default,t);function k(S,O,Y){i(Array.isArray(S),function(){return"update(): expected target of "+r(Y)+" to be an array; got "+r(S)+"."}),C(O[Y],Y)}function C(S,O){i(Array.isArray(S),function(){return"update(): expected spec of "+r(O)+" to be an array; got "+r(S)+". Did you forget to wrap your parameter in an array?"})}function T(S,O){i(Array.isArray(S),function(){return"Expected $splice target to be an array; got "+r(S)}),U(O.$splice)}function U(S){i(Array.isArray(S),function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(S)+". Did you forget to wrap your parameters in an array?"})}function J(S){i(typeof S=="function",function(){return"update(): expected spec of $apply to be a function; got "+r(S)+"."})}function W(S){i(Object.keys(S).length===1,function(){return"Cannot have more than one key in an object with $set"})}function K(S,O){i(O&&typeof O=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+r(O)}),i(S&&typeof S=="object",function(){return"update(): $merge expects a target of type 'object'; got "+r(S)})}function L(S,O){var Y=f(S);i(Y==="Map"||Y==="Set",function(){return"update(): "+r(O)+" expects a target of type Set or Map; got "+r(Y)})}})(wi,wi.exports);var Hf=Xh(wi.exports);const z4="_mddTableArray_16ght_1",H4="_tableArrayTitle_16ght_14",V4="_tableArrayContent_16ght_18",U4="_tableArrayBottom_16ght_32",q4="_itemTitle_16ght_39",W4="_collapseContent_16ght_69",K4="_itemClose_16ght_73";var mr={mddTableArray:z4,tableArrayTitle:H4,tableArrayContent:V4,tableArrayBottom:U4,itemTitle:q4,"drop-over-downward":"_drop-over-downward_16ght_61","drop-over-upward":"_drop-over-upward_16ght_65",collapseContent:W4,itemClose:K4};const Fp="TableArrayPanelTitle",{Panel:J4}=h.Collapse,G4=e=>{const t=M.useRef(null),{data:r,onSortUpdate:o,index:i,draggable:s,onRemove:m,onChange:d,customRender:f=()=>{},otherInfo:v}=e,{dataMap:y,getModule:b}=uo(),w=b("$ModuleDataSource"),[{isOver:E},F]=ts({accept:Fp,collect(W){return{isOver:W.isOver()}},drop(W){const K=W.index;s&&o(K,i)}}),[{isDragging:k,sourceItem:C},T]=es({type:Fp,item:()=>({index:i}),collect:W=>({isDragging:W.isDragging(),sourceItem:W.getItem()})}),U=k?0:1;s&&T(F(t));const J=qi.bind(mr)({itemTitle:"itemTitle","drop-over-upward":E&&i<C.index,"drop-over-downward":E&&i>C.index});return l.default.createElement("div",{ref:t,className:J,style:{cursor:s?"move":"default",opacity:U},onClick:W=>W.stopPropagation()},f&&f({data:r,index:i,onChange:d,moduleDataSource:w,otherInfo:v}),l.default.createElement(h.Icon,{type:"close",size:"small",className:mr.itemClose,onClick:m}))};function Vf(e){var F;const{title:t="",tip:r,data:o=[],onChange:i=()=>{},onSort:s=()=>{},onAdd:m,onRemove:d,draggable:f=!0,titleRender:v,contentRender:y,otherInfo:b}=e,w=M.useCallback((k,C)=>{const T=Hf(o,{$splice:[[k,1],[C,0,o[k]]]});s(T,k,C)},[o,s]),E=({index:k,record:C})=>{o.splice(k,1,C),i({record:C,index:k,data:o})};return l.default.createElement("div",{className:mr.mddTableArray},l.default.createElement("div",{className:mr.tableArrayTitle},t,r&&l.default.createElement(h.Balloon,{trigger:l.default.createElement(h.Icon,{type:"help",size:"small"}),align:"t"},r)),l.default.createElement("div",{className:mr.tableArrayContent},l.default.createElement(Ol,null,l.default.createElement(h.Collapse,{accordion:!0},(F=o==null?void 0:o.map)==null?void 0:F.call(o,(k,C)=>l.default.createElement(J4,{title:l.default.createElement(G4,{index:C,draggable:f,onChange:T=>{E({index:C,record:T})},onRemove:()=>d(C),data:k,onSortUpdate:w,customRender:v,otherInfo:b})},l.default.createElement("div",{className:mr.collapseContent},y({data:k,index:C,onChange:E,otherInfo:b}))))))),l.default.createElement("div",{className:mr.tableArrayBottom},l.default.createElement(h.Button,{onClick:m,style:{padding:"0 48px"}},"\u6DFB\u52A0\u9879")))}const Q4="_customTabItem_119xt_1",X4="_tabTitle_119xt_5",Z4="_tabLabel_119xt_9",e3="_middleBox_119xt_20",t3="_middleBoxLeft_119xt_26",n3="_middleBoxRight_119xt_31";var lt={customTabItem:Q4,tabTitle:X4,tabLabel:Z4,middleBox:e3,middleBoxLeft:t3,middleBoxRight:n3};const r3=[{label:"FTP\u591A\u6807\u7B7E",value:"ftp-tabs"}];function a3(e){const{schema:t}=e,[r,o]=l.default.useState({});l.default.useEffect(()=>{const f=(v,y)=>{!y&&o({})};return t.on("$updated",f),()=>{t.off("$updated",f)}},[t]);const i=()=>{t.addMiddle(),o({})},s=f=>{t.removeMiddle(f),o({})},m=({index:f,record:v,data:y})=>{t.updateMiddle(f,v),o({})},d=(f,v,y)=>{t.sortMiddle(v,y),o({})};return l.default.createElement("div",null,l.default.createElement(Vf,{data:t.getMiddlePanel(),titleRender:o3,contentRender:l3,title:"\u914D\u7F6E\u4E2D\u95F4\u6A21\u5757\u533A\u57DF",onChange:m,onSort:d,onAdd:i,onRemove:s}))}function o3(e){const{data:t,index:r}=e;return l.default.createElement("div",null,"\u4E2D\u95F4\u6A21\u5757",r+1)}function l3(e){const{data:t,index:r,onChange:o}=e,i=(m,d)=>{t.set(m,d),o({index:r,record:t})},s=t.get("value");return l.default.createElement("div",null,l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u6E32\u67D3\u6A21\u5757\uFF1A"),l.default.createElement(h.Select.AutoComplete,{dataSource:r3,size:"small",className:lt.middleBoxRight,value:s,onChange:m=>i("value",m)})),l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u6A21\u5757\u53C2\u6570\uFF1A"),l.default.createElement(Un,{className:lt.middleBoxRight,value:t.get("params"),onChange:m=>i("params",m)})),s==="ftp-tabs"&&l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u63A5\u53E3\u8BF7\u6C42KEY\uFF1A"),l.default.createElement(h.Input,{className:lt.middleBoxRight,value:t.get("dataIndex"),size:"small",onChange:m=>i("dataIndex",m)})),l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u9ED8\u8BA4\u503C\uFF1A"),l.default.createElement(Si,{className:lt.middleBoxRight,value:t.get("defaultTabValue"),size:"small",onChange:m=>i("defaultTabValue",m)})),l.default.createElement("div",{className:lt.middleBox},l.default.createElement("label",{className:lt.middleBoxLeft},"\u591A\u6807\u7B7E\u6570\u636E\u6E90\uFF1A"),l.default.createElement("div",{className:lt.middleBoxRight},l.default.createElement(cn,{schema:t.getSourcePanel(),isSelectType:!1}),l.default.createElement("span",{className:"mdd-tip",style:{padding:0}},l.default.createElement(h.Icon,{type:"prompt"})," \u652F\u6301\u7EAF\u9759\u6001\u6807\u7B7E\u548C\u63A5\u53E3\u52A8\u6001\u6807\u7B7E\uFF0C\u4F7F\u7528\u6307\u5357\u53C2\u8003",l.default.createElement("a",{href:"https://alidocs.dingtalk.com/i/nodes/dpYLaezmVNRMGX56C1ZxqyYdVrMqPxX6"},"\u6587\u6863"))))))}const u3=({title:e,icon:t})=>l.default.createElement("div",{className:lt.customTabItem},l.default.createElement("div",{className:lt.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:lt.tabLabel},e)));function Uf({schema:e,moduleMap:t}){const{getApiFields:r}=pn(),o=e.getDataSourcePanel(),{parameterFields:i=[],responseFields:s=[]}=l.default.useMemo(()=>r(o==null?void 0:o.getApiUrl(),"ftp")||{},[o,r]);return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(m,d)=>l.default.createElement(u3,{key:m,...d})},l.default.createElement(h.Tab.Item,{title:"\u641C\u7D22\u533A",icon:"search"},l.default.createElement(Yf,{schema:e.getFilterPanel(),swaggerFields:i})),l.default.createElement(h.Tab.Item,{title:"\u4E2D\u95F4\u6A21\u5757\u533A",icon:"flag"},l.default.createElement(a3,{schema:e,moduleMap:t})),l.default.createElement(h.Tab.Item,{title:"\u9876\u90E8\u64CD\u4F5C\u533A",icon:"set"},l.default.createElement(zf,{schema:e.getHeaderToolbarPanel(),moduleMap:t})),l.default.createElement(h.Tab.Item,{title:"\u5185\u5BB9\u533A",icon:"detail"},l.default.createElement(j4,{schema:e.getTablePanel(),swaggerFields:s,moduleMap:t})),l.default.createElement(h.Tab.Item,{title:"\u4E3B\u6570\u636E\u6E90",icon:"filter"},l.default.createElement("div",{style:{marginLeft:"10px"}},l.default.createElement("div",{style:{marginBottom:8}},l.default.createElement("label",null,"\u5217\u8868\u6570\u636E\u6E90\uFF1A")),l.default.createElement(cn,{hasDelete:!0,schema:e.getDataSourcePanel(),isSelectType:!1}))))}function i3({schema:e}){const t=l.default.useRef(),[r,o]=M.useState({});M.useEffect(()=>{e.on("$updated",(f,v)=>{!v&&o({})}),s3(e)},[]);const i=e.get("columns"),s=f=>{var v;switch(f){case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),(v=t.current)==null||v.updateData(e.get("columns"));break}},m=(f,v)=>{var y;e.remove(f,v,!0),v==="columns"&&((y=t.current)==null||y.updateData(e.get("columns")))},d=({index:f,record:v},y)=>{e.update(f,v,y,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:t,data:i,title:"\u914D\u7F6E\u8868\u683C\u5217",componentOptions:Ml.filter(f=>f.value!=="blocks-table"),onAdd:()=>s("columns"),onRemove:f=>m(f,"columns"),onChange:({index:f,record:v})=>d({index:f,record:v},"columns"),onSort:f=>{e.setItemAll(f,"columns",!0)}}))}function s3(e){e.get("rowDetail")&&e.set("rowDetail",void 0)}const c3={type:"input",label:"\u8F93\u5165\u6846",name:"",input:Oe.input};function d3({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(y,b)=>{!b&&i({})})},[]);const s=e.get("fields"),m=()=>{var y;(y=r.current)==null||y.updateData(e.get("fields"))},d=()=>{e.add(c3,"fields",!0),m()},f=y=>{e.remove(y,"fields",!0),m()},v=({index:y,record:b})=>{for(const w in Oe)b.type!==w&&!["name"].includes(w)&&delete b[w];e.update(y,b,"fields",!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s,penetrateType:io.FILTER,componentOptions:ds,title:"\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",onAdd:d,onRemove:f,onChange:v,swaggerFieldDataSource:t,onSort:y=>{e.setFieldsAll(y,!0)}}))}const p3={type:"input",label:"\u8F93\u5165\u6846",name:"",input:Oe.input};function m3({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(y,b)=>{!b&&i({})})},[]);const s=e.get("fields"),m=()=>{var y;(y=r.current)==null||y.updateData(e.get("fields"))},d=()=>{e.add(p3,"fields",!0),m()},f=y=>{e.remove(y,"fields",!0),m()},v=({index:y,record:b})=>{for(const w in Oe)b.type!==w&&!["name"].includes(w)&&delete b[w];e.update(y,b,"fields",!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s,penetrateType:io.FORM,componentOptions:so,title:"\u914D\u7F6E\u8868\u5355\u9879",onAdd:d,onRemove:f,onChange:v,swaggerFieldDataSource:t,onSort:y=>{e.setFieldsAll(y,!0)}}))}function f3({schema:e}){const t=l.default.useRef(),[r,o]=M.useState({});M.useEffect(()=>{e.on("$updated",(f,v)=>{!v&&o({})})},[]);const i=e.get("columns"),s=f=>{var v;switch(f){case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),(v=t.current)==null||v.updateData(e.get("columns"));break}},m=(f,v)=>{var y;e.remove(f,v,!0),(y=t.current)==null||y.updateData(e.get("columns"))},d=({index:f,record:v},y)=>{e.update(f,v,y,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:t,data:i,title:"\u914D\u7F6E\u53EF\u7F16\u8F91\u8868\u683C\u5217",componentOptions:jf.filter(f=>!["blocks-edit-table","blocks-table"].includes(f.value)),onAdd:()=>s("columns"),onRemove:f=>m(f,"columns"),onChange:({index:f,record:v})=>d({index:f,record:v},"columns"),onSort:f=>{e.setItemAll(f,"columns",!0)}}))}const h3="_customTabItem_119xt_1",g3="_tabTitle_119xt_5",v3="_tabLabel_119xt_9",y3="_middleBox_119xt_20",x3="_middleBoxLeft_119xt_26",E3="_middleBoxRight_119xt_31";var ti={customTabItem:h3,tabTitle:g3,tabLabel:v3,middleBox:y3,middleBoxLeft:x3,middleBoxRight:E3};const b3={"blocks-table":i3,"blocks-filter":d3,"blocks-form":m3,"blocks-edit-table":f3},C3={"blocks-table":"\u5217\u8868\u9879","blocks-filter":"\u641C\u7D22\u9879","blocks-form":"\u8868\u5355\u9879","blocks-edit-table":"\u53EF\u7F16\u8F91\u8868\u683C\u9879"},F3=({title:e,icon:t})=>l.default.createElement("div",{className:ti.customTabItem},l.default.createElement("div",{className:ti.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:ti.tabLabel},e)));function ul({schema:e,moduleMap:t}){const r=b3[e.type];return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(o,i)=>l.default.createElement(F3,{key:o,...i})},l.default.createElement(h.Tab.Item,{title:C3[e.type],icon:"detail"},l.default.createElement(r,{schema:e.getPanel()})))}const S3="_mddTableArray_16ght_1",D3="_tableArrayTitle_16ght_14",A3="_tableArrayContent_16ght_18",w3="_tableArrayBottom_16ght_32",T3="_itemTitle_16ght_39",I3="_collapseContent_16ght_69",_3="_itemClose_16ght_73";var fr={mddTableArray:S3,tableArrayTitle:D3,tableArrayContent:A3,tableArrayBottom:w3,itemTitle:T3,"drop-over-downward":"_drop-over-downward_16ght_61","drop-over-upward":"_drop-over-upward_16ght_65",collapseContent:I3,itemClose:_3};const Sp="TableArrayPanelTitle",{Panel:$3}=h.Collapse,O3=e=>{const t=M.useRef(null),{data:r,onSortUpdate:o,index:i,draggable:s,onRemove:m,onChange:d,customRender:f=()=>{}}=e,[{isOver:v},y]=ts({accept:Sp,collect(C){return{isOver:C.isOver()}},drop(C){const T=C.index;s&&o(T,i)}}),[{isDragging:b,sourceItem:w},E]=es({type:Sp,item:()=>({index:i}),collect:C=>({isDragging:C.isDragging(),sourceItem:C.getItem()})}),F=b?0:1;s&&E(y(t));const k=qi.bind(fr)({itemTitle:"itemTitle","drop-over-upward":v&&i<w.index,"drop-over-downward":v&&i>w.index});return l.default.createElement("div",{ref:t,className:k,style:{cursor:s?"move":"default",opacity:F},onClick:C=>C.stopPropagation()},f&&f({data:r,index:i,onChange:d}),l.default.createElement(h.Icon,{type:"close",size:"small",className:fr.itemClose,onClick:m}))},R3=e=>e.reduce((t,r)=>({...t,[r.value]:r}),{});function B3(e){const{title:t="\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",data:r=[],onChange:o=()=>{},onSort:i=()=>{},onAdd:s,onRemove:m,draggable:d=!0,typeContent:f=[],titleRender:v}=e,[y]=M.useState(()=>R3(f)),b=M.useCallback((E,F)=>{const k=Hf(r,{$splice:[[E,1],[F,0,r[E]]]});i(k,E,F)},[r,i]),w=({index:E,record:F})=>{r.splice(E,1,F),o({record:F,index:E,data:r})};return l.default.createElement("div",{className:fr.mddTableArray},l.default.createElement("div",{className:fr.tableArrayTitle},t),l.default.createElement("div",{className:fr.tableArrayContent},l.default.createElement(Ol,null,l.default.createElement(h.Collapse,{accordion:!0},r.map((E,F)=>{var C;const k=E instanceof tt?E.get("type"):E==null?void 0:E.type;return l.default.createElement($3,{title:l.default.createElement(O3,{index:F,draggable:d,onChange:T=>{w({index:F,record:T})},onRemove:()=>m(F),data:E,onSortUpdate:b,typeContent:f,customRender:v})},l.default.createElement("div",{className:fr.collapseContent},(C=y[k])==null?void 0:C.contentRender({data:E,index:F,onChange:w})))})))),l.default.createElement("div",{className:fr.tableArrayBottom},l.default.createElement(h.Button,{onClick:s,style:{padding:"0 48px"}},"\u6DFB\u52A0\u9879")))}function Qa({schema:e,generateFastJson:t,single:r=!1,isUnCipher:o=!1,onChange:i=()=>{},defaultJsonSource:s={}}){const[m,d]=l.default.useState({}),f=(e==null?void 0:e.get(o?"unCipherSource":"source"))||[];return l.default.useEffect(()=>{e.on("$updated",()=>{d({})})},[e]),l.default.createElement(h.Box,{align:"center"},f.map((v,y)=>l.default.createElement(h.Box,{direction:"row",style:{width:"100%"}},l.default.createElement("div",{style:{flex:1}},l.default.createElement(cn,{onChange:b=>{o?e.updateUnCipherSource(y,b):e.updateSource(y,b),i(y,b)},defaultValue:v,generateFastJson:t})),l.default.createElement(h.Button,{style:{marginLeft:"24px"},warning:!0,onClick:()=>{o?e.removeUnCipherSource(y):e.removeSource(y)}},l.default.createElement(h.Icon,{type:"ashbin"})))),(r&&f.length===0||!r)&&l.default.createElement(h.Button,{style:{width:"140px"},onClick:()=>{const v={type:"json",content:s||{}};o?e.addUnCipherSource(v):e.addSource(v)}},"\u6DFB\u52A0\u9879"))}function co({schema:e}){const t=l.default.useRef(),[r,o]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(v,y)=>{!y&&o({})})},[]);const i=e.getActionsData(),s=()=>{var v;(v=t.current)==null||v.updateData(e.getActionsData())},m=()=>{e.addActions({type:"button",actionType:"url",label:"\u64CD\u4F5C",name:""},!0),s()},d=v=>{e.removeActions(v,!0),s()},f=({index:v,record:y})=>{e.updateActions(v,y,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:t,data:i,title:"\u914D\u7F6E\u5361\u7247\u53F3\u4FA7\u64CD\u4F5C",tip:"\u5361\u7247\u53F3\u4FA7\u6309\u94AE\u5728\u5206\u7EC4\u914D\u7F6E\u4E0B\u4F1A\u53D6\u6D88, \u5982\u679C\u9700\u8981\u64CD\u4F5C\u6309\u94AE\uFF0C\u4E0D\u8981\u505A\u5206\u7EC4\u5408\u5E76",titleType:["label"],onAdd:m,onRemove:d,onChange:f,onSort:v=>{e.updateAllActions(v,!0)}}))}const qf=[...Lf];qf.splice(5,0,{value:"message",label:"\u4FE1\u606F\u63D0\u793A"});const k3={renderToTitle:{title:"\u6E32\u67D3\u5230\u6807\u9898","x-decorator":"CnFormItem","x-component":"Switch","x-validator":[],"x-component-props":{},"x-decorator-props":{tip:"\u5C06\u5F53\u524D\u8282\u70B9\u6E32\u67D3\u5230\u6807\u9898\u4E0A\uFF0C\u5E38\u7528\u4E8E\u6807\u7B7E\u6E32\u67D3"},name:"renderToTitle",default:!1,"x-designable-id":"sudwfyc22222333333211"}};function M3(e){const{data:t,index:r,onChange:o}=e,[i,s]=l.default.useState({}),{swaggerInfo:m,getApiFields:d}=pn(),f=l.default.useRef(),v=l.default.useRef();l.default.useEffect(()=>{v.current=m},[m]);const y=t.getFirstSourceApiUrl(),{responseFields:b=[]}=l.default.useMemo(()=>d(y,"detail")||{},[y,d]),w=()=>{t.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns")},E=T=>{t.remove(T,"columns")},F=({index:T,record:U})=>{t.update(T,U,"columns")},k=l.default.useCallback(T=>{if(T==="record"){const U=t.get("columns"),J={};return U.forEach(W=>{J[W.name]=`$PARAMS.record.${W.name}`}),JSON.stringify(J,""," ")}return"{}"},[]),C=(T,U)=>{const{type:J,url:W,formatResponseData:K}=U||{};!J||J!=="ajax"||h.Dialog.confirm({title:"\u63D0\u793A",content:"\u9700\u8981\u6839\u636E\u63A5\u53E3\u521D\u59CB\u5316\u914D\u7F6E\u5417\uFF1F",onOk:()=>{var Y;const L=Kt(W,v.current),{responses:S}=L||{},O=ht(S,"responses","detail",K==null?void 0:K.detailData);t.setFieldsAll(O),s({}),(Y=f.current)==null||Y.updateData(t.get("columns"))}})};return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(T,U)=>{t.set(U.name,U.value),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u5206\u7EC4\u5207\u6362\u5237\u65B0:",name:"groupToggleRefresh"},l.default.createElement(h.CnSwitch,{defaultChecked:t.get("groupToggleRefresh")})),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u6BCF\u884C\u663E\u793A\u5217\u6570:",name:"col"},l.default.createElement(h.CnNumberPicker,{defaultValue:t.get("col")})),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u8BE6\u60C5\u5361\u7247\u5C3A\u5BF8:",name:"size"},l.default.createElement(h.CnRadioGroup,{defaultValue:t.get("size")},l.default.createElement(h.CnRadio,{value:"normal"},"\u6B63\u5E38"),l.default.createElement(h.CnRadio,{value:"large"},"\u5927\u53F7"))),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u521D\u59CB\u6570\u636E\u6E90",tip:"\u540C\u540D\u5C5E\u6027\u8986\u76D6\u987A\u5E8F\uFF1A\u4ECE\u4E0B\u81F3\u4E0A"},l.default.createElement(Qa,{schema:t,generateFastJson:k,onChange:C})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u660E\u6587\u6570\u636E\u6E90",tip:"\u540C\u540D\u5C5E\u6027\u8986\u76D6\u987A\u5E8F\uFF1A\u4ECE\u4E0B\u81F3\u4E0A"},l.default.createElement(Qa,{schema:t,isUnCipher:!0,generateFastJson:k})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u5217\u4FE1\u606F\u914D\u7F6E"},l.default.createElement(dt,{ref:f,data:t.get("columns"),title:"",extraFieldSchema:k3,swaggerFieldDataSource:b,componentOptions:qf,onAdd:()=>w(),onRemove:T=>E(T),onChange:({index:T,record:U})=>F({index:T,record:U}),onSort:T=>{t.setItemAll(T,"columns")}})),l.default.createElement(co,{schema:t}))}const P3=["https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?1654831339341","https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp"];function N3(e){const{data:t,index:r,onChange:o}=e,i=l.default.useCallback(s=>{if(s==="record"){const m={images:"$PARAMS.record.images"};return JSON.stringify(m,""," ")}return"{}"},[]);return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(s,m)=>{const{name:d,value:f}=m;let v=f;["itemWidth","itemHeight"].includes(d)&&(v=Number(f)),t.set(d,v),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{label:"\u5206\u7EC4\u5207\u6362\u5237\u65B0:",name:"groupToggleRefresh"},l.default.createElement(h.Switch,{defaultChecked:t.get("groupToggleRefresh")})),l.default.createElement(h.Form.Item,{label:"\u521D\u59CB\u6570\u636E\u6E90",help:l.default.createElement(l.default.Fragment,null,"\u56FE\u7247json\u683C\u5F0F\u53C2\u8003:",l.default.createElement("a",{href:"https://yuque.antfin-inc.com/docs/share/b6f2b791-3535-4579-a1e9-278057589f6e?# \u300ASchema\u300B",target:"_blank",rel:"noreferrer"},"schema"))},l.default.createElement(Qa,{single:!0,schema:t,generateFastJson:i,defaultJsonSource:P3})),l.default.createElement(h.Form.Item,{label:"\u7F29\u7565\u56FE\u5BBD\u5EA6:",name:"itemWidth"},l.default.createElement(h.Input,{defaultValue:t.get("itemWidth"),placeholder:"\u8BF7\u8F93\u5165\u7F29\u7565\u56FE\u5BBD\u5EA6, eg: 100",style:{width:"200px"}})),l.default.createElement(h.Form.Item,{label:"\u7F29\u7565\u56FE\u9AD8\u5EA6:",name:"itemHeight"},l.default.createElement(h.Input,{defaultValue:t.get("itemHeight"),placeholder:"\u8BF7\u8F93\u5165\u7F29\u7565\u56FE\u9AD8\u5EA6, eg: 100",style:{width:"200px"}})),l.default.createElement(co,{schema:t}))}function L3(e){const{data:t,index:r,onChange:o}=e,[i,s]=l.default.useState({}),{swaggerInfo:m,getApiFields:d}=pn(),f=l.default.useRef(),v=l.default.useRef();l.default.useEffect(()=>{v.current=m},[m]);const y=t.getFirstSourceApiUrl(),{responseFields:b=[]}=l.default.useMemo(()=>d(y,"ftp")||{},[y,d]),w=()=>{t.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns")},E=W=>{t.remove(W,"columns")},F=({index:W,record:K})=>{t.update(W,K,"columns")},k=({index:W,record:K})=>{t.updatePagination({defaultPageSize:K==null?void 0:K.defaultPageSize,paging:K==null?void 0:K.paging}),s({})},C=(W,K)=>{const{type:L,url:S,formatResponseData:O}=K||{};!L||L!=="ajax"||h.Dialog.confirm({title:"\u63D0\u793A",content:"\u9700\u8981\u6839\u636E\u63A5\u53E3\u521D\u59CB\u5316\u914D\u7F6E\u5417\uFF1F",onOk:()=>{var Y;try{const j=Kt(S,v.current),{responses:N}=j||{},G=ht(N,"responses","ftp",O==null?void 0:O.tableData);t.setFieldsAll(G),(Y=f.current)==null||Y.updateData(t.get("columns")),s({})}catch(j){console.warn(j),h.CnMessage.error(j.message)}}})},T=l.default.useCallback(W=>{if(W==="record"){const K={tableData:"$PARAMS.record.tableData"};return JSON.stringify(K,""," ")}return"{}"},[]),U=t.get("pagination");return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(W,K)=>{t.set(K.name,K.value),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u5206\u7EC4\u5207\u6362\u5237\u65B0:",name:"groupToggleRefresh"},l.default.createElement(h.Switch,{defaultChecked:t.get("groupToggleRefresh")})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u521D\u59CB\u6570\u636E\u6E90"},l.default.createElement(Qa,{single:!0,schema:t,onChange:C,generateFastJson:T})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:"\u5217\u4FE1\u606F\u914D\u7F6E"},l.default.createElement(dt,{ref:f,data:t.get("columns"),title:"",swaggerFieldDataSource:b,componentOptions:Ml,onAdd:()=>w(),onRemove:W=>E(W),onChange:({index:W,record:K})=>F({index:W,record:K}),onSort:W=>{t.setItemAll(W,"columns")}})),l.default.createElement(co,{schema:t}),l.default.createElement(Wn,{data:U,type:"pagination",title:"\u914D\u7F6E\u5206\u9875",onChange:({index:W,record:K})=>k({index:W,record:K})}),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A:",name:"hideCommonToolbar"},l.default.createElement(h.Switch,{autoWidth:!0,size:"small",defaultChecked:t.get("hideCommonToolbar")})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u6700\u5927\u9AD8\u5EA6\uFF1A"),l.default.createElement(h.NumberPicker,{value:t.get("maxHeight"),size:"small",onChange:W=>J("maxHeight",W),min:0}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)")));function J(W,K){t.update("",K,W),o({index:r,record:t})}}function j3(e){var s;const{data:t,index:r,onChange:o}=e,{getModule:i}=uo();return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(m,d)=>{t.set(d.name,d.value),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{label:"\u5206\u7EC4\u5207\u6362\u5237\u65B0:",name:"groupToggleRefresh"},l.default.createElement(h.Switch,{defaultChecked:t.get("groupToggleRefresh")})),l.default.createElement(h.Form.Item,{label:"\u9875\u9762\u5730\u5740:",name:"path"},l.default.createElement(h.Select.AutoComplete,{style:{width:"100%"},defaultValue:t.get("path"),dataSource:((s=i("$ModuleDataSource"))==null?void 0:s.l4ModuleOptions)||[]})),l.default.createElement(h.Form.Item,{label:l.default.createElement("div",null,"\u8BF7\u6C42\u53C2\u6570",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9")),name:""},l.default.createElement(Un,{keyTitle:"key(\u53C2\u6570\u540D)",valueTitle:"value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",value:t.get("params"),onChange:m=>{t.set("params",m)}})),l.default.createElement(co,{schema:t}))}function Y3(e){const{data:t,index:r,onChange:o}=e;return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small"},l.default.createElement(h.Form.Item,{label:l.default.createElement("div",null,"\u6570\u636E\u6E90",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://alidocs.dingtalk.com/i/nodes/N7dx2rn0JbxOaqnACjApgxgNWMGjLRb3",title:"\u6570\u636E\u683C\u5F0F\u6587\u6863",className:"help-link"},"(\u63A5\u53E3\u683C\u5F0F)")),name:"source"},l.default.createElement(Qa,{schema:t,single:!0})))}const z3="_title_10adh_1",H3="_titleItem_10adh_7",V3="_titleItemLabel_10adh_12";var ka={title:z3,titleItem:H3,titleItemLabel:V3};const{Panel:U3}=h.Collapse;function q3(e){const{data:t,index:r,onChange:o}=e,[i,s]=l.default.useState({});l.default.useEffect(()=>(t.set("hideCardTitle",!0),s(),()=>{t.set("hideCardTitle",!1),s()}),[]);const m=()=>{t.add({moduleName:"",hideSelfCard:!0,params:[],canUpdateOtherColumns:!0,canBeUpdated:!0},"columnsBoxes"),s({})},d=v=>{t.remove(v,"columnsBoxes"),s({})},f=({index:v,record:y})=>{t.update(v,y,"columnsBoxes"),s({})};return l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(v,y)=>{t.set(y.name,y.value),o({index:r,record:t})}},l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u5E03\u5C40\u65B9\u5F0F",name:"columnsDirection"},l.default.createElement(h.CnRadioGroup,{defaultValue:t.get("columnsDirection")},l.default.createElement(h.CnRadio,{value:"row"},"\u5DE6\u53F3\u5E03\u5C40"),l.default.createElement(h.CnRadio,{value:"column"},"\u4E0A\u4E0B\u5E03\u5C40"))),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u9AD8\u5EA6",name:"height"},l.default.createElement(h.CnNumberPicker,{defaultValue:t.get("height"),min:0,max:100,innerAfter:"%",style:{width:90}}),l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.Icon,{type:"prompt",style:{marginLeft:6}})},"0-100 \u7684\u6574\u6570\uFF0C0 \u8868\u793A\u81EA\u52A8\u9AD8\u5EA6")),l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u9690\u85CF\u7236\u7EA7\u5361\u7247",name:"hideCard"},l.default.createElement(h.CnSwitch,{checked:t.get("hideCard")})),!t.get("hideCard")&&l.default.createElement(h.Form.Item,{labelAlign:"left",label:"\u9690\u85CF\u7236\u7EA7\u5361\u7247\u5934\u90E8",name:"hideCardTitle"},l.default.createElement(h.CnSwitch,{checked:t.get("hideCardTitle")})),l.default.createElement(h.Form.Item,{labelAlign:"top",label:""},l.default.createElement(Vf,{data:t.get("columnsBoxes"),titleRender:W3,contentRender:K3,title:"\u914D\u7F6E\u5206\u680F\u4FE1\u606F",tip:"\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24",onChange:f,onSort:v=>{t.setItemAll(v,"columnsBoxes"),s({})},onAdd:m,onRemove:v=>d(v),otherInfo:{columnsDirection:t.get("columnsDirection")}})),t.get("hideCardTitle")?null:l.default.createElement(co,{schema:t}))}function W3(e){const{data:t,index:r,onChange:o,moduleDataSource:i,otherInfo:s={}}=e;return l.default.createElement("div",{className:ka.title},l.default.createElement("div",{className:ka.titleItem},l.default.createElement("label",{className:ka.titleItemLabel},"\u6A21\u5757\u5730\u5740"),l.default.createElement(h.Select.AutoComplete,{placeholder:"\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",hasClear:!0,size:"small",style:{minWidth:280},dataSource:(i==null?void 0:i.l4ModuleOptions)||i||[],value:t==null?void 0:t.moduleName,onChange:m=>o({...t,moduleName:m})})),(s==null?void 0:s.columnsDirection)==="row"&&l.default.createElement("div",{className:ka.titleItem},l.default.createElement("label",{className:ka.titleItemLabel},l.default.createElement(h.Balloon,{trigger:l.default.createElement("div",{style:{display:"flex",alignItems:"center"}},"\u5360\u5217\u6570 ",l.default.createElement(h.Icon,{type:"help",size:"small"})),align:"t"},l.default.createElement("b",null,"\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24"))),l.default.createElement(h.CnNumberPicker,{size:"small",min:0,max:24,value:t==null?void 0:t.cols,onChange:m=>o({...t,cols:m}),placeholder:"\u5360\u5217\u6570 \u4E4B\u548C\u5E94\u4E3A24"})))}const ni={wrapperCol:{span:16},labelCol:{span:8}};function K3(e){return l.default.createElement(J3,{...e})}const J3=e=>{const{data:t,index:r,onChange:o,otherInfo:i={}}=e;return l.default.createElement(l.default.Fragment,null,(i==null?void 0:i.columnsDirection)==="column"&&l.default.createElement(h.Form.Item,{wrapperCol:{span:20},labelCol:{span:4},label:"\u9AD8\u5EA6",name:""},l.default.createElement(h.CnNumberPicker,{min:0,max:100,innerAfter:"%",style:{width:90},defaultValue:t==null?void 0:t.height,onChange:s=>o({index:r,record:{...t,height:s}})}),l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.Icon,{type:"prompt",style:{marginLeft:6}})},"\u4EC5\u5728\u4E0A\u4E0B\u5E03\u5C40\u4E2D\u751F\u6548\uFF1A0-100 \u7684\u6574\u6570\uFF0C0 \u8868\u793A\u81EA\u52A8\u9AD8\u5EA6")),l.default.createElement(h.Form.Item,{name:"",wrapperCol:{span:20},labelCol:{span:4},style:{position:"relative"},label:l.default.createElement("div",null,"\u53C2\u6570",l.default.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",title:"\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",className:"help-link"},"\u5E2E\u52A9"))},l.default.createElement(ss,{keyTitle:"key(\u53C2\u6570\u540D)",valueTitle:"value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",value:t==null?void 0:t.params,onChange:s=>o({index:r,record:{...t,params:s}})})),l.default.createElement(h.Form.Item,{wrapperCol:{span:20},labelCol:{span:4},label:"\u9690\u85CF \u5F53\u524D\u680F \u5361\u7247",name:""},l.default.createElement(h.CnSwitch,{defaultChecked:t==null?void 0:t.hideSelfCard,onChange:s=>o({index:r,record:{...t,hideSelfCard:s}})})),l.default.createElement(h.Collapse,{accordion:!0},l.default.createElement(U3,{title:l.default.createElement(h.Balloon,{trigger:l.default.createElement("div",{style:{width:"fit-content",display:"flex",alignItems:"center"}},"\u5176\u4ED6\u914D\u7F6E\uFF1A",l.default.createElement(h.Icon,{type:"help",size:"small"})),align:"t"},"\u914D\u7F6E\u4EE5\u4E0B\u5C5E\u6027\u540E\uFF0C\u65B9\u53EF\u5728\u6BCF\u4E2A\u5206\u680F\u4E2D \u4F7F\u7528\u3010\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0\u3011\u4E8B\u4EF6\uFF0C\u5F15\u64CE\u4F1A\u76D1\u542C \u5E76\u81EA\u52A8\u66F4\u65B0\u5176\u4ED6\u5206\u680F\uFF08\u89E6\u53D1\u4E00\u4E2A detail:updateColumns \u4E8B\u4EF6\u3002\u82E5\u5206\u680F\u4E3A FTP \u7C7B\u578B \u5219\u652F\u6301\u81EA\u52A8\u5237\u65B0\uFF0C\u5176\u4ED6\u9875\u9762\u7C7B\u578B\u6682\u4E0D\u652F\u6301\uFF09\u3002",l.default.createElement("div",null,l.default.createElement("b",null,"\u5EFA\u8BAE\u5728\u6BCF\u4E2A\u5206\u680F\u6A21\u5757\u4E2D\u5199\u80F6\u6C34\u4EE3\u7801\uFF0C\u624B\u52A8\u63A7\u5236\u5176\u4ED6\u5206\u680F\u5237\u65B0\u3002")))},l.default.createElement(h.Form.Item,{...ni,label:"\u53EF\u4EE5\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0",name:""},l.default.createElement(h.CnSwitch,{defaultChecked:t==null?void 0:t.canUpdateOtherColumns,onChange:s=>o({index:r,record:{...t,canUpdateOtherColumns:s}})})),l.default.createElement(h.Form.Item,{...ni,label:"\u53EF\u88AB\u5176\u4ED6\u5206\u680F\u5237\u65B0",name:""},l.default.createElement(h.CnSwitch,{defaultChecked:t==null?void 0:t.canBeUpdated,onChange:s=>o({index:r,record:{...t,canBeUpdated:s}})})),l.default.createElement(h.Form.Item,{...ni,label:l.default.createElement(h.Balloon,{trigger:l.default.createElement("div",null,"\u5F53\u524D\u5206\u680F\u4E3AFTP\u65F6\u81EA\u52A8\u5237\u65B0",l.default.createElement(h.Icon,{type:"help",size:"small"})),align:"t"},l.default.createElement("b",null,"\u4EE5FTP\u9875\u9762\u683C\u5F0F \u88AB\u66F4\u65B0\uFF0C\u5176\u4ED6\u9875\u9762\u7C7B\u578B\u6682\u4E0D\u652F\u6301")),name:""},l.default.createElement(h.CnSwitch,{defaultChecked:t==null?void 0:t.autoUpdateWhenIsFTP,onChange:s=>o({index:r,record:{...t,autoUpdateWhenIsFTP:s}})})))))},G3="_customTabItem_1lh1l_1",Q3="_tabTitle_1lh1l_5",X3="_tabLabel_1lh1l_9",Z3="_mddDetailItems_1lh1l_14",e8="_itemComponent_1lh1l_14",t8="_itemLabel_1lh1l_19";var Yr={customTabItem:G3,tabTitle:Q3,tabLabel:X3,mddDetailItems:Z3,itemComponent:e8,itemLabel:t8};const Ti=[{label:"\u8BE6\u60C5\u5361\u7247",value:"detail-card",contentRender:e=>l.default.createElement(M3,{...e})},{label:"\u56FE\u7247\u9884\u89C8",value:"detail-image-view",contentRender:e=>l.default.createElement(N3,{...e})},{label:"\u8BE6\u60C5\u8868\u683C",value:"detail-table",contentRender:e=>l.default.createElement(L3,{...e})},{label:"\u6B65\u9AA4\u6761",value:"detail-static-steps",contentRender:e=>l.default.createElement(Y3,{...e})},{label:"\u5E03\u5C40",value:"detail-columns",contentRender:e=>l.default.createElement(q3,{...e})},{label:"\u5185\u5D4C\u9875\u9762",value:"import-component",contentRender:e=>l.default.createElement(j3,{...e})}],ri=(e,t)=>e.get(t),n8=e=>{const{data:t,index:r,onChange:o}=e,i=(s,m)=>{t.set(s,m),s==="type"&&m==="detail-static-steps"&&t.initStepSource(),s==="type"&&m==="detail-columns"?t.set("hideCard",!0):t.set("hideCard",!1),o(t)};return l.default.createElement(l.default.Fragment,null,l.default.createElement(h.Input,{size:"small",value:ri(t,"label"),onChange:s=>i("label",s),placeholder:"\u8F93\u5165\u6807\u9898"}),l.default.createElement("div",{className:Yr.itemComponent},l.default.createElement("label",{className:Yr.itemLabel},"\u7C7B\u578B: "),l.default.createElement(h.Select,{size:"small",value:ri(t,"type"),onChange:s=>i("type",s)},Ti&&Ti.map(s=>l.default.createElement(h.Select.Option,{key:s.value,value:s.value},s.label)))),l.default.createElement(h.Input,{size:"small",value:ri(t,"groupId"),onChange:s=>i("groupId",s),placeholder:"\u9009\u586B, \u76F8\u540CID\u4F1A\u88AB\u5408\u5E76\u6210Tab",innerAfter:l.default.createElement(h.Balloon,{size:"small",v2:!0,triggerType:"click",title:"\u4F7F\u7528\u63D0\u793A",trigger:l.default.createElement(h.Icon,{type:"help",size:"xs",style:{margin:4,cursor:"pointer"}}),align:"br",closable:!1},"\u8F93\u5165\u5206\u7EC4ID, \u76F8\u540CID\u4F1A\u88AB\u5408\u5E76, \u6BD4\u5982\u8BE6\u60C5\u9875\u7684\u540C\u4E00\u5206\u7EC4ID\u4F1A\u4F7F\u7528tabs\u7EC4\u4EF6\u5305\u88F9, \u5206\u7EC4ID\u6709\u503C\u8868\u793Atab\u5C55\u793A, \u6CA1\u503C\u8868\u793A\u5361\u7247\u5C55\u793A")}))};function r8({schema:e={}}){const[t,r]=l.default.useState({}),o=e.getChildrenPanel(),i=()=>{e.addChildren(),r({})},s=f=>{e.removeChildren(f),r({})},m=({index:f,record:v,data:y})=>{e.updateChildren(f,v),r({})},d=(f,v,y)=>{e.sortChildren(v,y),r({})};return l.default.createElement("div",{className:Yr.mddDetailItems},l.default.createElement(B3,{data:o,titleRender:n8,typeContent:Ti,title:"\u914D\u7F6E\u8BE6\u60C5\u9879",onChange:m,onSort:d,onAdd:i,onRemove:s}))}const a8=({title:e,icon:t})=>l.default.createElement("div",{className:Yr.customTabItem},l.default.createElement("div",{className:Yr.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:Yr.tabLabel},e)));function Wf({schema:e}){return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(t,r)=>l.default.createElement(a8,{key:t,...r})},l.default.createElement(h.Tab.Item,{title:"\u57FA\u672C\u4FE1\u606F",icon:"search"},l.default.createElement(Wn,{title:"\u57FA\u7840\u6837\u5F0F\u914D\u7F6E"},l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(t,r)=>{console.log("item: ",r),e.set(r.name,r.value)}},l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u8FD4\u56DE\u6309\u94AE:",name:"hasBackBtn"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasBackBtn")})),l.default.createElement(h.Form.Item,{label:"\u8FD4\u56DE\u6309\u94AE\u6587\u6848:",name:"backText",help:"\u5982\u679C\u5728\u5F39\u7A97\u91CC\uFF0C\u8FD4\u56DE\u6309\u94AE\u4F1A\u76F4\u63A5\u5173\u95ED\u5F39\u7A97"},l.default.createElement(h.Input,{defaultValue:e.get("backText")})),l.default.createElement(h.Form.Item,{label:"\u662F\u5426\u5E26\u6709\u7535\u68AF:",name:"hasAnchor"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasAnchor")})),l.default.createElement(h.Form.Item,{label:"\u662F\u5426\u6491\u6EE1\u7236\u5BB9\u5668:",name:"fullHeight"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("fullHeight")})),l.default.createElement(h.Form.Item,{label:"\u662F\u5426\u5E26\u6709\u767D\u8272\u80CC\u666F:",name:"whiteBackground"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("whiteBackground")}))))),l.default.createElement(h.Tab.Item,{title:"\u5185\u5BB9\u533A",icon:"detail"},l.default.createElement(r8,{schema:e}),l.default.createElement("div",{className:"build-page-tab-detail-help"},l.default.createElement("h5",null,"\u89C4\u5219\u8BF4\u660E"),"1. \u5361\u7247\u6309\u914D\u7F6E\u987A\u5E8F\u4F9D\u6B21\u6E32\u67D3\uFF1B",l.default.createElement("br",null),"2. \u5206\u7EC4ID\u9009\u586B\uFF0C\u76F8\u540C\u7684ID\u4F1A\u88AB\u5408\u5E76\u4E3ATab\uFF1B",l.default.createElement("br",null),"3. \u5E26\u641C\u7D22\u7684\u8868\u683C\u4F7F\u7528\u2018\u5185\u5D4C\u9875\u9762\u2019")))}const o8=[{label:"\u4E0A\u65B9(\u63A8\u8350)",value:"top"},{label:"\u5DE6\u8FB9",value:"left"}],l8=[{label:"\u53EF\u7F16\u8F91",value:"editable"},{label:"\u9605\u8BFB",value:"readPretty"},{label:"\u7981\u7528",value:"disabled"},{label:"\u53EA\u8BFB",value:"readOnly"}],u8=[{label:"\u5DE6\u5BF9\u9F50",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u53F3\u5BF9\u9F50",value:"right"}],i8=[{label:"\u81EA\u9002\u5E94",value:0},{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",value:5},{label:"6",value:6},{label:"7",value:7},{label:"8",value:8}];function s8({schema:e}){const[t,r]=l.default.useState({});return l.default.useEffect(()=>{e.on("$updated",()=>{r({})})},[]),l.default.createElement("div",null,l.default.createElement(Wn,{title:"\u5168\u5C40\u914D\u7F6E"},l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(o,i)=>{i.name==="col"?e.set(i.name,Number(i.value)):e.set(i.name,i.value)}},l.default.createElement(h.Form.Item,{label:"\u9996\u6B21\u6E32\u67D3\u4E0D\u6267\u884C\u8054\u52A8:",name:"firstRenderWithoutEffects"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("firstRenderWithoutEffects")})),l.default.createElement(h.Form.Item,{label:"\u6587\u672C\u4F4D\u7F6E:",name:"labelAlign"},l.default.createElement(h.Select,{dataSource:o8,defaultValue:e.get("labelAlign")})),l.default.createElement(h.Form.Item,{label:"\u6BCF\u884C\u663E\u793A\u5217\u6570:",name:"col"},l.default.createElement(h.Select,{defaultValue:e.get("col"),dataSource:i8})),l.default.createElement(h.Form.Item,{label:"\u56FA\u5B9Alabel\u5BBD\u5EA6:",name:"labelColFixedSpan",help:"\u5BBD\u5EA6\u4E3A 20 * {\u56FA\u5B9Alabel\u5BBD\u5EA6\u503C}\uFF0C\u6587\u672C\u4F4D\u7F6E\u5DE6\u8FB9\u7684\u65F6\u5019\u6709\u6548"},l.default.createElement(h.NumberPicker,{defaultValue:e.get("labelColFixedSpan"),min:0})),l.default.createElement(h.Form.Item,{label:"UI\u5F62\u6001:",name:"pattern"},l.default.createElement(h.Select,{dataSource:l8,defaultValue:e.get("pattern")?e.get("pattern"):"editable"})),l.default.createElement(h.Form.Item,{label:"\u6309\u94AE\u7EC4\u4F4D\u7F6E:",name:"actionsAlign"},l.default.createElement(h.Select,{dataSource:u8,defaultValue:e.get("actionsAlign")?e.get("actionsAlign"):"right"})),l.default.createElement(h.Form.Item,{label:"\u662F\u5426\u5E26\u6709\u7535\u68AF:",name:"hasAnchor"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasAnchor")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u63D0\u4EA4\u6309\u94AE:",name:"hasSubmit"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasSubmit")})),l.default.createElement(h.Form.Item,{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u6848:",name:"submitText"},l.default.createElement(h.Input,{defaultValue:e.get("submitText")})),l.default.createElement(h.Form.Item,{label:"\u63D0\u4EA4\u4E8C\u6B21\u786E\u8BA4:",name:"secondConfirm"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("secondConfirm")})),e.get("secondConfirm")?l.default.createElement(h.Form.Item,{label:"\u4E8C\u6B21\u786E\u8BA4\u5F39\u7A97\u6807\u9898:",name:"secondConfirmTitle"},l.default.createElement(h.Input,{defaultValue:e.get("secondConfirmTitle")})):null,e.get("secondConfirm")?l.default.createElement(h.Form.Item,{label:"\u4E8C\u6B21\u786E\u8BA4\u5F39\u7A97\u6587\u6848:",name:"secondConfirmContent"},l.default.createElement(h.Input,{defaultValue:e.get("secondConfirmContent")})):null,l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u91CD\u7F6E\u6309\u94AE:",name:"hasReset"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasReset")})),l.default.createElement(h.Form.Item,{label:"\u91CD\u7F6E\u6309\u94AE\u6587\u6848:",name:"resetText"},l.default.createElement(h.Input,{defaultValue:e.get("resetText")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u53D6\u6D88\u6309\u94AE:",name:"hasCancel"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasCancel")})),l.default.createElement(h.Form.Item,{label:"\u53D6\u6D88\u6309\u94AE\u6587\u6848:",name:"cancelText"},l.default.createElement(h.Input,{defaultValue:e.get("cancelText")})))))}function c8({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(y,b)=>{!b&&i({})})},[]);const s=e.get("fields"),m=()=>{e.add({type:"input",label:"\u8F93\u5165\u6846",name:"",input:Oe.input},!0),f()},d=y=>{e.remove(y,!0),f()},f=()=>{var y;(y=r.current)==null||y.updateData(e.get("fields"))},v=({index:y,record:b})=>{for(const w in Oe)b.type!==w&&!["name"].includes(w)&&delete b[w];e.update(y,b,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:r,data:s||[],penetrateType:io.FORM,componentOptions:[...so,,{value:"blocks-form",label:"\u8868\u5355\u533A\u5757"}],swaggerFieldDataSource:t,title:"\u914D\u7F6E\u8868\u5355\u9879",onAdd:m,onRemove:d,onChange:v,onSort:y=>{e.setFieldsAll(y,!0)}}))}const d8="_customTabItem_ac2i9_1",p8="_tabTitle_ac2i9_5",m8="_tabLabel_ac2i9_9";var ai={customTabItem:d8,tabTitle:p8,tabLabel:m8};const f8=({title:e,icon:t})=>l.default.createElement("div",{className:ai.customTabItem},l.default.createElement("div",{className:ai.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:ai.tabLabel},e))),oi=({title:e="",subTitle:t="",children:r})=>l.default.createElement("div",{className:"formily-form-v2-kv"},l.default.createElement(h.Box,{direction:"row",align:"flex-end",className:"formily-form-v2-title-wrapper"},l.default.createElement("label",{className:"title"},e),l.default.createElement("label",{className:"subTitle"},t)),l.default.createElement("div",null,r)),Dp=({schema:e,generateFastJson:t})=>{const[r,o]=l.default.useState({}),i=(e==null?void 0:e.data)||[];return l.default.useEffect(()=>{e.on("$updated",()=>{o({})})},[e]),l.default.createElement(h.Box,{align:"center"},i.map((s,m)=>{const d=e.getApiItemPanel(m);return l.default.createElement(h.Box,{direction:"row",style:{width:"100%"}},l.default.createElement("div",{style:{flex:1}},l.default.createElement(cn,{key:Math.random(),onChange:f=>{e.update(m,f)},defaultValue:d,generateFastJson:t})),l.default.createElement(h.Button,{style:{marginLeft:"24px"},warning:!0,onClick:()=>{e.delete(m)}},l.default.createElement(h.Icon,{type:"ashbin"})))}),l.default.createElement(h.Button,{style:{width:"140px"},onClick:()=>{e.add({type:"json",content:{}})}},"\u6DFB\u52A0\u9879"))};function Kf({schema:e}){const{getApiFields:t}=pn(),r=e.getApiPanel(),o=l.default.useCallback(s=>{if(s==="record"){const m=e.getFieldsPanel().getJSON(),d={};return m.forEach(f=>{d[f.name]=`$PARAMS.record.${f.name}`}),JSON.stringify(d,""," ")}return"{}"},[]),{parameterFields:i=[]}=l.default.useMemo(()=>t(r==null?void 0:r.getApiUrl(),"formily-form-v2")||{},[r,t]);return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(s,m)=>l.default.createElement(f8,{key:s,...m})},l.default.createElement(h.Tab.Item,{title:"\u8868\u5355\u9879",icon:"search"},l.default.createElement(c8,{schema:e.getFieldsPanel(),swaggerFields:i})),l.default.createElement(h.Tab.Item,{title:"\u57FA\u672C\u4FE1\u606F",icon:"set"},l.default.createElement(s8,{schema:e.getBaseInfoPanel()})),l.default.createElement(h.Tab.Item,{title:"\u6570\u636E\u6E90",icon:"filter"},l.default.createElement(oi,{title:"\u521D\u59CB\u6570\u636E\u6E90",subTitle:"\u540C\u540D\u5C5E\u6027\u8986\u76D6\u987A\u5E8F\uFF1A\u4ECE\u4E0B\u81F3\u4E0A"},l.default.createElement(Dp,{schema:e.getInitApiPanel(),generateFastJson:o})),l.default.createElement(oi,{title:"\u8054\u52A8\u6570\u636E\u6E90",subTitle:"\u540C\u540D\u5C5E\u6027\u8986\u76D6\u987A\u5E8F\uFF1A\u4ECE\u4E0B\u81F3\u4E0A"},l.default.createElement(Dp,{schema:e.getEffectApiPanel(),generateFastJson:o})),l.default.createElement(oi,{title:"\u63D0\u4EA4\u6570\u636E\u6E90"},l.default.createElement(cn,{hasDelete:!0,schema:e.getApiPanel(),selectTypes:["ajax"]}))))}function h8({schema:e,swaggerFields:t=[]}){const r=l.default.useRef(),[o,i]=M.useState({});M.useEffect(()=>{e.on("$updated",(E,F)=>{!F&&i({})})},[]);const s=e.get("primaryKey"),m=e.get("columns"),d=e.get("showIndex"),f=E=>{var F;switch(E){case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),(F=r.current)==null||F.updateData(e.get("columns"));break}},v=(E,F)=>{var k;e.remove(E,F,!0),(k=r.current)==null||k.updateData(e.get("columns"))},y=({index:E,record:F},k)=>{e.update(E,F,k,!0)},b=E=>{e.update("",E,"primaryKey")},w=(E,F)=>{e.update("",F,E)};return l.default.createElement("div",null,l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u4E3B\u952E\uFF1A"),l.default.createElement(h.Input,{value:s,size:"small",onChange:b})),l.default.createElement(dt,{ref:r,data:m,title:"\u914D\u7F6E\u8868\u683C\u5217",swaggerFieldDataSource:t,componentOptions:jf,onAdd:()=>f("columns"),onRemove:E=>v(E,"columns"),onChange:({index:E,record:F})=>y({index:E,record:F},"columns"),onSort:E=>{e.setItemAll(E,"columns",!0)}}),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u6700\u5927\u9AD8\u5EA6\uFF1A"),l.default.createElement(h.NumberPicker,{value:e.get("maxHeight"),size:"small",onChange:E=>e.update("",E,"maxHeight"),min:0}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u663E\u793A\u5E8F\u53F7\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:d,size:"small",onChange:E=>w("showIndex",E)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7"," ")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u865A\u62DF\u6EDA\u52A8\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("useVirtual"),size:"small",onChange:E=>w("useVirtual",E)})),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u5F00\u542F\u81EA\u52A8\u5217\u5BBD\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("columnsAutoWidth"),size:"small",onChange:E=>w("columnsAutoWidth",E)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u5982\u679C\u6709\u6027\u80FD\u95EE\u9898\u53EF\u4EE5\u5173\u95ED\u8BE5\u5C5E\u6027\uFF0C\u540C\u65F6\u624B\u52A8\u8BBE\u7F6E\u5217\u5BBD")),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:e.get("hideCommonToolbar"),size:"small",onChange:E=>w("hideCommonToolbar",E)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u662F\u5426\u9690\u85CFtable\u9876\u90E8\u64CD\u4F5C\u533A\u7684\u901A\u7528\u64CD\u4F5C\u6309\u94AE\uFF0C\u6BD4\u5982\u5168\u5C4F\u3001\u6591\u9A6C\u7EBF\u3001\u5217\u8BBE\u7F6E\u3001\u5C3A\u5BF8\u7B49")))}function g8({schema:e}){const t=l.default.useRef(),[r,o]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(v,y)=>{!y&&o({})})},[]);const i=e.getData(),s=()=>{var v;(v=t.current)==null||v.updateData(e.getData())},m=()=>{e.add({type:"editButton",label:"\u6279\u91CF\u65B0\u589E",action:{type:"drawer",closeMode:["close","mask","esc"],title:"\u65B0\u589E"}},!0),s()},d=v=>{e.remove(v,!0),s()},f=({index:v,record:y})=>{e.update(v,y,!0)};return l.default.createElement("div",null,l.default.createElement(dt,{ref:t,data:i,title:"\u914D\u7F6E\u5168\u5C40\u64CD\u4F5C",titleType:["label"],onAdd:m,onRemove:d,onChange:f,onSort:v=>{e.updateAll(v,!0)}}))}const v8="_kvContainer_rfbib_1",y8="_kvWrapper_rfbib_7",x8="_kvTitle_rfbib_11",E8="_kvSubTitle_rfbib_14";var il={kvContainer:v8,kvWrapper:y8,kvTitle:x8,kvSubTitle:E8},Ap=({title:e="",subTitle:t="",children:r})=>l.default.createElement("div",{className:il.kvContainer},l.default.createElement(h.Box,{direction:"row",align:"flex-end",className:il.kvWrapper},l.default.createElement("label",{className:il.kvTitle},e),l.default.createElement("label",{className:il.kvSubTitle},t)),l.default.createElement("div",null,r));const b8="_customTabItem_1y6va_1",C8="_tabTitle_1y6va_5",F8="_tabLabel_1y6va_9";var li={customTabItem:b8,tabTitle:C8,tabLabel:F8};const S8=({title:e,icon:t})=>l.default.createElement("div",{className:li.customTabItem},l.default.createElement("div",{className:li.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:li.tabLabel},e)));function Jf({schema:e,moduleMap:t}){const[r,o]=l.default.useState({});l.default.useEffect(()=>{e.on("$updated",(d,f)=>{!f&&o({})})},[]);const{getApiFields:i}=pn(),s=e.getInitApiPanel(),{responseFields:m=[]}=l.default.useMemo(()=>i(s==null?void 0:s.getApiUrl(),"edit-table")||{},[s,i]);return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(d,f)=>l.default.createElement(S8,{key:d,...f})},l.default.createElement(h.Tab.Item,{title:"\u57FA\u672C\u4FE1\u606F",icon:"search"},l.default.createElement(Wn,{title:"\u57FA\u7840\u914D\u7F6E"},l.default.createElement(h.Form,{labelCol:{span:4},wrapperCol:{span:19},size:"small",onChange:(d,f)=>{e.set(f.name,f.value)}},l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u4FDD\u5B58\u6309\u94AE:",name:"hasSaveBtn"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasSaveBtn")})),e.get("hasSaveBtn")&&l.default.createElement(h.Form.Item,{label:"\u4FDD\u5B58\u6309\u94AE\u6587\u6848:",name:"saveBtnText"},l.default.createElement(h.Input,{defaultValue:e.get("saveBtnText")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u884C\u65B0\u589E\u6309\u94AE:",name:"hasAddRow"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasAddRow")})),l.default.createElement(h.Form.Item,{label:"\u6700\u5927\u884C\u6570:",name:"maxRowLength"},l.default.createElement(h.Input,{defaultValue:e.get("maxRowLength")})),e.get("hasAddRow")&&l.default.createElement(h.Form.Item,{label:"\u65B0\u589E\u884C\u6309\u94AE\u6587\u6848:",name:"addBtnText"},l.default.createElement(h.Input,{defaultValue:e.get("addBtnText")})),l.default.createElement(h.Form.Item,{label:"\u663E\u793A\u884C\u5220\u9664\u6309\u94AE:",name:"hasDeleteRow"},l.default.createElement(h.Switch,{autoWidth:!0,defaultChecked:e.get("hasDeleteRow")})),e.get("hasDeleteRow")&&l.default.createElement(h.Form.Item,{label:"\u5220\u9664\u884C\u6309\u94AE\u6587\u6848:",name:"deleteBtnText"},l.default.createElement(h.Input,{defaultValue:e.get("deleteBtnText")}))))),l.default.createElement(h.Tab.Item,{title:"\u9876\u90E8\u64CD\u4F5C\u533A",icon:"set"},l.default.createElement(g8,{schema:e.getHeaderToolbarPanel()})),l.default.createElement(h.Tab.Item,{title:"\u5185\u5BB9\u533A",icon:"detail"},l.default.createElement(h8,{schema:e.getTablePanel(),swaggerFields:m})),l.default.createElement(h.Tab.Item,{title:"\u6570\u636E\u6E90",icon:"filter"},l.default.createElement(Ap,{title:"\u521D\u59CB\u6570\u636E\u6E90",subTitle:"\u683C\u5F0F\u548CFTP\u4E3B\u63A5\u53E3\u4E00\u81F4"},l.default.createElement(cn,{hasDelete:!0,schema:e.getInitApiPanel()})),l.default.createElement(Ap,{title:"\u63D0\u4EA4\u6570\u636E\u6E90",subTitle:"\u5C06\u5168\u7F16\u8F91\u8868\u683C\u6570\u636E\u63D0\u4EA4"},l.default.createElement(cn,{hasDelete:!0,schema:e.getSubmitApiPanel(),selectTypes:["ajax"]}))))}const Ha="http://127.0.0.1:17678",Gf=(e="")=>e.replace(/\/+$/,""),wp="mdd-ai-bridge",Tp=new Map,D8=(e="")=>/^http:\/\/(127(?:\.\d{1,3}){3}|localhost)(?::\d+)?/i.test(e);class Qf extends Error{constructor(t,r={}){super(t),this.name="BridgeRequestError",this.status=r.status||0,this.data=r.data||null}}function Xf(e){return typeof window!="undefined"&&!window.isSecureContext&&D8(e)}function A8(){return`${Date.now()}_${Math.random().toString(16).slice(2)}`}async function Qr(e,t,r={}){if(Xf(e))return T8(e,t,r);const o=await fetch(`${Gf(e)}${t}`,{...r,headers:{"Content-Type":"application/json",...r.headers||{}}}),i=await o.text();let s=null;try{s=i?JSON.parse(i):null}catch{s={message:i}}if(!o.ok)throw new Qf((s==null?void 0:s.message)||`\u8BF7\u6C42\u672C\u5730 AI Bridge \u5931\u8D25: ${o.status}`,{status:o.status,data:s});return s}function w8(e){const t=Gf(e),r=`${t}/relay`,o=Tp.get(t);if((o==null?void 0:o.window)&&!o.window.closed)return o;const i=window.open(r,"mdd-ai-bridge-relay","width=520,height=320,menubar=no,toolbar=no,location=no,status=no");if(!i)throw new Error("\u6D4F\u89C8\u5668\u62E6\u622A\u4E86\u672C\u5730 Bridge \u7A97\u53E3\uFF0C\u8BF7\u5141\u8BB8\u5F39\u7A97\u540E\u91CD\u8BD5");const s={origin:t,window:i,ready:!1};return Tp.set(t,s),s}function T8(e,t,r={}){const o=w8(e),i=A8();return new Promise((s,m)=>{let d=!1,f=!1,v=!1;const y=()=>{window.removeEventListener("message",E),clearTimeout(F),clearTimeout(k)},b=(C="ready")=>{if(C==="ready"){if(v)return;v=!0}else{if(f)return;f=!0}if(!o.window||o.window.closed){w(m,new Error("\u672C\u5730 Bridge relay \u7A97\u53E3\u5DF2\u5173\u95ED\uFF0C\u8BF7\u91CD\u8BD5"));return}o.window.postMessage({channel:wp,type:"request",id:i,path:t,options:r},o.origin)},w=(C,T)=>{d||(d=!0,y(),C(T))},E=C=>{var U;if(C.origin!==o.origin||C.source!==o.window)return;const T=C.data||{};if(T.channel===wp){if(T.type==="ready"){o.ready=!0,b("ready");return}if(!(T.type!=="response"||T.id!==i)){if(!T.ok){w(m,new Qf(((U=T.data)==null?void 0:U.message)||`\u8BF7\u6C42\u672C\u5730 AI Bridge \u5931\u8D25: ${T.status||0}`,{status:T.status||0,data:T.data}));return}w(s,T.data)}}},F=setTimeout(()=>{w(m,new Error("\u672C\u5730 AI Bridge relay \u54CD\u5E94\u8D85\u65F6\uFF0C\u8BF7\u786E\u8BA4\u670D\u52A1\u5DF2\u542F\u52A8"))},3e4),k=setTimeout(()=>{o.ready||b("fallback")},500);window.addEventListener("message",E),o.ready&&setTimeout(()=>b("ready"),0)})}function I8(e){return e===!1?{enabled:!1,baseURL:Ha}:typeof e=="string"?{enabled:!0,baseURL:e||Ha}:{...e||{},enabled:(e==null?void 0:e.enabled)!==!1,baseURL:(e==null?void 0:e.baseURL)||Ha}}function _8(e){return Qr(e,"/health",{method:"GET"})}function $8(e,t,r){return Qr(e,`/pages/${encodeURIComponent(t)}/push`,{method:"POST",body:JSON.stringify(r)})}function O8(e,t){return Qr(e,`/pages/${encodeURIComponent(t)}/pull`,{method:"GET"})}function R8(e,t){return Qr(e,`/pages/${encodeURIComponent(t)}/rollback`,{method:"POST"})}function B8(e,t){return Qr(e,`/pages/${encodeURIComponent(t)}/status`,{method:"GET"})}function k8(e,t){return Qr(e,`/pages/${encodeURIComponent(t)}/open`,{method:"POST"})}const M8=(e,t)=>{const r={};return t.forEach(o=>{e&&e[o]!==void 0&&(r[o]=e[o])}),r},P8=(e="")=>{const t=[],r=/^\s*import\s+(.+?)\s+from\s+['"](.+?)['"]/gm;let o=r.exec(e);for(;o;)t.push({what:o[1].trim(),from:o[2]}),o=r.exec(e);return t},N8=(e="")=>{const t=[],r=/(?:function\s+([A-Za-z0-9_$]+)|const\s+([A-Za-z0-9_$]+)\s*=\s*(?:\([^)]*\)|[A-Za-z0-9_$]+)\s*=>)/g;let o=r.exec(e);for(;o;)t.push(o[1]||o[2]),o=r.exec(e);return t},kr=e=>Array.isArray(e)?e:[];function Zf({schemaJson:e={},script:t="",style:r="",pageMeta:o={}}){var y,b,w,E,F,k,C;const i=e.body||{},s=kr((y=i.filter)==null?void 0:y.fields),m=kr((b=i.table)==null?void 0:b.columns),d=kr(i.headerToolbar),f=kr((w=i.table)==null?void 0:w.actionColumns),v=kr((E=i.table)==null?void 0:E.bulkActions);return{meta:{code:o.code,name:o.name,template:o.mddTemplateType||i.type,editorVersion:e.editorVersion,host:e.host,pageType:e.type,gmtModified:o.gmtModified,modifierAccount:o.modifierAccount},api:i.api?{...M8(i.api,["type","host","method","url","content","value"]),watch:kr(i.api.watch),paramsKeys:Object.keys(i.api.params||{}),formatResponseData:i.api.formatResponseData,hasResponseHandleCode:!!i.api.responseHandleCode}:null,filter:{count:s.length,fields:s.map((T,U)=>{var J,W,K,L;return{index:U,path:`body.filter.fields[${U}]`,type:T.type,name:T.name,label:T.label,colSpan:T.colSpan,sourceUrl:(J=T.source)==null?void 0:J.url,sourceMethod:(W=T.source)==null?void 0:W.method,enumCode:(L=(K=T.source)==null?void 0:K.params)==null?void 0:L.code}})},headerToolbar:d.map((T,U)=>{var J,W,K,L;return{index:U,path:`body.headerToolbar[${U}]`,type:T.type,label:T.label,name:T.name,actionType:T.actionType,action:(J=T.action)==null?void 0:J.type,value:(W=T.action)==null?void 0:W.value,title:(K=T.action)==null?void 0:K.title,shouldRender:((L=T.action)==null?void 0:L.shouldRender)||T.shouldRender}}),table:{primaryKey:(F=i.table)==null?void 0:F.primaryKey,pagination:(k=i.table)==null?void 0:k.pagination,showSelect:(C=i.table)==null?void 0:C.showSelect,columnCount:m.length,actionCount:f.length,bulkActionCount:v.length,columns:m.map((T,U)=>({index:U,path:`body.table.columns[${U}]`,type:T.type,name:T.name,label:T.label,lock:T.lock,sortable:T.sortable,filter:T.filter,customType:T.customType,value:T.value,format:T.format})),actionColumns:f.map((T,U)=>{var J,W,K,L;return{index:U,path:`body.table.actionColumns[${U}]`,type:T.type,label:T.label,name:T.name,actionType:T.actionType,action:(J=T.action)==null?void 0:J.type,value:(W=T.action)==null?void 0:W.value,title:(K=T.action)==null?void 0:K.title,shouldRender:((L=T.action)==null?void 0:L.shouldRender)||T.shouldRender}})},script:{length:t.length,imports:P8(t),functions:N8(t),hasSetModule:/\.setModule\s*\(/.test(t),hasSetComponent:/\.setComponent\s*\(/.test(t),hasMDDRenderEngine:t.indexOf("MDDRenderEngine")>-1},style:{length:r.length}}}function L8(e={},t={}){var o,i;const r=new URLSearchParams(window.location.search||"");return t.code||r.get("code")||(e==null?void 0:e.code)||((o=e==null?void 0:e.body)==null?void 0:o.code)||`local-${((i=e==null?void 0:e.body)==null?void 0:i.type)||"mdd"}`}const eh="0.1.4",j8=`npm i -g @cniot/mdd-ai-bridge
62
+ mdd-ai-bridge`,Y8=(e="")=>e.replace(/\/+$/,""),Xa=e=>e?typeof e=="string"?JSON.parse(e):e:null,Ip=(e,t)=>{if(!(!e||!t)){if(typeof e.initFromCache=="function"){e.initFromCache(t),e.emit(Pe.SCHEMA_UPDATE,{schemaJson:e.getAllJSON(),schema:e});return}e.emit(Pe.SCHEMA_UPDATE_FORCE,t)}},z8=(e="",t="")=>{const r=String(e).split(".").map(s=>Number(s)||0),o=String(t).split(".").map(s=>Number(s)||0),i=Math.max(r.length,o.length);for(let s=0;s<i;s+=1){if((r[s]||0)>(o[s]||0))return 1;if((r[s]||0)<(o[s]||0))return-1}return 0},H8=e=>Boolean(e)&&z8(e,eh)>=0,V8=async e=>{var r;if(typeof navigator!="undefined"&&((r=navigator==null?void 0:navigator.clipboard)==null?void 0:r.writeText)){await navigator.clipboard.writeText(e);return}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","readonly"),t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},U8=e=>{var r;const t=(r=e==null?void 0:e.data)==null?void 0:r.jsonError;return t?{title:`${t.file||"JSON"} \u89E3\u6790\u5931\u8D25${t.line?`\uFF1A\u7B2C ${t.line} \u884C${t.column?`\uFF0C\u7B2C ${t.column} \u5217`:""}`:""}`,message:t.message||e.message||"",snippet:t.snippet||""}:{title:"\u540C\u6B65\u5931\u8D25",message:(e==null?void 0:e.message)||"\u540C\u6B65\u672C\u5730 AI \u4FEE\u6539\u5931\u8D25",snippet:""}},q8=e=>{switch(e){case"added":return"\u65B0\u589E";case"removed":return"\u5220\u9664";case"type":return"\u7C7B\u578B\u53D8\u5316";case"changed":return"\u4FEE\u6539";default:return e||"\u4FEE\u6539"}},ui=/(\/\/.*|\/\*.*?\*\/|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|\b(?:async|await|break|case|catch|class|const|default|else|export|false|finally|for|from|function|if|import|let|new|null|return|switch|throw|true|try|undefined|var|while)\b|\b\d+(?:\.\d+)?\b|[#.][a-zA-Z_-][\w-]*|@[a-zA-Z-]+|[{}()[\],;:])/g,W8=(e,t)=>/^\/\//.test(e)||/^\/\*/.test(e)?"tok-comment":/^["'`]/.test(e)?(t==="json"&&e.endsWith('"'),"tok-string"):/^\d/.test(e)?"tok-number":/^(#|\.|@)/.test(e)?"tok-selector":/^[{}()[\],;:]$/.test(e)?"tok-punc":"tok-keyword",_p=(e="",t="text")=>{if(!e)return l.default.createElement("span",{className:"tok-empty"},"\xA0");const r=[];let o=0,i=ui.exec(e);for(;i;){i.index>o&&r.push(e.slice(o,i.index));const s=i[0];r.push(l.default.createElement("span",{className:W8(s,t),key:`${i.index}-${s}`},s)),o=i.index+s.length,i=ui.exec(e)}return o<e.length&&r.push(e.slice(o)),ui.lastIndex=0,r};function K8({files:e=[]}){return e.length?l.default.createElement("div",{className:"mdd-local-ai-side-diff"},e.map(t=>{var r,o;return l.default.createElement("div",{className:"mdd-local-ai-side-file",key:t.fileName},l.default.createElement("div",{className:"mdd-local-ai-side-file-head"},l.default.createElement("span",null,t.fileName),l.default.createElement("span",null,"-",((r=t.stats)==null?void 0:r.removed)||0," / +",((o=t.stats)==null?void 0:o.added)||0)),l.default.createElement("div",{className:"mdd-local-ai-side-grid"},l.default.createElement("div",{className:"mdd-local-ai-side-col-head"},"\u4E0A\u6B21\u53D1\u9001"),l.default.createElement("div",{className:"mdd-local-ai-side-col-head"},"\u672C\u5730\u4FEE\u6539"),(t.rows||[]).map((i,s)=>{var m,d,f,v;return l.default.createElement(l.default.Fragment,{key:`${t.fileName}-${s}`},l.default.createElement("div",{className:`mdd-local-ai-side-cell is-before is-${i.type}`},l.default.createElement("span",{className:"mdd-local-ai-side-line"},((m=i.before)==null?void 0:m.lineNumber)||""),l.default.createElement("code",null,_p(((d=i.before)==null?void 0:d.content)||"",t.language))),l.default.createElement("div",{className:`mdd-local-ai-side-cell is-after is-${i.type}`},l.default.createElement("span",{className:"mdd-local-ai-side-line"},((f=i.after)==null?void 0:f.lineNumber)||""),l.default.createElement("code",null,_p(((v=i.after)==null?void 0:v.content)||"",t.language))))})))})):null}function J8({diffSummary:e}){var s,m,d,f,v,y,b,w;if(!(e!=null&&e.hasBaseline))return null;const t=((s=e.schema)==null?void 0:s.changes)||((m=e.schema)==null?void 0:m.paths)||[],r=e.diffText||"",o=e.diffFiles||[];return t.length>0||((d=e.script)==null?void 0:d.changed)||((f=e.style)==null?void 0:f.changed)||r||o.length?l.default.createElement("details",{className:"mdd-local-ai-diff"},l.default.createElement("summary",null,"\u67E5\u770B\u5177\u4F53\u6539\u52A8\u4E0E diff"),l.default.createElement("div",{className:"mdd-local-ai-diff-content"},t.length>0?l.default.createElement("div",{className:"mdd-local-ai-diff-section"},l.default.createElement("div",{className:"mdd-local-ai-diff-title"},"Schema \u6539\u52A8\u4F4D\u7F6E"),l.default.createElement("ul",{className:"mdd-local-ai-diff-list"},t.map((E,F)=>{const k=typeof E=="string"?E:E.path,C=typeof E=="string"?"changed":E.type;return l.default.createElement("li",{key:`${k}-${F}`},l.default.createElement("code",null,k),l.default.createElement("span",null,q8(C)))}))):null,(v=e.script)!=null&&v.changed?l.default.createElement("div",{className:"mdd-local-ai-diff-section"},l.default.createElement("div",{className:"mdd-local-ai-diff-title"},"Script \u6539\u52A8"),l.default.createElement("div",null,e.script.message),(y=e.script.addedFunctions)!=null&&y.length?l.default.createElement("div",null,"\u65B0\u589E\uFF1A",e.script.addedFunctions.join("\u3001")):null,(b=e.script.removedFunctions)!=null&&b.length?l.default.createElement("div",null,"\u79FB\u9664\uFF1A",e.script.removedFunctions.join("\u3001")):null):null,(w=e.style)!=null&&w.changed?l.default.createElement("div",{className:"mdd-local-ai-diff-section"},l.default.createElement("div",{className:"mdd-local-ai-diff-title"},"Style \u6539\u52A8"),l.default.createElement("div",null,e.style.message)):null,o.length?l.default.createElement(K8,{files:o}):null,!o.length&&r?l.default.createElement("pre",{className:"mdd-local-ai-diff-pre"},r):null)):null}const G8=/L4:([a-zA-Z0-9_-]+)/g,Q8="/l4/api/v1/console/get-by-code",X8="[MDD AI Bridge][L4]",Z8="\u672C\u5730\u5DF2\u6709\u672A\u540C\u6B65\u4FEE\u6539",th=e=>typeof e=="string"?e:e==null?"":JSON.stringify(e,null,2),Hn=(...e)=>{typeof console!="undefined"&&typeof console.info=="function"&&console.info(X8,...e)},gl=(e="",t="script",r="$")=>{const o=[],i=new RegExp(G8);let s=i.exec(String(e));for(;s;)o.push({code:s[1],source:t,paths:[r]}),s=i.exec(String(e));return o},Ii=(e,t="$",r=[])=>typeof e=="string"?(r.push(...gl(e,"schema",t)),r):Array.isArray(e)?(e.forEach((o,i)=>Ii(o,`${t}[${i}]`,r)),r):(e&&typeof e=="object"&&Object.keys(e).forEach(o=>{r.push(...gl(o,"schema-key",`${t}.${o}`)),Ii(e[o],`${t}.${o}`,r)}),r),e7=(e=[],t)=>{const r=new Map;return e.forEach(o=>{if(!(o!=null&&o.code)||o.code===t)return;const i=r.get(o.code)||{code:o.code,source:o.source,paths:[]};i.source=i.source===o.source?i.source:"mixed",i.paths=[...new Set([...i.paths,...o.paths||[]])],r.set(o.code,i)}),[...r.values()]},$p=({schemaJson:e,scriptInfo:t,rootCode:r,extraSources:o=[]})=>{const i=Ii(e),s=gl(t,"script","mdd.script.jsx"),m=o.flatMap(d=>gl((d==null?void 0:d.text)||"",(d==null?void 0:d.source)||"extra",(d==null?void 0:d.path)||"$"));return e7([...i,...s,...m],r)},ps=(e={},t="payload")=>["schemaInfo","schemaJson","schema","scriptInfo","script","style","compileFile","translateInfo","serverDataHandle","metaData","sqlData","sqlDataCount","swaggerInfo","dataPermissions","pageMeta","pageIR"].filter(o=>e[o]!=null).map(o=>({source:o,path:`${t}.${o}`,text:th(e[o])})),Op=({queue:e,referenceMap:t,references:r,parentCode:o,depth:i,rootCode:s,visitedCodes:m})=>{r.forEach(d=>{if(!(d!=null&&d.code)||d.code===s)return;const f={...d,parentCode:o,depth:i},v=t.get(d.code);if(v){v.source=v.source===f.source?v.source:"mixed",v.paths=[...new Set([...v.paths||[],...f.paths||[]])],v.parents=[...new Set([...v.parents||[],o])],v.depth=Math.min(v.depth||i,i);return}t.set(d.code,{...f,parents:[o]}),m.has(d.code)||e.push(f)})},t7=async(e,t={})=>{var v;const r=t.linkedPageDetailUrl||Q8,o=r.includes("?")?"&":"?",i=`${r}${o}code=${encodeURIComponent(e)}`;Hn("fetch page detail",{code:e,url:i});const s=await fetch(i,{credentials:"include"}),m=await s.text();let d=null;try{d=m?JSON.parse(m):null}catch{throw new Error(`\u5173\u8054 L4 \u9875\u9762\u8BE6\u60C5\u63A5\u53E3\u8FD4\u56DE\u975E JSON\uFF1A${m||s.status}`)}if(!s.ok)throw new Error((d==null?void 0:d.errorMessage)||(d==null?void 0:d.message)||`\u5173\u8054 L4 \u9875\u9762\u8BE6\u60C5\u63A5\u53E3\u8BF7\u6C42\u5931\u8D25\uFF1A${s.status}`);if((d==null?void 0:d.success)===!1)throw new Error((d==null?void 0:d.errorMessage)||(d==null?void 0:d.message)||(d==null?void 0:d.msg)||"\u5173\u8054 L4 \u9875\u9762\u8BE6\u60C5\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");const f=(d==null?void 0:d.data)||d;return Hn("fetch page detail success",{code:e,name:(f==null?void 0:f.name)||((v=f==null?void 0:f.pageMeta)==null?void 0:v.name),hasSchemaInfo:Boolean(f==null?void 0:f.schemaInfo),hasScriptInfo:Boolean(f==null?void 0:f.scriptInfo),hasCompileFile:Boolean(f==null?void 0:f.compileFile)}),f},n7=e=>typeof(e==null?void 0:e.resolveLinkedPage)=="function"?e.resolveLinkedPage:typeof window!="undefined"&&typeof window.__MDD_AI_BRIDGE_RESOLVE_L4_PAGE=="function"?window.__MDD_AI_BRIDGE_RESOLVE_L4_PAGE:t=>t7(t,e),r7=(e,t)=>{var f,v,y,b,w,E,F,k,C,T,U,J,W,K,L,S,O,Y,j;if(!t)return null;const r=Xa(t.schemaInfo||t.schemaJson||t.schema||"{}")||{},o=t.pageMeta||t.meta||{},i={...o,code:t.code||o.code||e.code,name:(f=t.name)!=null?f:o.name,region:(v=t.region)!=null?v:o.region,module:(y=t.module)!=null?y:o.module,moduleName:(b=t.moduleName)!=null?b:o.moduleName,status:(w=t.status)!=null?w:o.status,grade:(E=t.grade)!=null?E:o.grade,mddTemplateType:(F=t.mddTemplateType)!=null?F:o.mddTemplateType,buildType:(k=t.buildType)!=null?k:o.buildType,operateType:(C=t.operateType)!=null?C:o.operateType,gmtModified:(T=t.gmtModified)!=null?T:o.gmtModified,modifierAccount:(U=t.modifierAccount)!=null?U:o.modifierAccount,modifierName:(J=t.modifierName)!=null?J:o.modifierName},s=(S=(L=(K=(W=t.scriptInfo)==null?void 0:W.script)!=null?K:t.scriptInfo)!=null?L:t.script)!=null?S:"",m=(j=(Y=(O=t.scriptInfo)==null?void 0:O.style)!=null?Y:t.style)!=null?j:"",d=t.pageIR||Zf({schemaJson:r,script:s,style:m,pageMeta:i});return{code:i.code,pageMeta:i,schemaInfo:th(t.schemaInfo||r),scriptInfo:s,style:m,pageIR:d,extraSources:ps({...t,pageMeta:i,pageIR:d,style:m},`linkedPage.${i.code}`),linkedReference:e}},a7=async(e,t)=>{const r=Xa(e.schemaInfo)||{},o=n7(t);let i=null;try{Hn("fetch root page detail for raw scan",{code:e.code}),i=await o(e.code,{code:e.code,source:"root",depth:0,paths:["root.get-by-code"]})}catch(F){Hn("fetch root page detail failed, fallback to editor payload only",{code:e.code,reason:(F==null?void 0:F.message)||String(F)})}const s=$p({schemaJson:r,scriptInfo:e.scriptInfo,rootCode:e.code,extraSources:[...e.extraSources||[],...ps(i||{},`rootApi.${e.code}`)]});Hn("scan root page",{code:e.code,source:i?"editor payload + root get-by-code raw data":"editor payload only",directReferences:s.map(F=>({code:F.code,source:F.source,paths:F.paths}))});const m=[],d=new Map,f=new Set([e.code]),v=[],y=[];for(Op({queue:m,referenceMap:d,references:s,parentCode:e.code,depth:1,rootCode:e.code,visitedCodes:f});m.length>0;){const F=m.shift();if(!(F!=null&&F.code)||f.has(F.code))continue;f.add(F.code);const k=d.get(F.code)||F;try{Hn("resolve linked page",{code:F.code,parentCode:k.parentCode,depth:k.depth,paths:k.paths});const C=await o(F.code,k),T=r7(k,C);if(!T){y.push({...k,reason:"\u5173\u8054 L4 \u9875\u9762\u8FD4\u56DE\u4E3A\u7A7A"});continue}v.push(T);const U=Xa(T.schemaInfo)||{},J=$p({schemaJson:U,scriptInfo:T.scriptInfo,rootCode:e.code,extraSources:T.extraSources});Hn("scan child page",{code:T.code,depth:k.depth,childReferences:J.map(W=>({code:W.code,source:W.source,paths:W.paths}))}),Op({queue:m,referenceMap:d,references:J,parentCode:T.code,depth:(k.depth||1)+1,rootCode:e.code,visitedCodes:f})}catch(C){y.push({...k,reason:(C==null?void 0:C.message)||"\u5173\u8054 L4 \u9875\u9762\u52A0\u8F7D\u5931\u8D25"})}}const b=[...d.values()],w=b.reduce((F,k)=>Math.max(F,k.depth||1),0),E=v.map(F=>({...F,linkedReference:d.get(F.code)||F.linkedReference}));return Hn("scan complete",{code:e.code,directCount:s.length,totalCount:b.length,syncedCount:E.length,failedCount:y.length,references:b.map(F=>({code:F.code,source:F.source,depth:F.depth,paths:F.paths,parents:F.parents})),failed:y}),{...e,linkedPageReferences:b,linkedPageScan:{directCount:s.length,totalCount:b.length,maxDepth:w},linkedPages:E,failedLinkedPages:y}},o7=e=>String((e==null?void 0:e.reason)||"").includes(Z8),l7=(e,t)=>({type:"push",dir:(e==null?void 0:e.dir)||t,linkedPages:(e==null?void 0:e.linkedPages)||{}}),u7=e=>{const t=((e==null?void 0:e.linkedPageDiffs)||[]).filter(o=>o.changed);return t.length?`\u68C0\u6D4B\u5230\u5173\u8054 L4 \u9875\u9762\u4E5F\u5B58\u5728\u672C\u5730\u4FEE\u6539\uFF1A${t.map(o=>o.code).join("\u3001")}\u3002\u5F53\u524D\u53EA\u540C\u6B65\u4E86\u5F53\u524D\u9875\u9762\uFF0C\u8BF7\u5206\u522B\u6253\u5F00\u8FD9\u4E9B L4 \u9875\u9762\u6267\u884C\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\u5E76\u4FDD\u5B58\u3002`:""};function i7(e){var Q,B,q,ee,oe,de,Be,ke,qe;const{schema:t,scriptInfo:r,pageMeta:o={},bridgeConfig:i,onApply:s}=e,m=l.default.useMemo(()=>I8(i),[i]),[d,f]=l.default.useState(m.baseURL||Ha),[v,y]=l.default.useState("\u672A\u8FDE\u63A5"),[b,w]=l.default.useState(""),[E,F]=l.default.useState(null),[k,C]=l.default.useState(""),[T,U]=l.default.useState(""),[J,W]=l.default.useState(null),[K,L]=l.default.useState(null),S=((Q=t==null?void 0:t.getAllJSON)==null?void 0:Q.call(t))||{},O=L8(S,o),Y=l.default.useCallback(()=>{var Xe;const Z=((Xe=t==null?void 0:t.getAllJSON)==null?void 0:Xe.call(t))||{},me={...o,code:O},fe=(r==null?void 0:r.script)||"",Ae=(r==null?void 0:r.style)||"",Me=Zf({schemaJson:Z,script:fe,style:Ae,pageMeta:me});return{code:O,pageMeta:me,schemaInfo:JSON.stringify(Z,null,2),scriptInfo:fe,style:Ae,pageIR:Me,extraSources:ps({pageMeta:me,pageIR:Me,style:Ae},"editorPayload")}},[O,o,t,r]),j=l.default.useMemo(()=>b||`${((E==null?void 0:E.workspaceRoot)||"~/.mdd-ai-workspace").replace(/\/$/,"")}/pages/${O}`,[E,O,b]),N=l.default.useMemo(()=>`\u8BF7\u5E2E\u6211\u4FEE\u6539\u8FD9\u4E2A MDD \u9875\u9762\uFF1A
63
63
 
64
64
  \u5DE5\u4F5C\u533A\uFF1A${j}
65
65
  \u9875\u9762 Code\uFF1A${O}
@@ -74,7 +74,7 @@ mdd-ai-bridge`,j8=(e="")=>e.replace(/\/+$/,""),Xa=e=>e?typeof e=="string"?JSON.p
74
74
  2. JSON \u5FC5\u987B\u4FDD\u6301\u5408\u6CD5\uFF0C\u5C3D\u91CF\u53EA\u6539\u548C\u9700\u6C42\u76F8\u5173\u7684\u4F4D\u7F6E\u3002
75
75
  3. MDD hook / engine API \u4E0D\u786E\u5B9A\u65F6\uFF0C\u5148\u8BFB context \u76EE\u5F55\u91CC\u7684 api-cheatsheet.md\u3001engine-runtime.md\u3001hooks-cookbook.md\u3002
76
76
 
77
- \u6211\u7684\u9700\u6C42\u662F\uFF1A`,[j,O]),G=l.default.useCallback(async(Z,me)=>{try{await H8(Z),h.CnMessage.success(me)}catch{h.CnMessage.error("\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u590D\u5236")}},[]),ie=l.default.useCallback(async()=>{C("health");try{const Z=await I8(d);F(Z||null),(Z==null?void 0:Z.ok)&&z8(Z.version)?y(`\u5DF2\u8FDE\u63A5\uFF08Bridge v${Z.version}\uFF09`):Z!=null&&Z.ok?(y(`Bridge \u7248\u672C\u504F\u65E7${Z!=null&&Z.version?`\uFF08v${Z.version}\uFF09`:""}`),U(`\u5EFA\u8BAE\u5347\u7EA7\u672C\u5730 bridge \u5230 ${eh} \u6216\u66F4\u9AD8\u7248\u672C\uFF1Anpm i -g @cniot/mdd-ai-bridge@latest`)):y("\u8FDE\u63A5\u5F02\u5E38")}catch(Z){y("\u672A\u8FDE\u63A5"),h.CnMessage.error(Z.message||"\u672C\u5730 AI Bridge \u672A\u8FDE\u63A5")}finally{C("")}},[d]),re=async()=>{var Z;C("push"),W(null),L(null);try{const me=await r7(Y(),m),fe=await _8(d,O,me);w((fe==null?void 0:fe.dir)||""),F(Ae=>{var Me;return{...Ae||{},workspaceRoot:((Me=fe==null?void 0:fe.context)==null?void 0:Me.workspaceRoot)||(Ae==null?void 0:Ae.workspaceRoot)}}),y("\u5DF2\u540C\u6B65\u5230\u672C\u5730"),U(o7(fe,O)),((Z=fe==null?void 0:fe.linkedPages)==null?void 0:Z.totalReferences)>0?h.CnMessage.success(`\u5DF2\u53D1\u9001\u5230\u672C\u5730 AI \u5DE5\u4F5C\u533A\uFF0C\u626B\u63CF\u5230\u76F4\u63A5\u5B50 L4 \u9875\u9762 ${fe.linkedPages.directCount||0} \u4E2A\uFF0C\u9012\u5F52\u5171 ${fe.linkedPages.totalReferences} \u4E2A`):h.CnMessage.success("\u5DF2\u53D1\u9001\u5230\u672C\u5730 AI \u5DE5\u4F5C\u533A")}catch(me){h.CnMessage.error(me.message||"\u53D1\u9001\u5230\u672C\u5730 AI \u5DE5\u4F5C\u533A\u5931\u8D25")}finally{C("")}},_=async()=>{C("pull"),W(null);try{const Z=await $8(d,O),me=Xa(Z==null?void 0:Z.schemaInfo),fe={script:(Z==null?void 0:Z.scriptInfo)||"",style:(Z==null?void 0:Z.style)||""};Ip(t,me),t.emit(Pe.SCRIPT_UPDATE,fe),s==null||s({schemaJson:me,scriptInfo:fe,raw:Z});const Ae=l7(Z);U([(Z==null?void 0:Z.summary)||"\u5DF2\u4ECE\u672C\u5730\u5DE5\u4F5C\u533A\u540C\u6B65\u4FEE\u6539",Ae].filter(Boolean).join("\uFF1B")),L((Z==null?void 0:Z.diffSummary)||null),Ae?h.CnMessage.warning("\u5DF2\u540C\u6B65\u5F53\u524D\u9875\u9762\uFF1B\u5173\u8054\u5B50 L4 \u9875\u9762\u4E5F\u6709\u672C\u5730\u4FEE\u6539\uFF0C\u8BF7\u5206\u522B\u6253\u5F00\u5BF9\u5E94 L4 \u9875\u9762\u540C\u6B65\u5E76\u4FDD\u5B58"):h.CnMessage.success("\u5DF2\u540C\u6B65\u5F53\u524D\u9875\u9762\u7684\u672C\u5730\u4FEE\u6539\uFF0C\u8BF7\u9884\u89C8\u786E\u8BA4\u540E\u70B9\u51FB\u9875\u9762\u4FDD\u5B58")}catch(Z){const me=V8(Z);W(me),L(null),h.CnMessage.error(me.title||"\u540C\u6B65\u672C\u5730 AI \u4FEE\u6539\u5931\u8D25")}finally{C("")}},$=async()=>{if(!!window.confirm("\u786E\u8BA4\u56DE\u6EDA\u5230\u4E0A\u6B21\u201C\u53D1\u9001\u5230\u672C\u5730 AI\u201D\u65F6\u7684\u7EBF\u4E0A\u57FA\u7EBF\u5417\uFF1F\u56DE\u6EDA\u4F1A\u5148\u66F4\u65B0\u5F53\u524D\u7F16\u8F91\u5668\u5185\u5BB9\uFF0C\u786E\u8BA4\u9884\u89C8\u540E\u8FD8\u9700\u8981\u4F7F\u7528\u539F\u4FDD\u5B58\u6309\u94AE\u63D0\u4EA4\u5230\u7EBF\u4E0A\u3002")){C("rollback"),W(null);try{const me=await O8(d,O),fe=Xa(me==null?void 0:me.schemaInfo),Ae={script:(me==null?void 0:me.scriptInfo)||"",style:(me==null?void 0:me.style)||""};Ip(t,fe),t.emit(Pe.SCRIPT_UPDATE,Ae),s==null||s({schemaJson:fe,scriptInfo:Ae,raw:me}),U((me==null?void 0:me.summary)||"\u5DF2\u56DE\u6EDA\u5230\u4E0A\u6B21\u53D1\u9001\u5230\u672C\u5730 AI \u65F6\u7684\u57FA\u7EBF"),L(null),h.CnMessage.success("\u5DF2\u56DE\u6EDA\u4E0A\u6B21 AI \u4FEE\u6539\uFF0C\u8BF7\u9884\u89C8\u540E\u4FDD\u5B58")}catch(me){h.CnMessage.error(me.message||"\u56DE\u6EDA\u4E0A\u6B21\u66F4\u6539\u5931\u8D25")}finally{C("")}}},z=async()=>{var Z,me;C("status");try{const fe=await R8(d,O);w((fe==null?void 0:fe.dir)||""),L(null);const Ae=((Z=fe==null?void 0:fe.linkedPages)==null?void 0:Z.changedCount)||0,Me=Ae?`\uFF1B\u5173\u8054 L4 \u9875\u9762\u4E2D\u6709 ${Ae} \u4E2A\u5B58\u5728\u672C\u5730\u4FEE\u6539`:(me=fe==null?void 0:fe.linkedPages)!=null&&me.totalReferences?`\uFF1B\u5DF2\u8BB0\u5F55\u5173\u8054 L4 \u9875\u9762 ${fe.linkedPages.totalReferences} \u4E2A`:"";U(fe!=null&&fe.exists?`\u672C\u5730\u5DE5\u4F5C\u533A\u5DF2\u5B58\u5728: ${fe.dir}${Me}`:"\u672C\u5730\u8FD8\u6CA1\u6709\u8FD9\u4E2A\u9875\u9762\u7684\u5DE5\u4F5C\u533A"),h.CnMessage.success(fe!=null&&fe.exists?"\u672C\u5730\u5DE5\u4F5C\u533A\u5DF2\u5B58\u5728":"\u672C\u5730\u5DE5\u4F5C\u533A\u4E0D\u5B58\u5728")}catch(fe){h.CnMessage.error(fe.message||"\u67E5\u8BE2\u672C\u5730\u5DE5\u4F5C\u533A\u5931\u8D25")}finally{C("")}},D=async()=>{C("open");try{const Z=await B8(d,O);w((Z==null?void 0:Z.dir)||b),h.CnMessage.success("\u5DF2\u8BF7\u6C42\u6253\u5F00\u672C\u5730\u5DE5\u4F5C\u533A")}catch(Z){h.CnMessage.error(Z.message||"\u6253\u5F00\u672C\u5730\u5DE5\u4F5C\u533A\u5931\u8D25")}finally{C("")}},R=l.default.useCallback(()=>{window.open(`${j8(d)}/`,"_blank","noopener,noreferrer")},[d]);return l.default.useEffect(()=>{if(Xf(d)){y("\u70B9\u51FB\u6309\u94AE\u540E\u901A\u8FC7\u672C\u5730 relay \u8FDE\u63A5");return}ie()},[]),l.default.createElement("div",{className:"mdd-local-ai"},l.default.createElement(h.CnCard,{className:"mdd-local-ai-card mdd-local-ai-hero"},l.default.createElement("div",{className:"mdd-local-ai-hero-head"},l.default.createElement("div",null,l.default.createElement("div",{className:"mdd-local-ai-heading"},"\u672C\u5730 AI \u5DE5\u4F5C\u533A"),l.default.createElement("div",{className:"mdd-local-ai-subtitle"},"\u628A\u5F53\u524D\u9875\u9762\u540C\u6B65\u6210\u672C\u5730\u6587\u4EF6\uFF0C\u518D\u4EA4\u7ED9 Cursor\u3001Qoder\u3001Codex CLI \u4FEE\u6539\u3002")),l.default.createElement("span",{className:E!=null&&E.version?"mdd-local-ai-status is-ready":"mdd-local-ai-status"},E!=null&&E.version?`Bridge v${E.version}`:v)),l.default.createElement("div",{className:"mdd-local-ai-bridge-row"},l.default.createElement("div",{className:"mdd-local-ai-field"},l.default.createElement("span",{className:"mdd-local-ai-label"},"Bridge \u5730\u5740"),l.default.createElement(h.Input,{size:"small",value:d,onChange:f,placeholder:Ha,className:"mdd-local-ai-input"})),l.default.createElement(h.CnButton,{size:"small",loading:k==="health",onClick:ie},"\u68C0\u6D4B\u8FDE\u63A5"),l.default.createElement(h.CnButton,{size:"small",onClick:R},"\u8BBF\u95EE\u672C\u5730 AI \u4E3B\u9875")),l.default.createElement("div",{className:"mdd-local-ai-meta"},l.default.createElement("div",{className:"mdd-local-ai-meta-item"},l.default.createElement("span",null,"\u72B6\u6001"),l.default.createElement("strong",null,v)),l.default.createElement("div",{className:"mdd-local-ai-meta-item"},l.default.createElement("span",null,"\u9875\u9762"),l.default.createElement("strong",null,O)),l.default.createElement("div",{className:"mdd-local-ai-meta-item mdd-local-ai-meta-path"},l.default.createElement("span",null,"\u76EE\u5F55"),l.default.createElement("strong",null,b||j)))),l.default.createElement("div",{className:"mdd-local-ai-section"},l.default.createElement("div",{className:"mdd-local-ai-section-title"},"\u5DE5\u4F5C\u533A\u64CD\u4F5C"),l.default.createElement("div",{className:"mdd-local-ai-actions"},l.default.createElement(h.CnButton,{type:"primary",loading:k==="push",onClick:re},"\u53D1\u9001\u5230\u672C\u5730 AI"),l.default.createElement(h.CnButton,{loading:k==="pull",onClick:_},"\u540C\u6B65\u672C\u5730\u4FEE\u6539"),l.default.createElement(h.CnButton,{loading:k==="status",onClick:z},"\u67E5\u770B\u72B6\u6001"),l.default.createElement(h.CnButton,{loading:k==="open",onClick:D},"\u6253\u5F00\u76EE\u5F55"),l.default.createElement(h.CnButton,{loading:k==="rollback",onClick:$},"\u56DE\u6EDA\u4E0A\u6B21\u66F4\u6539")),l.default.createElement("div",{className:"mdd-local-ai-action-notice"},"\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\u53EA\u4F1A\u540C\u6B65\u5F53\u524D\u9875\u9762\u7684\u672C\u5730\u53D8\u66F4\uFF1B\u5982\u679C\u5173\u8054\u5B50 L4 \u9875\u9762\u4E5F\u5728\u672C\u5730\u6539\u8FC7\uFF0C\u8BF7\u6253\u5F00\u5BF9\u5E94\u5B50\u9875\u9762\u7684 L4 \u5730\u5740\uFF0C\u5206\u522B\u6267\u884C\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\u5E76\u5728\u9875\u9762\u4E0A\u70B9\u51FB\u4FDD\u5B58\u3002")),l.default.createElement("div",{className:"mdd-local-ai-section"},l.default.createElement("div",{className:"mdd-local-ai-section-title"},"\u8F85\u52A9\u64CD\u4F5C"),l.default.createElement("div",{className:"mdd-local-ai-copy-actions"},l.default.createElement(h.CnButton,{size:"small",onClick:()=>G(L8,"\u5DF2\u590D\u5236\u542F\u52A8\u547D\u4EE4")},"\u590D\u5236\u542F\u52A8\u547D\u4EE4"),l.default.createElement(h.CnButton,{size:"small",onClick:()=>G(j,"\u5DF2\u590D\u5236\u5DE5\u4F5C\u533A\u8DEF\u5F84")},"\u590D\u5236\u5DE5\u4F5C\u533A\u8DEF\u5F84"),l.default.createElement(h.CnButton,{size:"small",onClick:()=>G(N,"\u5DF2\u590D\u5236 AI \u63D0\u793A\u8BCD")},"\u590D\u5236 AI \u63D0\u793A\u8BCD"))),T?T.type==="push"?l.default.createElement("div",{className:"mdd-local-ai-push-result"},l.default.createElement("div",{className:"mdd-local-ai-push-result-head"},l.default.createElement("div",null,l.default.createElement("div",{className:"mdd-local-ai-push-result-title"},"\u5DF2\u5199\u5165\u672C\u5730\u5DE5\u4F5C\u533A"),l.default.createElement("div",{className:"mdd-local-ai-push-result-path"},T.dir)),l.default.createElement("span",{className:"mdd-local-ai-push-result-badge"},"\u5B8C\u6210")),l.default.createElement("div",{className:"mdd-local-ai-push-stats"},l.default.createElement("div",{className:"mdd-local-ai-push-stat"},l.default.createElement("span",null,"\u76F4\u63A5\u5B50 L4"),l.default.createElement("strong",null,((B=T.linkedPages)==null?void 0:B.directCount)||0)),l.default.createElement("div",{className:"mdd-local-ai-push-stat"},l.default.createElement("span",null,"\u9012\u5F52\u5173\u8054"),l.default.createElement("strong",null,((q=T.linkedPages)==null?void 0:q.totalReferences)||0)),l.default.createElement("div",{className:"mdd-local-ai-push-stat is-success"},l.default.createElement("span",null,"\u5DF2\u540C\u6B65"),l.default.createElement("strong",null,((ee=T.linkedPages)==null?void 0:ee.syncedCount)||0)),l.default.createElement("div",{className:"mdd-local-ai-push-stat is-warning"},l.default.createElement("span",null,"\u9700\u5904\u7406"),l.default.createElement("strong",null,((oe=T.linkedPages)==null?void 0:oe.failedCount)||0))),(Be=(de=T.linkedPages)==null?void 0:de.pages)!=null&&Be.length?l.default.createElement("div",{className:"mdd-local-ai-linked-section"},l.default.createElement("div",{className:"mdd-local-ai-linked-section-title"},"\u5DF2\u4E00\u8D77\u540C\u6B65\u7684\u5173\u8054\u9875\u9762"),l.default.createElement("div",{className:"mdd-local-ai-linked-tags"},T.linkedPages.pages.map(Z=>l.default.createElement("span",{key:Z.code,className:"mdd-local-ai-linked-tag is-success has-name"},l.default.createElement("span",{className:"mdd-local-ai-linked-name"},Z.name||"\u672A\u547D\u540D\u9875\u9762"),l.default.createElement("span",{className:"mdd-local-ai-linked-code"},Z.code))))):null,(qe=(ke=T.linkedPages)==null?void 0:ke.failed)!=null&&qe.length?l.default.createElement("div",{className:"mdd-local-ai-linked-section"},l.default.createElement("div",{className:"mdd-local-ai-linked-section-title"},"\u9700\u8981\u7528\u6237\u5904\u7406\u7684\u5173\u8054\u9875\u9762"),T.linkedPages.failed.map(Z=>{const me=a7(Z);return l.default.createElement("div",{key:Z.code,className:"mdd-local-ai-linked-warning"},l.default.createElement("div",{className:"mdd-local-ai-linked-warning-main"},l.default.createElement("span",{className:"mdd-local-ai-linked-tag is-warning has-name"},l.default.createElement("span",{className:"mdd-local-ai-linked-name"},Z.name||"\u672A\u547D\u540D\u9875\u9762"),l.default.createElement("span",{className:"mdd-local-ai-linked-code"},Z.code)),l.default.createElement("span",null,Z.reason||"\u672A\u80FD\u81EA\u52A8\u540C\u6B65")),me?l.default.createElement("div",{className:"mdd-local-ai-linked-actions-tip"},l.default.createElement("div",null,"\u8FD9\u4E2A\u9875\u9762\u672C\u5730\u5DF2\u6709\u672A\u540C\u6B65\u4FEE\u6539\uFF0C\u4E3A\u907F\u514D\u8986\u76D6\uFF0C\u672C\u6B21\u6CA1\u6709\u91CD\u65B0\u4E0B\u53D1\u3002"),l.default.createElement("div",null,"\u4F60\u53EF\u4EE5\u9009\u62E9\uFF1A1\uFF09\u6253\u5F00\u8BE5 L4 \u9875\u9762\u5148\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\u5E76\u4FDD\u5B58\uFF1B2\uFF09\u786E\u8BA4\u653E\u5F03\u672C\u5730\u6539\u52A8\u540E\u5220\u9664\u672C\u5730\u76EE\u5F55\uFF0C\u518D\u4ECE\u7236\u9875\u9762\u91CD\u65B0\u4E0B\u53D1\u3002"),Z.dir?l.default.createElement(h.CnButton,{size:"small",onClick:()=>G(Z.dir,"\u5DF2\u590D\u5236\u5173\u8054\u9875\u9762\u672C\u5730\u76EE\u5F55")},"\u590D\u5236\u672C\u5730\u76EE\u5F55"):null):null)})):null):l.default.createElement("div",{className:"mdd-local-ai-summary"},T):null,l.default.createElement(K8,{diffSummary:K}),J?l.default.createElement("div",{className:"mdd-local-ai-error"},l.default.createElement("div",{className:"mdd-local-ai-error-title"},J.title),l.default.createElement("div",{className:"mdd-local-ai-error-message"},J.message),J.snippet?l.default.createElement("pre",{className:"mdd-local-ai-error-snippet"},J.snippet):null):null,l.default.createElement(h.CnCard,{className:"mdd-local-ai-card"},l.default.createElement("div",{className:"mdd-local-ai-title"},"\u4F7F\u7528\u65B9\u5F0F"),l.default.createElement("div",{className:"mdd-local-ai-tips"},l.default.createElement("div",null,"1. \u9996\u6B21\u4F7F\u7528\u5148\u5168\u5C40\u5B89\u88C5\uFF1Anpm i -g @cniot/mdd-ai-bridge\u3002"),l.default.createElement("div",null,"2. \u5B89\u88C5\u540E\u5728\u4EFB\u610F\u76EE\u5F55\u8FD0\u884C\uFF1Amdd-ai-bridge\u3002\u4E5F\u53EF\u4EE5\u76F4\u63A5\u8FD0\u884C\uFF1Anpx @cniot/mdd-ai-bridge\u3002"),l.default.createElement("div",null,"3. \u70B9\u51FB\u201C\u53D1\u9001\u5230\u672C\u5730 AI\u201D\uFF0C\u5F53\u524D\u9875\u9762\u4F1A\u5199\u5165\u672C\u5730\u5DE5\u4F5C\u533A\u3002"),l.default.createElement("div",null,"4. \u7528 Cursor\u3001Qoder\u3001Codex CLI \u7B49\u5DE5\u5177\u6253\u5F00\u76EE\u5F55\u5E76\u4FEE\u6539\u6587\u4EF6\u3002"),l.default.createElement("div",null,"5. \u70B9\u51FB\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\uFF0C\u786E\u8BA4\u9884\u89C8\u540E\u7EE7\u7EED\u4F7F\u7528\u539F\u4FDD\u5B58\u6309\u94AE\u3002"),l.default.createElement("div",null,"\u7EBF\u4E0A HTTP \u9875\u9762\u4F1A\u81EA\u52A8\u6253\u5F00\u672C\u5730 Bridge relay \u7A97\u53E3\uFF0C\u8BF7\u5141\u8BB8\u6D4F\u89C8\u5668\u5F39\u7A97\u3002"),l.default.createElement("div",null,"\u672C\u5730\u5DE5\u4F5C\u533A\u9ED8\u8BA4\u5728 ~/.mdd-ai-workspace\u3002"))))}var Bp,kp,Mp;const i7=((kp=(Bp=window==null?void 0:window.location)==null?void 0:Bp.search)==null?void 0:kp.indexOf("debug"))>=0||((Mp=window.localStorage)==null?void 0:Mp.__l4_location_search_debug__)==="true";function s7(e){const{schema:t,scriptInfo:r={script:"",style:""},showScript:o,scriptTopButtons:i,aiBridge:s=!0,pageMeta:m,onSchemaApplied:d}=e,[f,v]=l.default.useState(!1),[y,b]=l.default.useState(!1),[w,E]=l.default.useState(!1),[F,k]=l.default.useState(!1),[C,T]=l.default.useState(r),[U,J]=l.default.useState(JSON.stringify((t==null?void 0:t.getAllJSON())||{},null,2)),W=l.default.useRef(C),K=l.default.useRef(U),L="calc(100vh - 146px)",S=N=>{const G={script:N,style:W.current.style};W.current=G,T(G),t.emit(Pe.SCRIPT_UPDATE,{script:N,style:W.current.style})},O=N=>{const G={script:W.current.script,style:N};W.current=G,T(G),t.emit(Pe.SCRIPT_UPDATE,G)},Y=N=>{t.emit(Pe.SCHEMA_UPDATE_FORCE,N)},j=({schemaJson:N,scriptInfo:G})=>{W.current=G,T(G);const ie=JSON.stringify(N||(t==null?void 0:t.getAllJSON())||{},null,2);K.current=ie,J(ie),d==null||d()};return l.default.createElement("div",null,l.default.createElement("div",{className:"mdd-editor-toolbar"},i7&&l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.CnButton,{text:!0,onClick:()=>E(!0)},l.default.createElement(h.CnIcon,{type:"muscle-fill",size:"medium"}))},"schema"),o&&l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.CnButton,{text:!0,onClick:()=>b(!0)},l.default.createElement(h.CnIcon,{type:"code",size:"medium"}))},"\u811A\u672C"),l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.CnButton,{text:!0,onClick:()=>v(!0)},l.default.createElement(h.CnIcon,{type:"fullscreen",size:"medium"}))},"\u9884\u89C8"),s!==!1&&l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.CnButton,{type:"primary",size:"small",className:"mdd-editor-ai-button",onClick:()=>k(!0)},"\u672C\u5730 AI")},"\u672C\u5730 AI")),l.default.createElement(h.Dialog,{v2:!0,title:"\u9884\u89C8",width:"90vw",visible:f,onClose:()=>v(!1),footer:!1},l.default.createElement(Qh.default,{schema:t.getAllJSON(),modules:new Map([["$PARAMS",new Pp.JSONWatch({})],["$EXTENDS_MODULE",{}]])})),F&&l.default.createElement(h.CnDrawer,{title:"\u672C\u5730 AI \u5DE5\u4F5C\u533A",width:"720px",footer:!1,visible:F,onClose:()=>k(!1)},l.default.createElement(u7,{schema:t,scriptInfo:C,pageMeta:m,bridgeConfig:s,onApply:j})),l.default.createElement(h.CnDrawer,{title:"\u811A\u672C\u7F16\u8F91",width:"90vw",footer:!1,visible:y,onClose:()=>b(!1)},l.default.createElement(h.CnCard,{className:"mdd-script-card"},Array.isArray(i)&&i.length>0?l.default.createElement("div",{className:"mdd-script-top-buttons"},i.map(N=>l.default.createElement(h.CnButton,{key:N.children,size:"small",...N}))):null,l.default.createElement(h.CnTab,{size:"small",shape:"pure"},l.default.createElement(h.CnTabItem,{key:"script",title:"jsx\u811A\u672C"},l.default.createElement(Lr,{defaultLanguage:"javascript",height:L,value:C.script,onChange:S})),l.default.createElement(h.CnTabItem,{key:"style",title:"less\u6837\u5F0F"},l.default.createElement(Lr,{defaultLanguage:"less",height:L,value:C.style,onChange:O}))))),l.default.createElement(h.CnDrawer,{title:"schema\u7F16\u8F91",width:"90vw",footer:!0,visible:w,onClose:()=>E(!1),cancelProps:{children:"\u53D6\u6D88",onClick:()=>{E(!1)}},okProps:{children:"\u786E\u5B9A",type:"primary",onClick:()=>{Y(K.current),E(!1)}}},l.default.createElement(h.CnCard,null,l.default.createElement(Lr,{defaultLanguage:"json",height:L,value:U,onChange:N=>{K.current=N,J(N)}}))))}function c7(e){const{schemaJson:t,scriptCode:r,styleCode:o,swaggerJson:i,showScript:s=!1,onChange:m,customComponent:d,customSchema:f,moduleDataSource:v,refreshModuleDataSource:y,blocksDataSource:b,moduleMap:w=new Map,scriptTopButtons:E=[],aiBridge:F=!0,pageMeta:k}=e,C=l.default.useRef([]),[T,U]=l.default.useState(0),{fillSwaggerInfo:J}=pn(),{setModules:W}=uo(),K=l.default.useRef();l.default.useEffect(()=>{W({$ModuleDataSource:v,$RefreshModuleDataSource:y,$BlocksDataSource:b}),console.log("moduleDataSource: ",v),window.__MDD_ModuleDataSource=v},[]);const L=l.default.useRef({schema:t,scriptInfo:{script:r,style:o}}),S=d7(t,d,f),O=l.default.useMemo(()=>{if(Rp(C.current),!S)return null;const j=K.current||new S[1](t,!0);return K.current=j,C.current.push(ii(Pe.SCHEMA_UPDATE,j,Na(({schemaJson:N})=>{L.current.schema=N,m&&m(N,L.current.scriptInfo)},30))),C.current.push(ii(Pe.SCRIPT_UPDATE,j,Na(N=>{L.current.scriptInfo=N,m&&m(L.current.schema,N)},30))),C.current.push(ii(Pe.SCHEMA_UPDATE_FORCE,j,Na(N=>{L.current.schema=N,m&&m(L.current.schema,L.current.scriptInfo)},30))),j},[t,S,m]);if(l.default.useEffect(()=>()=>{Rp(C.current)},[]),l.default.useEffect(()=>{i&&i.paths&&J(Al(i))},[i]),!O||!S)return null;const Y=S[0];return l.default.createElement("div",{className:"mdd-editor-build-content"},l.default.createElement(Ol,null,l.default.createElement(Y,{key:T,schema:O,moduleMap:w})),l.default.createElement(s7,{schema:O,scriptInfo:L.current.scriptInfo,showScript:s,scriptTopButtons:E,aiBridge:F,pageMeta:k,onSchemaApplied:()=>U(j=>j+1)}))}function ii(e,t,r){return t.on(e,r),()=>{t.off(e,r)}}function Rp(e){Array.isArray(e)&&e.length>0&&e.forEach(t=>{typeof t=="function"&&t()})}function d7(e,t,r){var o;if(!e||!((o=e==null?void 0:e.body)!=null&&o.type))return null;switch(e.body.type){case"ftp":return[t||Uf,r||Pr];case"formily-form-v2":return[t||Kf,r||Nr];case"detail":return[t||Wf,r||ml];case"edit-table":return[t||Jf,r||Ui];case"blocks-table":return[t||ul,r||hr];case"blocks-filter":return[t||ul,r||hr];case"blocks-form":return[t||ul,r||hr];case"blocks-edit-table":return[t||ul,r||hr];default:return null}}function p7({schema:e}){const t=l.default.useRef(),[r,o]=M.useState({});M.useEffect(()=>{e.on("$updated",(E,F)=>{!F&&o({})})},[]);const i=e.get("primaryKey"),s=e.get("columns"),m=e.get("pagination"),d=e.get("showIndex"),f=({index:E,record:F},k)=>{e.update(E,F,k,!0)},v=(E,F)=>{e.update("",F,E)},y=()=>{var E;(E=t.current)==null||E.updateData(e.get("columns"))},b=E=>{switch(E){case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),y();break}},w=(E,F)=>{e.remove(E,F,!0),F==="columns"&&y()};return l.default.createElement("div",null,l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u4E3B\u952E\uFF1A"),l.default.createElement(h.Input,{value:i,size:"small",onChange:E=>v("primaryKey",E)})),l.default.createElement(dt,{ref:t,data:s,title:"\u914D\u7F6E\u8868\u683C\u5217",componentOptions:Ml,onAdd:()=>b("columns"),onRemove:E=>w(E,"columns"),onChange:({index:E,record:F})=>f({index:E,record:F},"columns"),onSort:E=>{e.setItemAll(E,"columns",!0)}}),l.default.createElement(Wn,{contentStyle:{padding:"10px"},data:m,type:"pagination",title:"\u914D\u7F6E\u5206\u9875",onChange:({index:E,record:F})=>f({index:E,record:F},"pagination")}),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u663E\u793A\u5E8F\u53F7\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:d,size:"small",onChange:E=>v("showIndex",E)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7"," ")))}const m7="_customTabItem_1y6va_1",f7="_tabTitle_1y6va_5",h7="_tabLabel_1y6va_9";var si={customTabItem:m7,tabTitle:f7,tabLabel:h7};const g7=({title:e,icon:t})=>l.default.createElement("div",{className:si.customTabItem},l.default.createElement("div",{className:si.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:si.tabLabel},e)));function v7({schema:e}){return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(t,r)=>l.default.createElement(g7,{key:t,...r})},l.default.createElement(h.Tab.Item,{title:"\u641C\u7D22\u533A",icon:"search"},l.default.createElement(Yf,{schema:e.getFilterPanel()})),l.default.createElement(h.Tab.Item,{title:"\u9876\u90E8\u64CD\u4F5C\u533A",icon:"set"},l.default.createElement(zf,{schema:e.getHeaderToolbarPanel()})),l.default.createElement(h.Tab.Item,{title:"\u5185\u5BB9\u533A",icon:"detail"},l.default.createElement(p7,{schema:e.getTablePanel()})))}function y7(){return`
77
+ \u6211\u7684\u9700\u6C42\u662F\uFF1A`,[j,O]),G=l.default.useCallback(async(Z,me)=>{try{await V8(Z),h.CnMessage.success(me)}catch{h.CnMessage.error("\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u590D\u5236")}},[]),ie=l.default.useCallback(async()=>{C("health");try{const Z=await _8(d);F(Z||null),(Z==null?void 0:Z.ok)&&H8(Z.version)?y(`\u5DF2\u8FDE\u63A5\uFF08Bridge v${Z.version}\uFF09`):Z!=null&&Z.ok?(y(`Bridge \u7248\u672C\u504F\u65E7${Z!=null&&Z.version?`\uFF08v${Z.version}\uFF09`:""}`),U(`\u5EFA\u8BAE\u5347\u7EA7\u672C\u5730 bridge \u5230 ${eh} \u6216\u66F4\u9AD8\u7248\u672C\uFF1Anpm i -g @cniot/mdd-ai-bridge@latest`)):y("\u8FDE\u63A5\u5F02\u5E38")}catch(Z){y("\u672A\u8FDE\u63A5"),h.CnMessage.error(Z.message||"\u672C\u5730 AI Bridge \u672A\u8FDE\u63A5")}finally{C("")}},[d]),re=async()=>{var Z;C("push"),W(null),L(null);try{const me=await a7(Y(),m),fe=await $8(d,O,me);w((fe==null?void 0:fe.dir)||""),F(Ae=>{var Me;return{...Ae||{},workspaceRoot:((Me=fe==null?void 0:fe.context)==null?void 0:Me.workspaceRoot)||(Ae==null?void 0:Ae.workspaceRoot)}}),y("\u5DF2\u540C\u6B65\u5230\u672C\u5730"),U(l7(fe,O)),((Z=fe==null?void 0:fe.linkedPages)==null?void 0:Z.totalReferences)>0?h.CnMessage.success(`\u5DF2\u53D1\u9001\u5230\u672C\u5730 AI \u5DE5\u4F5C\u533A\uFF0C\u626B\u63CF\u5230\u76F4\u63A5\u5B50 L4 \u9875\u9762 ${fe.linkedPages.directCount||0} \u4E2A\uFF0C\u9012\u5F52\u5171 ${fe.linkedPages.totalReferences} \u4E2A`):h.CnMessage.success("\u5DF2\u53D1\u9001\u5230\u672C\u5730 AI \u5DE5\u4F5C\u533A")}catch(me){h.CnMessage.error(me.message||"\u53D1\u9001\u5230\u672C\u5730 AI \u5DE5\u4F5C\u533A\u5931\u8D25")}finally{C("")}},_=async()=>{C("pull"),W(null);try{const Z=await O8(d,O),me=Xa(Z==null?void 0:Z.schemaInfo),fe={script:(Z==null?void 0:Z.scriptInfo)||"",style:(Z==null?void 0:Z.style)||""};Ip(t,me),t.emit(Pe.SCRIPT_UPDATE,fe),s==null||s({schemaJson:me,scriptInfo:fe,raw:Z});const Ae=u7(Z);U([(Z==null?void 0:Z.summary)||"\u5DF2\u4ECE\u672C\u5730\u5DE5\u4F5C\u533A\u540C\u6B65\u4FEE\u6539",Ae].filter(Boolean).join("\uFF1B")),L((Z==null?void 0:Z.diffSummary)||null),Ae?h.CnMessage.warning("\u5DF2\u540C\u6B65\u5F53\u524D\u9875\u9762\uFF1B\u5173\u8054\u5B50 L4 \u9875\u9762\u4E5F\u6709\u672C\u5730\u4FEE\u6539\uFF0C\u8BF7\u5206\u522B\u6253\u5F00\u5BF9\u5E94 L4 \u9875\u9762\u540C\u6B65\u5E76\u4FDD\u5B58"):h.CnMessage.success("\u5DF2\u540C\u6B65\u5F53\u524D\u9875\u9762\u7684\u672C\u5730\u4FEE\u6539\uFF0C\u8BF7\u9884\u89C8\u786E\u8BA4\u540E\u70B9\u51FB\u9875\u9762\u4FDD\u5B58")}catch(Z){const me=U8(Z);W(me),L(null),h.CnMessage.error(me.title||"\u540C\u6B65\u672C\u5730 AI \u4FEE\u6539\u5931\u8D25")}finally{C("")}},$=async()=>{if(!!window.confirm("\u786E\u8BA4\u56DE\u6EDA\u5230\u4E0A\u6B21\u201C\u53D1\u9001\u5230\u672C\u5730 AI\u201D\u65F6\u7684\u7EBF\u4E0A\u57FA\u7EBF\u5417\uFF1F\u56DE\u6EDA\u4F1A\u5148\u66F4\u65B0\u5F53\u524D\u7F16\u8F91\u5668\u5185\u5BB9\uFF0C\u786E\u8BA4\u9884\u89C8\u540E\u8FD8\u9700\u8981\u4F7F\u7528\u539F\u4FDD\u5B58\u6309\u94AE\u63D0\u4EA4\u5230\u7EBF\u4E0A\u3002")){C("rollback"),W(null);try{const me=await R8(d,O),fe=Xa(me==null?void 0:me.schemaInfo),Ae={script:(me==null?void 0:me.scriptInfo)||"",style:(me==null?void 0:me.style)||""};Ip(t,fe),t.emit(Pe.SCRIPT_UPDATE,Ae),s==null||s({schemaJson:fe,scriptInfo:Ae,raw:me}),U((me==null?void 0:me.summary)||"\u5DF2\u56DE\u6EDA\u5230\u4E0A\u6B21\u53D1\u9001\u5230\u672C\u5730 AI \u65F6\u7684\u57FA\u7EBF"),L(null),h.CnMessage.success("\u5DF2\u56DE\u6EDA\u4E0A\u6B21 AI \u4FEE\u6539\uFF0C\u8BF7\u9884\u89C8\u540E\u4FDD\u5B58")}catch(me){h.CnMessage.error(me.message||"\u56DE\u6EDA\u4E0A\u6B21\u66F4\u6539\u5931\u8D25")}finally{C("")}}},z=async()=>{var Z,me;C("status");try{const fe=await B8(d,O);w((fe==null?void 0:fe.dir)||""),L(null);const Ae=((Z=fe==null?void 0:fe.linkedPages)==null?void 0:Z.changedCount)||0,Me=Ae?`\uFF1B\u5173\u8054 L4 \u9875\u9762\u4E2D\u6709 ${Ae} \u4E2A\u5B58\u5728\u672C\u5730\u4FEE\u6539`:(me=fe==null?void 0:fe.linkedPages)!=null&&me.totalReferences?`\uFF1B\u5DF2\u8BB0\u5F55\u5173\u8054 L4 \u9875\u9762 ${fe.linkedPages.totalReferences} \u4E2A`:"";U(fe!=null&&fe.exists?`\u672C\u5730\u5DE5\u4F5C\u533A\u5DF2\u5B58\u5728: ${fe.dir}${Me}`:"\u672C\u5730\u8FD8\u6CA1\u6709\u8FD9\u4E2A\u9875\u9762\u7684\u5DE5\u4F5C\u533A"),h.CnMessage.success(fe!=null&&fe.exists?"\u672C\u5730\u5DE5\u4F5C\u533A\u5DF2\u5B58\u5728":"\u672C\u5730\u5DE5\u4F5C\u533A\u4E0D\u5B58\u5728")}catch(fe){h.CnMessage.error(fe.message||"\u67E5\u8BE2\u672C\u5730\u5DE5\u4F5C\u533A\u5931\u8D25")}finally{C("")}},D=async()=>{C("open");try{const Z=await k8(d,O);w((Z==null?void 0:Z.dir)||b),h.CnMessage.success("\u5DF2\u8BF7\u6C42\u6253\u5F00\u672C\u5730\u5DE5\u4F5C\u533A")}catch(Z){h.CnMessage.error(Z.message||"\u6253\u5F00\u672C\u5730\u5DE5\u4F5C\u533A\u5931\u8D25")}finally{C("")}},R=l.default.useCallback(()=>{window.open(`${Y8(d)}/`,"_blank","noopener,noreferrer")},[d]);return l.default.useEffect(()=>{if(Xf(d)){y("\u70B9\u51FB\u6309\u94AE\u540E\u901A\u8FC7\u672C\u5730 relay \u8FDE\u63A5");return}ie()},[]),l.default.createElement("div",{className:"mdd-local-ai"},l.default.createElement(h.CnCard,{className:"mdd-local-ai-card mdd-local-ai-hero"},l.default.createElement("div",{className:"mdd-local-ai-hero-head"},l.default.createElement("div",null,l.default.createElement("div",{className:"mdd-local-ai-heading"},"\u672C\u5730 AI \u5DE5\u4F5C\u533A"),l.default.createElement("div",{className:"mdd-local-ai-subtitle"},"\u628A\u5F53\u524D\u9875\u9762\u540C\u6B65\u6210\u672C\u5730\u6587\u4EF6\uFF0C\u518D\u4EA4\u7ED9 Cursor\u3001Qoder\u3001Codex CLI \u4FEE\u6539\u3002")),l.default.createElement("span",{className:E!=null&&E.version?"mdd-local-ai-status is-ready":"mdd-local-ai-status"},E!=null&&E.version?`Bridge v${E.version}`:v)),l.default.createElement("div",{className:"mdd-local-ai-bridge-row"},l.default.createElement("div",{className:"mdd-local-ai-field"},l.default.createElement("span",{className:"mdd-local-ai-label"},"Bridge \u5730\u5740"),l.default.createElement(h.Input,{size:"small",value:d,onChange:f,placeholder:Ha,className:"mdd-local-ai-input"})),l.default.createElement(h.CnButton,{size:"small",loading:k==="health",onClick:ie},"\u68C0\u6D4B\u8FDE\u63A5"),l.default.createElement(h.CnButton,{size:"small",onClick:R},"\u8BBF\u95EE\u672C\u5730 AI \u4E3B\u9875")),l.default.createElement("div",{className:"mdd-local-ai-meta"},l.default.createElement("div",{className:"mdd-local-ai-meta-item"},l.default.createElement("span",null,"\u72B6\u6001"),l.default.createElement("strong",null,v)),l.default.createElement("div",{className:"mdd-local-ai-meta-item"},l.default.createElement("span",null,"\u9875\u9762"),l.default.createElement("strong",null,O)),l.default.createElement("div",{className:"mdd-local-ai-meta-item mdd-local-ai-meta-path"},l.default.createElement("span",null,"\u76EE\u5F55"),l.default.createElement("strong",null,b||j)))),l.default.createElement("div",{className:"mdd-local-ai-section"},l.default.createElement("div",{className:"mdd-local-ai-section-title"},"\u5DE5\u4F5C\u533A\u64CD\u4F5C"),l.default.createElement("div",{className:"mdd-local-ai-actions"},l.default.createElement(h.CnButton,{type:"primary",loading:k==="push",onClick:re},"\u53D1\u9001\u5230\u672C\u5730 AI"),l.default.createElement(h.CnButton,{loading:k==="pull",onClick:_},"\u540C\u6B65\u672C\u5730\u4FEE\u6539"),l.default.createElement(h.CnButton,{loading:k==="status",onClick:z},"\u67E5\u770B\u72B6\u6001"),l.default.createElement(h.CnButton,{loading:k==="open",onClick:D},"\u6253\u5F00\u76EE\u5F55"),l.default.createElement(h.CnButton,{loading:k==="rollback",onClick:$},"\u56DE\u6EDA\u4E0A\u6B21\u66F4\u6539")),l.default.createElement("div",{className:"mdd-local-ai-action-notice"},"\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\u53EA\u4F1A\u540C\u6B65\u5F53\u524D\u9875\u9762\u7684\u672C\u5730\u53D8\u66F4\uFF1B\u5982\u679C\u5173\u8054\u5B50 L4 \u9875\u9762\u4E5F\u5728\u672C\u5730\u6539\u8FC7\uFF0C\u8BF7\u6253\u5F00\u5BF9\u5E94\u5B50\u9875\u9762\u7684 L4 \u5730\u5740\uFF0C\u5206\u522B\u6267\u884C\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\u5E76\u5728\u9875\u9762\u4E0A\u70B9\u51FB\u4FDD\u5B58\u3002")),l.default.createElement("div",{className:"mdd-local-ai-section"},l.default.createElement("div",{className:"mdd-local-ai-section-title"},"\u8F85\u52A9\u64CD\u4F5C"),l.default.createElement("div",{className:"mdd-local-ai-copy-actions"},l.default.createElement(h.CnButton,{size:"small",onClick:()=>G(j8,"\u5DF2\u590D\u5236\u542F\u52A8\u547D\u4EE4")},"\u590D\u5236\u542F\u52A8\u547D\u4EE4"),l.default.createElement(h.CnButton,{size:"small",onClick:()=>G(j,"\u5DF2\u590D\u5236\u5DE5\u4F5C\u533A\u8DEF\u5F84")},"\u590D\u5236\u5DE5\u4F5C\u533A\u8DEF\u5F84"),l.default.createElement(h.CnButton,{size:"small",onClick:()=>G(N,"\u5DF2\u590D\u5236 AI \u63D0\u793A\u8BCD")},"\u590D\u5236 AI \u63D0\u793A\u8BCD"))),T?T.type==="push"?l.default.createElement("div",{className:"mdd-local-ai-push-result"},l.default.createElement("div",{className:"mdd-local-ai-push-result-head"},l.default.createElement("div",null,l.default.createElement("div",{className:"mdd-local-ai-push-result-title"},"\u5DF2\u5199\u5165\u672C\u5730\u5DE5\u4F5C\u533A"),l.default.createElement("div",{className:"mdd-local-ai-push-result-path"},T.dir)),l.default.createElement("span",{className:"mdd-local-ai-push-result-badge"},"\u5B8C\u6210")),l.default.createElement("div",{className:"mdd-local-ai-push-stats"},l.default.createElement("div",{className:"mdd-local-ai-push-stat"},l.default.createElement("span",null,"\u76F4\u63A5\u5B50 L4"),l.default.createElement("strong",null,((B=T.linkedPages)==null?void 0:B.directCount)||0)),l.default.createElement("div",{className:"mdd-local-ai-push-stat"},l.default.createElement("span",null,"\u9012\u5F52\u5173\u8054"),l.default.createElement("strong",null,((q=T.linkedPages)==null?void 0:q.totalReferences)||0)),l.default.createElement("div",{className:"mdd-local-ai-push-stat is-success"},l.default.createElement("span",null,"\u5DF2\u540C\u6B65"),l.default.createElement("strong",null,((ee=T.linkedPages)==null?void 0:ee.syncedCount)||0)),l.default.createElement("div",{className:"mdd-local-ai-push-stat is-warning"},l.default.createElement("span",null,"\u9700\u5904\u7406"),l.default.createElement("strong",null,((oe=T.linkedPages)==null?void 0:oe.failedCount)||0))),(Be=(de=T.linkedPages)==null?void 0:de.pages)!=null&&Be.length?l.default.createElement("div",{className:"mdd-local-ai-linked-section"},l.default.createElement("div",{className:"mdd-local-ai-linked-section-title"},"\u5DF2\u4E00\u8D77\u540C\u6B65\u7684\u5173\u8054\u9875\u9762"),l.default.createElement("div",{className:"mdd-local-ai-linked-tags"},T.linkedPages.pages.map(Z=>l.default.createElement("span",{key:Z.code,className:"mdd-local-ai-linked-tag is-success has-name"},l.default.createElement("span",{className:"mdd-local-ai-linked-name"},Z.name||"\u672A\u547D\u540D\u9875\u9762"),l.default.createElement("span",{className:"mdd-local-ai-linked-code"},Z.code))))):null,(qe=(ke=T.linkedPages)==null?void 0:ke.failed)!=null&&qe.length?l.default.createElement("div",{className:"mdd-local-ai-linked-section"},l.default.createElement("div",{className:"mdd-local-ai-linked-section-title"},"\u9700\u8981\u7528\u6237\u5904\u7406\u7684\u5173\u8054\u9875\u9762"),T.linkedPages.failed.map(Z=>{const me=o7(Z);return l.default.createElement("div",{key:Z.code,className:"mdd-local-ai-linked-warning"},l.default.createElement("div",{className:"mdd-local-ai-linked-warning-main"},l.default.createElement("span",{className:"mdd-local-ai-linked-tag is-warning has-name"},l.default.createElement("span",{className:"mdd-local-ai-linked-name"},Z.name||"\u672A\u547D\u540D\u9875\u9762"),l.default.createElement("span",{className:"mdd-local-ai-linked-code"},Z.code)),l.default.createElement("span",null,Z.reason||"\u672A\u80FD\u81EA\u52A8\u540C\u6B65")),me?l.default.createElement("div",{className:"mdd-local-ai-linked-actions-tip"},l.default.createElement("div",null,"\u8FD9\u4E2A\u9875\u9762\u672C\u5730\u5DF2\u6709\u672A\u540C\u6B65\u4FEE\u6539\uFF0C\u4E3A\u907F\u514D\u8986\u76D6\uFF0C\u672C\u6B21\u6CA1\u6709\u91CD\u65B0\u4E0B\u53D1\u3002"),l.default.createElement("div",null,"\u4F60\u53EF\u4EE5\u9009\u62E9\uFF1A1\uFF09\u6253\u5F00\u8BE5 L4 \u9875\u9762\u5148\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\u5E76\u4FDD\u5B58\uFF1B2\uFF09\u786E\u8BA4\u653E\u5F03\u672C\u5730\u6539\u52A8\u540E\u5220\u9664\u672C\u5730\u76EE\u5F55\uFF0C\u518D\u4ECE\u7236\u9875\u9762\u91CD\u65B0\u4E0B\u53D1\u3002"),Z.dir?l.default.createElement(h.CnButton,{size:"small",onClick:()=>G(Z.dir,"\u5DF2\u590D\u5236\u5173\u8054\u9875\u9762\u672C\u5730\u76EE\u5F55")},"\u590D\u5236\u672C\u5730\u76EE\u5F55"):null):null)})):null):l.default.createElement("div",{className:"mdd-local-ai-summary"},T):null,l.default.createElement(J8,{diffSummary:K}),J?l.default.createElement("div",{className:"mdd-local-ai-error"},l.default.createElement("div",{className:"mdd-local-ai-error-title"},J.title),l.default.createElement("div",{className:"mdd-local-ai-error-message"},J.message),J.snippet?l.default.createElement("pre",{className:"mdd-local-ai-error-snippet"},J.snippet):null):null,l.default.createElement(h.CnCard,{className:"mdd-local-ai-card"},l.default.createElement("div",{className:"mdd-local-ai-title"},"\u4F7F\u7528\u65B9\u5F0F"),l.default.createElement("div",{className:"mdd-local-ai-tips"},l.default.createElement("div",null,"1. \u9996\u6B21\u4F7F\u7528\u5148\u5168\u5C40\u5B89\u88C5\uFF1Anpm i -g @cniot/mdd-ai-bridge\u3002"),l.default.createElement("div",null,"2. \u5B89\u88C5\u540E\u5728\u4EFB\u610F\u76EE\u5F55\u8FD0\u884C\uFF1Amdd-ai-bridge\u3002\u4E5F\u53EF\u4EE5\u76F4\u63A5\u8FD0\u884C\uFF1Anpx @cniot/mdd-ai-bridge\u3002"),l.default.createElement("div",null,"3. \u70B9\u51FB\u201C\u53D1\u9001\u5230\u672C\u5730 AI\u201D\uFF0C\u5F53\u524D\u9875\u9762\u4F1A\u5199\u5165\u672C\u5730\u5DE5\u4F5C\u533A\u3002"),l.default.createElement("div",null,"4. \u7528 Cursor\u3001Qoder\u3001Codex CLI \u7B49\u5DE5\u5177\u6253\u5F00\u76EE\u5F55\u5E76\u4FEE\u6539\u6587\u4EF6\u3002"),l.default.createElement("div",null,"5. \u70B9\u51FB\u201C\u540C\u6B65\u672C\u5730\u4FEE\u6539\u201D\uFF0C\u786E\u8BA4\u9884\u89C8\u540E\u7EE7\u7EED\u4F7F\u7528\u539F\u4FDD\u5B58\u6309\u94AE\u3002"),l.default.createElement("div",null,"\u7EBF\u4E0A HTTP \u9875\u9762\u4F1A\u81EA\u52A8\u6253\u5F00\u672C\u5730 Bridge relay \u7A97\u53E3\uFF0C\u8BF7\u5141\u8BB8\u6D4F\u89C8\u5668\u5F39\u7A97\u3002"),l.default.createElement("div",null,"\u672C\u5730\u5DE5\u4F5C\u533A\u9ED8\u8BA4\u5728 ~/.mdd-ai-workspace\u3002"))))}var Bp,kp,Mp;const s7=((kp=(Bp=window==null?void 0:window.location)==null?void 0:Bp.search)==null?void 0:kp.indexOf("debug"))>=0||((Mp=window.localStorage)==null?void 0:Mp.__l4_location_search_debug__)==="true";function c7(e){const{schema:t,scriptInfo:r={script:"",style:""},showScript:o,scriptTopButtons:i,aiBridge:s=!0,pageMeta:m,onSchemaApplied:d}=e,[f,v]=l.default.useState(!1),[y,b]=l.default.useState(!1),[w,E]=l.default.useState(!1),[F,k]=l.default.useState(!1),[C,T]=l.default.useState(r),[U,J]=l.default.useState(JSON.stringify((t==null?void 0:t.getAllJSON())||{},null,2)),W=l.default.useRef(C),K=l.default.useRef(U),L="calc(100vh - 146px)",S=N=>{const G={script:N,style:W.current.style};W.current=G,T(G),t.emit(Pe.SCRIPT_UPDATE,{script:N,style:W.current.style})},O=N=>{const G={script:W.current.script,style:N};W.current=G,T(G),t.emit(Pe.SCRIPT_UPDATE,G)},Y=N=>{t.emit(Pe.SCHEMA_UPDATE_FORCE,N)},j=({schemaJson:N,scriptInfo:G})=>{W.current=G,T(G);const ie=JSON.stringify(N||(t==null?void 0:t.getAllJSON())||{},null,2);K.current=ie,J(ie),d==null||d()};return l.default.createElement("div",null,l.default.createElement("div",{className:"mdd-editor-toolbar"},s7&&l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.CnButton,{text:!0,onClick:()=>E(!0)},l.default.createElement(h.CnIcon,{type:"muscle-fill",size:"medium"}))},"schema"),o&&l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.CnButton,{text:!0,onClick:()=>b(!0)},l.default.createElement(h.CnIcon,{type:"code",size:"medium"}))},"\u811A\u672C"),l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.CnButton,{text:!0,onClick:()=>v(!0)},l.default.createElement(h.CnIcon,{type:"fullscreen",size:"medium"}))},"\u9884\u89C8"),s!==!1&&l.default.createElement(h.CnTooltip,{trigger:l.default.createElement(h.CnButton,{type:"primary",size:"small",className:"mdd-editor-ai-button",onClick:()=>k(!0)},"\u672C\u5730 AI")},"\u672C\u5730 AI")),l.default.createElement(h.Dialog,{v2:!0,title:"\u9884\u89C8",width:"90vw",visible:f,onClose:()=>v(!1),footer:!1},l.default.createElement(Qh.default,{schema:t.getAllJSON(),modules:new Map([["$PARAMS",new Pp.JSONWatch({})],["$EXTENDS_MODULE",{}]])})),F&&l.default.createElement(h.CnDrawer,{title:"\u672C\u5730 AI \u5DE5\u4F5C\u533A",width:"720px",footer:!1,visible:F,onClose:()=>k(!1)},l.default.createElement(i7,{schema:t,scriptInfo:C,pageMeta:m,bridgeConfig:s,onApply:j})),l.default.createElement(h.CnDrawer,{title:"\u811A\u672C\u7F16\u8F91",width:"90vw",footer:!1,visible:y,onClose:()=>b(!1)},l.default.createElement(h.CnCard,{className:"mdd-script-card"},Array.isArray(i)&&i.length>0?l.default.createElement("div",{className:"mdd-script-top-buttons"},i.map(N=>l.default.createElement(h.CnButton,{key:N.children,size:"small",...N}))):null,l.default.createElement(h.CnTab,{size:"small",shape:"pure"},l.default.createElement(h.CnTabItem,{key:"script",title:"jsx\u811A\u672C"},l.default.createElement(Lr,{defaultLanguage:"javascript",height:L,value:C.script,onChange:S})),l.default.createElement(h.CnTabItem,{key:"style",title:"less\u6837\u5F0F"},l.default.createElement(Lr,{defaultLanguage:"less",height:L,value:C.style,onChange:O}))))),l.default.createElement(h.CnDrawer,{title:"schema\u7F16\u8F91",width:"90vw",footer:!0,visible:w,onClose:()=>E(!1),cancelProps:{children:"\u53D6\u6D88",onClick:()=>{E(!1)}},okProps:{children:"\u786E\u5B9A",type:"primary",onClick:()=>{Y(K.current),E(!1)}}},l.default.createElement(h.CnCard,null,l.default.createElement(Lr,{defaultLanguage:"json",height:L,value:U,onChange:N=>{K.current=N,J(N)}}))))}function d7(e){const{schemaJson:t,scriptCode:r,styleCode:o,swaggerJson:i,showScript:s=!1,onChange:m,customComponent:d,customSchema:f,moduleDataSource:v,refreshModuleDataSource:y,blocksDataSource:b,moduleMap:w=new Map,scriptTopButtons:E=[],aiBridge:F=!0,pageMeta:k}=e,C=l.default.useRef([]),[T,U]=l.default.useState(0),{fillSwaggerInfo:J}=pn(),{setModules:W}=uo(),K=l.default.useRef();l.default.useEffect(()=>{W({$ModuleDataSource:v,$RefreshModuleDataSource:y,$BlocksDataSource:b}),console.log("moduleDataSource: ",v),window.__MDD_ModuleDataSource=v},[]);const L=l.default.useRef({schema:t,scriptInfo:{script:r,style:o}}),S=p7(t,d,f),O=l.default.useMemo(()=>{if(Rp(C.current),!S)return null;const j=K.current||new S[1](t,!0);return K.current=j,C.current.push(ii(Pe.SCHEMA_UPDATE,j,Na(({schemaJson:N})=>{L.current.schema=N,m&&m(N,L.current.scriptInfo)},30))),C.current.push(ii(Pe.SCRIPT_UPDATE,j,Na(N=>{L.current.scriptInfo=N,m&&m(L.current.schema,N)},30))),C.current.push(ii(Pe.SCHEMA_UPDATE_FORCE,j,Na(N=>{L.current.schema=N,m&&m(L.current.schema,L.current.scriptInfo)},30))),j},[t,S,m]);if(l.default.useEffect(()=>()=>{Rp(C.current)},[]),l.default.useEffect(()=>{i&&i.paths&&J(Al(i))},[i]),!O||!S)return null;const Y=S[0];return l.default.createElement("div",{className:"mdd-editor-build-content"},l.default.createElement(Ol,null,l.default.createElement(Y,{key:T,schema:O,moduleMap:w})),l.default.createElement(c7,{schema:O,scriptInfo:L.current.scriptInfo,showScript:s,scriptTopButtons:E,aiBridge:F,pageMeta:k,onSchemaApplied:()=>U(j=>j+1)}))}function ii(e,t,r){return t.on(e,r),()=>{t.off(e,r)}}function Rp(e){Array.isArray(e)&&e.length>0&&e.forEach(t=>{typeof t=="function"&&t()})}function p7(e,t,r){var o;if(!e||!((o=e==null?void 0:e.body)!=null&&o.type))return null;switch(e.body.type){case"ftp":return[t||Uf,r||Pr];case"formily-form-v2":return[t||Kf,r||Nr];case"detail":return[t||Wf,r||ml];case"edit-table":return[t||Jf,r||Ui];case"blocks-table":return[t||ul,r||hr];case"blocks-filter":return[t||ul,r||hr];case"blocks-form":return[t||ul,r||hr];case"blocks-edit-table":return[t||ul,r||hr];default:return null}}function m7({schema:e}){const t=l.default.useRef(),[r,o]=M.useState({});M.useEffect(()=>{e.on("$updated",(E,F)=>{!F&&o({})})},[]);const i=e.get("primaryKey"),s=e.get("columns"),m=e.get("pagination"),d=e.get("showIndex"),f=({index:E,record:F},k)=>{e.update(E,F,k,!0)},v=(E,F)=>{e.update("",F,E)},y=()=>{var E;(E=t.current)==null||E.updateData(e.get("columns"))},b=E=>{switch(E){case"columns":e.add({type:"text",label:"\u5C55\u793A\u9879",name:""},"columns",!0),y();break}},w=(E,F)=>{e.remove(E,F,!0),F==="columns"&&y()};return l.default.createElement("div",null,l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u4E3B\u952E\uFF1A"),l.default.createElement(h.Input,{value:i,size:"small",onChange:E=>v("primaryKey",E)})),l.default.createElement(dt,{ref:t,data:s,title:"\u914D\u7F6E\u8868\u683C\u5217",componentOptions:Ml,onAdd:()=>b("columns"),onRemove:E=>w(E,"columns"),onChange:({index:E,record:F})=>f({index:E,record:F},"columns"),onSort:E=>{e.setItemAll(E,"columns",!0)}}),l.default.createElement(Wn,{contentStyle:{padding:"10px"},data:m,type:"pagination",title:"\u914D\u7F6E\u5206\u9875",onChange:({index:E,record:F})=>f({index:E,record:F},"pagination")}),l.default.createElement("div",{style:{marginLeft:"10px",marginBottom:8}},l.default.createElement("label",null,"\u662F\u5426\u663E\u793A\u5E8F\u53F7\uFF1A"),l.default.createElement(h.Switch,{autoWidth:!0,checked:d,size:"small",onChange:E=>v("showIndex",E)}),l.default.createElement("span",{className:"mdd-tip"},l.default.createElement(h.Icon,{type:"prompt"})," \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7"," ")))}const f7="_customTabItem_1y6va_1",h7="_tabTitle_1y6va_5",g7="_tabLabel_1y6va_9";var si={customTabItem:f7,tabTitle:h7,tabLabel:g7};const v7=({title:e,icon:t})=>l.default.createElement("div",{className:si.customTabItem},l.default.createElement("div",{className:si.tabTitle},l.default.createElement(h.Icon,{type:t,size:"small"}),l.default.createElement("span",{className:si.tabLabel},e)));function y7({schema:e}){return l.default.createElement(h.Tab,{animation:!1,lazyLoad:!1,shape:"wrapped",tabPosition:"left",className:"build-page-tab",tabRender:(t,r)=>l.default.createElement(v7,{key:t,...r})},l.default.createElement(h.Tab.Item,{title:"\u641C\u7D22\u533A",icon:"search"},l.default.createElement(Yf,{schema:e.getFilterPanel()})),l.default.createElement(h.Tab.Item,{title:"\u9876\u90E8\u64CD\u4F5C\u533A",icon:"set"},l.default.createElement(zf,{schema:e.getHeaderToolbarPanel()})),l.default.createElement(h.Tab.Item,{title:"\u5185\u5BB9\u533A",icon:"detail"},l.default.createElement(m7,{schema:e.getTablePanel()})))}function x7(){return`
78
78
  import React from 'react';
79
79
  import MDDRenderEngine, { JSONWatch } from '@cniot/mdd-render-engine';
80
80
  import cn from 'classnames';
@@ -134,10 +134,10 @@ mdd-ai-bridge`,j8=(e="")=>e.replace(/\/+$/,""),Xa=e=>e?typeof e=="string"?JSON.p
134
134
  return new Map([['$EXTENDS_MODULE', extendsModule], ['$PARAMS', new JSONWatch(params)]]);
135
135
  }
136
136
 
137
- `}function x7(){return`
137
+ `}function E7(){return`
138
138
  // \u6839\u8282\u70B9class\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5C3D\u91CF\u6837\u5F0F\u5199\u5728 l4-page-xxx \u4E0B\uFF0C\u907F\u514D\u6837\u5F0F\u5168\u5C40\u6C61\u67D3
139
139
  // .l4-page-xxx {
140
140
  // display: flex;
141
141
  // flex: 1;
142
142
  // }
143
- `}const E7="@cniot/mdd-editor",b7="0.3.8",C7="\u6A21\u578B\u9A71\u52A8\u7F16\u8F91\u5668",F7={build:"vite build"},S7="./build/index.es.js",D7="",A7="ISC",w7={"@cainiaofe/cn-ui":"0.12.34","@cniot/mdd-render-engine":"^0.1.1-beta.12","@monaco-editor/react":"^4.5.1",EventEmitter:"^1.0.0",ahooks:"^3.2.0",classnames:"^2.3.1","cn-address-select-pro":"^0.1.5","dnd-core":"^16.0.1",hox:"^1.1.6","immutability-helper":"^3.1.1","js-cookie":"^3.0.5",lodash:"^4.17.21",react:"^17.0.2","react-dnd":"^16.0.0","react-dnd-html5-backend":"^16.0.0","react-dom":"^17.0.2"},T7={vite:"^2.9.0"},I7={react:">=16.0.0","react-dom":">=16.0.0","@cainiaofe/cn-ui":"*",ahooks:"*",classnames:"*","cn-address-select-pro":"*",lodash:"*","@monaco-editor/react":"*"},_7="git@gitlab.alibaba-inc.com:one-code/mdd.git";var $7={name:E7,version:b7,description:C7,scripts:F7,main:S7,author:D7,license:A7,dependencies:w7,devDependencies:T7,peerDependencies:I7,repository:_7};console.log(`%cmdd-editor %c@${$7.version} %c=====`,"color:#000;font-weight:bold;","color:green;font-weight:bold;","color:#000;font-weight:bold;");exports.DetailBuild=Wf;exports.DetailSchema=ml;exports.EVENT_KEY=Pe;exports.EditTableBuild=Jf;exports.EditTableSchema=Ui;exports.FormBuild=Kf;exports.FormilyFormV2Schema=Nr;exports.FtpBuild=Uf;exports.FtpSchema=Pr;exports.MDD_SCHEMA_LS_KEY=Yi;exports.PERSISTENT_STORE_LS_KEY=cm;exports.SWAGGER_DT=pr;exports.SWAGGER_FT=W1;exports.SimpleFtp=v7;exports.api2SchemaFromSwagger=HF;exports.api2SchemaFromSwaggerApiInfo=Fm;exports.buildFieldsToCompJson=ht;exports.buildSwaggerApiJson=Kt;exports.calcWordWidth=Q1;exports.default=c7;exports.getApiInfo=Cm;exports.getDefaultFomrLabelAlign=qa;exports.getDefaultIndexScript=y7;exports.getDefaultIndexStyle=x7;exports.getGlobalSizeFromCookie=mm;exports.getLocalProjectSwaggerOpts=qF;exports.getSwaggerInfoFromJson=bm;exports.upperFirst=X1;exports.useModule=uo;exports.useSchema=Ka;exports.useSwagger=pn;
143
+ `}const b7="@cniot/mdd-editor",C7="0.3.9",F7="\u6A21\u578B\u9A71\u52A8\u7F16\u8F91\u5668",S7={build:"vite build"},D7="./build/index.es.js",A7="",w7="ISC",T7={"@cainiaofe/cn-ui":"0.12.34","@cniot/mdd-render-engine":"^0.1.1-beta.12","@monaco-editor/react":"^4.5.1",EventEmitter:"^1.0.0",ahooks:"^3.2.0",classnames:"^2.3.1","cn-address-select-pro":"^0.1.5","dnd-core":"^16.0.1",hox:"^1.1.6","immutability-helper":"^3.1.1","js-cookie":"^3.0.5",lodash:"^4.17.21",react:"^17.0.2","react-dnd":"^16.0.0","react-dnd-html5-backend":"^16.0.0","react-dom":"^17.0.2"},I7={vite:"^2.9.0"},_7={react:">=16.0.0","react-dom":">=16.0.0","@cainiaofe/cn-ui":"*",ahooks:"*",classnames:"*","cn-address-select-pro":"*",lodash:"*","@monaco-editor/react":"*"},$7="git@gitlab.alibaba-inc.com:one-code/mdd.git";var O7={name:b7,version:C7,description:F7,scripts:S7,main:D7,author:A7,license:w7,dependencies:T7,devDependencies:I7,peerDependencies:_7,repository:$7};console.log(`%cmdd-editor %c@${O7.version} %c=====`,"color:#000;font-weight:bold;","color:green;font-weight:bold;","color:#000;font-weight:bold;");exports.DetailBuild=Wf;exports.DetailSchema=ml;exports.EVENT_KEY=Pe;exports.EditTableBuild=Jf;exports.EditTableSchema=Ui;exports.FormBuild=Kf;exports.FormilyFormV2Schema=Nr;exports.FtpBuild=Uf;exports.FtpSchema=Pr;exports.MDD_SCHEMA_LS_KEY=Yi;exports.PERSISTENT_STORE_LS_KEY=cm;exports.SWAGGER_DT=pr;exports.SWAGGER_FT=W1;exports.SimpleFtp=y7;exports.api2SchemaFromSwagger=HF;exports.api2SchemaFromSwaggerApiInfo=Fm;exports.buildFieldsToCompJson=ht;exports.buildSwaggerApiJson=Kt;exports.calcWordWidth=Q1;exports.default=d7;exports.getApiInfo=Cm;exports.getDefaultFomrLabelAlign=qa;exports.getDefaultIndexScript=x7;exports.getDefaultIndexStyle=E7;exports.getGlobalSizeFromCookie=mm;exports.getLocalProjectSwaggerOpts=qF;exports.getSwaggerInfoFromJson=bm;exports.upperFirst=X1;exports.useModule=uo;exports.useSchema=Ka;exports.useSwagger=pn;