import{b as r,$ as g,h as u,k as h,i as j,j as t,_ as m}from"./main.2.8.1.js";import{u as b,d}from"./react-router-dom.9mCuUg3q.js";import"./Note.BeM7sN-p.js";import{S as y,I as C,s as w}from"./Integrations.D2bgBas2.js";import{h as I,A as _}from"./AcademyLmsIntegLayout.Vl2GH1yX.js";import"./CopyIcn.3gZpHton.js";import"./SnackMsg.S8DrwLlT.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";function T({allIntegURL:c}){const l=b(),[a,v]=r(g),[e,s]=r(u),[n,o]=d.useState(!1),[L,i]=d.useState({show:!1}),f=h(j),p=()=>{w({flow:a,allIntegURL:c,conf:e,navigate:l,edit:1,setIsLoading:o,setSnackbar:i})};return t.jsxs("div",{style:{width:900},children:[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:x=>I(x,e,s),name:"name",value:e.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(y,{entity:a.triggered_entity,setSnackbar:i}),t.jsx(_,{academyLmsConf:e,setAcademyLmsConf:s,isLoading:n,setIsLoading:o}),t.jsx(C,{edit:!0,saveConfig:p,disabled:!1,isLoading:n,dataConf:e,setDataConf:s,formFields:f}),t.jsx("br",{})]})}export{T as default};
