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-CLZzJyTP.js";import"./index-ByX9XNkE.js";import{l as T}from"./useExtendComponent-bb7cca20-DLrsSGUN.js";import"./index-XZKTTfG1.js";import"./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7-l0sNRNKZ.js";import $ from"./OnlineAutoModal-971bef13-a2-XNW1c.js";import{d as y,m as D}from"./useListButton-7ddb9a46-BhRMI4ZD.js";import{g as M}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 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};
