import{b as d,h,$ as j,k as b,i as L,j as t,_ as c}from"./main.2.8.1.js";import{u as I,h as C,d as f}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S,I as _,s as v}from"./Integrations.D2bgBas2.js";import{h as l,L as N}from"./LifterLmsIntegLayout.D9KAm2n2.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";function T({allIntegURL:p}){const x=I(),{formID:g}=C(),[s,e]=d(h),[o,y]=d(j),r=b(L),[n,m]=f.useState(!1),[u,a]=f.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:u,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:i=>l(i,s,e),name:"name",value:s.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(S,{entity:o.triggered_entity,setSnackbar:a}),t.jsx(N,{formID:g,formFields:r,handleInput:i=>l(i,s,e),lifterLmsConf:s,setLifterLmsConf:e,isLoading:n,setIsLoading:m,setSnackbar:a}),t.jsx(_,{edit:!0,saveConfig:()=>v({flow:o,allIntegURL:p,conf:s,navigate:x,edit:1,setIsLoading:m,setSnackbar:a}),disabled:s.mainAction===""||n,isLoading:n,dataConf:s,setDataConf:e,formFields:r}),t.jsx("br",{})]})}export{T as default};
