import{b as m,h,$ as b,k as j,i as I,j as s,_ as c}from"./main.2.8.1.js";import{u as y,h as C,d as l}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import{S as B,I as S,s as _}from"./Integrations.D2bgBas2.js";import{h as p,B as v,c as N,i as k}from"./BuddyBossIntegLayout.CE2d5aP3.js";import"./Note.BeM7sN-p.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function G({allIntegURL:f}){const u=y(),{formID:x}=C(),[t,e]=m(h),[i,F]=m(b),r=j(I),[n,d]=l.useState(!1),[g,a]=l.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:o=>p(o,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:o=>p(o,t,e),buddyBossConf:t,setBuddyBossConf:e,isLoading:n,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)||n||k(t),isLoading:n,dataConf:t,setDataConf:e,formFields:r}),s.jsx("br",{})]})}export{G as default};
