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