import{u as h,k as j,d as m,h as b,r as c,j as s}from"./main-406.js";import{g as I,$ as C,h as w,d as _,_ as l,i as v,I as N,s as S}from"./bi.394.85.js";import{h as f,G as y}from"./bi.534.811.js";import"./bi.704.707.js";import"./bi.701.708.js";function L({allIntegURL:x}){const g=h(),{formID:p}=j(),[t,e]=m(I),[o,P]=m(C),r=b(w),[n,d]=c.useState(!1),[u,a]=c.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(_,{snack:u,setSnackbar:a}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:l("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:i=>f(i,t,e),name:"name",value:t.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(v,{entity:o.triggered_entity,setSnackbar:a}),s.jsx(y,{formID:p,formFields:r,handleInput:i=>f(i,t,e),gamiPressConf:t,setGamiPressConf:e,isLoading:n,setIsLoading:d,setSnackbar:a}),s.jsx(N,{edit:!0,saveConfig:()=>S({flow:o,allIntegURL:x,conf:t,navigate:g,edit:1,setIsLoading:d,setSnackbar:a}),disabled:t.mainAction===""||n,isLoading:n,dataConf:t,setDataConf:e,formFields:r}),s.jsx("br",{})]})}export{L as default};
