import{h as i,g as h,$ as b,k as v,i as w,j as e,_ as n}from"./main.2.9.0.js";import{u as I,e as _,b as r}from"./react-router.DMwpH23k.js";import{S}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"./GoogleDriveCommonFunc.CP1Ay2xG.js";import{G as k}from"./GoogleDriveIntegLayout.BAuzVmj5.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";function z({allIntegURL:m}){const l=I(),{id:d}=_(),[t,o]=i(h),[a,c]=i(b),p=v(w),[g,f]=r.useState(!1),[x,s]=r.useState({show:!1}),u=()=>{y({flow:a,setFlow:c,allIntegURL:m,conf:t,navigate:l,edit:1,setIsLoading:f,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:j=>D(j,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:g}),e.jsx("br",{})]})}export{z as default};
