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