import{d as _,ao as b,f as m,a1 as R,u as o,w as x,a2 as d,a3 as B,k as u,af as f,a4 as F,V as c,ad as S,a6 as g}from"./vue-vendor-CxLCUzY4.js";import{r as V,J as y}from"./antd-vue-vendor-CahNzUUa.js";import{c9 as D,u as M}from"./index-CLZzJyTP.js";import"./index-ByX9XNkE.js";import{l as N}from"./useExtendComponent-bb7cca20-DLrsSGUN.js";import"./index-XZKTTfG1.js";import"./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7-l0sNRNKZ.js";import T from"./OnlineAutoModal-971bef13-a2-XNW1c.js";import{d as $,m as q}from"./useListButton-7ddb9a46-BhRMI4ZD.js";import{g as z}from"./useFormUrl-2ee1a82d-eJc8XIU6.js";import"./componentMap-DpsJvoqz.js";import"./constant-fa63bd66-Ddbq-fz2.js";import"./index-Bz3DhbXN.js";import"./user.api-DAu0nuTv.js";import"./customExpression-CGrP-C85.js";import"./index-KOQNKxnC.js";import"./useListPage-CevWQ3ci.js";import"./index-Bn2zmO2L.js";import"./LinkTableListPiece-2660d709-C_0uiCkV.js";import"./OnlineSelectCascade-471fcc76-D9SPP1nv.js";import"./JModalTip-4a83aaed-HQN1qwWE.js";import"./OnlineForm-018981b2-BDCHvLjg.js";import"./useCustomHook-acb00837-BuHDMguF.js";import"./CommentPanel-C19DClKt.js";import"./cgformState-d9f8ec42-S733PGzb.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useForm-Dx3lJ3DG.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./index-C7yPiS0L.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./JUpload-DgDEmizw.js";import"./BasicTable-DUJWN3yz.js";import"./injectionKey-DPVn4AgL.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./index-CDfdiE5a.js";const H=_({__name:"OnlineFormUrlEdit",setup(J){const{ID:t,onlineTableContext:p,onlineExtConfigJson:h,handleFormConfig:C}=$(),{createMessage:w}=M(),r=b(),a=m(null),s=m(400),n=m(!0),v=R(),{token:i}=z();if(!o(i))throw new Error("token不存在~");if(!t.value||!r.params.dataId)throw w.warning("地址错误, 配置ID不存在!"),new Error("地址错误, 配置ID不存在!");N(p),x(()=>a.value,e=>{s.value=e.offsetHeight-60});const{registerModal:k,handleEdit:l}=q(p,h),E=e=>document.querySelector(`.online-edit-${t.value}`),I=()=>{setTimeout(()=>{l({id:r.params.dataId}),v.push({path:"/online/formUrlSuccess"})},0)};return setTimeout(()=>{i&&l({id:r.params.dataId}),n.value=!1},1e3),(e,U)=>(d(),B("div",{class:g([["p-2"],"online-wrap"])},[u(o(y),{bordered:!1},{default:f(()=>[u(o(V),{spinning:n.value},{default:f(()=>[F("div",{class:g(["wrap",`online-edit-${o(t)}`]),ref_key:"wrapRef",ref:a},[c("",!0),o(i)?(d(),S(T,{key:1,id:o(t),maskClosable:!1,onRegister:o(k),getContainer:E,onFormConfig:o(C),onSuccess:I,height:s.value},null,8,["id","onRegister","onFormConfig","height"])):c("",!0)],2)]),_:1},8,["spinning"])]),_:1})]))}}),at=D(H,[["__scopeId","data-v-0b4f6a76"]]);export{at as default};
