import{h as r,g as h,$ as j,k as b,i as w,j as s,_ as m}from"./main.2.8.10.js";import{u as C,e as I,b as d}from"./react-router.DMwpH23k.js";import{S}from"./SnackMsg.7BjcJK1j.js";import{S as _,I as v,s as N}from"./Integrations.BFhED4ck.js";import{h as k,W as y,c as F}from"./WordPressIntegLayout.zHdM26zm.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./ProUtilHelpers.CtRYkgop.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";import"./GlobalIntegrationHelper.Belqr4OT.js";function J({allIntegURL:c}){const p=C(),{id:P,formID:l}=I(),[t,e]=r(h),[o,f]=r(j),i=b(w),[n,x]=d.useState(!1),[g,a]=d.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(S,{snack:g,setSnackbar:a}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:m("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>k(u,t,e),name:"name",value:t.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx(_,{entity:o.triggered_entity,setSnackbar:a}),s.jsx(y,{formID:l,formFields:i,wordPressConf:t,setWordPressConf:e,isLoading:n}),s.jsx(v,{edit:!0,saveConfig:()=>N({flow:o,setFlow:f,allIntegURL:c,conf:t,navigate:p,edit:1,setIsLoading:x,setSnackbar:a}),disabled:!F(t),isLoading:n,dataConf:t,setDataConf:e,formFields:i}),s.jsx("br",{})]})}export{J as default};
