import{b as r,$ as x,h as g,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 C,I as w,s as I}from"./Integrations.D2bgBas2.js";import{h as _,T as v}from"./TutorLmsIntegLayout.BbI2u6Gc.js";import"./CopyIcn.3gZpHton.js";import"./SnackMsg.S8DrwLlT.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";function D({allIntegURL:l}){const c=b(),[a,N]=r(x),[s,e]=r(g),[o,n]=d.useState(!1),[S,i]=d.useState({show:!1}),f=h(j),p=()=>{I({flow:a,allIntegURL:l,conf:s,navigate:c,edit:1,setIsLoading:n,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:u=>_(u,s,e),name:"name",value:s.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(C,{entity:a.triggered_entity,setSnackbar:i}),t.jsx(v,{tutorlmsConf:s,setTutorlmsConf:e,isLoading:o,setIsLoading:n}),t.jsx(w,{edit:!0,saveConfig:p,disabled:!1,isLoading:o,dataConf:s,setDataConf:e,formFields:f}),t.jsx("br",{})]})}export{D as default};
