import{d as V,f as i,a1 as b,u as o,w as x,a2 as l,a3 as B,k as d,af as u,a4 as E,V as f,ad as F,a6 as c}from"./vue-vendor-CxLCUzY4.js";import{r as I,J as N}from"./antd-vue-vendor-CahNzUUa.js";import{c9 as R,u as S}from"./index-Cy4uayzW.js";import"./index-BN26Feep.js";import{l as T}from"./useExtendComponent-bb7cca20-BI3wCIBy.js";import"./index-zKZnG1QC.js";import"./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7-l0sNRNKZ.js";import $ from"./OnlineAutoModal-971bef13-DF7Nuae0.js";import{d as y,m as D}from"./useListButton-7ddb9a46-B2JkLeEJ.js";import{g as M}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 z=V({__name:"OnlineFormUrlAdd",setup(A){const{ID:t,onlineTableContext:e,onlineExtConfigJson:g,handleFormConfig:h}=y(),{createMessage:C}=S(),m=i(null),p=i(400),a=i(!0),w=b(),{token:n}=M();if(!o(n))throw new Error("token不存在~");if(!t.value)throw C.warning("地址错误, 配置ID不存在!"),new Error("地址错误, 配置ID不存在!");T(e),x(()=>m.value,r=>{p.value=r.offsetHeight-60});const{registerModal:v,handleAdd:s}=D(e,g),k=r=>document.querySelector(`.online-add-${t.value}`),_=()=>{setTimeout(()=>{s(!1),setTimeout(()=>{w.push({path:"/online/formUrlSuccess"})},1e3)},0)};return setTimeout(()=>{s(!1),a.value=!1},1e3),(r,J)=>(l(),B("div",{class:c([["p-2"],"online-wrap"])},[d(o(N),{bordered:!1},{default:u(()=>[d(o(I),{spinning:a.value},{default:u(()=>[E("div",{class:c(["wrap",`online-add-${o(t)}`]),ref_key:"wrapRef",ref:m},[f("",!0),o(n)?(l(),F($,{key:1,id:o(t),maskClosable:!1,onRegister:o(v),getContainer:k,onFormConfig:o(h),onSuccess:_,height:p.value},null,8,["id","onRegister","onFormConfig","height"])):f("",!0)],2)]),_:1},8,["spinning"])]),_:1})]))}}),mt=R(z,[["__scopeId","data-v-4a0277d5"]]);export{mt as default};
