import{h as m,g as u,$ as j,k as b,i as C,j as t,_ as c}from"./main.2.8.10.js";import{u as I,e as _,b as d}from"./react-router.DMwpH23k.js";import{S as k}from"./SnackMsg.7BjcJK1j.js";import{S as w,I as S,s as v}from"./Integrations.BFhED4ck.js";import{h as N}from"./BenchMarkCommonFunc.C4otc7zJ.js";import{B as y}from"./BenchMarkIntegLayout.CIdJNlB6.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function z({allIntegURL:l}){const f=I(),{id:M,formID:p}=_(),[e,a]=m(u),[n,g]=m(j),o=b(C),[i,r]=d.useState(!1),[x,s]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(k,{snack:x,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:h=>N(h,e,a),name:"name",value:e.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(w,{entity:n.triggered_entity,setSnackbar:s}),t.jsx(y,{formID:p,formFields:o,benchMarkConf:e,setBenchMarkConf:a,isLoading:i,setIsLoading:r,setSnackbar:s}),t.jsx(S,{edit:!0,saveConfig:()=>v({flow:n,setFlow:g,allIntegURL:l,navigate:f,conf:e,edit:1,setIsLoading:r,setSnackbar:s}),disabled:e.field_map.length<1,isLoading:i,dataConf:e,setDataConf:a,formFields:o}),t.jsx("br",{})]})}export{z as default};
