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-Cy4uayzW.js";import"./index-BN26Feep.js";import{l as N}from"./useExtendComponent-bb7cca20-BI3wCIBy.js";import"./index-zKZnG1QC.js";import"./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7-l0sNRNKZ.js";import T from"./OnlineAutoModal-971bef13-DF7Nuae0.js";import{d as $,m as q}from"./useListButton-7ddb9a46-B2JkLeEJ.js";import{g as z}from"./useFormUrl-2ee1a82d-DErkbKsZ.js";import"./componentMap-0iK4HQBq.js";import"./constant-fa63bd66-Ddbq-fz2.js";import"./index-CsJ9aAmV.js";import"./user.api-CoaMxYm2.js";import"./customExpression-CGrP-C85.js";import"./index-gyz1IdHU.js";import"./useListPage-TMORxSEa.js";import"./index-B4vNk56t.js";import"./LinkTableListPiece-2660d709-DrzfYgba.js";import"./OnlineSelectCascade-471fcc76-RMDlPcWh.js";import"./JModalTip-4a83aaed-B3Ect82j.js";import"./OnlineForm-018981b2-CJJHtzax.js";import"./useCustomHook-acb00837-SAzzNXM4.js";import"./CommentPanel--VUmEKHf.js";import"./cgformState-d9f8ec42-BYbQ71Ss.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useForm-DfoT2G6J.js";import"./index-Bdn0r8CG.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.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"./JUpload-DSWoDwh2.js";import"./BasicTable-CgafrQwz.js";import"./injectionKey-DPVn4AgL.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";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};
