import{h as m,g as j,$ as w,k as C,i as h,j as t,_ as d}from"./main.2.8.10.js";import{u as b,b as c}from"./react-router.DMwpH23k.js";import{S as _}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as I,I as S,s as v}from"./Integrations.BFhED4ck.js";import{h as y,W as N}from"./WPCoursewareIntegLayout.DwWzFJGU.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function M({allIntegURL:l}){const p=b(),[e,a]=m(j),[o,f]=m(w),n=C(h),[i,r]=c.useState(!1),[g,s]=c.useState({show:!1}),x=()=>{v({flow:o,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:d("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:d("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(I,{entity:o.triggered_entity,setSnackbar:s}),t.jsx(N,{formID:o.triggered_entity_id,formFields:n,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:n}),t.jsx("br",{})]})}export{M as default};
