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