import{b as n,h,$ as j,k as w,i as I,j as t,_ as i}from"./main.2.8.1.js";import{u as _,h as S,d as r}from"./react-router-dom.9mCuUg3q.js";import{S as v}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as C,I as N,s as y}from"./Integrations.D2bgBas2.js";import{h as D}from"./DropboxCommonFunc.CVFsAsv5.js";import{D as k}from"./DropboxIntegLayout.CeesEBQJ.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";function z({allIntegURL:m}){const d=_(),{id:p}=S(),[s,o]=n(h),[a,c]=n(j),l=w(I),[x,f]=r.useState(!1),[g,e]=r.useState({show:!1}),b=()=>{y({flow:a,setFlow:c,allIntegURL:m,conf:s,navigate:d,edit:1,setIsLoading:f,setSnackbar:e})};return t.jsxs("div",{style:{width:900},children:[t.jsx(v,{snack:g,setSnackbar:e}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:i("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>D(u,s,o),name:"name",value:s.name,type:"text",placeholder:i("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(C,{entity:a.triggered_entity,setSnackbar:e}),t.jsx(k,{flowID:p,formFields:l,dropboxConf:s,setDropboxConf:o}),t.jsx(N,{edit:!0,saveConfig:b,disabled:s.field_map.length<1,isLoading:x}),t.jsx("br",{})]})}export{z as default};
