import{h as n,g as j,$ as h,k as w,i as I,j as t,_ as i}from"./main.2.8.10.js";import{u as _,e as S,b as r}from"./react-router.DMwpH23k.js";import{S as v}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as C,I as N,s as y}from"./Integrations.BFhED4ck.js";import{h as D}from"./DropboxCommonFunc.Cgn_D7pU.js";import{D as k}from"./DropboxIntegLayout.Bgi6Mury.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function B({allIntegURL:m}){const d=_(),{id:p}=S(),[s,o]=n(j),[a,c]=n(h),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{B as default};
