import{h as r,$ as x,g,k as h,i as j,j as t,_ as m}from"./main.2.8.10.js";import{u as b,b as d}from"./react-router.DMwpH23k.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as C,I as w,s as I}from"./Integrations.BFhED4ck.js";import{h as _,T as v}from"./TutorLmsIntegLayout.D9KqWBv-.js";import"./react-vendor.P7K3d6op.js";import"./SnackMsg.7BjcJK1j.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function q({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{q as default};
