import{h as m,g as b,$ as h,k as j,i as I,j as s,_ as c}from"./main.2.9.0.js";import{u as y,e as C,b as p}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.DYSD96P4.js";import{S as B,I as S,s as _}from"./Integrations.DL8wqGct.js";import{h as l,B as v,c as N,i as k}from"./BuddyBossIntegLayout.DYiqrQ-h.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./TagifyInput.KPPRQJ1B.js";import"./lodash.DCvQBX3r.js";function H({allIntegURL:f}){const u=y(),{formID:x}=C(),[t,e]=m(b),[i,F]=m(h),r=j(I),[o,d]=p.useState(!1),[g,a]=p.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(w,{snack:g,setSnackbar:a}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:n=>l(n,t,e),name:"name",value:t.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(B,{entity:i.triggered_entity,setSnackbar:a}),s.jsx(v,{formID:x,formFields:r,handleInput:n=>l(n,t,e),buddyBossConf:t,setBuddyBossConf:e,isLoading:o,setIsLoading:d,setSnackbar:a}),s.jsx(S,{edit:!0,saveConfig:()=>_({flow:i,allIntegURL:f,conf:t,navigate:u,edit:1,setIsLoading:d,setSnackbar:a}),disabled:!t.mainAction||!N(t)||o||k(t),isLoading:o,dataConf:t,setDataConf:e,formFields:r}),s.jsx("br",{})]})}export{H as default};
