import{b as i,h as u,$ as j,k as b,i as I,j as t,_ as r}from"./main.2.8.1.js";import{u as C,h as _,d as m}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as E,I as S,s as v}from"./Integrations.D2bgBas2.js";import{h as N}from"./EnchargeCommonFunc.1cTg0e70.js";import{E as y}from"./EnchargeIntegLayout.B-3xwfzz.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function G({allIntegURL:d}){const c=C(),{id:k,formID:l}=_(),[e,s]=i(u),[n,p]=i(j),o=b(I),[f,a]=m.useState({show:!1}),[g,x]=m.useState(!1);return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:f,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:r("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:h=>N(h,e,s),name:"name",value:e.name,type:"text",placeholder:r("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(E,{entity:n.triggered_entity,setSnackbar:a}),t.jsx(y,{formID:l,formFields:o,enchargeConf:e,setEnchargeConf:s}),t.jsx(S,{edit:!0,saveConfig:()=>v({flow:n,setFlow:p,allIntegURL:d,conf:e,navigate:c,edit:1,setIsLoading:x,setSnackbar:a}),disabled:e.listId===""||e.field_map.length<1,isLoading:g,dataConf:e,setDataConf:s,formFields:o}),t.jsx("br",{})]})}export{G as default};
