import{h as m,g as b,$ as h,k as j,i as I,j as s,_ as c}from"./main.2.8.10.js";import{u as y,e as C,b as p}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.7BjcJK1j.js";import{S as B,I as S,s as _}from"./Integrations.BFhED4ck.js";import{h as l,B as v,c as N,i as k}from"./BuddyBossIntegLayout.DEw8R6UI.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./TagifyInput.C4ilRm4k.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};
