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