import{u as h,k as j,d as m,h as b,r as c,j as s}from"./main-406.js";import{g as I,$ as C,h as w,d as S,_ as l,i as _,I as v,s as y}from"./bi.394.85.js";import{h as f,M as L}from"./bi.111.875.js";function F({allIntegURL:x}){const g=h(),{formID:u}=j(),[t,e]=m(I),[i,N]=m(C),r=b(w),[n,d]=c.useState(!1),[p,a]=c.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(S,{snack:p,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:o=>f(o,t,e),name:"name",value:t.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(_,{entity:i.triggered_entity,setSnackbar:a}),s.jsx(L,{formID:u,formFields:r,handleInput:o=>f(o,t,e),msLmsConf:t,setMsLmsConf:e,isLoading:n,setIsLoading:d,setSnackbar:a}),s.jsx(v,{edit:!0,saveConfig:()=>y({flow:i,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{F as default};
