import{u as j,k as b,d as r,h as w,r as c,j as s}from"./main-333.js";import{g as C,$ as I,h as _,d as v,_ as d,i as N,I as S,s as k}from"./bi.636.93.js";import{h as y,c as F}from"./bi.140.830.js";import{G as E}from"./bi.178.831.js";import"./bi.535.730.js";import"./bi.286.731.js";function M({allIntegURL:l}){const m=j(),{id:p}=b(),[t,e]=r(C),[n,f]=r(I),o=w(_),[i,x]=c.useState(!1),[g,a]=c.useState({show:!1}),u=()=>{k({flow:n,setFlow:f,allIntegURL:l,conf:t,navigate:m,edit:1,setIsLoading:x,setSnackbar:a})};return s.jsxs("div",{style:{width:900},className:"p-2",children:[s.jsx(v,{snack:g,setSnackbar:a}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:h=>y(h,t,e),name:"name",value:t.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(N,{entity:n.triggered_entity,setSnackbar:a}),s.jsx(E,{flowID:p,formFields:o,googleContactsConf:t,setGoogleContactsConf:e}),s.jsx(S,{edit:!0,saveConfig:u,disabled:!F(t==null?void 0:t.field_map)||t.mainAction===""||i,isLoading:i,dataConf:t,setDataConf:e,formFields:o}),s.jsx("br",{})]})}export{M as default};
