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-CDWW6V_M.js";import{c9 as R,u as S}from"./index-CYriLmQo.js";import"./index-BkgeZpOO.js";import{l as T}from"./useExtendComponent-bb7cca20-qwBBEorv.js";import"./index-CF_FJn6P.js";import"./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7-l0sNRNKZ.js";import $ from"./OnlineAutoModal-971bef13-DEmdD4Mk.js";import{d as y,m as D}from"./useListButton-7ddb9a46-CZyO72TD.js";import{g as M}from"./useFormUrl-2ee1a82d-BqeYo2LJ.js";import"./componentMap-7D1QIeNI.js";import"./constant-fa63bd66-Ddbq-fz2.js";import"./index-C143YDY6.js";import"./user.api-BUwWVSBN.js";import"./customExpression-CGrP-C85.js";import"./index-BN5Ac_IG.js";import"./useListPage-i3Wl0_Fg.js";import"./index-Bx9Mnn3N.js";import"./LinkTableListPiece-2660d709-BxbO6G9v.js";import"./OnlineSelectCascade-471fcc76-BhQCunHf.js";import"./JModalTip-4a83aaed-BVM0v87K.js";import"./OnlineForm-018981b2-CEX_M0_v.js";import"./useCustomHook-acb00837-BjNmHWvU.js";import"./CommentPanel-DJGekQLW.js";import"./cgformState-d9f8ec42-BC3VNSdG.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useForm-8o5KRzWo.js";import"./index-CxQILSKV.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./index-BTSd5ebC.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JUpload-pyrTRFCz.js";import"./BasicTable-DAfCfXmD.js";import"./injectionKey-DPVn4AgL.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./index-CYNQc9BL.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})]))}}),et=R(z,[["__scopeId","data-v-4a0277d5"]]);export{et as default};
