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