import{h as r,g as h,$ as b,k as v,i as w,j as t,_ as m}from"./main.2.8.10.js";import{u as I,e as S,b as c}from"./react-router.DMwpH23k.js";import{S as _}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"./OneDriveCommonFunc.Czl9xOCp.js";import{O as k}from"./OneDriveIntegLayout.CXb9-51V.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function z({allIntegURL:d}){const l=I(),{id:p}=S(),[e,a]=r(h),[n,f]=r(b),x=v(w),[o,i]=c.useState(!1),[g,s]=c.useState({show:!1}),u=()=>{y({flow:n,setFlow:f,allIntegURL:d,conf:e,navigate:l,edit:1,setIsLoading:i,setSnackbar:s})};return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:g,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:m("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:j=>D(j,e,a),name:"name",value:e.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(C,{entity:n.triggered_entity,setSnackbar:s}),t.jsx(k,{flowID:p,formFields:x,oneDriveConf:e,setOneDriveConf:a,isLoading:o,setIsLoading:i,setSnackbar:s}),t.jsx(N,{edit:!0,saveConfig:u,disabled:!e.actions.attachments||!e.folder,isLoading:o}),t.jsx("br",{})]})}export{z as default};
