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