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