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