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