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