import{b as d,h,$ as j,k as b,i as I,j as s,_ as c}from"./main.2.8.1.js";import{u as C,h as w,d as l}from"./react-router-dom.9mCuUg3q.js";import{S}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as _,I as v,s as N}from"./Integrations.D2bgBas2.js";import{h as p,G as y}from"./GamiPressIntegLayout.r8n0tWmu.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function q({allIntegURL:f}){const x=C(),{formID:g}=w(),[t,e]=d(h),[o,P]=d(j),r=b(I),[n,m]=l.useState(!1),[u,a]=l.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(S,{snack:u,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:i=>p(i,t,e),name:"name",value:t.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(_,{entity:o.triggered_entity,setSnackbar:a}),s.jsx(y,{formID:g,formFields:r,handleInput:i=>p(i,t,e),gamiPressConf:t,setGamiPressConf:e,isLoading:n,setIsLoading:m,setSnackbar:a}),s.jsx(v,{edit:!0,saveConfig:()=>N({flow:o,allIntegURL:f,conf:t,navigate:x,edit:1,setIsLoading:m,setSnackbar:a}),disabled:t.mainAction===""||n,isLoading:n,dataConf:t,setDataConf:e,formFields:r}),s.jsx("br",{})]})}export{q as default};
