import{h as r,g as h,$ as b,k as v,i as w,j as t,_ as m}from"./main.2.9.0.js";import{u as I,e as S,b as c}from"./react-router.DMwpH23k.js";import{S as _}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"./OneDriveCommonFunc.BBNhC02r.js";import{O as k}from"./OneDriveIntegLayout.DDU6u138.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.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};
