import{b as r,h as j,$ as b,k as v,i as w,j as t,_ as m}from"./main.2.8.1.js";import{u as I,h as S,d as c}from"./react-router-dom.9mCuUg3q.js";import{S as _}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"./OneDriveCommonFunc.Cm_dWfyv.js";import{O as k}from"./OneDriveIntegLayout.BQEbXn1H.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";function q({allIntegURL:d}){const l=I(),{id:f}=S(),[e,a]=r(j),[n,p]=r(b),x=v(w),[o,i]=c.useState(!1),[g,s]=c.useState({show:!1}),u=()=>{y({flow:n,setFlow:p,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:h=>D(h,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:f,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{q as default};
