import{U as d,a2 as x,ad as D,af as s,k as c,G as P,ag as I,d as L,f as W,w as _}from"./vue-vendor-CxLCUzY4.js";import{B as O}from"./index-zKZnG1QC.js";import U from"./OnlineFormDetail-e036cd11-CGtLuJaO.js";import{f as V}from"./useExtendComponent-bb7cca20-BI3wCIBy.js";import{t as j}from"./CommentPanel--VUmEKHf.js";import{E as q}from"./constant-fa63bd66-Ddbq-fz2.js";import{c9 as z}from"./index-Cy4uayzW.js";import"./antd-vue-vendor-CahNzUUa.js";import"./DetailForm-4aa2570b-BsHyLfvx.js";import"./index-B4vNk56t.js";import"./index-DmeKrdZg.js";import"./componentMap-0iK4HQBq.js";import"./index-BN26Feep.js";import"./index-CsJ9aAmV.js";import"./user.api-CoaMxYm2.js";import"./customExpression-CGrP-C85.js";import"./index-gyz1IdHU.js";import"./useListPage-TMORxSEa.js";import"./LinkTableListPiece-2660d709-DrzfYgba.js";import"./OnlineSelectCascade-471fcc76-RMDlPcWh.js";import"./JModalTip-4a83aaed-B3Ect82j.js";import"./OnlineSubFormDetail-03f8ee5c-AeiFLhV6.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useForm-DfoT2G6J.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JUpload-DSWoDwh2.js";import"./BasicTable-CgafrQwz.js";import"./injectionKey-DPVn4AgL.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./index-CDqTB63O.js";var A=(t,n,o)=>new Promise((p,i)=>{var l=e=>{try{m(o.next(e))}catch(r){i(r)}},a=e=>{try{m(o.throw(e))}catch(r){i(r)}},m=e=>e.done?p(e.value):Promise.resolve(e.value).then(l,a);m((o=o.apply(t,n)).next())});const E=L({name:"OnlineDetailModal",props:{id:{type:String,required:!1,default:""},source:{type:String,default:""}},components:{BasicModal:O,OnlineFormDetail:U,CommentPanel:j},emits:["success","register","formConfig"],setup(t,{emit:n}){const o=W();function p(){o.value&&o.value.reload()}const{title:i,modalWidth:l,registerModal:a,cgButtonList:m,handleCgButtonClick:e,disableSubmit:r,handleSubmit:f,submitLoading:h,handleCancel:b,handleFormConfig:C,onlineFormCompRef:g,formTemplate:w,isTreeForm:S,pidFieldName:T,renderSuccess:B,formRendered:F,showSub:N,tableName:R,formDataId:k,enableComment:v,themeTemplate:y}=V(!1,{emit:n},p);_(()=>t.id,M,{immediate:!0});function M(){return A(this,null,function*(){if(F.value=!1,!t.id)return;let u={};t.source===q&&(u.tabletype=3),yield C(t.id,u)})}return{title:i,onlineFormCompRef:g,renderSuccess:B,registerModal:a,handleSubmit:f,handleCancel:b,modalWidth:l,formTemplate:w,disableSubmit:r,cgButtonList:m,handleCgButtonClick:e,isTreeForm:S,pidFieldName:T,submitLoading:h,showSub:N,tableName:R,formDataId:k,enableComment:v,commentPanelRef:o,themeTemplate:y}}});function G(t,n,o,p,i,l){const a=d("a-button"),m=d("online-form-detail"),e=d("comment-panel"),r=d("BasicModal");return x(),D(r,I({title:t.title,width:t.modalWidth,maxHeight:600,enableComment:t.enableComment,defaultFullscreen:!1},t.$attrs,{onRegister:t.registerModal,wrapClassName:"jeecg-online-detail-modal"}),{footer:s(()=>[c(a,{key:"back",onClick:t.handleCancel},{default:s(()=>[P("关闭")]),_:1},8,["onClick"])]),comment:s(()=>[c(e,{ref:"commentPanelRef",tableName:t.tableName,dataId:t.formDataId},null,8,["tableName","dataId"])]),default:s(()=>[c(m,{ref:"onlineFormCompRef",id:t.id,"form-template":t.formTemplate,"show-sub":t.showSub,themeTemplate:t.themeTemplate,onRendered:t.renderSuccess},null,8,["id","form-template","show-sub","themeTemplate","onRendered"])]),_:1},16,["title","width","enableComment","onRegister"])}const ne=z(E,[["render",G]]);export{ne as default};
