import{u as h,k as j,d,h as b,r as l,j as t}from"./main-333.js";import{g as I,$ as S,h as C,d as w,_ as m,i as _,I as v,s as N}from"./bi.636.93.js";import{h as p,S as y}from"./bi.907.732.js";import"./bi.535.730.js";import"./bi.286.731.js";function R({allIntegURL:f}){const x=h(),{formID:g}=j(),[e,s]=d(I),[o,k]=d(S),r=b(C),[n,c]=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),sliceWpConf:e,setSliceWpConf:s,isLoading:n,setIsLoading:c,setSnackbar:a}),t.jsx(v,{edit:!0,saveConfig:()=>N({flow:o,allIntegURL:f,conf:e,navigate:x,edit:1,setIsLoading:c,setSnackbar:a}),disabled:!e.mainAction||n,isLoading:n,dataConf:e,setDataConf:s,formFields:r}),t.jsx("br",{})]})}export{R as default};
