import{h as n,g as j,$ as h,k as w,i as I,j as t,_ as i}from"./main.2.9.0.js";import{u as _,e as S,b as r}from"./react-router.DMwpH23k.js";import{S as v}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S as C,I as N,s as y}from"./Integrations.DL8wqGct.js";import{h as D}from"./DropboxCommonFunc.CeAbCIWw.js";import{D as k}from"./DropboxIntegLayout.BIpilPcU.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.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};
